• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdenetwork API Reference
  • KDE Home
  • Contact Us
 

kopete/kopete

  • sources
  • kde-4.12
  • kdenetwork
  • kopete
  • kopete
  • config
  • accounts
accounttreewidget.h
Go to the documentation of this file.
1 /*
2  accounttreewidget.h - Kopete account tree widget
3 
4  Copyright (c) 2009 by Roman Jarosz <kedgedev@centrum.cz>
5  Kopete (c) 2009 by the Kopete developers <kopete-devel@kde.org>
6 
7  *************************************************************************
8  * *
9  * This program is free software; you can redistribute it and/or modify *
10  * it under the terms of the GNU General Public License as published by *
11  * the Free Software Foundation; either version 2 of the License, or *
12  * (at your option) any later version. *
13  * *
14  *************************************************************************
15 */
16 #ifndef ACCOUNTTREEWIDGET_H
17 #define ACCOUNTTREEWIDGET_H
18 
19 #include <QTreeWidget>
20 #include <QPointer>
21 
22 #include "kopeteaccount.h"
23 
24 class AccountTreeWidget : public QTreeWidget
25 {
26  Q_OBJECT
27 public:
28  AccountTreeWidget( QWidget *parent = 0 );
29 
30 signals:
31  void itemPositionChanged();
32 
33 protected:
34  void dragEnterEvent( QDragEnterEvent *event );
35  void dropEvent( QDropEvent *event );
36 
37 };
38 
39 class KopeteAccountLVI : public QTreeWidgetItem
40 {
41 public:
42  KopeteAccountLVI( Kopete::Account *a, QTreeWidgetItem* parent) : QTreeWidgetItem(parent) , m_account(a) { }
43  Kopete::Account *account() { return m_account; }
44 
45 private:
46  //need to be guarded because some accounts may be linked (that's the case of jabber transports)
47  QPointer<Kopete::Account> m_account;
48 };
49 
50 class KopeteIdentityLVI : public QTreeWidgetItem
51 {
52 public:
53  KopeteIdentityLVI( Kopete::Identity *i, QTreeWidget* parent) : QTreeWidgetItem(parent), m_identity (i) { }
54  Kopete::Identity *identity() { return m_identity; }
55 
56 private:
57  Kopete::Identity *m_identity;
58 };
59 
60 #endif
QTreeWidget
QWidget
KopeteIdentityLVI
Definition: accounttreewidget.h:50
AccountTreeWidget::itemPositionChanged
void itemPositionChanged()
AccountTreeWidget::dragEnterEvent
void dragEnterEvent(QDragEnterEvent *event)
Definition: accounttreewidget.cpp:27
AccountTreeWidget
Definition: accounttreewidget.h:24
KopeteIdentityLVI::identity
Kopete::Identity * identity()
Definition: accounttreewidget.h:54
QTreeWidgetItem
KopeteIdentityLVI::KopeteIdentityLVI
KopeteIdentityLVI(Kopete::Identity *i, QTreeWidget *parent)
Definition: accounttreewidget.h:53
KopeteAccountLVI::KopeteAccountLVI
KopeteAccountLVI(Kopete::Account *a, QTreeWidgetItem *parent)
Definition: accounttreewidget.h:42
AccountTreeWidget::AccountTreeWidget
AccountTreeWidget(QWidget *parent=0)
Definition: accounttreewidget.cpp:22
AccountTreeWidget::dropEvent
void dropEvent(QDropEvent *event)
Definition: accounttreewidget.cpp:56
KopeteAccountLVI
Definition: accounttreewidget.h:39
KopeteAccountLVI::account
Kopete::Account * account()
Definition: accounttreewidget.h:43
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:53:40 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kopete/kopete

Skip menu "kopete/kopete"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdenetwork API Reference

Skip menu "kdenetwork API Reference"
  • kget
  • kopete
  •   kopete
  •   libkopete
  • krdc
  • krfb

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal