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