summaryrefslogtreecommitdiffabout
path: root/pluginopiekabc/opieaddressee.cpp
Side-by-side diff
Diffstat (limited to 'pluginopiekabc/opieaddressee.cpp') (more/less context) (show whitespace changes)
-rw-r--r--pluginopiekabc/opieaddressee.cpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/pluginopiekabc/opieaddressee.cpp b/pluginopiekabc/opieaddressee.cpp
new file mode 100644
index 0000000..3325152
--- a/dev/null
+++ b/pluginopiekabc/opieaddressee.cpp
@@ -0,0 +1,21 @@
+#include <stdio.h>
+#include "opieaddressee.h"
+
+OpieAddressee::OpieAddressee(const OContact & ocontact) {
+ setOContact(ocontact);
+}
+
+OpieAddressee::OpieAddressee() {
+ empty = true;
+}
+
+void OpieAddressee::setOContact(const OContact & ocontact) {
+ contact = ocontact;
+ QString id;
+ id.setNum(contact.uid());
+ fName = contact.lastName() + ", " + contact.firstName();
+ rName = contact.fullName();
+ pEmail = contact.defaultEmail();
+ empty = false;
+}
+