~noskcaj/ubuntu/saucy/sflphone/merge-1.2.3-2

« back to all changes in this revision

Viewing changes to kde/src/widgets/CallTreeItem.h

  • Committer: Package Import Robot
  • Author(s): Mark Purcell
  • Date: 2012-05-19 21:46:37 UTC
  • mfrom: (1.1.7)
  • Revision ID: package-import@ubuntu.com-20120519214637-la8rbrford5kj6m3
Tags: 1.1.0-1
* New upstream release 
  - Fixes "FTBFS with libccrtp-dev/2.0.2 from experimental" (Closes: #663282)
* NEW Maintainer: Debian VoIP Team - Thanks Francois for your work.
  - (Closes: #665789: O: sflphone -- SIP and IAX2 compatible VoIP phone)
* Added Build-Depends: libdbus-c++-bin
* Add gcc47-fixes.patch

Show diffs side-by-side

added added

removed removed

Lines of Context:
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>*
7
 
 *                                                                         *
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.                                   *
12
 
 *                                                                         *
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.                          *
17
 
 *                                                                         *
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
25
 
 
26
 
#include <QtCore/QVector>
27
 
#include <QtCore/QList>
28
 
#include <QtGui/QWidget>
29
 
 
30
 
//Qt
31
 
class QLabel;
32
 
class QPushButton;
33
 
class QMimeData;
34
 
 
35
 
//KDE
36
 
class KIcon;
37
 
 
38
 
//SFLPhone
39
 
class Call;
40
 
class TranslucentButtons;
41
 
 
42
 
///@class CallTreeItem Widget for the central call treeview
43
 
class CallTreeItem : public QWidget
44
 
{
45
 
   Q_OBJECT
46
 
 public:
47
 
    //Constructor
48
 
    CallTreeItem(QWidget* parent =0);
49
 
    ~CallTreeItem();
50
 
 
51
 
    //Getters
52
 
    Call* call() const;
53
 
 
54
 
    //Setters
55
 
    void setCall(Call *call);
56
 
 
57
 
    //Const
58
 
    static const char* callStateIcons[12];
59
 
 
60
 
 private:
61
 
    //Attributes
62
 
    Call*    m_pItemCall;
63
 
    bool     m_Init;
64
 
    bool     m_isHover;
65
 
    QLabel*  m_pIconL;
66
 
    QLabel*  m_pPeerL;
67
 
    QLabel*  m_pCallNumberL;
68
 
    QLabel*  m_pTransferPrefixL;
69
 
    QLabel*  m_pTransferNumberL;
70
 
    QLabel*  m_pCodecL;
71
 
    QLabel*  m_pSecureL;
72
 
    QLabel*  m_pHistoryPeerL;
73
 
    TranslucentButtons* m_pBtnConf;
74
 
    TranslucentButtons* m_pBtnTrans;
75
 
 
76
 
  protected:
77
 
    //Reimplementation
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 );
83
 
 
84
 
private slots:
85
 
   void transferEvent(QMimeData* data);
86
 
   void conversationEvent(QMimeData* data);
87
 
   void hide();
88
 
 
89
 
public slots:
90
 
   void updated();
91
 
 
92
 
signals:
93
 
   void over(Call*);
94
 
   void changed();
95
 
   void showChilds(CallTreeItem*);
96
 
   void askTransfer(Call*);
97
 
   void transferDropEvent(Call*,QMimeData*);
98
 
   void conversationDropEvent(Call*,QMimeData*);
99
 
 };
100
 
 
101
 
#endif // CALLTREE_ITEM_H