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
**************************************************************************/
23
#ifndef CALLTREE_ITEM_H
24
#define CALLTREE_ITEM_H
26
#include <QtCore/QVector>
27
#include <QtCore/QList>
28
#include <QtGui/QWidget>
40
class TranslucentButtons;
42
///@class CallTreeItem Widget for the central call treeview
43
class CallTreeItem : public QWidget
48
CallTreeItem(QWidget* parent =0);
55
void setCall(Call *call);
58
static const char* callStateIcons[12];
67
QLabel* m_pCallNumberL;
68
QLabel* m_pTransferPrefixL;
69
QLabel* m_pTransferNumberL;
72
QLabel* m_pHistoryPeerL;
73
TranslucentButtons* m_pBtnConf;
74
TranslucentButtons* m_pBtnTrans;
78
virtual void dragEnterEvent ( QDragEnterEvent *e );
79
virtual void dragMoveEvent ( QDragMoveEvent *e );
80
virtual void dragLeaveEvent ( QDragLeaveEvent *e );
81
virtual void resizeEvent ( QResizeEvent *e );
82
virtual void dropEvent ( QDropEvent *e );
85
void transferEvent(QMimeData* data);
86
void conversationEvent(QMimeData* data);
95
void showChilds(CallTreeItem*);
96
void askTransfer(Call*);
97
void transferDropEvent(Call*,QMimeData*);
98
void conversationDropEvent(Call*,QMimeData*);
101
#endif // CALLTREE_ITEM_H