author | andyq <andyq> | 2002-10-19 23:07:16 (UTC) |
---|---|---|
committer | andyq <andyq> | 2002-10-19 23:07:16 (UTC) |
commit | f6a0af65b96edf63135d2b88c17b8510eebbbd51 (patch) (unidiff) | |
tree | bcd0bc1819e97447dc0ff86e5a80fbff7ad0d07c | |
parent | 01b3b2d08627856a475f179ba7bcbdc54723c52b (diff) | |
download | opie-f6a0af65b96edf63135d2b88c17b8510eebbbd51.zip opie-f6a0af65b96edf63135d2b88c17b8510eebbbd51.tar.gz opie-f6a0af65b96edf63135d2b88c17b8510eebbbd51.tar.bz2 |
Added disable of suspend mode on startup and reenable on shutdown
-rw-r--r-- | noncore/settings/aqpkg/main.cpp | 28 |
1 files changed, 16 insertions, 12 deletions
diff --git a/noncore/settings/aqpkg/main.cpp b/noncore/settings/aqpkg/main.cpp index e943e49..1f8cf42 100644 --- a/noncore/settings/aqpkg/main.cpp +++ b/noncore/settings/aqpkg/main.cpp | |||
@@ -17,4 +17,8 @@ | |||
17 | 17 | ||
18 | #include <iostream> | ||
19 | using namespace std; | ||
20 | |||
18 | #ifdef QWS | 21 | #ifdef QWS |
19 | #include <qpe/qpeapplication.h> | 22 | #include <qpe/qpeapplication.h> |
23 | #include <qpe/qcopenvelope_qws.h> | ||
20 | #else | 24 | #else |
@@ -31,16 +35,5 @@ | |||
31 | 35 | ||
32 | /* | ||
33 | int main2(int argc, char *argv[]) | ||
34 | { | ||
35 | Server local( "local", "", "status" ); | ||
36 | local.readPackageFile(); | ||
37 | |||
38 | Server s( "opiecvs", "aaa" ); | ||
39 | s.readPackageFile( &local ); | ||
40 | |||
41 | } | ||
42 | */ | ||
43 | |||
44 | int main(int argc, char *argv[]) | 36 | int main(int argc, char *argv[]) |
45 | { | 37 | { |
38 | cout << "Root dir = " << ROOT << endl; | ||
46 | #ifdef QWS | 39 | #ifdef QWS |
@@ -51,2 +44,8 @@ int main(int argc, char *argv[]) | |||
51 | 44 | ||
45 | #ifdef QWS | ||
46 | // Disable suspend mode | ||
47 | cout << "Disabling suspend mode" << endl; | ||
48 | QCopEnvelope( "QPE/System", "setScreenSaverMode(int)" ) << QPEApplication::DisableSuspend; | ||
49 | #endif | ||
50 | |||
52 | MainWindow *win = new MainWindow(); | 51 | MainWindow *win = new MainWindow(); |
@@ -57,2 +56,7 @@ int main(int argc, char *argv[]) | |||
57 | 56 | ||
57 | #ifdef QWS | ||
58 | // Reenable suspend mode | ||
59 | cout << "Enabling suspend mode" << endl; | ||
60 | QCopEnvelope( "QPE/System", "setScreenSaverMode(int)" ) << QPEApplication::Enable; | ||
61 | #endif | ||
58 | #ifdef _DEBUG | 62 | #ifdef _DEBUG |