Qt API | Qtopia API | Qtopia Documentation | ![]() |
The ServerInterface class provides an interface for Qtopia custom launchers. More...
#include <serverinterface.h>
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.
The ApplicationState enum type specifies the state of an application. The possible values are:
The DockArea enum type defines the areas where widgets can be docked:
Remove all applications from the launcher.
Remove all documents from the launcher.
Returns the current set of available applications.
Add an application app of type type to the launcher.
See also applicationRemoved().
Remove an application app of type type from the launcher.
See also applicationAdded().
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.
The application name has changed state to state. This can be used to show launch notification and update a list of running applications.
Implement this function to create the custom launcher UI.
Implement this function to destroy the custom launcher UI. All resources allocated by createGUI() must be released.
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.
Add a document doc to the launcher.
See also documentRemoved().
Change document properties of existing document oldDoc to newDoc.
Remove a document doc to the launcher.
See also documentAdded().
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.
Return TRUE if the custom launcher requires the server to scan for applications.
Return TRUE if the custom launcher requires the server to scan for documents.
A filesystem has been added or removed.
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.
See also typeRemoved().
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.
See also typeAdded().
This file is part of the Qtopia platform, copyright © 1995-2003 Trolltech, all rights reserved.
Copyright © 2001-2003 Trolltech | Trademarks | Qtopia version 1.7.1
|