From b9aad1f15dc600e4dbe4c62d3fcced6363188ba3 Mon Sep 17 00:00:00 2001 From: zautrix Date: Sat, 26 Jun 2004 19:01:18 +0000 Subject: Initial revision --- (limited to 'pluginopiekabc/opieaddressee.cpp') 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 +#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; +} + -- cgit v0.9.0.2