41 #ifndef QTSINGLEAPPLICATION_H 42 #define QTSINGLEAPPLICATION_H 44 #include <QApplication> 45 #include <QCommandLineParser> 46 #include <QMainWindow> 51 # if !defined(QT_QTSINGLEAPPLICATION_EXPORT) && !defined(QT_QTSINGLEAPPLICATION_IMPORT) 52 # define QT_QTSINGLEAPPLICATION_EXPORT 53 # elif defined(QT_QTSINGLEAPPLICATION_IMPORT) 54 # if defined(QT_QTSINGLEAPPLICATION_EXPORT) 55 # undef QT_QTSINGLEAPPLICATION_EXPORT 57 # define QT_QTSINGLEAPPLICATION_EXPORT __declspec(dllimport) 58 # elif defined(QT_QTSINGLEAPPLICATION_EXPORT) 59 # undef QT_QTSINGLEAPPLICATION_EXPORT 60 # define QT_QTSINGLEAPPLICATION_EXPORT __declspec(dllexport) 63 # define QT_QTSINGLEAPPLICATION_EXPORT 71 void sysInit(
const QString &appId = QString());
82 void setActivationWindow(QMainWindow *aw,
bool activateOnMessage =
true);
83 QWidget* activationWindow()
const;
86 void aboutToSendArgs(
const QString &message);
87 void activateWindow();
88 bool forwardArgsToServer(
int timeout = 5000);
99 void messageReceived(
const QString &message);
100 void sendArgs(
const QStringList &);
103 #endif // QTSINGLEAPPLICATION_H The QtSingleApplication class provides an API to detect and communicate with running instances of an ...
Definition: qtsingleapplication.h:66
Definition: qtlocalpeer.h:50
#define QT_QTSINGLEAPPLICATION_EXPORT
Definition: qtsingleapplication.h:63