Diffstat (limited to 'pluginqtopiakabc/qtopiaaddressee.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | pluginqtopiakabc/qtopiaaddressee.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/pluginqtopiakabc/qtopiaaddressee.cpp b/pluginqtopiakabc/qtopiaaddressee.cpp new file mode 100644 index 0000000..3fe85e5 --- a/dev/null +++ b/pluginqtopiakabc/qtopiaaddressee.cpp @@ -0,0 +1,20 @@ +#include "qtopiaaddressee.h" + +QtopiaAddressee::QtopiaAddressee(const PimContact & pimContact) { + setPimContact(pimContact); +} + +QtopiaAddressee::QtopiaAddressee() { + empty = true; +} + +void QtopiaAddressee::setPimContact(const PimContact &pimContact) { + id = pimContact.defaultEmail(); + fName = pimContact.lastName() + ", " + pimContact.firstName(); + rName = pimContact.fullName(); + pEmail = pimContact.defaultEmail(); + empty = false; + mails.clear(); + mails = pimContact.emailList(); +} + |