-rw-r--r-- | x11/libqpe-x11/qpe/qpeapplication.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/x11/libqpe-x11/qpe/qpeapplication.h b/x11/libqpe-x11/qpe/qpeapplication.h index 254fbfa..b1fc074 100644 --- a/x11/libqpe-x11/qpe/qpeapplication.h +++ b/x11/libqpe-x11/qpe/qpeapplication.h | |||
@@ -1,104 +1,105 @@ | |||
1 | #ifndef OPIE_QPE_APPLICATION_H | 1 | #ifndef OPIE_QPE_APPLICATION_H |
2 | #define OPIE_QPE_APPLICATION_H | 2 | #define OPIE_QPE_APPLICATION_H |
3 | 3 | ||
4 | /** | 4 | /** |
5 | * LGPLed | 5 | * LGPLed |
6 | */ | 6 | */ |
7 | 7 | ||
8 | #include <qapplication.h> | 8 | #include <qapplication.h> |
9 | #include <qevent.h> | 9 | #include <qevent.h> |
10 | 10 | ||
11 | #include <qpe/timestring.h> | 11 | #include <qpe/timestring.h> |
12 | 12 | ||
13 | class QCopChannel; | 13 | class QCopChannel; |
14 | class QPEApplication : public QApplication { | 14 | class QPEApplication : public QApplication { |
15 | Q_OBJECT | 15 | Q_OBJECT |
16 | public: | 16 | public: |
17 | QPEApplication(int& argc, char** argv, Type=GuiClient ); | 17 | QPEApplication(int& argc, char** argv, Type=GuiClient ); |
18 | ~QPEApplication(); | 18 | ~QPEApplication(); |
19 | 19 | ||
20 | 20 | ||
21 | static QString qpeDir(); | 21 | static QString qpeDir(); |
22 | static QString documentDir(); | 22 | static QString documentDir(); |
23 | void applyStyle(); | 23 | void applyStyle(); |
24 | 24 | ||
25 | static int defaultRotation(); | 25 | static int defaultRotation(); |
26 | static void setDefaultRotation( int r ); | 26 | static void setDefaultRotation( int r ); |
27 | static void grabKeyboard(); | 27 | static void grabKeyboard(); |
28 | static void ungrabKeyboard(); | 28 | static void ungrabKeyboard(); |
29 | 29 | ||
30 | enum StylusMode { | 30 | enum StylusMode { |
31 | LeftOnly, | 31 | LeftOnly, |
32 | RightOnHold | 32 | RightOnHold |
33 | }; | 33 | }; |
34 | static void setStylusOperation( QWidget*, StylusMode ); | 34 | static void setStylusOperation( QWidget*, StylusMode ); |
35 | static StylusMode stylusOperation( QWidget* ); | 35 | static StylusMode stylusOperation( QWidget* ); |
36 | 36 | ||
37 | enum InputMethodHint { | 37 | enum InputMethodHint { |
38 | Normal, | 38 | Normal, |
39 | AlwaysOff, | 39 | AlwaysOff, |
40 | AlwaysOn | 40 | AlwaysOn |
41 | }; | 41 | }; |
42 | static void setInputMethodHint( QWidget*, InputMethodHint ); | 42 | static void setInputMethodHint( QWidget*, InputMethodHint ); |
43 | static InputMethodHint inputMethodHint( QWidget* ); | 43 | static InputMethodHint inputMethodHint( QWidget* ); |
44 | 44 | ||
45 | void showMainWidget( QWidget*, bool nomax = FALSE ); | 45 | void showMainWidget( QWidget*, bool nomax = FALSE ); |
46 | void showMainDocumentWidget( QWidget*, bool nomax = FALSE ); | 46 | void showMainDocumentWidget( QWidget*, bool nomax = FALSE ); |
47 | 47 | ||
48 | static void showDialog( QDialog*, bool nomax = FALSE ); | 48 | static void showDialog( QDialog*, bool nomax = FALSE ); |
49 | static int execDialog( QDialog*, bool nomax = FALSE ); | 49 | static int execDialog( QDialog*, bool nomax = FALSE ); |
50 | 50 | ||
51 | static void setKeepRunning(); | 51 | static void setKeepRunning(); |
52 | bool keepRunning()const; | 52 | bool keepRunning()const; |
53 | 53 | ||
54 | bool keyboardGrabbed()const; | 54 | bool keyboardGrabbed()const; |
55 | int exec(); | 55 | int exec(); |
56 | 56 | ||
57 | // QWS bits | 57 | // QWS bits |
58 | enum screenSaverHint { | 58 | enum screenSaverHint { |
59 | Disable = 0, | 59 | Disable = 0, |
60 | DisableLightOff = 1, | 60 | DisableLightOff = 1, |
61 | DisableSuspend = 2, | 61 | DisableSuspend = 2, |
62 | Enable = 100 | 62 | Enable = 100 |
63 | }; | 63 | }; |
64 | /* reimplemented for internal purposes */ | 64 | /* reimplemented for internal purposes */ |
65 | int x11ClientMessage( QWidget*, XEvent*, bool ); | 65 | int x11ClientMessage( QWidget*, XEvent*, bool ); |
66 | 66 | ||
67 | signals: | 67 | signals: |
68 | void clientMoused(); | 68 | void clientMoused(); |
69 | void timeChanged(); | 69 | void timeChanged(); |
70 | void clockChanged( bool pm ); | 70 | void clockChanged( bool pm ); |
71 | void micChanged( bool muted ); | 71 | void micChanged( bool muted ); |
72 | void volumeChanged( bool muted ); | 72 | void volumeChanged( bool muted ); |
73 | void appMessage( const QCString& msg, const QByteArray& data); | 73 | void appMessage( const QCString& msg, const QByteArray& data); |
74 | void weekChanged( bool startOnMonday ); | 74 | void weekChanged( bool startOnMonday ); |
75 | void dateFormatChanged( DateFormat ); | 75 | void dateFormatChanged( DateFormat ); |
76 | void flush(); | 76 | void flush(); |
77 | void reload(); | 77 | void reload(); |
78 | 78 | ||
79 | private: | 79 | private: |
80 | void initTranslations(); | 80 | void initTranslations(); |
81 | void internalSetStyle(const QString&); | 81 | void internalSetStyle(const QString&); |
82 | 82 | ||
83 | private slots: | 83 | private slots: |
84 | void hideOrQuit(); | 84 | void hideOrQuit(); |
85 | void systemMessage( const QCString&, const QByteArray& ); | 85 | void systemMessage( const QCString&, const QByteArray& ); |
86 | void pidMessage( const QCString&, const QByteArray& ); | 86 | void pidMessage( const QCString&, const QByteArray& ); |
87 | void removeSenderFromStylusDict(); | 87 | void removeSenderFromStylusDict(); |
88 | protected: | 88 | protected: |
89 | virtual void restart(); | 89 | virtual void restart(); |
90 | virtual void shutdown(); | 90 | virtual void shutdown(); |
91 | void prepareForTermination(bool willrestart); | 91 | void prepareForTermination(bool willrestart); |
92 | bool eventFilter( QObject*, QEvent* ); | 92 | bool eventFilter( QObject*, QEvent* ); |
93 | void timerEvent( QTimerEvent* ); | 93 | void timerEvent( QTimerEvent* ); |
94 | void raiseAppropriateWindow(); | 94 | void raiseAppropriateWindow(); |
95 | virtual void tryQuit(); | 95 | virtual void tryQuit(); |
96 | 96 | ||
97 | private: | 97 | private: |
98 | class Private; | 98 | class Private; |
99 | Private* d; | 99 | Private* d; |
100 | QCopChannel *m_sys; | 100 | QCopChannel *m_sys; |
101 | QCopChannel *m_pid; | 101 | QCopChannel *m_pid; |
102 | }; | 102 | }; |
103 | enum Transformation { Rot0, Rot90, Rot180, Rot270 }; /* from qgfxtransformed_qws.cpp */ | ||
103 | 104 | ||
104 | #endif | 105 | #endif |