summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/zsafe/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/noncore/apps/zsafe/main.cpp b/noncore/apps/zsafe/main.cpp
index c6ef5f9..e225775 100644
--- a/noncore/apps/zsafe/main.cpp
+++ b/noncore/apps/zsafe/main.cpp
@@ -1,54 +1,54 @@
1/* 1/*
2** Author: Carsten Schneider <CarstenSchneider@t-online.de> 2** Author: Carsten Schneider <zcarsten@gmx.net>
3** 3**
4** $Id$ 4** $Id$
5** 5**
6** Homepage: http://home.t-online.de/home/CarstenSchneider/zsafe/index.html 6** Homepage: http://z-soft.z-portal.info/zsafe/index.html
7*/ 7*/
8 8
9 9
10#include "zsafe.h" 10#include "zsafe.h"
11#ifdef DESKTOP 11#ifdef DESKTOP
12#include <qapplication.h> 12#include <qapplication.h>
13#else 13#else
14#include <qpe/qpeapplication.h> 14#include <qpe/qpeapplication.h>
15#endif 15#endif
16#include <stdio.h> 16#include <stdio.h>
17#include <signal.h> 17#include <signal.h>
18#include "qsettings.h" 18#include "qsettings.h"
19 19
20ZSafe *zs; 20ZSafe *zs;
21#ifdef DESKTOP 21#ifdef DESKTOP
22QApplication *appl; 22QApplication *appl;
23#else 23#else
24QPEApplication *appl; 24QPEApplication *appl;
25#endif 25#endif
26 26
27int DeskW; 27int DeskW;
28int DeskH; 28int DeskH;
29 29
30void suspend (int signum) 30void suspend (int signum)
31{ 31{
32 printf ("Suspend signal %d received\n", signum); 32 printf ("Suspend signal %d received\n", signum);
33} 33}
34 34
35void resume (int signum) 35void resume (int signum)
36{ 36{
37 printf ("Resume signal %d received\n", signum); 37 printf ("Resume signal %d received\n", signum);
38 zs->resume(signum); 38 zs->resume(signum);
39} 39}
40 40
41int main( int argc, char ** argv ) 41int main( int argc, char ** argv )
42{ 42{
43#ifndef WIN32 43#ifndef WIN32
44 // install signal handler 44 // install signal handler
45 signal (SIGSTOP, suspend); 45 signal (SIGSTOP, suspend);
46#endif 46#endif
47 47
48#ifdef DESKTOP 48#ifdef DESKTOP
49 QApplication a( argc, argv ); 49 QApplication a( argc, argv );
50#else 50#else
51 QPEApplication a( argc, argv ); 51 QPEApplication a( argc, argv );
52#endif 52#endif
53 appl = &a; 53 appl = &a;
54 54