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