summaryrefslogtreecommitdiff
path: root/x11/libqpe-x11/qpe/qpeapplication.h
Unidiff
Diffstat (limited to 'x11/libqpe-x11/qpe/qpeapplication.h') (more/less context) (ignore whitespace changes)
-rw-r--r--x11/libqpe-x11/qpe/qpeapplication.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/x11/libqpe-x11/qpe/qpeapplication.h b/x11/libqpe-x11/qpe/qpeapplication.h
index b1fc074..5521998 100644
--- a/x11/libqpe-x11/qpe/qpeapplication.h
+++ b/x11/libqpe-x11/qpe/qpeapplication.h
@@ -1,73 +1,75 @@
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#include <qtopia/timestring.h>
11#include <qpe/timestring.h> 11#include <unistd.h>
12#include <stdlib.h>
12 13
13class QCopChannel; 14class QCopChannel;
14class QPEApplication : public QApplication { 15class QPEApplication : public QApplication {
15 Q_OBJECT 16 Q_OBJECT
16public: 17public:
17 QPEApplication(int& argc, char** argv, Type=GuiClient ); 18 QPEApplication(int& argc, char** argv, Type=GuiClient );
18 ~QPEApplication(); 19 ~QPEApplication();
19 20
20 21
21 static QString qpeDir(); 22 static QString qpeDir();
22 static QString documentDir(); 23 static QString documentDir();
23 void applyStyle(); 24 void applyStyle();
24 25
25 static int defaultRotation(); 26 static int defaultRotation();
26 static void setDefaultRotation( int r ); 27 static void setDefaultRotation( int r );
27 static void grabKeyboard(); 28 static void grabKeyboard();
28 static void ungrabKeyboard(); 29 static void ungrabKeyboard();
29 30
30 enum StylusMode { 31 enum StylusMode {
31 LeftOnly, 32 LeftOnly,
32 RightOnHold 33 RightOnHold
33 }; 34 };
34 static void setStylusOperation( QWidget*, StylusMode ); 35 static void setStylusOperation( QWidget*, StylusMode );
35 static StylusMode stylusOperation( QWidget* ); 36 static StylusMode stylusOperation( QWidget* );
36 37
37 enum InputMethodHint { 38 enum InputMethodHint {
38 Normal, 39 Normal,
39 AlwaysOff, 40 AlwaysOff,
40 AlwaysOn 41 AlwaysOn
41 }; 42 };
42 static void setInputMethodHint( QWidget*, InputMethodHint ); 43 static void setInputMethodHint( QWidget*, InputMethodHint );
43 static InputMethodHint inputMethodHint( QWidget* ); 44 static InputMethodHint inputMethodHint( QWidget* );
44 45
45 void showMainWidget( QWidget*, bool nomax = FALSE ); 46 void showMainWidget( QWidget*, bool nomax = FALSE );
46 void showMainDocumentWidget( QWidget*, bool nomax = FALSE ); 47 void showMainDocumentWidget( QWidget*, bool nomax = FALSE );
47 48
48 static void showDialog( QDialog*, bool nomax = FALSE ); 49 static void showDialog( QDialog*, bool nomax = FALSE );
49 static int execDialog( QDialog*, bool nomax = FALSE ); 50 static int execDialog ( QDialog*, bool nomax = FALSE );
51 static void showWidget( QWidget*, bool nomax = FALSE );
50 52
51 static void setKeepRunning(); 53 static void setKeepRunning();
52 bool keepRunning()const; 54 bool keepRunning()const;
53 55
54 bool keyboardGrabbed()const; 56 bool keyboardGrabbed()const;
55 int exec(); 57 int exec();
56 58
57// QWS bits 59// QWS bits
58 enum screenSaverHint { 60 enum screenSaverHint {
59 Disable = 0, 61 Disable = 0,
60 DisableLightOff = 1, 62 DisableLightOff = 1,
61 DisableSuspend = 2, 63 DisableSuspend = 2,
62 Enable = 100 64 Enable = 100
63 }; 65 };
64 /* reimplemented for internal purposes */ 66 /* reimplemented for internal purposes */
65 int x11ClientMessage( QWidget*, XEvent*, bool ); 67 int x11ClientMessage( QWidget*, XEvent*, bool );
66 68
67signals: 69signals:
68 void clientMoused(); 70 void clientMoused();
69 void timeChanged(); 71 void timeChanged();
70 void clockChanged( bool pm ); 72 void clockChanged( bool pm );
71 void micChanged( bool muted ); 73 void micChanged( bool muted );
72 void volumeChanged( bool muted ); 74 void volumeChanged( bool muted );
73 void appMessage( const QCString& msg, const QByteArray& data); 75 void appMessage( const QCString& msg, const QByteArray& data);