QtPass  1.2.0-pre
Multi-platform GUI for pass, the standard unix password manager.
Public Slots | Signals | Public Member Functions | List of all members
SingleApplication Class Reference

The SingleApplication class is used for commandline intergration. More...

#include <singleapplication.h>

+ Inheritance diagram for SingleApplication:
+ Collaboration diagram for SingleApplication:

Public Slots

void receiveMessage ()
 SingleApplication::receiveMessage we have received (a command line) message. More...
 

Signals

void messageAvailable (QString message)
 messageAvailable notification from commandline More...
 

Public Member Functions

 SingleApplication (int &argc, char *argv[], const QString uniqueKey)
 SingleApplication::SingleApplication this replaces the QApplication allowing for local socket based communications. More...
 
bool isRunning ()
 SingleApplication::isRunning is there already a QtPass instance running, to check wether to be server or client. More...
 
bool sendMessage (const QString &message)
 SingleApplication::sendMessage send a message (from commandline) to an already running QtPass instance. More...
 

Detailed Description

The SingleApplication class is used for commandline intergration.

This class needs a bit of work or possibly replacement.

Definition at line 14 of file singleapplication.h.

Constructor & Destructor Documentation

◆ SingleApplication()

SingleApplication::SingleApplication ( int &  argc,
char *  argv[],
const QString  uniqueKey 
)

SingleApplication::SingleApplication this replaces the QApplication allowing for local socket based communications.

Parameters
argc
argv
uniqueKey

Definition at line 12 of file singleapplication.cpp.

+ Here is the call graph for this function:

Member Function Documentation

◆ isRunning()

bool SingleApplication::isRunning ( )

SingleApplication::isRunning is there already a QtPass instance running, to check wether to be server or client.

Returns

Definition at line 58 of file singleapplication.cpp.

+ Here is the caller graph for this function:

◆ messageAvailable

void SingleApplication::messageAvailable ( QString  message)
signal

messageAvailable notification from commandline

Parameters
messageargs sent to qtpass executable
+ Here is the caller graph for this function:

◆ receiveMessage

void SingleApplication::receiveMessage ( )
slot

SingleApplication::receiveMessage we have received (a command line) message.

Definition at line 40 of file singleapplication.cpp.

+ Here is the caller graph for this function:

◆ sendMessage()

bool SingleApplication::sendMessage ( const QString &  message)

SingleApplication::sendMessage send a message (from commandline) to an already running QtPass instance.

Parameters
message
Returns

Definition at line 66 of file singleapplication.cpp.

+ Here is the caller graph for this function:

The documentation for this class was generated from the following files: