author | zautrix <zautrix> | 2004-10-23 15:37:38 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-10-23 15:37:38 (UTC) |
commit | 5415db4a06862b57539de051e2e82c8d8f3a5b48 (patch) (unidiff) | |
tree | a0a5719246aba7d2a5e36b8d8601193ba9e907b3 | |
parent | 54c77b2331f9afe90643c6d1343a7f5543577b71 (diff) | |
download | kdepimpi-5415db4a06862b57539de051e2e82c8d8f3a5b48.zip kdepimpi-5415db4a06862b57539de051e2e82c8d8f3a5b48.tar.gz kdepimpi-5415db4a06862b57539de051e2e82c8d8f3a5b48.tar.bz2 |
compile fixes
-rw-r--r-- | libkdepim/kpimglobalprefs.cpp | 5 | ||||
-rw-r--r-- | pwmanager/pwmanager/pwminit.cpp | 5 |
2 files changed, 7 insertions, 3 deletions
diff --git a/libkdepim/kpimglobalprefs.cpp b/libkdepim/kpimglobalprefs.cpp index 0fdc3e4..e8fd2d1 100644 --- a/libkdepim/kpimglobalprefs.cpp +++ b/libkdepim/kpimglobalprefs.cpp | |||
@@ -27,24 +27,25 @@ Copyright (c) 2004 Ulf Schenk | |||
27 | 27 | ||
28 | $Id$ | 28 | $Id$ |
29 | */ | 29 | */ |
30 | 30 | ||
31 | #include <kglobal.h> | 31 | #include <kglobal.h> |
32 | #include <kconfig.h> | 32 | #include <kconfig.h> |
33 | #include <klocale.h> | 33 | #include <klocale.h> |
34 | #include <kdebug.h> | 34 | #include <kdebug.h> |
35 | #include <kstaticdeleter.h> | 35 | #include <kstaticdeleter.h> |
36 | 36 | ||
37 | #include <qregexp.h> | 37 | #include <qregexp.h> |
38 | #include <qfile.h> | 38 | #include <qfile.h> |
39 | #include <stdlib.h> | ||
39 | #include <qtextstream.h> | 40 | #include <qtextstream.h> |
40 | #include <qapplication.h> | 41 | #include <qapplication.h> |
41 | #include "kpimglobalprefs.h" | 42 | #include "kpimglobalprefs.h" |
42 | 43 | ||
43 | KPimGlobalPrefs *KPimGlobalPrefs::sInstance = 0; | 44 | KPimGlobalPrefs *KPimGlobalPrefs::sInstance = 0; |
44 | static KStaticDeleter<KPimGlobalPrefs> staticDeleterGP; | 45 | static KStaticDeleter<KPimGlobalPrefs> staticDeleterGP; |
45 | 46 | ||
46 | 47 | ||
47 | KPimGlobalPrefs::KPimGlobalPrefs( const QString &name ) | 48 | KPimGlobalPrefs::KPimGlobalPrefs( const QString &name ) |
48 | : KPrefs("microkdeglobalrc") | 49 | : KPrefs("microkdeglobalrc") |
49 | { | 50 | { |
50 | mLocaleDict = 0; | 51 | mLocaleDict = 0; |
@@ -102,27 +103,27 @@ KPimGlobalPrefs::KPimGlobalPrefs( const QString &name ) | |||
102 | addItemString("Ex2PhoneDevice",&mEx2PhoneDevice,"/dev/ircomm"); | 103 | addItemString("Ex2PhoneDevice",&mEx2PhoneDevice,"/dev/ircomm"); |
103 | addItemString("Ex2PhoneConnection",&mEx2PhoneConnection,"irda"); | 104 | addItemString("Ex2PhoneConnection",&mEx2PhoneConnection,"irda"); |
104 | addItemString("Ex2PhoneModel",&mEx2PhoneModel,"6310i"); | 105 | addItemString("Ex2PhoneModel",&mEx2PhoneModel,"6310i"); |
105 | 106 | ||
106 | } | 107 | } |
107 | 108 | ||
108 | void KPimGlobalPrefs::setGlobalConfig() | 109 | void KPimGlobalPrefs::setGlobalConfig() |
109 | { | 110 | { |
110 | if ( mLocaleDict == 0 ) { | 111 | if ( mLocaleDict == 0 ) { |
111 | QString fileName ; | 112 | QString fileName ; |
112 | QString name = KGlobal::getAppName() +"/"; | 113 | QString name = KGlobal::getAppName() +"/"; |
113 | #ifndef DESKTOP_VERSION | 114 | #ifndef DESKTOP_VERSION |
114 | fileName= QString(getenv("QPEDIR"))+"/pics/kdepim/"+name | 115 | fileName= QString(getenv("QPEDIR"))+"/pics/kdepim/"+name; |
115 | #else | 116 | #else |
116 | fileName = qApp->applicationDirPath () + "/kdepim/"+ name; | 117 | fileName = qApp->applicationDirPath () + "/kdepim/"+ name; |
117 | #endif | 118 | #endif |
118 | mLocaleDict = 0; | 119 | mLocaleDict = 0; |
119 | if ( mPreferredLanguage > 0 && mPreferredLanguage < 5 ) { | 120 | if ( mPreferredLanguage > 0 && mPreferredLanguage < 5 ) { |
120 | 121 | ||
121 | if ( mPreferredLanguage == 1 ) | 122 | if ( mPreferredLanguage == 1 ) |
122 | fileName = fileName+"germantranslation.txt"; | 123 | fileName = fileName+"germantranslation.txt"; |
123 | else if ( mPreferredLanguage == 4 ) | 124 | else if ( mPreferredLanguage == 4 ) |
124 | fileName = fileName+"usertranslation.txt"; | 125 | fileName = fileName+"usertranslation.txt"; |
125 | else if ( mPreferredLanguage == 2 ) | 126 | else if ( mPreferredLanguage == 2 ) |
126 | fileName = fileName+"frenchtranslation.txt"; | 127 | fileName = fileName+"frenchtranslation.txt"; |
127 | else if ( mPreferredLanguage == 3 ) | 128 | else if ( mPreferredLanguage == 3 ) |
128 | fileName = fileName+"italiantranslation.txt"; | 129 | fileName = fileName+"italiantranslation.txt"; |
diff --git a/pwmanager/pwmanager/pwminit.cpp b/pwmanager/pwmanager/pwminit.cpp index 9238c8c..d775aa9 100644 --- a/pwmanager/pwmanager/pwminit.cpp +++ b/pwmanager/pwmanager/pwminit.cpp | |||
@@ -46,40 +46,43 @@ | |||
46 | #ifndef PWM_EMBEDDED | 46 | #ifndef PWM_EMBEDDED |
47 | #include <kcmdlineargs.h> | 47 | #include <kcmdlineargs.h> |
48 | #include <kwin.h> | 48 | #include <kwin.h> |
49 | #include <dcopclient.h> | 49 | #include <dcopclient.h> |
50 | #endif | 50 | #endif |
51 | 51 | ||
52 | #include <kapplication.h> | 52 | #include <kapplication.h> |
53 | #include <kiconloader.h> | 53 | #include <kiconloader.h> |
54 | 54 | ||
55 | #include <signal.h> | 55 | #include <signal.h> |
56 | 56 | ||
57 | static PwMInit *sig_init_pointer; | 57 | static PwMInit *sig_init_pointer; |
58 | #ifdef _WIN32_ | ||
59 | static void sig_handler(int signum) | ||
60 | #else | ||
58 | static NOREGPARM void sig_handler(int signum) | 61 | static NOREGPARM void sig_handler(int signum) |
62 | #endif | ||
59 | { | 63 | { |
60 | switch (signum) { | 64 | switch (signum) { |
61 | case SIGINT: | 65 | case SIGINT: |
62 | case SIGTERM: | 66 | case SIGTERM: |
63 | sig_init_pointer->shutdownApp(20 + signum); | 67 | sig_init_pointer->shutdownApp(20 + signum); |
64 | break; | 68 | break; |
65 | default: | 69 | default: |
66 | printDebug(string("unhandled signal ") | 70 | printDebug(string("unhandled signal ") |
67 | + tostr(signum)); | 71 | + tostr(signum)); |
68 | } | 72 | } |
69 | } | 73 | } |
70 | 74 | ||
71 | 75 | ||
72 | 76 | ||
73 | |||
74 | PwMInit::PwMInit(PwMApplication *_app) | 77 | PwMInit::PwMInit(PwMApplication *_app) |
75 | : runStatus (unknown) | 78 | : runStatus (unknown) |
76 | , _curWidget (0) | 79 | , _curWidget (0) |
77 | , _dcopClient (0) | 80 | , _dcopClient (0) |
78 | , _kwalletEmu (0) | 81 | , _kwalletEmu (0) |
79 | , _keycard (0) | 82 | , _keycard (0) |
80 | , _tray (0) | 83 | , _tray (0) |
81 | { | 84 | { |
82 | sig_init_pointer = this; | 85 | sig_init_pointer = this; |
83 | app = _app; | 86 | app = _app; |
84 | } | 87 | } |
85 | 88 | ||