1
/***************************************************************************
2
* Author : Mathieu Leduc-Hamel mathieu.leduc-hamel@savoirfairelinux.com *
3
* Emmanuel Lepage Vallee <emmanuel.lepage@savoirfairelinux.com>*
5
* This program is free software; you can redistribute it and/or modify *
6
* it under the terms of the GNU General Public License as published by *
7
* the Free Software Foundation; either version 3 of the License, or *
8
* (at your option) any later version. *
10
* This program is distributed in the hope that it will be useful, *
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13
* GNU General Public License for more details. *
15
* You should have received a copy of the GNU General Public License *
16
* along with this program; if not, write to the *
17
* Free Software Foundation, Inc., *
18
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
19
**************************************************************************/
21
#ifndef CONTACTITEMWIDGET_H
22
#define CONTACTITEMWIDGET_H
24
#include <QtGui/QWidget>
25
#include "lib/Contact.h"
29
class QTreeWidgetItem;
43
///@class ContactItemWidget Item for the contact tree
44
class ContactItemWidget : public QWidget
49
ContactItemWidget(QWidget* parent =0);
53
KABC::Addressee* contact() const;
54
const QString& getContactName() const;
55
PhoneNumbers getCallNumbers() const;
56
const QString& getOrganization() const;
57
const QString& getEmail() const;
58
QPixmap* getPicture() const;
59
QTreeWidgetItem* getItem() const;
60
Contact* getContact() const;
63
void setContact ( Contact* contact );
64
void setItem ( QTreeWidgetItem* item );
67
static const char * callStateIcons[12];
71
Contact* m_pContactKA ;
73
QLabel* m_pContactNameL ;
74
QLabel* m_pCallNumberL ;
75
QLabel* m_pOrganizationL;
77
QTreeWidgetItem* m_pItem ;
80
KAction* m_pCallAgain ;
81
KAction* m_pEditContact ;
84
KAction* m_pAddPhone ;
85
KAction* m_pBookmark ;
92
void showContext(const QPoint& pos);
101
#endif // CALLTREE_ITEM_H