summaryrefslogtreecommitdiffabout
path: root/plugindtmkabc/qtopiaaddressee.cpp
blob: e8e49f5a97a519f932b81b57c7bde2883f400998 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#include "qtopiaaddressee.h"

QtopiaAddressee::QtopiaAddressee(const QStringList& contact) {
  setPimContact(contact);
}

QtopiaAddressee::QtopiaAddressee() {
  empty = true;
}

void QtopiaAddressee::setPimContact(const QStringList& contact) {
    if ( contact[40].isEmpty() ) 
        id = contact[0];
    else
        id = contact[40];
    fName = contact[2];
    rName = contact[2];
    pEmail = contact[40];
    empty = false;
    mails.clear();
    mobilehomephone = contact[30] ;
    workphone = contact[16];
    homephone = contact[31];
    //mails = pimContact.emailList();
}