Diffstat (limited to 'core/pim/addressbook/abtable.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/pim/addressbook/abtable.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/core/pim/addressbook/abtable.cpp b/core/pim/addressbook/abtable.cpp index 4feadeb..5222f16 100644 --- a/core/pim/addressbook/abtable.cpp +++ b/core/pim/addressbook/abtable.cpp | |||
@@ -3,48 +3,49 @@ | |||
3 | ** | 3 | ** |
4 | ** This file is part of Qt Palmtop Environment. | 4 | ** This file is part of Qt Palmtop Environment. |
5 | ** | 5 | ** |
6 | ** This file may be distributed and/or modified under the terms of the | 6 | ** This file may be distributed and/or modified under the terms of the |
7 | ** GNU General Public License version 2 as published by the Free Software | 7 | ** GNU General Public License version 2 as published by the Free Software |
8 | ** Foundation and appearing in the file LICENSE.GPL included in the | 8 | ** Foundation and appearing in the file LICENSE.GPL included in the |
9 | ** packaging of this file. | 9 | ** packaging of this file. |
10 | ** | 10 | ** |
11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE | 11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE |
12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. | 12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. |
13 | ** | 13 | ** |
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 | #define QTOPIA_INTERNAL_CONTACT_MRE | 21 | #define QTOPIA_INTERNAL_CONTACT_MRE |
22 | 22 | ||
23 | #include <qpe/categoryselect.h> | 23 | #include <qpe/categoryselect.h> |
24 | #include <qpe/config.h> | 24 | #include <qpe/config.h> |
25 | #include <qpe/stringutil.h> | 25 | #include <qpe/stringutil.h> |
26 | #include <qpe/qcopenvelope_qws.h> | 26 | #include <qpe/qcopenvelope_qws.h> |
27 | #include <qpe/timestring.h> | ||
27 | 28 | ||
28 | #include <opie/orecordlist.h> | 29 | #include <opie/orecordlist.h> |
29 | 30 | ||
30 | #include <qasciidict.h> | 31 | #include <qasciidict.h> |
31 | #include <qdatetime.h> | 32 | #include <qdatetime.h> |
32 | #include <qfile.h> | 33 | #include <qfile.h> |
33 | #include <qregexp.h> | 34 | #include <qregexp.h> |
34 | #include <qmessagebox.h> | 35 | #include <qmessagebox.h> |
35 | 36 | ||
36 | #include "abtable.h" | 37 | #include "abtable.h" |
37 | 38 | ||
38 | #include <errno.h> | 39 | #include <errno.h> |
39 | #include <fcntl.h> | 40 | #include <fcntl.h> |
40 | #include <unistd.h> | 41 | #include <unistd.h> |
41 | #include <stdlib.h> | 42 | #include <stdlib.h> |
42 | 43 | ||
43 | #include <ctype.h> //toupper() for key hack | 44 | #include <ctype.h> //toupper() for key hack |
44 | 45 | ||
45 | static bool contactCompare( const OContact &cnt, const QRegExp &r, int category ); | 46 | static bool contactCompare( const OContact &cnt, const QRegExp &r, int category ); |
46 | 47 | ||
47 | 48 | ||
48 | /*! | 49 | /*! |
49 | \class AbTableItem abtable.h | 50 | \class AbTableItem abtable.h |
50 | 51 | ||
@@ -429,52 +430,52 @@ QString AbTable::findContactContact( const OContact &entry, int /* row */ ) | |||
429 | value = entry.businessFax(); | 430 | value = entry.businessFax(); |
430 | break; | 431 | break; |
431 | case Qtopia::BusinessMobile: | 432 | case Qtopia::BusinessMobile: |
432 | value = entry.businessMobile(); | 433 | value = entry.businessMobile(); |
433 | break; | 434 | break; |
434 | case Qtopia::BusinessPager: | 435 | case Qtopia::BusinessPager: |
435 | value = entry.businessPager(); | 436 | value = entry.businessPager(); |
436 | break; | 437 | break; |
437 | case Qtopia::Profession: | 438 | case Qtopia::Profession: |
438 | value = entry.profession(); | 439 | value = entry.profession(); |
439 | break; | 440 | break; |
440 | case Qtopia::Assistant: | 441 | case Qtopia::Assistant: |
441 | value = entry.assistant(); | 442 | value = entry.assistant(); |
442 | break; | 443 | break; |
443 | case Qtopia::Manager: | 444 | case Qtopia::Manager: |
444 | value = entry.manager(); | 445 | value = entry.manager(); |
445 | break; | 446 | break; |
446 | case Qtopia::Spouse: | 447 | case Qtopia::Spouse: |
447 | value = entry.spouse(); | 448 | value = entry.spouse(); |
448 | break; | 449 | break; |
449 | case Qtopia::Gender: | 450 | case Qtopia::Gender: |
450 | value = entry.gender(); | 451 | value = entry.gender(); |
451 | break; | 452 | break; |
452 | case Qtopia::Birthday: | 453 | case Qtopia::Birthday: |
453 | value = entry.birthday(); | 454 | value = TimeString::numberDateString( entry.birthday() ); |
454 | break; | 455 | break; |
455 | case Qtopia::Anniversary: | 456 | case Qtopia::Anniversary: |
456 | value = entry.anniversary(); | 457 | value = TimeString::numberDateString( entry.anniversary() ); |
457 | break; | 458 | break; |
458 | case Qtopia::Nickname: | 459 | case Qtopia::Nickname: |
459 | value = entry.nickname(); | 460 | value = entry.nickname(); |
460 | break; | 461 | break; |
461 | case Qtopia::Children: | 462 | case Qtopia::Children: |
462 | value = entry.children(); | 463 | value = entry.children(); |
463 | break; | 464 | break; |
464 | case Qtopia::Notes: | 465 | case Qtopia::Notes: |
465 | value = entry.notes(); | 466 | value = entry.notes(); |
466 | break; | 467 | break; |
467 | } | 468 | } |
468 | if ( !value.isEmpty() ) | 469 | if ( !value.isEmpty() ) |
469 | break; | 470 | break; |
470 | } | 471 | } |
471 | return value; | 472 | return value; |
472 | } | 473 | } |
473 | 474 | ||
474 | void AbTable::addEntry( const OContact &newCnt ) | 475 | void AbTable::addEntry( const OContact &newCnt ) |
475 | { | 476 | { |
476 | int row = numRows(); | 477 | int row = numRows(); |
477 | 478 | ||
478 | setNumRows( row + 1 ); | 479 | setNumRows( row + 1 ); |
479 | insertIntoTable( newCnt, row ); | 480 | insertIntoTable( newCnt, row ); |
480 | 481 | ||