#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;
}