42 #include "qtsinglecoreapplication.h" 43 #include "qtlocalpeer.h" 74 : QCoreApplication(argc, argv)
76 peer =
new QtLocalPeer(
this);
87 : QCoreApplication(argc, argv)
89 peer =
new QtLocalPeer(
this, appId);
107 return peer->isClient();
127 return peer->sendMessage(message, timeout);
138 return peer->applicationId();
QtSingleCoreApplication(int &argc, char **argv)
void messageReceived(const QString &message)
bool sendMessage(const QString &message, int timeout=5000)