summaryrefslogtreecommitdiff
path: root/core/launcher
authorkergoth <kergoth>2003-03-24 19:56:05 (UTC)
committer kergoth <kergoth>2003-03-24 19:56:05 (UTC)
commit8f122917f08f5e9d07c2bc4abe4f4c849c08f529 (patch) (unidiff)
treed6b12b10243e4e61423a88bcd15f42cc8a8a3989 /core/launcher
parent9f95756ee05fd1e76d80b441de1edcf983f2b06a (diff)
downloadopie-8f122917f08f5e9d07c2bc4abe4f4c849c08f529.zip
opie-8f122917f08f5e9d07c2bc4abe4f4c849c08f529.tar.gz
opie-8f122917f08f5e9d07c2bc4abe4f4c849c08f529.tar.bz2
Include calibrate.h regardless, as its no longer dependent on device ifdefs, and include qwsmouse_qws.h.
Diffstat (limited to 'core/launcher') (more/less context) (ignore whitespace changes)
-rw-r--r--core/launcher/main.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/core/launcher/main.cpp b/core/launcher/main.cpp
index 64fb968..d11b6c5 100644
--- a/core/launcher/main.cpp
+++ b/core/launcher/main.cpp
@@ -14,59 +14,58 @@
14** See http://www.trolltech.com/gpl/ for GPL licensing information. 14** See http://www.trolltech.com/gpl/ for GPL licensing information.
15** 15**
16** Contact info@trolltech.com if any conditions of this licensing are 16** Contact info@trolltech.com if any conditions of this licensing are
17** not clear to you. 17** not clear to you.
18** 18**
19**********************************************************************/ 19**********************************************************************/
20 20
21#include "desktop.h" 21#include "desktop.h"
22#include "taskbar.h" 22#include "taskbar.h"
23#include "stabmon.h" 23#include "stabmon.h"
24 24
25#include <qpe/qpeapplication.h> 25#include <qpe/qpeapplication.h>
26#include <qpe/network.h> 26#include <qpe/network.h>
27#include <qpe/config.h> 27#include <qpe/config.h>
28#if defined( QT_QWS_SL5XXX ) || defined( QT_QWS_IPAQ ) 28#if defined( QT_QWS_SL5XXX ) || defined( QT_QWS_IPAQ )
29#include <qpe/custom.h> 29#include <qpe/custom.h>
30#endif 30#endif
31 31
32#include <opie/odevice.h> 32#include <opie/odevice.h>
33 33
34#include <qmessagebox.h> 34#include <qmessagebox.h>
35#include <qfile.h> 35#include <qfile.h>
36#include <qimage.h> 36#include <qimage.h>
37#include <qwindowsystem_qws.h> 37#include <qwindowsystem_qws.h>
38#include <qwsmouse_qws.h>
38#include <qpe/qcopenvelope_qws.h> 39#include <qpe/qcopenvelope_qws.h>
39#include <qpe/alarmserver.h> 40#include <qpe/alarmserver.h>
40 41
41#include <stdlib.h> 42#include <stdlib.h>
42#include <stdio.h> 43#include <stdio.h>
43#include <signal.h> 44#include <signal.h>
44#include <unistd.h> 45#include <unistd.h>
45 46
46#if defined(QT_QWS_IPAQ) || defined(QT_QWS_SL5XXX)
47#include "../calibrate/calibrate.h" 47#include "../calibrate/calibrate.h"
48#endif
49 48
50using namespace Opie; 49using namespace Opie;
51 50
52void initEnvironment() 51void initEnvironment()
53{ 52{
54 Config config("locale"); 53 Config config("locale");
55 config.setGroup( "Location" ); 54 config.setGroup( "Location" );
56 QString tz = config.readEntry( "Timezone", getenv("TZ") ); 55 QString tz = config.readEntry( "Timezone", getenv("TZ") );
57 56
58 // if not timezone set, pick New York 57 // if not timezone set, pick New York
59 if (tz.isNull()) 58 if (tz.isNull())
60 tz = "America/New_York"; 59 tz = "America/New_York";
61 60
62 setenv( "TZ", tz, 1 ); 61 setenv( "TZ", tz, 1 );
63 config.writeEntry( "Timezone", tz); 62 config.writeEntry( "Timezone", tz);
64 63
65 config.setGroup( "Language" ); 64 config.setGroup( "Language" );
66 QString lang = config.readEntry( "Language", getenv("LANG") ); 65 QString lang = config.readEntry( "Language", getenv("LANG") );
67 if ( !lang.isNull() ) 66 if ( !lang.isNull() )
68 setenv( "LANG", lang, 1 ); 67 setenv( "LANG", lang, 1 );
69} 68}
70 69
71 70
72int initApplication( int argc, char ** argv ) 71int initApplication( int argc, char ** argv )