 |
QtPass
1.3.3
Multi-platform GUI for pass, the standard unix password manager.
|
Go to the documentation of this file. 1 #ifndef SINGLEAPPLICATION_H_
2 #define SINGLEAPPLICATION_H_
4 #include <QApplication>
5 #include <QLocalServer>
6 #include <QSharedMemory>
34 QSharedMemory sharedMemory;
35 QScopedPointer<QLocalServer> localServer;
37 static const int timeout = 1000;
40 #endif // SINGLEAPPLICATION_H_
The SingleApplication class is used for commandline intergration.
bool sendMessage(const QString &message)
SingleApplication::sendMessage send a message (from commandline) to an already running QtPass instanc...
void messageAvailable(QString message)
messageAvailable notification from commandline
bool isRunning()
SingleApplication::isRunning is there already a QtPass instance running, to check wether to be server...
SingleApplication(int &argc, char *argv[], QString uniqueKey)
SingleApplication::SingleApplication this replaces the QApplication allowing for local socket based c...
void receiveMessage()
SingleApplication::receiveMessage we have received (a command line) message.