2 --- qtlocalpeer.cpp 1970-01-01 01:00:00.000000000
3 +++ qtlocalpeer.cpp 2008/05/16 10:36:53.000000000
8 +namespace SharedTools {
10 const char* QtLocalPeer::ack = "ack";
12 QtLocalPeer::QtLocalPeer(QObject* parent, const QString &appId)
15 emit messageReceived(message); // ##(might take a long time to return)
20 --- qtlocalpeer.h 1970-01-01 01:00:00.000000000
21 +++ qtlocalpeer.h 2008/05/16 10:36:53.000000000
25 #include <QtNetwork/QLocalServer>
26 #include <QtNetwork/QLocalSocket>
27 #include <QtCore/QDir>
28 #include <qtlockedfile.h>
30 +namespace SharedTools {
32 class QtLocalPeer : public QObject
36 static const char* ack;
41 --- qtsingleapplication.cpp 1970-01-01 01:00:00.000000000
42 +++ qtsingleapplication.cpp 2008/05/16 10:36:53.000000000
44 #include "qtlocalpeer.h"
45 #include <QtGui/QWidget>
47 +namespace SharedTools {
49 void QtSingleApplication::sysInit(const QString &appId)
53 actWin->activateWindow();
59 --- qtsingleapplication.h 1970-01-01 01:00:00.000000000
60 +++ qtsingleapplication.h 2008/05/16 10:36:53.000000000
63 #include <QtGui/QApplication>
65 +namespace SharedTools {
69 class QtSingleApplication : public QApplication
77 --- qtsingleapplication.pri 1970-01-01 01:00:00.000000000
78 +++ qtsingleapplication.pri 2008/05/16 10:36:53.000000000
82 gotqtlockedfile = $$find(HEADERS, .*qtlockedfile.h)
83 -isEmpty(gotqtlockedfile):include(../../qtlockedfile/src/qtlockedfile.pri)
84 +isEmpty(gotqtlockedfile):include(../qtlockedfile/qtlockedfile.pri)
87 win32:contains(TEMPLATE, lib):contains(CONFIG, shared) {
89 --- qtsinglecoreapplication.cpp 1970-01-01 01:00:00.000000000
90 +++ qtsinglecoreapplication.cpp 2008/05/16 10:36:53.000000000
92 #include "qtsinglecoreapplication.h"
93 #include "qtlocalpeer.h"
95 +namespace SharedTools {
97 QtSingleCoreApplication::QtSingleCoreApplication(int &argc, char **argv)
98 : QCoreApplication(argc, argv)
100 return peer->applicationId();
105 --- qtsinglecoreapplication.h 1970-01-01 01:00:00.000000000
106 +++ qtsinglecoreapplication.h 2008/05/16 10:36:53.000000000
109 #include <QtCore/QCoreApplication>
111 +namespace SharedTools {
115 class QtSingleCoreApplication : public QCoreApplication
123 --- qtsinglecoreapplication.pri 1970-01-01 01:00:00.000000000
124 +++ qtsinglecoreapplication.pri 2008/05/16 10:36:53.000000000
128 gotqtlockedfile = $$find(HEADERS, .*qtlockedfile.h)
129 -isEmpty(gotqtlockedfile):include(../../qtlockedfile/src/qtlockedfile.pri)
130 +isEmpty(gotqtlockedfile):include(../qtlockedfile/qtlockedfile.pri)
133 win32:contains(TEMPLATE, lib):contains(CONFIG, shared) {