-rw-r--r-- | core/launcher/server.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/core/launcher/server.h b/core/launcher/server.h index 91bf883..1dc5e7e 100644 --- a/core/launcher/server.h +++ b/core/launcher/server.h | |||
@@ -17,71 +17,73 @@ | |||
17 | ** not clear to you. | 17 | ** not clear to you. |
18 | ** | 18 | ** |
19 | **********************************************************************/ | 19 | **********************************************************************/ |
20 | #ifndef DESKTOP_H | 20 | #ifndef DESKTOP_H |
21 | #define DESKTOP_H | 21 | #define DESKTOP_H |
22 | 22 | ||
23 | #include <qwidget.h> | 23 | #include <qwidget.h> |
24 | #include <qdatetime.h> | 24 | #include <qdatetime.h> |
25 | 25 | ||
26 | //#include "qcopbridge.h" | 26 | //#include "qcopbridge.h" |
27 | 27 | ||
28 | class QCopBridge; | 28 | class QCopBridge; |
29 | class QHostAddress; | 29 | class QHostAddress; |
30 | class TransferServer; | 30 | class TransferServer; |
31 | class PackageHandler; | 31 | class PackageHandler; |
32 | class ServiceRequest; | 32 | class ServiceRequest; |
33 | class TempScreenSaverMonitor; | 33 | class TempScreenSaverMonitor; |
34 | class AppLauncher; | 34 | class AppLauncher; |
35 | class AppLnkSet; | 35 | class AppLnkSet; |
36 | class StorageInfo; | 36 | class StorageInfo; |
37 | class SyncDialog; | 37 | class SyncDialog; |
38 | class DocumentList; | 38 | class DocumentList; |
39 | class ServerInterface; | 39 | class ServerInterface; |
40 | namespace Opie { | 40 | namespace Opie { |
41 | namespace Core { | ||
41 | class ODeviceButton; | 42 | class ODeviceButton; |
42 | } | 43 | } |
44 | } | ||
43 | 45 | ||
44 | class Server : public QWidget { | 46 | class Server : public QWidget { |
45 | Q_OBJECT | 47 | Q_OBJECT |
46 | public: | 48 | public: |
47 | Server(); | 49 | Server(); |
48 | ~Server(); | 50 | ~Server(); |
49 | 51 | ||
50 | static bool mkdir(const QString &path); | 52 | static bool mkdir(const QString &path); |
51 | 53 | ||
52 | void show(); | 54 | void show(); |
53 | 55 | ||
54 | static bool setKeyboardLayout( const QString &kb ); | 56 | static bool setKeyboardLayout( const QString &kb ); |
55 | 57 | ||
56 | public slots: | 58 | public slots: |
57 | void systemMsg(const QCString &, const QByteArray &); | 59 | void systemMsg(const QCString &, const QByteArray &); |
58 | void receiveTaskBar(const QCString &msg, const QByteArray &data); | 60 | void receiveTaskBar(const QCString &msg, const QByteArray &data); |
59 | void terminateServers(); | 61 | void terminateServers(); |
60 | void pokeTimeMonitors(); | 62 | void pokeTimeMonitors(); |
61 | 63 | ||
62 | private slots: | 64 | private slots: |
63 | void activate(const Opie::ODeviceButton*,bool); | 65 | void activate(const Opie::Core::ODeviceButton*,bool); |
64 | void syncConnectionClosed( const QHostAddress & ); | 66 | void syncConnectionClosed( const QHostAddress & ); |
65 | void applicationLaunched(int pid, const QString &app); | 67 | void applicationLaunched(int pid, const QString &app); |
66 | void applicationTerminated(int pid, const QString &app); | 68 | void applicationTerminated(int pid, const QString &app); |
67 | void applicationConnected(const QString &app); | 69 | void applicationConnected(const QString &app); |
68 | void storageChanged(); | 70 | void storageChanged(); |
69 | void cancelSync(); | 71 | void cancelSync(); |
70 | 72 | ||
71 | protected: | 73 | protected: |
72 | void styleChange( QStyle & ); | 74 | void styleChange( QStyle & ); |
73 | void timerEvent( QTimerEvent *e ); | 75 | void timerEvent( QTimerEvent *e ); |
74 | 76 | ||
75 | private: | 77 | private: |
76 | void layout(); | 78 | void layout(); |
77 | void startTransferServer(); | 79 | void startTransferServer(); |
78 | void preloadApps(); | 80 | void preloadApps(); |
79 | 81 | ||
80 | QCopBridge *qcopBridge; | 82 | QCopBridge *qcopBridge; |
81 | TransferServer *transferServer; | 83 | TransferServer *transferServer; |
82 | PackageHandler *packageHandler; | 84 | PackageHandler *packageHandler; |
83 | QDate last_today_show; | 85 | QDate last_today_show; |
84 | int tid_xfer; | 86 | int tid_xfer; |
85 | /* ### FIXME two below### */ | 87 | /* ### FIXME two below### */ |
86 | // int tid_today; | 88 | // int tid_today; |
87 | // TempScreenSaverMonitor *tsmMonitor; | 89 | // TempScreenSaverMonitor *tsmMonitor; |