1
/***************************************************************************
2
* Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). *
3
* All rights reserved. *
4
* Contact: Nokia Corporation (qt-info@nokia.com) *
5
* Author : Mathieu Leduc-Hamel mathieu.leduc-hamel@savoirfairelinux.com *
6
* Emmanuel Lepage Vallee <emmanuel.lepage@savoirfairelinux.com>*
8
* This program is free software; you can redistribute it and/or modify *
9
* it under the terms of the GNU General Public License as published by *
10
* the Free Software Foundation; either version 3 of the License, or *
11
* (at your option) any later version. *
13
* This program is distributed in the hope that it will be useful, *
14
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
15
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
16
* GNU General Public License for more details. *
18
* You should have received a copy of the GNU General Public License *
19
* along with this program; if not, write to the *
20
* Free Software Foundation, Inc., *
21
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
22
***************************************************************************/
25
* http://doc.trolltech.com/4.5/itemviews-editabletreemodel.html
28
#ifndef HISTORYTREE_ITEM_H
29
#define HISTORYTREE_ITEM_H
31
#include <QtGui/QWidget>
37
class QTreeWidgetItem;
44
///@class HistoryTreeItem Items for the history dock
45
class HistoryTreeItem : public QWidget
50
HistoryTreeItem(QWidget* parent =0, QString phone = "");
58
QString getPhoneNumber ();
59
QTreeWidgetItem* getItem ();
62
void setCall (Call* call);
63
void setItem (QTreeWidgetItem* item);
66
static const char * callStateIcons[12];
73
QLabel* m_pPeerNameL ;
74
QLabel* m_pCallNumberL ;
76
QLabel* m_pDurationL ;
78
KAction* m_pCallAgain ;
79
KAction* m_pAddContact ;
80
KAction* m_pAddToContact ;
83
KAction* m_pBookmark ;
89
QString m_PhoneNumber ;
91
QTreeWidgetItem* m_pItem;
97
void showContext(const QPoint& pos);
104
bool getContactInfo(QString phone);
110
#endif // CALLTREE_ITEM_H