author | sandman <sandman> | 2002-12-17 00:20:01 (UTC) |
---|---|---|
committer | sandman <sandman> | 2002-12-17 00:20:01 (UTC) |
commit | 70090722d240bed8c390281e072c9bcfc5ba7782 (patch) (unidiff) | |
tree | 453b4715acff74889655877a491c6cc3791d5de0 /library/qpeapplication.h | |
parent | 79b94019014efe998b126219827f3050395beea7 (diff) | |
download | opie-70090722d240bed8c390281e072c9bcfc5ba7782.zip opie-70090722d240bed8c390281e072c9bcfc5ba7782.tar.gz opie-70090722d240bed8c390281e072c9bcfc5ba7782.tar.bz2 |
small additions to support grabbing the buttons back from a crashed
application
-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 | |||
@@ -25,24 +25,25 @@ | |||
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); |
@@ -73,24 +74,25 @@ public: | |||
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 ); |