-rw-r--r-- | core/launcher/server.h | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/core/launcher/server.h b/core/launcher/server.h index 21b03af..91bf883 100644 --- a/core/launcher/server.h +++ b/core/launcher/server.h | |||
@@ -20,75 +20,78 @@ | |||
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 DeviceButton; | ||
33 | class ServiceRequest; | 32 | class ServiceRequest; |
34 | class TempScreenSaverMonitor; | 33 | class TempScreenSaverMonitor; |
35 | class AppLauncher; | 34 | class AppLauncher; |
36 | class AppLnkSet; | 35 | class AppLnkSet; |
37 | class StorageInfo; | 36 | class StorageInfo; |
38 | class SyncDialog; | 37 | class SyncDialog; |
39 | class DocumentList; | 38 | class DocumentList; |
40 | class ServerInterface; | 39 | class ServerInterface; |
40 | namespace Opie { | ||
41 | class ODeviceButton; | ||
42 | } | ||
41 | 43 | ||
42 | class Server : public QWidget { | 44 | class Server : public QWidget { |
43 | Q_OBJECT | 45 | Q_OBJECT |
44 | public: | 46 | public: |
45 | Server(); | 47 | Server(); |
46 | ~Server(); | 48 | ~Server(); |
47 | 49 | ||
48 | static bool mkdir(const QString &path); | 50 | static bool mkdir(const QString &path); |
49 | 51 | ||
50 | void show(); | 52 | void show(); |
51 | 53 | ||
52 | static void soundAlarm(); | ||
53 | static bool setKeyboardLayout( const QString &kb ); | 54 | static bool setKeyboardLayout( const QString &kb ); |
54 | 55 | ||
55 | public slots: | 56 | public slots: |
56 | void systemMsg(const QCString &, const QByteArray &); | 57 | void systemMsg(const QCString &, const QByteArray &); |
57 | void receiveTaskBar(const QCString &msg, const QByteArray &data); | 58 | void receiveTaskBar(const QCString &msg, const QByteArray &data); |
58 | void terminateServers(); | 59 | void terminateServers(); |
59 | void pokeTimeMonitors(); | 60 | void pokeTimeMonitors(); |
60 | 61 | ||
61 | private slots: | 62 | private slots: |
62 | void activate(const DeviceButton*,bool); | 63 | void activate(const Opie::ODeviceButton*,bool); |
63 | void syncConnectionClosed( const QHostAddress & ); | 64 | void syncConnectionClosed( const QHostAddress & ); |
64 | void applicationLaunched(int pid, const QString &app); | 65 | void applicationLaunched(int pid, const QString &app); |
65 | void applicationTerminated(int pid, const QString &app); | 66 | void applicationTerminated(int pid, const QString &app); |
66 | void applicationConnected(const QString &app); | 67 | void applicationConnected(const QString &app); |
67 | void storageChanged(); | 68 | void storageChanged(); |
68 | void cancelSync(); | 69 | void cancelSync(); |
69 | 70 | ||
70 | protected: | 71 | protected: |
71 | void styleChange( QStyle & ); | 72 | void styleChange( QStyle & ); |
72 | void timerEvent( QTimerEvent *e ); | 73 | void timerEvent( QTimerEvent *e ); |
73 | 74 | ||
74 | private: | 75 | private: |
76 | void layout(); | ||
75 | void startTransferServer(); | 77 | void startTransferServer(); |
76 | void preloadApps(); | 78 | void preloadApps(); |
77 | 79 | ||
78 | QCopBridge *qcopBridge; | 80 | QCopBridge *qcopBridge; |
79 | TransferServer *transferServer; | 81 | TransferServer *transferServer; |
80 | PackageHandler *packageHandler; | 82 | PackageHandler *packageHandler; |
81 | QDate last_today_show; | 83 | QDate last_today_show; |
82 | int tid_xfer; | 84 | int tid_xfer; |
83 | int tid_today; | 85 | /* ### FIXME two below### */ |
84 | TempScreenSaverMonitor *tsmMonitor; | 86 | // int tid_today; |
87 | // TempScreenSaverMonitor *tsmMonitor; | ||
85 | StorageInfo *storage; | 88 | StorageInfo *storage; |
86 | SyncDialog *syncDialog; | 89 | SyncDialog *syncDialog; |
87 | AppLauncher *appLauncher; | 90 | AppLauncher *appLauncher; |
88 | DocumentList *docList; | 91 | DocumentList *docList; |
89 | ServerInterface *serverGui; | 92 | ServerInterface *serverGui; |
90 | }; | 93 | }; |
91 | 94 | ||
92 | 95 | ||
93 | #endif // DESKTOP_H | 96 | #endif // DESKTOP_H |
94 | 97 | ||