-rw-r--r-- | library/qpeapplication.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/library/qpeapplication.h b/library/qpeapplication.h index 86affa6..f712077 100644 --- a/library/qpeapplication.h +++ b/library/qpeapplication.h | |||
@@ -21,32 +21,33 @@ | |||
21 | #define __QPE_APPLICATION_H__ | 21 | #define __QPE_APPLICATION_H__ |
22 | 22 | ||
23 | 23 | ||
24 | #include <qapplication.h> | 24 | #include <qapplication.h> |
25 | #include <qdialog.h> | 25 | #include <qdialog.h> |
26 | #if defined(_WS_QWS_) && !defined(Q_WS_QWS) | 26 | #if defined(_WS_QWS_) && !defined(Q_WS_QWS) |
27 | #define Q_WS_QWS | 27 | #define Q_WS_QWS |
28 | #endif | 28 | #endif |
29 | #include "qpedecoration_qws.h" | 29 | #include "qpedecoration_qws.h" |
30 | #include "timestring.h" | 30 | #include "timestring.h" |
31 | 31 | ||
32 | class QCopChannel; | 32 | class QCopChannel; |
33 | class QPEApplicationData; | 33 | class QPEApplicationData; |
34 | class QWSEvent; | 34 | class QWSEvent; |
35 | class QWSKeyEvent; | 35 | class QWSKeyEvent; |
36 | 36 | ||
37 | |||
37 | class QPEApplication : public QApplication | 38 | class QPEApplication : public QApplication |
38 | { | 39 | { |
39 | Q_OBJECT | 40 | Q_OBJECT |
40 | public: | 41 | public: |
41 | QPEApplication( int& argc, char **argv, Type=GuiClient ); | 42 | QPEApplication( int& argc, char **argv, Type=GuiClient ); |
42 | ~QPEApplication(); | 43 | ~QPEApplication(); |
43 | 44 | ||
44 | static QString qpeDir(); | 45 | static QString qpeDir(); |
45 | static QString documentDir(); | 46 | static QString documentDir(); |
46 | void applyStyle(); | 47 | void applyStyle(); |
47 | static int defaultRotation(); | 48 | static int defaultRotation(); |
48 | static void setDefaultRotation(int r); | 49 | static void setDefaultRotation(int r); |
49 | static void grabKeyboard(); | 50 | static void grabKeyboard(); |
50 | static void ungrabKeyboard(); | 51 | static void ungrabKeyboard(); |
51 | 52 | ||
52 | enum StylusMode { | 53 | enum StylusMode { |
@@ -69,32 +70,33 @@ public: | |||
69 | DisableSuspend = 2, | 70 | DisableSuspend = 2, |
70 | Enable = 100 | 71 | Enable = 100 |
71 | }; | 72 | }; |
72 | 73 | ||
73 | static void setInputMethodHint( QWidget *, InputMethodHint ); | 74 | static void setInputMethodHint( QWidget *, InputMethodHint ); |
74 | static InputMethodHint inputMethodHint( QWidget * ); | 75 | static InputMethodHint inputMethodHint( QWidget * ); |
75 | 76 | ||
76 | void showMainWidget( QWidget*, bool nomax=FALSE ); | 77 | void showMainWidget( QWidget*, bool nomax=FALSE ); |
77 | void showMainDocumentWidget( QWidget*, bool nomax=FALSE ); | 78 | void showMainDocumentWidget( QWidget*, bool nomax=FALSE ); |
78 | static void showDialog( QDialog*, bool nomax=FALSE ); | 79 | static void showDialog( QDialog*, bool nomax=FALSE ); |
79 | static int execDialog( QDialog*, bool nomax=FALSE ); | 80 | static int execDialog( QDialog*, bool nomax=FALSE ); |
80 | 81 | ||
81 | static void setKeepRunning(); | 82 | static void setKeepRunning(); |
82 | bool keepRunning() const; | 83 | bool keepRunning() const; |
83 | 84 | ||
84 | bool keyboardGrabbed() const; | 85 | bool keyboardGrabbed() const; |
86 | QString keyboardGrabbedBy ( ) const; | ||
85 | 87 | ||
86 | int exec(); | 88 | int exec(); |
87 | 89 | ||
88 | signals: | 90 | signals: |
89 | void clientMoused(); | 91 | void clientMoused(); |
90 | void timeChanged(); | 92 | void timeChanged(); |
91 | void clockChanged( bool pm ); | 93 | void clockChanged( bool pm ); |
92 | void micChanged( bool muted ); | 94 | void micChanged( bool muted ); |
93 | void volumeChanged( bool muted ); | 95 | void volumeChanged( bool muted ); |
94 | void appMessage( const QCString& msg, const QByteArray& data); | 96 | void appMessage( const QCString& msg, const QByteArray& data); |
95 | void weekChanged( bool startOnMonday ); | 97 | void weekChanged( bool startOnMonday ); |
96 | void dateFormatChanged( DateFormat ); | 98 | void dateFormatChanged( DateFormat ); |
97 | void flush(); | 99 | void flush(); |
98 | void reload(); | 100 | void reload(); |
99 | 101 | ||
100 | private slots: | 102 | private slots: |