1
/***************************************************************************
2
* Copyright (C) 2009-2012 by Savoir-Faire Linux *
3
* Author : Jérémy Quentin <jeremy.quentin@savoirfairelinux.com> *
4
* Emmanuel Lepage Vallee <emmanuel.lepage@savoirfairelinux.com>*
6
* This program is free software; you can redistribute it and/or modify *
7
* it under the terms of the GNU General Public License as published by *
8
* the Free Software Foundation; either version 3 of the License, or *
9
* (at your option) any later version. *
11
* This program is distributed in the hope that it will be useful, *
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
14
* GNU General Public License for more details. *
16
* You should have received a copy of the GNU General Public License *
17
* along with this program; if not, write to the *
18
* Free Software Foundation, Inc., *
19
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
20
**************************************************************************/
27
class QListWidgetItem;
40
///@class Contact Abstract version of a contact
41
class LIB_EXPORT Contact : public QObject{
46
PhoneNumber(QString number, QString type)
47
: m_Number(number),m_Type(type){}
48
QString& getNumber() {
60
typedef QList<Contact::PhoneNumber*> PhoneNumbers;
64
QString m_SecondName ;
68
QString m_FormattedName ;
69
QString m_PreferredEmail ;
70
QString m_Organization ;
73
PhoneNumbers m_Numbers ;
76
//Constructors & Destructors
79
virtual void initItem();
82
virtual PhoneNumbers getPhoneNumbers() const;
83
virtual const QString& getNickName() const;
84
virtual const QString& getFirstName() const;
85
virtual const QString& getSecondName() const;
86
virtual const QString& getFormattedName() const;
87
virtual const QString& getOrganization() const;
88
virtual const QString& getUid() const;
89
virtual const QString& getPreferredEmail() const;
90
virtual const QPixmap* getPhoto() const;
91
virtual const QString& getType() const;
94
virtual void setPhoneNumbers (PhoneNumbers );
95
virtual void setFormattedName (const QString& name );
96
virtual void setNickName (const QString& name );
97
virtual void setFirstName (const QString& name );
98
virtual void setFamilyName (const QString& name );
99
virtual void setOrganization (const QString& name );
100
virtual void setPreferredEmail (const QString& name );
101
virtual void setUid (const QString& id );
102
virtual void setPhoto (QPixmap* photo );
105
virtual void initItemWidget();
108
typedef Contact::PhoneNumbers PhoneNumbers;