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.h60
1 files changed, 60 insertions, 0 deletions
diff --git a/x11/libqpe-x11/qpe/qpeapplication.h b/x11/libqpe-x11/qpe/qpeapplication.h
new file mode 100644
index 0000000..3713251
--- a/dev/null
+++ b/x11/libqpe-x11/qpe/qpeapplication.h
@@ -0,0 +1,60 @@
1#ifndef OPIE_QPE_APPLICATION_H
2#define OPIE_QPE_APPLICATION_H
3
4/**
5 * LGPLed
6 */
7
8#include <qapplication.h>
9
10#include <qpe/timestring.h>
11
12class QPEApplication : public QApplication {
13 Q_OBJECT
14public:
15 QPEApplication(int& argc, char** argv, Type=GuiClient );
16 ~QPEApplication();
17
18 static QString qpeDir();
19 static QString documentDir();
20 void applyStyle();
21
22 static int defaultRotation();
23 static void setDefaultRotation( int r );
24 static void grabKeyboard();
25 static void ungrabKeyboard();
26
27 enum StylusMode {
28 LeftOnly,
29 RightOnHold
30 };
31 static void setStylusOperation( QWidget*, StylusMode );
32 static StylusMode stylusOperation( QWidget* );
33
34 void showMainWidget( QWidget*, bool nomax = FALSE );
35 void showMainDocumentWidget( QWidget*, bool nomax = FALSE );
36
37 static void showDialog( QDialog*, bool nomax = FALSE );
38 static void execDialog( QDialog*, bool nomax = FALSE );
39
40 static void setKeepRunning();
41 bool keepRunning()const;
42
43 bool keyboardGrabbed()const;
44 int exec();
45
46signals:
47 void clientMoused();
48 void timeChanged();
49 void clockChanged( bool pm );
50 void micChanged( bool muted );
51 void volumeChanged( bool muted );
52 void appMessage( const QCString& msg, const QByteArray& data);
53 void weekChanged( bool startOnMonday );
54 void dateFormatChanged( DateFormat );
55 void flush();
56 void reload();
57
58};
59
60#endif