summaryrefslogtreecommitdiffabout
path: root/pluginopiekabc/opieaddressee.cpp
blob: 33251525eaa61275b79d409415f5480daa2ce403 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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;
}