summaryrefslogtreecommitdiffabout
path: root/plugindtmkabc/qtopiaaddressee.cpp
Side-by-side diff
Diffstat (limited to 'plugindtmkabc/qtopiaaddressee.cpp') (more/less context) (show whitespace changes)
-rw-r--r--plugindtmkabc/qtopiaaddressee.cpp26
1 files changed, 26 insertions, 0 deletions
diff --git a/plugindtmkabc/qtopiaaddressee.cpp b/plugindtmkabc/qtopiaaddressee.cpp
new file mode 100644
index 0000000..e8e49f5
--- a/dev/null
+++ b/plugindtmkabc/qtopiaaddressee.cpp
@@ -0,0 +1,26 @@
+#include "qtopiaaddressee.h"
+
+QtopiaAddressee::QtopiaAddressee(const QStringList& contact) {
+ setPimContact(contact);
+}
+
+QtopiaAddressee::QtopiaAddressee() {
+ empty = true;
+}
+
+void QtopiaAddressee::setPimContact(const QStringList& contact) {
+ if ( contact[40].isEmpty() )
+ id = contact[0];
+ else
+ id = contact[40];
+ fName = contact[2];
+ rName = contact[2];
+ pEmail = contact[40];
+ empty = false;
+ mails.clear();
+ mobilehomephone = contact[30] ;
+ workphone = contact[16];
+ homephone = contact[31];
+ //mails = pimContact.emailList();
+}
+