41#ifndef QTSINGLEAPPLICATION_H
42#define QTSINGLEAPPLICATION_H
44#include <QApplication>
57#if QT_VERSION < 0x050000
61 QtSingleApplication(Display *dpy,
int &argc,
char **argv, Qt::HANDLE visual = 0, Qt::HANDLE cmap= 0);
62 QtSingleApplication(Display* dpy,
const QString &appId,
int argc,
char **argv, Qt::HANDLE visual = 0, Qt::HANDLE colormap = 0);
67 void setAppId(
const QString &
id);
70 void setActivationWindow(QWidget* aw,
bool activateOnMessage =
true);
71 QWidget* activationWindow()
const;
75 { isRunning(); Q_UNUSED(dummy) }
77 void removeLockFile();
80 bool sendMessage(
const QString &message,
int timeout = 5000);
81 void activateWindow();
89 void sysInit(
const QString &appId = QString());
The QtSingleApplication class provides an API to detect and communicate with running instances of an ...
void initialize(bool dummy=true)
void messageReceived(const QString &message)