author | zecke <zecke> | 2004-04-19 07:12:16 (UTC) |
---|---|---|
committer | zecke <zecke> | 2004-04-19 07:12:16 (UTC) |
commit | 0b59a16b5a5a179c46ddb3f8c585dbca59b2826e (patch) (unidiff) | |
tree | 3780a3ae09806e781582aefb23ad3040bc15d816 /core/launcher/serverinterface.h | |
parent | 359b681f32d5c3ac2ea3bfd39a3637d211338bf7 (diff) | |
download | opie-0b59a16b5a5a179c46ddb3f8c585dbca59b2826e.zip opie-0b59a16b5a5a179c46ddb3f8c585dbca59b2826e.tar.gz opie-0b59a16b5a5a179c46ddb3f8c585dbca59b2826e.tar.bz2 |
Small interface update. If we add doctypes disable the viewport() for
updates
Diffstat (limited to 'core/launcher/serverinterface.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/launcher/serverinterface.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/launcher/serverinterface.h b/core/launcher/serverinterface.h index e57ea51..132766f 100644 --- a/core/launcher/serverinterface.h +++ b/core/launcher/serverinterface.h | |||
@@ -29,44 +29,46 @@ | |||
29 | 29 | ||
30 | 30 | ||
31 | class ServerInterface { | 31 | class ServerInterface { |
32 | public: | 32 | public: |
33 | virtual ~ServerInterface(); | 33 | virtual ~ServerInterface(); |
34 | 34 | ||
35 | virtual void createGUI() = 0; | 35 | virtual void createGUI() = 0; |
36 | virtual void destroyGUI() = 0; | 36 | virtual void destroyGUI() = 0; |
37 | 37 | ||
38 | // These notify of the application categories, like what is used in the current launcher tabs, | 38 | // These notify of the application categories, like what is used in the current launcher tabs, |
39 | // for example "Applications", "Games" etc. | 39 | // for example "Applications", "Games" etc. |
40 | virtual void typeAdded( const QString& type, const QString& name, const QPixmap& pixmap, const QPixmap& bgPixmap ) = 0; | 40 | virtual void typeAdded( const QString& type, const QString& name, const QPixmap& pixmap, const QPixmap& bgPixmap ) = 0; |
41 | virtual void typeRemoved( const QString& type ) = 0; | 41 | virtual void typeRemoved( const QString& type ) = 0; |
42 | 42 | ||
43 | // These functions notify when an application is added or removed and to which category it belongs | 43 | // These functions notify when an application is added or removed and to which category it belongs |
44 | virtual void applicationAdded( const QString& type, const AppLnk& doc ) = 0; | 44 | virtual void applicationAdded( const QString& type, const AppLnk& doc ) = 0; |
45 | virtual void applicationRemoved( const QString& type, const AppLnk& doc ) = 0; | 45 | virtual void applicationRemoved( const QString& type, const AppLnk& doc ) = 0; |
46 | virtual void allApplicationsRemoved() = 0; | 46 | virtual void allApplicationsRemoved() = 0; |
47 | // Useful for wait icons, or running application lists etc | 47 | // Useful for wait icons, or running application lists etc |
48 | enum ApplicationState { Launching, Running, Terminated }; | 48 | enum ApplicationState { Launching, Running, Terminated }; |
49 | virtual void applicationStateChanged( const QString& name, ApplicationState state ) = 0; | 49 | virtual void applicationStateChanged( const QString& name, ApplicationState state ) = 0; |
50 | static const AppLnkSet& appLnks(); | 50 | static const AppLnkSet& appLnks(); |
51 | 51 | ||
52 | // These functions notify of adding, removal and changes of document links used in the documents tab for example | 52 | // These functions notify of adding, removal and changes of document links used in the documents tab for example |
53 | virtual void aboutToAddBegin() {} | ||
54 | virtual void aboutToAddEnd() {} | ||
53 | virtual void documentAdded( const DocLnk& doc ) = 0; | 55 | virtual void documentAdded( const DocLnk& doc ) = 0; |
54 | virtual void documentRemoved( const DocLnk& doc ) = 0; | 56 | virtual void documentRemoved( const DocLnk& doc ) = 0; |
55 | virtual void allDocumentsRemoved() = 0; | 57 | virtual void allDocumentsRemoved() = 0; |
56 | virtual void documentChanged( const DocLnk& oldDoc, const DocLnk& newDoc ) = 0; | 58 | virtual void documentChanged( const DocLnk& oldDoc, const DocLnk& newDoc ) = 0; |
57 | 59 | ||
58 | virtual void storageChanged( const QList<FileSystem> & ) = 0; | 60 | virtual void storageChanged( const QList<FileSystem> & ) = 0; |
59 | 61 | ||
60 | virtual void applicationScanningProgress( int percent ) = 0; | 62 | virtual void applicationScanningProgress( int percent ) = 0; |
61 | virtual void documentScanningProgress( int percent ) = 0; | 63 | virtual void documentScanningProgress( int percent ) = 0; |
62 | 64 | ||
63 | // Tells the server if the GUI needs to be updated about documents or applnks | 65 | // Tells the server if the GUI needs to be updated about documents or applnks |
64 | virtual bool requiresApplications() const = 0; | 66 | virtual bool requiresApplications() const = 0; |
65 | virtual bool requiresDocuments() const = 0; | 67 | virtual bool requiresDocuments() const = 0; |
66 | 68 | ||
67 | enum DockArea { Top, Bottom, Left, Right }; | 69 | enum DockArea { Top, Bottom, Left, Right }; |
68 | static void dockWidget( QWidget *w, DockArea placement ); | 70 | static void dockWidget( QWidget *w, DockArea placement ); |
69 | }; | 71 | }; |
70 | 72 | ||
71 | 73 | ||
72 | #endif // SERVER_INTERFACE_H | 74 | #endif // SERVER_INTERFACE_H |