Diffstat (limited to 'core/launcher/documentlist.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/launcher/documentlist.h | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/core/launcher/documentlist.h b/core/launcher/documentlist.h new file mode 100644 index 0000000..bd5c031 --- a/dev/null +++ b/core/launcher/documentlist.h | |||
@@ -0,0 +1,77 @@ | |||
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 DOCUMENT_LIST_H | ||
21 | #define DOCUMENT_LIST_H | ||
22 | |||
23 | |||
24 | #include <qobject.h> | ||
25 | #include <qtopia/applnk.h> | ||
26 | |||
27 | |||
28 | class DocumentListPrivate; | ||
29 | class ServerInterface; | ||
30 | |||
31 | class DocumentList : public QObject { | ||
32 | Q_OBJECT | ||
33 | public: | ||
34 | DocumentList( ServerInterface *serverGui, bool scanDocs = TRUE, | ||
35 | QObject *parent = 0, const char *name = 0 ); | ||
36 | ~DocumentList(); | ||
37 | |||
38 | void linkChanged( QString link ); | ||
39 | void restoreDone(); | ||
40 | void storageChanged(); | ||
41 | void sendAllDocLinks(); | ||
42 | |||
43 | void reloadAppLnks(); | ||
44 | void reloadDocLnks(); | ||
45 | |||
46 | // Orig DocList stuff | ||
47 | void start(); | ||
48 | void pause(); | ||
49 | void resume(); | ||
50 | void rescan(); | ||
51 | |||
52 | static AppLnkSet *appLnkSet; | ||
53 | |||
54 | /* | ||
55 | void resend(); | ||
56 | signals: | ||
57 | void added( const DocLnk& doc ); | ||
58 | void removed( const DocLnk& doc ); | ||
59 | void changed( const DocLnk& oldDoc, const DocLnk& newDoc ); | ||
60 | void allRemoved(); | ||
61 | void doneForNow(); | ||
62 | private slots: | ||
63 | void resendWorker(); | ||
64 | */ | ||
65 | private slots: | ||
66 | void startInitialScan(); | ||
67 | protected: | ||
68 | void timerEvent( QTimerEvent *te ); | ||
69 | private: | ||
70 | void add( const DocLnk& doc ); | ||
71 | DocumentListPrivate *d; | ||
72 | |||
73 | }; | ||
74 | |||
75 | |||
76 | #endif | ||
77 | |||