#include <ZApplication.h>
Inheritance diagram for ZApplication::
Public Types | |
enum | { LEFT_ONLY = 0, PRESS_HOLD } |
EZX widgets have two mouse respond modes:. More... | |
Signals | |
void | appMessage (const QCString &msg, const QByteArray &data) |
Emitted when the application receive a message over the application Channel which is pre-created and its channel name is EZX/Application/appname. More... | |
void | shutdown () |
Emitted when the phone is going to shutdown. More... | |
void | quickQuit () |
Emitted when the application manager requests this application to quit. More... | |
void | clickAppIcon () |
Emitted when this application icon on the home screen is clicked. More... | |
void | signalRaise () |
Emitted when this application is raised from the background to the foreground. More... | |
void | signalOpenDoc (const QString &doc) |
Emitted when another application requests this application to open a file. More... | |
void | signalBridgeMessage (const QByteArray &data) |
Emitted when another application sends a message to this application. More... | |
void | signalBridgeMessage (const QCString &action, const QByteArray &data) |
Emitted when another application sends a message to this application. More... | |
void | signalBridgeMessageWithoutRaise (const QCString &action, const QByteArray &data) |
Emitted when another application sends a message to this application. More... | |
void | signalHomeKeyClicked () |
Emitted when the 'Home' hardkey is clicked. More... | |
void | signalMasterClear () |
Emitted when user has selected to do a master clear. More... | |
void | signalMasterReset () |
Emitted when the system is doing a master reset. More... | |
void | editableWidgetClicked (int mwId, bool canClick) |
Emitted when the user has clicked in an editable widget. More... | |
void | systemMessage (const QCString &msg, const QByteArray &data) |
Emitted when the application received a message via the system QCopChannel. More... | |
Public Methods | |
ZApplication (int &argc, char **argv, Type=GuiClient) | |
Constructor of ZApplication. More... | |
virtual | ~ZApplication () |
Destructor of ZApplication. More... | |
virtual void | setMainWidget (QWidget *mainWidget) |
Reimplement Set the main widget of the application. More... | |
void | showMainWidget (QWidget *mainWidget) |
Set the main widget of the application and show it. More... | |
int | exec () |
Reimplement enter the application main event loop. More... | |
void | setAutoInvokeKb (bool invoke=true) |
Set the flag to enable/disable invoking the input widget automatically when text entry is clicked. More... | |
bool | getAutoInvokeKb () |
Get the flag to enable/disable invoking the input widget automatically when text entry is clicked. More... | |
void | setAutoHideKb (bool hide=false) |
Set the flag to enable/disable hiding the input widget automatically by clicking a non-text-entry widget when the input widget is visible. More... | |
bool | getAutoHideKb () |
Get the flag that indicates whether or not the input widget should be automatically hidden when a non-text-entry widget is clicked. More... | |
void | setDefaultKbMethod (const QUuid &method) |
Set the application's default input method. More... | |
const QUuid | getDefaultKbMethod (bool readConfig=false) |
Get the application default input method. More... | |
void | startShowWaitCursor (int startTime=0, const QString &resId=QString::null) |
Start to show a wait cursor. More... | |
void | stopShowWaitCursor () |
Stop a wait cursor. More... | |
void | loadString (const QString &strFileName) |
Load string resource files (.qm files). More... | |
const QString& | getAppName () |
Get the application's name. More... | |
void | enableTouchSound (bool enable=true) |
Enable/disable the touch panel's sound when the application's widgets are clicked. More... | |
void | enableHardKeyEventFilter (bool enable=true) |
Enable/disable the hardkey event filter. More... | |
bool | getHardKeyEventFilter () |
Get the flag to enable/disable the hardkey event filter. More... | |
void | raiseAppWindows () |
Raise all widgets in this application. More... | |
const QIMMap& | getIMList () |
Get input method name list. More... | |
void | updateIMNameList () |
Update input methods name. More... | |
void | flushMsgs () |
Flush the messages in the message queue. More... | |
int | getTouchSoundMsgQueue () |
Get the touch panel msg queue. More... | |
virtual void | insertStr (QWSEvent *e) |
Static Public Methods | |
void | setMouseMode (QWidget *widget, int mode) |
Enable/disable the press-and-hold for a widget. More... | |
int | getMouseMode (QWidget *widget) |
Get the widget's mouse mode. More... | |
Protected Slots | |
virtual void | slotShutdown () |
The default implementation of this slot will cause the current application to exit. More... | |
virtual void | slotQuickQuit () |
The default implementation of this slot will cause the current application to exit. More... | |
virtual void | slotClickAppIcon () |
By default, this slot is connected to signal clickAppIcon(). More... | |
virtual void | slotRaise () |
By default, this slot is connected to signal signalRaise(). More... | |
Protected Methods | |
bool | qwsEventFilter (QWSEvent *e) |
Reimplement. More... | |
virtual bool | eventFilter (QObject *o, QEvent *e) |
Reimplement. More... | |
virtual void | timerEvent (QTimerEvent *e) |
Reimplement. More... | |
virtual void | tryQuit () |
Try to quit the application. More... | |
virtual bool | hardKeyEventFilter (QEvent *e) |
Event filter for the ezx hard keys. More... | |
void | setMaxWindowRect () |
Set the applications max screen size. More... | |
void | setEnv (const QString &env) |
Set the environment variable. More... |
Qt applications that use ZApplication instead of QApplication, should became standard EZX applications. They inherit EZX Styles, and some EZX-specific features
ZApplication a(argc,argv); ZMainWidget* w = new ZMainWidget(true,0); w->show(); a.exec(); delete w;
|
EZX widgets have two mouse respond modes:. 1. Application only responds to press (left) mouse events. 2. Application also responds to press-and-hold (right) mouse events. Can use the setMouseMode() to set the widget's responsive mode. |
|
Constructor of ZApplication. argc, argv and Type are same as QApplication's. for applications, Type should be GuiClient, only the EZX Server can pass GuiServer. |
|
Destructor of ZApplication.
|
|
Emitted when the application receive a message over the application Channel which is pre-created and its channel name is EZX/Application/appname.
|
|
Emitted when this application icon on the home screen is clicked.
|
|
Emitted when the user has clicked in an editable widget.
For internal use only. |
|
Enable/disable the hardkey event filter.
|
|
Enable/disable the touch panel's sound when the application's widgets are clicked.
|
|
Reimplement.
|
|
Reimplement enter the application main event loop.
|
|
Flush the messages in the message queue.
For internal use only. |
|
Get the application's name.
|
|
Get the flag that indicates whether or not the input widget should be automatically hidden when a non-text-entry widget is clicked.
|
|
Get the flag to enable/disable invoking the input widget automatically when text entry is clicked.
|
|
Get the application default input method.
|
|
Get the flag to enable/disable the hardkey event filter.
|
|
Get input method name list.
For internal use only. |
|
Get the widget's mouse mode.
|
|
Get the touch panel msg queue.
For internal use only. |
|
Event filter for the ezx hard keys.
|
|
|
|
Load string resource files (.qm files).
|
|
Emitted when the application manager requests this application to quit. The application manager will do this to save RAM. By default, quickQuit() is connected to slotQuickQuit().
|
|
Reimplement.
|
|
Raise all widgets in this application.
For internal use only. |
|
Set the flag to enable/disable hiding the input widget automatically by clicking a non-text-entry widget when the input widget is visible.
|
|
Set the flag to enable/disable invoking the input widget automatically when text entry is clicked.
|
|
Set the application's default input method.
A --> English Keyboard B --> Number keyboard C --> English Keyboard --> Change to Hand Writing Keyboard A --> Hand Writing Keyboard (application default is changed) B --> Number keyboard (not affected) |
|
Set the environment variable.
|
|
Reimplement Set the main widget of the application.
|
|
Set the applications max screen size.
|
|
Enable/disable the press-and-hold for a widget.
QLineEdit* ln = new QLineEdit(parent); //enable Press and Hold if ( ln ) { ZApplication::setMouseMode(ln, ZApplication::PRESS_HOLD); }
|
|
Set the main widget of the application and show it.
|
|
Emitted when the phone is going to shutdown.
|
|
Emitted when another application sends a message to this application. If this application is not running when the message is sent, it will be launched and then the signal sent. If already running, this application will be raised from the background to the foreground
|
|
Emitted when another application sends a message to this application. If this application is not running when the message is sent, it will be launched and then the signal sent. If already running, this application will be raised from the background to the foreground
|
|
Emitted when another application sends a message to this application. If this application is not running when the message is sent, it will be launched and then the signal sent. If already running, this application will be raised from the background to the foreground
|
|
Emitted when the 'Home' hardkey is clicked.
For internal use only. |
|
Emitted when user has selected to do a master clear.
|
|
Emitted when the system is doing a master reset.
|
|
Emitted when another application requests this application to open a file.
|
|
Emitted when this application is raised from the background to the foreground.
|
|
By default, this slot is connected to signal clickAppIcon().
|
|
The default implementation of this slot will cause the current application to exit. By default, this slot is connected to signal quickQuit(). |
|
By default, this slot is connected to signal signalRaise(). By default, this function will raise the current application from the background to the foreground |
|
The default implementation of this slot will cause the current application to exit. By default, this slot is connected to signal shutdown(). |
|
Start to show a wait cursor.
//start to show a wait cusor ZApplication* app = (ZApplication*)qApp; app->startShowWaitCursor(); //chance to handle event app->processEvents(); ... app->stopShowWaitCursor();
|
|
Stop a wait cursor.
|
|
Emitted when the application received a message via the system QCopChannel.
For internal use only. |
|
Reimplement.
|
|
Try to quit the application.
|
|
Update input methods name.
For internal use only. |
|
|