Diffstat (limited to 'libopie2/opiepim/ocontactfields.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | libopie2/opiepim/ocontactfields.cpp | 40 |
1 files changed, 25 insertions, 15 deletions
diff --git a/libopie2/opiepim/ocontactfields.cpp b/libopie2/opiepim/ocontactfields.cpp index deaa1e5..bec00f7 100644 --- a/libopie2/opiepim/ocontactfields.cpp +++ b/libopie2/opiepim/ocontactfields.cpp | |||
@@ -2,3 +2,3 @@ | |||
2 | This file is part of the Opie Project | 2 | This file is part of the Opie Project |
3 | Copyright (C) The Main Author <main-author@whereever.org> | 3 | Copyright (C) Stefan Eilers <eilers.stefan@epost.de> |
4 | =. Copyright (C) The Opie Team <opie-devel@handhelds.org> | 4 | =. Copyright (C) The Opie Team <opie-devel@handhelds.org> |
@@ -29,13 +29,16 @@ | |||
29 | 29 | ||
30 | #include <opie2/ocontactfields.h> | 30 | #include "ocontactfields.h" |
31 | 31 | ||
32 | #include <qstringlist.h> | 32 | /* OPIE */ |
33 | #include <opie2/ocontact.h> | ||
34 | #include <qpe/recordfields.h> // We should use our own enum in the future .. | ||
35 | #include <qpe/config.h> | ||
36 | |||
37 | /* QT */ | ||
33 | #include <qobject.h> | 38 | #include <qobject.h> |
39 | #include <qstringlist.h> | ||
34 | 40 | ||
35 | // We should use our own enum in the future .. | ||
36 | #include <qpe/recordfields.h> | ||
37 | #include <qpe/config.h> | ||
38 | #include <opie2/ocontact.h> | ||
39 | 41 | ||
40 | namespace Opie { | 42 | namespace Opie |
43 | { | ||
41 | /*! | 44 | /*! |
@@ -425,3 +428,4 @@ OContactFields::OContactFields(): | |||
425 | 428 | ||
426 | OContactFields::~OContactFields(){ | 429 | OContactFields::~OContactFields() |
430 | { | ||
427 | 431 | ||
@@ -429,3 +433,4 @@ OContactFields::~OContactFields(){ | |||
429 | // to reuse it for the future.. | 433 | // to reuse it for the future.. |
430 | if ( changedFieldOrder ){ | 434 | if ( changedFieldOrder ) |
435 | { | ||
431 | Config cfg ( "AddressBook" ); | 436 | Config cfg ( "AddressBook" ); |
@@ -438,3 +443,4 @@ OContactFields::~OContactFields(){ | |||
438 | 443 | ||
439 | void OContactFields::saveToRecord( OContact &cnt ){ | 444 | void OContactFields::saveToRecord( OContact &cnt ) |
445 | { | ||
440 | 446 | ||
@@ -450,3 +456,4 @@ void OContactFields::saveToRecord( OContact &cnt ){ | |||
450 | 456 | ||
451 | void OContactFields::loadFromRecord( const OContact &cnt ){ | 457 | void OContactFields::loadFromRecord( const OContact &cnt ) |
458 | { | ||
452 | qDebug("ocontactfields loadFromRecord"); | 459 | qDebug("ocontactfields loadFromRecord"); |
@@ -461,3 +468,4 @@ void OContactFields::loadFromRecord( const OContact &cnt ){ | |||
461 | 468 | ||
462 | if (fieldOrder.isEmpty()){ | 469 | if ( fieldOrder.isEmpty() ) |
470 | { | ||
463 | fieldOrder = globalFieldOrder; | 471 | fieldOrder = globalFieldOrder; |
@@ -469,3 +477,4 @@ void OContactFields::loadFromRecord( const OContact &cnt ){ | |||
469 | 477 | ||
470 | void OContactFields::setFieldOrder( int num, int index ){ | 478 | void OContactFields::setFieldOrder( int num, int index ) |
479 | { | ||
471 | qDebug("qcontactfields setfieldorder pos %i -> %i",num,index); | 480 | qDebug("qcontactfields setfieldorder pos %i -> %i",num,index); |
@@ -482,3 +491,4 @@ void OContactFields::setFieldOrder( int num, int index ){ | |||
482 | 491 | ||
483 | int OContactFields::getFieldOrder( int num, int defIndex ){ | 492 | int OContactFields::getFieldOrder( int num, int defIndex ) |
493 | { | ||
484 | qDebug("ocontactfields getFieldOrder"); | 494 | qDebug("ocontactfields getFieldOrder"); |