author | zecke <zecke> | 2003-08-25 15:00:50 (UTC) |
---|---|---|
committer | zecke <zecke> | 2003-08-25 15:00:50 (UTC) |
commit | bf3c4abb9dff716e098f05852d9a3d8ac8cbcb44 (patch) (unidiff) | |
tree | f74d4765868000d27c45771573032515ac8db8be /core/launcher/server.h | |
parent | 292b097e7db25dd231381c5b09307a1fbe81a492 (diff) | |
download | opie-bf3c4abb9dff716e098f05852d9a3d8ac8cbcb44.zip opie-bf3c4abb9dff716e098f05852d9a3d8ac8cbcb44.tar.gz opie-bf3c4abb9dff716e098f05852d9a3d8ac8cbcb44.tar.bz2 |
Initial revision
-rw-r--r-- | core/launcher/server.h | 94 |
1 files changed, 94 insertions, 0 deletions
diff --git a/core/launcher/server.h b/core/launcher/server.h new file mode 100644 index 0000000..21b03af --- a/dev/null +++ b/core/launcher/server.h | |||
@@ -0,0 +1,94 @@ | |||
1 | /********************************************************************** | ||
2 | ** Copyright (C) 2000-2002 Trolltech AS. All rights reserved. | ||
3 | ** | ||
4 | ** This file is part of the Qtopia Environment. | ||
5 | ** | ||
6 | ** This file may be distributed and/or modified under the terms of the | ||
7 | ** GNU General Public License version 2 as published by the Free Software | ||
8 | ** Foundation and appearing in the file LICENSE.GPL included in the | ||
9 | ** packaging of this file. | ||
10 | ** | ||
11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE | ||
12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. | ||
13 | ** | ||
14 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. | ||
15 | ** | ||
16 | ** Contact info@trolltech.com if any conditions of this licensing are | ||
17 | ** not clear to you. | ||
18 | ** | ||
19 | **********************************************************************/ | ||
20 | #ifndef DESKTOP_H | ||
21 | #define DESKTOP_H | ||
22 | |||
23 | #include <qwidget.h> | ||
24 | #include <qdatetime.h> | ||
25 | |||
26 | //#include "qcopbridge.h" | ||
27 | |||
28 | class QCopBridge; | ||
29 | class QHostAddress; | ||
30 | class TransferServer; | ||
31 | class PackageHandler; | ||
32 | class DeviceButton; | ||
33 | class ServiceRequest; | ||
34 | class TempScreenSaverMonitor; | ||
35 | class AppLauncher; | ||
36 | class AppLnkSet; | ||
37 | class StorageInfo; | ||
38 | class SyncDialog; | ||
39 | class DocumentList; | ||
40 | class ServerInterface; | ||
41 | |||
42 | class Server : public QWidget { | ||
43 | Q_OBJECT | ||
44 | public: | ||
45 | Server(); | ||
46 | ~Server(); | ||
47 | |||
48 | static bool mkdir(const QString &path); | ||
49 | |||
50 | void show(); | ||
51 | |||
52 | static void soundAlarm(); | ||
53 | static bool setKeyboardLayout( const QString &kb ); | ||
54 | |||
55 | public slots: | ||
56 | void systemMsg(const QCString &, const QByteArray &); | ||
57 | void receiveTaskBar(const QCString &msg, const QByteArray &data); | ||
58 | void terminateServers(); | ||
59 | void pokeTimeMonitors(); | ||
60 | |||
61 | private slots: | ||
62 | void activate(const DeviceButton*,bool); | ||
63 | void syncConnectionClosed( const QHostAddress & ); | ||
64 | void applicationLaunched(int pid, const QString &app); | ||
65 | void applicationTerminated(int pid, const QString &app); | ||
66 | void applicationConnected(const QString &app); | ||
67 | void storageChanged(); | ||
68 | void cancelSync(); | ||
69 | |||
70 | protected: | ||
71 | void styleChange( QStyle & ); | ||
72 | void timerEvent( QTimerEvent *e ); | ||
73 | |||
74 | private: | ||
75 | void startTransferServer(); | ||
76 | void preloadApps(); | ||
77 | |||
78 | QCopBridge *qcopBridge; | ||
79 | TransferServer *transferServer; | ||
80 | PackageHandler *packageHandler; | ||
81 | QDate last_today_show; | ||
82 | int tid_xfer; | ||
83 | int tid_today; | ||
84 | TempScreenSaverMonitor *tsmMonitor; | ||
85 | StorageInfo *storage; | ||
86 | SyncDialog *syncDialog; | ||
87 | AppLauncher *appLauncher; | ||
88 | DocumentList *docList; | ||
89 | ServerInterface *serverGui; | ||
90 | }; | ||
91 | |||
92 | |||
93 | #endif // DESKTOP_H | ||
94 | |||