#include </home/clem/local/src/opie/core/launcher/serverinterface.h>
Inheritance diagram for ServerInterface:

Public Types | |
| enum | ApplicationState { Launching, Running, Terminated } |
| enum | DockArea { Top, Bottom, Left, Right } |
Public Member Functions | |
| virtual | ~ServerInterface () |
| virtual void | createGUI ()=0 |
| virtual void | destroyGUI ()=0 |
| virtual void | typeAdded (const QString &type, const QString &name, const QPixmap &pixmap, const QPixmap &bgPixmap)=0 |
| virtual void | typeRemoved (const QString &type)=0 |
| virtual void | applicationAdded (const QString &type, const AppLnk &doc)=0 |
| virtual void | applicationRemoved (const QString &type, const AppLnk &doc)=0 |
| virtual void | allApplicationsRemoved ()=0 |
| virtual void | applicationStateChanged (const QString &name, ApplicationState state)=0 |
| virtual void | aboutToAddBegin () |
| virtual void | aboutToAddEnd () |
| virtual void | documentAdded (const DocLnk &doc)=0 |
| virtual void | documentRemoved (const DocLnk &doc)=0 |
| virtual void | allDocumentsRemoved ()=0 |
| virtual void | documentChanged (const DocLnk &oldDoc, const DocLnk &newDoc)=0 |
| virtual void | storageChanged (const QList< FileSystem > &)=0 |
| virtual void | applicationScanningProgress (int percent)=0 |
| virtual void | documentScanningProgress (int percent)=0 |
| virtual bool | requiresApplications () const =0 |
| virtual bool | requiresDocuments () const =0 |
Static Public Member Functions | |
| static const AppLnkSet & | appLnks () |
| static void | dockWidget (QWidget *w, DockArea placement) |
The ServerInterface allows the user interface of the launcher to be customized to suit the device. For a PDA style device, the default launcher is strongly recommended, however specialist devices may choose to provide a launcher better suited to the application.
The launcher is fixed for any particular device and is not loaded as a plugin. Launcher interfaces must be compilied into the server by editing server.pro and server.cpp.
Definition at line 31 of file serverinterface.h.
|
|
The ApplicationState enum type specifies the state of an application. The possible values are:
Definition at line 48 of file serverinterface.h. |
|
|
The DockArea enum type defines the areas where widgets can be docked:
Definition at line 69 of file serverinterface.h. |
|
|
Definition at line 354 of file serverinterface.cpp. |
|
|
Reimplemented in Launcher. Definition at line 53 of file serverinterface.h. Referenced by DocumentList::timerEvent(). |
|
|
Reimplemented in Launcher. Definition at line 54 of file serverinterface.h. Referenced by DocumentList::timerEvent(). |
|
|
Remove all applications from the launcher. Implemented in Launcher. Referenced by DocumentList::reloadAppLnks(). |
|
|
Remove all documents from the launcher. Implemented in Launcher. Referenced by DocumentList::reloadDocLnks(). |
|
||||||||||||
|
Add an application app of type type to the launcher.
Implemented in Launcher. Referenced by DocumentList::DiffAppLnks(), and DocumentList::reloadAppLnks(). |
|
||||||||||||
|
Remove an application app of type type from the launcher.
Implemented in Launcher. Referenced by DocumentList::DiffAppLnks(). |
|
|
The system is scanning for installed applications. percent provides the percentage of the filesystems scanned. This function will always be called with percent equal to zero when scanning starts, and with percent equal to 100 when scanning is complete. Implemented in Launcher. Referenced by DocumentList::reloadAppLnks(). |
|
||||||||||||
|
The application name has changed state to state. This can be used to show launch notification and update a list of running applications. Implemented in Launcher. Referenced by Server::applicationConnected(), Server::applicationLaunched(), and Server::applicationTerminated(). |
|
|
Returns the current set of available applications. Definition at line 368 of file serverinterface.cpp. References DocumentList::appLnkSet. Referenced by RunningAppBar::applicationLaunched(), RunningAppBar::applicationTerminated(), and RunningAppBar::received(). |
|
|
Implement this function to create the custom launcher UI. Implemented in Launcher. Referenced by Server::Server(). |
|
|
Implement this function to destroy the custom launcher UI. All resources allocated by createGUI() must be released. Implemented in Launcher. Referenced by Server::~Server(). |
|
||||||||||||
|
Docks a top-level widget w on a side of the screen specified by placement. The widget is placed according to the order that it was docked, its sizeHint() and whether previously docked widgets are visible. The desktop area available to QWidget::showMaximized() will exclude any visible docked widgets. For example, if a widget is docked at the bottom of the screen, its sizeHint() will define its height and it will use the full width of the screen. If a widget is then docked to the right, its sizeHint() will define its width and it will be as high as possible without covering the widget docked at the bottom. This function is useful for reserving system areas such as taskbars and input methods that should not be covered by applications. Definition at line 358 of file serverinterface.cpp. References LayoutManager::addDocked(). Referenced by Launcher::createGUI(). |
|
|
Add a document doc to the launcher.
Implemented in Launcher. Referenced by DocumentList::add(). |
|
||||||||||||
|
Change document properties of existing document oldDoc to newDoc. Implemented in Launcher. Referenced by DocumentList::linkChanged(). |
|
|
Remove a document doc to the launcher.
Implemented in Launcher. Referenced by DocumentList::linkChanged(). |
|
|
The system is scanning for documents. percent provides the percentage of the filesystems scanned. This function will always be called with percent equal to zero when scanning starts, and with percent equal to 100 when scanning is complete. Implemented in Launcher. Referenced by DocumentListPrivate::estimatedPercentScanned(), DocumentListPrivate::iterate(), DocumentList::reloadDocLnks(), and DocumentList::timerEvent(). |
|
|
Return TRUE if the custom launcher requires the server to scan for applications. Implemented in Launcher. Referenced by DocumentListPrivate::DocumentListPrivate(). |
|
|
Return TRUE if the custom launcher requires the server to scan for documents. Implemented in Launcher. Referenced by DocumentListPrivate::DocumentListPrivate(). |
|
|
A filesystem has been added or removed. Implemented in Launcher. Referenced by Server::storageChanged(). |
|
||||||||||||||||||||
|
An application category type has been added, for example "Games". name is the translated name of the category. pixmap and bgPixmap are small and large icons for the new type. Types can be added or removed at any time, for example, when a storage card containing a non-standard category is inserted or removed.
Implemented in Launcher. Referenced by DocumentList::DiffAppLnks(), and DocumentList::reloadAppLnks(). |
|
|
An application category type has been removed. Types can be added or removed at any time, for example, when a storage card containing a non-standard category is inserted or removed.
Implemented in Launcher. Referenced by DocumentList::DiffAppLnks(), and DocumentList::reloadAppLnks(). |
1.4.2