QtPass 1.4.0
Multi-platform GUI for pass, the standard unix password manager.
Loading...
Searching...
No Matches
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.
 

Signals

void messageAvailable (QString message)
 messageAvailable notification from commandline
 

Public Member Functions

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

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[],
QString  uniqueKey 
)

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

Parameters
argc
argv
uniqueKey

Definition at line 15 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 64 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 44 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 72 of file singleapplication.cpp.

+ Here is the caller graph for this function:

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