author | zautrix <zautrix> | 2004-09-15 09:04:40 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-09-15 09:04:40 (UTC) |
commit | 8889ffd6f6958c3a1d07bafedcc8af5d786a1660 (patch) (unidiff) | |
tree | 50c8335d792e9142d8d864de04c0f9acdf82c820 | |
parent | 3dc613bf5ba5a2c7bc7aef50fc00c2146206fefb (diff) | |
download | kdepimpi-8889ffd6f6958c3a1d07bafedcc8af5d786a1660.zip kdepimpi-8889ffd6f6958c3a1d07bafedcc8af5d786a1660.tar.gz kdepimpi-8889ffd6f6958c3a1d07bafedcc8af5d786a1660.tar.bz2 |
desktop compiling fixes
-rw-r--r-- | bin/kdepim/LICENCE.TXT | 59 | ||||
-rw-r--r-- | gammu/emb/gammu/gammu.pro | 16 | ||||
-rw-r--r-- | kaddressbook/mainembedded.cpp | 1 |
3 files changed, 14 insertions, 62 deletions
diff --git a/bin/kdepim/LICENCE.TXT b/bin/kdepim/LICENCE.TXT index 4d564f3..10e09f7 100644 --- a/bin/kdepim/LICENCE.TXT +++ b/bin/kdepim/LICENCE.TXT | |||
@@ -233,109 +233,50 @@ | |||
233 | those countries, so that distribution is permitted only in or among | 233 | those countries, so that distribution is permitted only in or among |
234 | countries not thus excluded. In such case, this License incorporates | 234 | countries not thus excluded. In such case, this License incorporates |
235 | the limitation as if written in the body of this License. | 235 | the limitation as if written in the body of this License. |
236 | 236 | ||
237 | 9. The Free Software Foundation may publish revised and/or new versions | 237 | 9. The Free Software Foundation may publish revised and/or new versions |
238 | of the General Public License from time to time. Such new versions will | 238 | of the General Public License from time to time. Such new versions will |
239 | be similar in spirit to the present version, but may differ in detail to | 239 | be similar in spirit to the present version, but may differ in detail to |
240 | address new problems or concerns. | 240 | address new problems or concerns. |
241 | 241 | ||
242 | Each version is given a distinguishing version number. If the Program | 242 | Each version is given a distinguishing version number. If the Program |
243 | specifies a version number of this License which applies to it and "any | 243 | specifies a version number of this License which applies to it and "any |
244 | later version", you have the option of following the terms and conditions | 244 | later version", you have the option of following the terms and conditions |
245 | either of that version or of any later version published by the Free | 245 | either of that version or of any later version published by the Free |
246 | Software Foundation. If the Program does not specify a version number of | 246 | Software Foundation. If the Program does not specify a version number of |
247 | this License, you may choose any version ever published by the Free Software | 247 | this License, you may choose any version ever published by the Free Software |
248 | Foundation. | 248 | Foundation. |
249 | 249 | ||
250 | 10. If you wish to incorporate parts of the Program into other free | 250 | 10. If you wish to incorporate parts of the Program into other free |
251 | programs whose distribution conditions are different, write to the author | 251 | programs whose distribution conditions are different, write to the author |
252 | to ask for permission. For software which is copyrighted by the Free | 252 | to ask for permission. For software which is copyrighted by the Free |
253 | Software Foundation, write to the Free Software Foundation; we sometimes | 253 | Software Foundation, write to the Free Software Foundation; we sometimes |
254 | make exceptions for this. Our decision will be guided by the two goals | 254 | make exceptions for this. Our decision will be guided by the two goals |
255 | of preserving the free status of all derivatives of our free software and | 255 | of preserving the free status of all derivatives of our free software and |
256 | of promoting the sharing and reuse of software generally. | 256 | of promoting the sharing and reuse of software generally. |
257 | 257 | ||
258 | NO WARRANTY | 258 | NO WARRANTY |
259 | 259 | ||
260 | 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY | 260 | 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY |
261 | FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN | 261 | FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN |
262 | OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES | 262 | OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES |
263 | PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED | 263 | PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED |
264 | OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF | 264 | OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF |
265 | MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS | 265 | MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS |
266 | TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE | 266 | TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE |
267 | PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, | 267 | PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, |
268 | REPAIR OR CORRECTION. | 268 | REPAIR OR CORRECTION. |
269 | 269 | ||
270 | 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING | 270 | 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING |
271 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR | 271 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR |
272 | REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, | 272 | REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, |
273 | INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING | 273 | INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING |
274 | OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED | 274 | OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED |
275 | TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY | 275 | TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY |
276 | YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER | 276 | YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER |
277 | PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE | 277 | PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE |
278 | POSSIBILITY OF SUCH DAMAGES. | 278 | POSSIBILITY OF SUCH DAMAGES. |
279 | 279 | ||
280 | END OF TERMS AND CONDITIONS | 280 | END OF TERMS AND CONDITIONS |
281 | |||
282 | How to Apply These Terms to Your New Programs | ||
283 | |||
284 | If you develop a new program, and you want it to be of the greatest | ||
285 | possible use to the public, the best way to achieve this is to make it | ||
286 | free software which everyone can redistribute and change under these terms. | ||
287 | |||
288 | To do so, attach the following notices to the program. It is safest | ||
289 | to attach them to the start of each source file to most effectively | ||
290 | convey the exclusion of warranty; and each file should have at least | ||
291 | the "copyright" line and a pointer to where the full notice is found. | ||
292 | |||
293 | <one line to give the program's name and a brief idea of what it does.> | ||
294 | Copyright (C) <year> <name of author> | ||
295 | |||
296 | This program is free software; you can redistribute it and/or modify | ||
297 | it under the terms of the GNU General Public License as published by | ||
298 | the Free Software Foundation; either version 2 of the License, or | ||
299 | (at your option) any later version. | ||
300 | |||
301 | This program is distributed in the hope that it will be useful, | ||
302 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
303 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
304 | GNU General Public License for more details. | ||
305 | |||
306 | You should have received a copy of the GNU General Public License | ||
307 | along with this program; if not, write to the Free Software | ||
308 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
309 | |||
310 | |||
311 | Also add information on how to contact you by electronic and paper mail. | ||
312 | |||
313 | If the program is interactive, make it output a short notice like this | ||
314 | when it starts in an interactive mode: | ||
315 | |||
316 | Gnomovision version 69, Copyright (C) year name of author | ||
317 | Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. | ||
318 | This is free software, and you are welcome to redistribute it | ||
319 | under certain conditions; type `show c' for details. | ||
320 | |||
321 | The hypothetical commands `show w' and `show c' should show the appropriate | ||
322 | parts of the General Public License. Of course, the commands you use may | ||
323 | be called something other than `show w' and `show c'; they could even be | ||
324 | mouse-clicks or menu items--whatever suits your program. | ||
325 | |||
326 | You should also get your employer (if you work as a programmer) or your | ||
327 | school, if any, to sign a "copyright disclaimer" for the program, if | ||
328 | necessary. Here is a sample; alter the names: | ||
329 | |||
330 | Yoyodyne, Inc., hereby disclaims all copyright interest in the program | ||
331 | `Gnomovision' (which makes passes at compilers) written by James Hacker. | ||
332 | |||
333 | <signature of Ty Coon>, 1 April 1989 | ||
334 | Ty Coon, President of Vice | ||
335 | 281 | ||
336 | This General Public License does not permit incorporating your program into | ||
337 | proprietary programs. If your program is a subroutine library, you may | ||
338 | consider it more useful to permit linking proprietary applications with the | ||
339 | library. If this is what you want to do, use the GNU Library General | ||
340 | Public License instead of this License. | ||
341 | \ No newline at end of file | 282 | \ No newline at end of file |
diff --git a/gammu/emb/gammu/gammu.pro b/gammu/emb/gammu/gammu.pro index 299de7f..22476a1 100644 --- a/gammu/emb/gammu/gammu.pro +++ b/gammu/emb/gammu/gammu.pro | |||
@@ -1,52 +1,62 @@ | |||
1 | ###################################################################### | 1 | ###################################################################### |
2 | # Automatically generated by qmake (1.07a) Fri Jul 30 22:22:02 2004 | 2 | # Automatically generated by qmake (1.07a) Fri Jul 30 22:22:02 2004 |
3 | ###################################################################### | 3 | ###################################################################### |
4 | 4 | ||
5 | TEMPLATE = app | 5 | TEMPLATE = app |
6 | DEPENDPATH += msvc06.mak \ | 6 | DEPENDPATH += msvc06.mak \ |
7 | msvc2003.mak \ | 7 | msvc2003.mak \ |
8 | smsd \ | 8 | smsd \ |
9 | depend/nokia \ | 9 | depend/nokia \ |
10 | depend/siemens \ | 10 | depend/siemens \ |
11 | depend/nokia/dct3trac | 11 | depend/nokia/dct3trac |
12 | INCLUDEPATH += . smsd depend/nokia depend/nokia/dct3trac depend/siemens | 12 | INCLUDEPATH += . smsd depend/nokia depend/nokia/dct3trac depend/siemens |
13 | CONFIG = warn_off release console | 13 | CONFIG = warn_off release console |
14 | # Input | 14 | # Input |
15 | 15 | ||
16 | HEADERS += gammu.h \ | 16 | HEADERS += gammu.h \ |
17 | sniff.h \ | 17 | sniff.h \ |
18 | smsd/s_files.h \ | 18 | smsd/s_files.h \ |
19 | smsd/s_mysql.h \ | 19 | smsd/s_mysql.h \ |
20 | smsd/smsdcore.h \ | 20 | smsd/smsdcore.h \ |
21 | depend/nokia/dct3.h \ | 21 | depend/nokia/dct3.h \ |
22 | depend/nokia/dct4.h \ | 22 | depend/nokia/dct4.h \ |
23 | depend/siemens/chiffre.h \ | 23 | depend/siemens/chiffre.h \ |
24 | depend/siemens/dsiemens.h \ | 24 | depend/siemens/dsiemens.h \ |
25 | depend/nokia/dct3trac/type-cc.h \ | 25 | depend/nokia/dct3trac/type-cc.h \ |
26 | depend/nokia/dct3trac/type-mm.h \ | 26 | depend/nokia/dct3trac/type-mm.h \ |
27 | depend/nokia/dct3trac/type-rr.h \ | 27 | depend/nokia/dct3trac/type-rr.h \ |
28 | depend/nokia/dct3trac/type-sms.h \ | 28 | depend/nokia/dct3trac/type-sms.h \ |
29 | depend/nokia/dct3trac/type-ss.h \ | 29 | depend/nokia/dct3trac/type-ss.h \ |
30 | depend/nokia/dct3trac/wmx-gsm.h \ | 30 | depend/nokia/dct3trac/wmx-gsm.h \ |
31 | depend/nokia/dct3trac/wmx-list.h \ | 31 | depend/nokia/dct3trac/wmx-list.h \ |
32 | depend/nokia/dct3trac/wmx-sim.h \ | 32 | depend/nokia/dct3trac/wmx-sim.h \ |
33 | depend/nokia/dct3trac/wmx-util.h \ | 33 | depend/nokia/dct3trac/wmx-util.h \ |
34 | depend/nokia/dct3trac/wmx.h | 34 | depend/nokia/dct3trac/wmx.h |
35 | SOURCES += gammu.c \ | 35 | SOURCES += gammu.c \ |
36 | sniff.c \ | 36 | sniff.c \ |
37 | smsd/s_files.c \ | 37 | smsd/s_files.c \ |
38 | smsd/smsdcore.c \ | 38 | smsd/smsdcore.c \ |
39 | depend/nokia/dct3.c \ | 39 | depend/nokia/dct3.c \ |
40 | depend/nokia/dct4.c \ | 40 | depend/nokia/dct4.c \ |
41 | depend/siemens/chiffre.c \ | 41 | depend/siemens/chiffre.c \ |
42 | depend/siemens/dsiemens.c \ | 42 | depend/siemens/dsiemens.c \ |
43 | depend/nokia/dct3trac/wmx-gsm.c \ | 43 | depend/nokia/dct3trac/wmx-gsm.c \ |
44 | depend/nokia/dct3trac/wmx-list.c \ | 44 | depend/nokia/dct3trac/wmx-list.c \ |
45 | depend/nokia/dct3trac/wmx-sim.c \ | 45 | depend/nokia/dct3trac/wmx-sim.c \ |
46 | depend/nokia/dct3trac/wmx-util.c \ | 46 | depend/nokia/dct3trac/wmx-util.c \ |
47 | depend/nokia/dct3trac/wmx.c | 47 | depend/nokia/dct3trac/wmx.c |
48 | 48 | unix : { | |
49 | LIBS += ../../../bin/libmicrogammu.so /usr/lib/libbluetooth.so /usr/lib/libsdp.so /usr/lib/libpthread.so | 49 | LIBS += ../../../bin/libmicrogammu.so /usr/lib/libbluetooth.so /usr/lib/libsdp.so /usr/lib/libpthread.so |
50 | DESTDIR = ../../../bin | ||
51 | OBJECTS_DIR = obj/unix | 50 | OBJECTS_DIR = obj/unix |
52 | TARGET = kammu \ No newline at end of file | 51 | } |
52 | win32 : { | ||
53 | CONFIG = qt warn_on | ||
54 | #LIBS += mfc71u.lib | ||
55 | LIBS += libc.lib | ||
56 | #LIBS += msvcrt.lib | ||
57 | QMAKE_LINK += /NODEFAULTLIB:msvcrt | ||
58 | LIBS += ../../../bin/microgammu.lib | ||
59 | OBJECTS_DIR = obj/win | ||
60 | } | ||
61 | DESTDIR = ../../../bin | ||
62 | TARGET = kammu | ||
diff --git a/kaddressbook/mainembedded.cpp b/kaddressbook/mainembedded.cpp index 4230c07..4f48850 100644 --- a/kaddressbook/mainembedded.cpp +++ b/kaddressbook/mainembedded.cpp | |||
@@ -1,59 +1,60 @@ | |||
1 | #ifndef DESKTOP_VERSION | 1 | #ifndef DESKTOP_VERSION |
2 | #include <qpe/qpeapplication.h> | 2 | #include <qpe/qpeapplication.h> |
3 | #include <stdlib.h> | 3 | #include <stdlib.h> |
4 | #else | 4 | #else |
5 | #include <qapplication.h> | 5 | #include <qapplication.h> |
6 | #include <qwindowsstyle.h> | 6 | #include <qwindowsstyle.h> |
7 | #include <qplatinumstyle.h> | 7 | #include <qplatinumstyle.h> |
8 | #include <qmainwindow.h> | 8 | #include <qmainwindow.h> |
9 | #endif | 9 | #endif |
10 | 10 | ||
11 | #include <kstandarddirs.h> | 11 | #include <kstandarddirs.h> |
12 | #include <qregexp.h> | ||
12 | #include <kglobal.h> | 13 | #include <kglobal.h> |
13 | #include <stdio.h> | 14 | #include <stdio.h> |
14 | #include <qdir.h> | 15 | #include <qdir.h> |
15 | #include "kaddressbookmain.h" | 16 | #include "kaddressbookmain.h" |
16 | #include "externalapphandler.h" | 17 | #include "externalapphandler.h" |
17 | 18 | ||
18 | int main( int argc, char **argv ) | 19 | int main( int argc, char **argv ) |
19 | { | 20 | { |
20 | #ifndef DESKTOP_VERSION | 21 | #ifndef DESKTOP_VERSION |
21 | QPEApplication a( argc, argv ); | 22 | QPEApplication a( argc, argv ); |
22 | a.setKeepRunning (); | 23 | a.setKeepRunning (); |
23 | #else | 24 | #else |
24 | QApplication a( argc, argv ); | 25 | QApplication a( argc, argv ); |
25 | QApplication::setStyle( new QPlatinumStyle ()); | 26 | QApplication::setStyle( new QPlatinumStyle ()); |
26 | QString hdir = QDir::homeDirPath(); | 27 | QString hdir = QDir::homeDirPath(); |
27 | // there is a bug when creating dirs for WIN 98 | 28 | // there is a bug when creating dirs for WIN 98 |
28 | // it is difficult to fix, because we have no WIN 98 runnung | 29 | // it is difficult to fix, because we have no WIN 98 runnung |
29 | // such that we try it to create the dirs at startup here | 30 | // such that we try it to create the dirs at startup here |
30 | if ( hdir == "C:\\" ) { // win 98 or ME | 31 | if ( hdir == "C:\\" ) { // win 98 or ME |
31 | QDir app_dir; | 32 | QDir app_dir; |
32 | if ( !app_dir.exists("C:\\kdepim") ) | 33 | if ( !app_dir.exists("C:\\kdepim") ) |
33 | app_dir.mkdir ("C:\\kdepim"); | 34 | app_dir.mkdir ("C:\\kdepim"); |
34 | if ( !app_dir.exists("C:\\kdepim\\apps") ) | 35 | if ( !app_dir.exists("C:\\kdepim\\apps") ) |
35 | app_dir.mkdir ("C:\\kdepim\\apps"); | 36 | app_dir.mkdir ("C:\\kdepim\\apps"); |
36 | if ( !app_dir.exists("C:\\kdepim\\config") ) | 37 | if ( !app_dir.exists("C:\\kdepim\\config") ) |
37 | app_dir.mkdir ("C:\\kdepim\\config"); | 38 | app_dir.mkdir ("C:\\kdepim\\config"); |
38 | if ( !app_dir.exists("C:\\kdepim\\apps\\kaddressbook") ) | 39 | if ( !app_dir.exists("C:\\kdepim\\apps\\kaddressbook") ) |
39 | app_dir.mkdir ("C:\\kdepim\\apps\\kaddressbook"); | 40 | app_dir.mkdir ("C:\\kdepim\\apps\\kaddressbook"); |
40 | } | 41 | } |
41 | #endif | 42 | #endif |
42 | 43 | ||
43 | bool exitHelp = false; | 44 | bool exitHelp = false; |
44 | if ( argc > 1 ) { | 45 | if ( argc > 1 ) { |
45 | QString command = argv[1]; | 46 | QString command = argv[1]; |
46 | if ( command == "-help" ){ | 47 | if ( command == "-help" ){ |
47 | printf("KA/E command line commands:\n"); | 48 | printf("KA/E command line commands:\n"); |
48 | printf(" no command: Start KA/E in usual way\n"); | 49 | printf(" no command: Start KA/E in usual way\n"); |
49 | printf(" -help: This output\n"); | 50 | printf(" -help: This output\n"); |
50 | printf(" KA/E is exiting now. Bye!\n"); | 51 | printf(" KA/E is exiting now. Bye!\n"); |
51 | exitHelp = true; | 52 | exitHelp = true; |
52 | } | 53 | } |
53 | } | 54 | } |
54 | if ( ! exitHelp ) { | 55 | if ( ! exitHelp ) { |
55 | 56 | ||
56 | KGlobal::setAppName( "kaddressbook" ); | 57 | KGlobal::setAppName( "kaddressbook" ); |
57 | #ifndef DESKTOP_VERSION | 58 | #ifndef DESKTOP_VERSION |
58 | if ( QApplication::desktop()->width() > 320 ) | 59 | if ( QApplication::desktop()->width() > 320 ) |
59 | KGlobal::iconLoader()->setIconPath(QString(getenv("QPEDIR"))+"/pics/kdepim/kaddressbook/icons22/"); | 60 | KGlobal::iconLoader()->setIconPath(QString(getenv("QPEDIR"))+"/pics/kdepim/kaddressbook/icons22/"); |