author | zecke <zecke> | 2002-12-10 17:01:18 (UTC) |
---|---|---|
committer | zecke <zecke> | 2002-12-10 17:01:18 (UTC) |
commit | 4ecbf7407c19b59fc136c334f9386c53db453930 (patch) (unidiff) | |
tree | 1cba438e2533f7109af169b0b77988cec6664192 /libopie2/opiepim/ocontact.cpp | |
parent | 36375df6ff103e52455823f7afd64c4f4ae7fcb8 (diff) | |
download | opie-4ecbf7407c19b59fc136c334f9386c53db453930.zip opie-4ecbf7407c19b59fc136c334f9386c53db453930.tar.gz opie-4ecbf7407c19b59fc136c334f9386c53db453930.tar.bz2 |
get in sync with HEAD again
-OPimBase was added to be used as a default struct inside OPimResolver
and to work with DSOs
-TodoListXML backend now uses mmap and madvise to load data
-OContact added/changed rtti
-OTodo added changed rtti
OPimAccess* added stuff necessary for the Resolver and a 'state'/'hint'
on how to load data
OPimResolver which resolves uid + services to Records, rtti to QCOPChannels
loads arbitary Service backends ( will work with DSOs soon )
-OPimMainWindow added some setDocument scripting possibility and
internal marshalling and demarshalling of Records
-OPimRecord added loadDataFromm and saveDataTo for marshalling purposes
much more :)
Diffstat (limited to 'libopie2/opiepim/ocontact.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | libopie2/opiepim/ocontact.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/libopie2/opiepim/ocontact.cpp b/libopie2/opiepim/ocontact.cpp index 6aec62e..38cba72 100644 --- a/libopie2/opiepim/ocontact.cpp +++ b/libopie2/opiepim/ocontact.cpp | |||
@@ -19,12 +19,13 @@ | |||
19 | ** | 19 | ** |
20 | **********************************************************************/ | 20 | **********************************************************************/ |
21 | 21 | ||
22 | #define QTOPIA_INTERNAL_CONTACT_MRE | 22 | #define QTOPIA_INTERNAL_CONTACT_MRE |
23 | 23 | ||
24 | #include "ocontact.h" | 24 | #include "ocontact.h" |
25 | #include "opimresolver.h" | ||
25 | 26 | ||
26 | #include <qpe/stringutil.h> | 27 | #include <qpe/stringutil.h> |
27 | #include <qpe/timeconversion.h> | 28 | #include <qpe/timeconversion.h> |
28 | #include <qpe/timestring.h> | 29 | #include <qpe/timestring.h> |
29 | 30 | ||
30 | #include <qobject.h> | 31 | #include <qobject.h> |
@@ -826,13 +827,13 @@ void OContact::save( QString &buf ) const | |||
826 | 827 | ||
827 | 828 | ||
828 | /*! | 829 | /*! |
829 | \internal | 830 | \internal |
830 | Returns the list of fields belonging to a contact | 831 | Returns the list of fields belonging to a contact |
831 | Never change order of this list ! It has to be regarding | 832 | Never change order of this list ! It has to be regarding |
832 | enum AddressBookFields !! | 833 | enum AddressBookFields !! |
833 | */ | 834 | */ |
834 | QStringList OContact::fields() | 835 | QStringList OContact::fields() |
835 | { | 836 | { |
836 | QStringList list; | 837 | QStringList list; |
837 | 838 | ||
838 | list.append( "Title" ); // Not Used! | 839 | list.append( "Title" ); // Not Used! |
@@ -1097,13 +1098,13 @@ void OContact::setDefaultEmail( const QString &v ) | |||
1097 | void OContact::insertEmails( const QStringList &v ) | 1098 | void OContact::insertEmails( const QStringList &v ) |
1098 | { | 1099 | { |
1099 | for ( QStringList::ConstIterator it = v.begin(); it != v.end(); ++it ) | 1100 | for ( QStringList::ConstIterator it = v.begin(); it != v.end(); ++it ) |
1100 | insertEmail( *it ); | 1101 | insertEmail( *it ); |
1101 | } | 1102 | } |
1102 | int OContact::rtti() { | 1103 | int OContact::rtti() { |
1103 | return 2; | 1104 | return OPimResolver::AddressBook; |
1104 | } | 1105 | } |
1105 | void OContact::setUid( int i ) | 1106 | void OContact::setUid( int i ) |
1106 | { | 1107 | { |
1107 | OPimRecord::setUid(i); | 1108 | OPimRecord::setUid(i); |
1108 | replace( Qtopia::AddressUid , QString::number(i)); | 1109 | replace( Qtopia::AddressUid , QString::number(i)); |
1109 | } | 1110 | } |