Diffstat (limited to 'noncore/apps/opie-reader/main.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/opie-reader/main.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/noncore/apps/opie-reader/main.cpp b/noncore/apps/opie-reader/main.cpp index 3e1f5e7..6d706c4 100644 --- a/noncore/apps/opie-reader/main.cpp +++ b/noncore/apps/opie-reader/main.cpp | |||
@@ -1,35 +1,33 @@ | |||
1 | #include "useqpe.h" | 1 | #include "useqpe.h" |
2 | #ifdef USEQPE | 2 | #ifdef USEQPE |
3 | #include <qpe/qpeapplication.h> | 3 | #include <qpe/qpeapplication.h> |
4 | #else | 4 | #else |
5 | #include <qapplication.h> | 5 | #include <qapplication.h> |
6 | #endif | 6 | #endif |
7 | #include "QTReaderApp.h" | 7 | #include "QTReaderApp.h" |
8 | 8 | ||
9 | #include "signal.h" | 9 | #include "signal.h" |
10 | #include "stdio.h" | ||
11 | #include "time.h" | ||
12 | 10 | ||
13 | 11 | ||
14 | #ifdef USEQPE | 12 | #ifdef USEQPE |
15 | QTReaderApp* app = NULL; | 13 | QTReaderApp* app = NULL; |
16 | 14 | ||
17 | void handler(int signum) | 15 | void handler(int signum) |
18 | { | 16 | { |
19 | if (app != NULL) | 17 | if (app != NULL) |
20 | { | 18 | { |
21 | app->suspend(); | 19 | app->suspend(); |
22 | app->saveprefs(); | 20 | app->saveprefs(); |
23 | } | 21 | } |
24 | signal(signum, handler); | 22 | signal(signum, handler); |
25 | } | 23 | } |
26 | #endif | 24 | #endif |
27 | 25 | ||
28 | int main( int argc, char ** argv ) | 26 | int main( int argc, char ** argv ) |
29 | { | 27 | { |
30 | 28 | ||
31 | #ifdef USEQPE | 29 | #ifdef USEQPE |
32 | signal(SIGCONT, handler); | 30 | signal(SIGCONT, handler); |
33 | QPEApplication a( argc, argv ); | 31 | QPEApplication a( argc, argv ); |
34 | QTReaderApp m; | 32 | QTReaderApp m; |
35 | a.showMainDocumentWidget( &m ); | 33 | a.showMainDocumentWidget( &m ); |