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

kmail

  • sources
  • kde-4.12
  • kdepim
  • kmail
  • identity
identitylistview.h
Go to the documentation of this file.
1 /* -*- c++ -*-
2  identitylistview.h
3 
4  This file is part of KMail, the KDE mail client.
5  Copyright (c) 2002 Marc Mutz <mutz@kde.org>
6  2007 Mathias Soeken <msoeken@tzi.de>
7 
8  KMail is free software; you can redistribute it and/or modify it
9  under the terms of the GNU General Public License, version 2, as
10  published by the Free Software Foundation.
11 
12  KMail is distributed in the hope that it will be useful, but
13  WITHOUT ANY WARRANTY; without even the implied warranty of
14  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15  General Public License for more details.
16 
17  You should have received a copy of the GNU General Public License
18  along with this program; if not, write to the Free Software
19  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20 
21  In addition, as a special exception, the copyright holders give
22  permission to link the code of this program with any edition of
23  the Qt library by Trolltech AS, Norway (or with modified versions
24  of Qt that use the same license as Qt), and distribute linked
25  combinations including the two. You must obey the GNU General
26  Public License in all respects for all of the code used other than
27  Qt. If you modify this file, you may extend this exception to
28  your version of the file, but you are not obligated to do so. If
29  you do not wish to do so, delete this exception statement from
30  your version.
31 */
32 
33 #ifndef __KMAIL_IDENTITYLISTVIEW_H__
34 #define __KMAIL_IDENTITYLISTVIEW_H__
35 
36 #include <QTreeWidget>
37 #include <QTreeWidgetItem>
38 
39 namespace KPIMIdentities {
40 class Identity;
41 class IdentityManager;
42 }
43 
44 namespace KMail {
45 
46 class IdentityListView;
47 
51 class IdentityListViewItem : public QTreeWidgetItem {
52 public:
53  IdentityListViewItem( IdentityListView *parent,
54  const KPIMIdentities::Identity &ident );
55  IdentityListViewItem( IdentityListView *parent, QTreeWidgetItem *after,
56  const KPIMIdentities::Identity &ident );
57 
58  uint uoid() const { return mUOID; }
59  KPIMIdentities::Identity &identity() const;
60  virtual void setIdentity( const KPIMIdentities::Identity &ident );
61  void redisplay();
62 
63 private:
64  void init( const KPIMIdentities::Identity &ident );
65  uint mUOID;
66 };
67 
71 class IdentityListView : public QTreeWidget {
72  Q_OBJECT
73 public:
74  explicit IdentityListView( QWidget *parent = 0 );
75  virtual ~IdentityListView() {}
76 
77 public:
78  void editItem( QTreeWidgetItem *item, int column = 0 );
79  KPIMIdentities::IdentityManager *identityManager() const;
80  void setIdentityManager( KPIMIdentities::IdentityManager* im );
81 
82 protected slots:
83  void commitData( QWidget *editor );
84 
85 public slots:
86  void slotCustomContextMenuRequested( const QPoint& );
87 
88 signals:
89  void contextMenu( KMail::IdentityListViewItem *, const QPoint& );
90  void rename( KMail::IdentityListViewItem *, const QString& );
91 
92 protected:
93 #ifndef QT_NO_DRAGANDDROP
94  void startDrag ( Qt::DropActions supportedActions );
95 #endif
96 
97 private:
98  KPIMIdentities::IdentityManager* mIdentityManager;
99 };
100 
101 
102 } // namespace KMail
103 
104 #endif // __KMAIL_IDENTITYLISTVIEW_H__
KMail::IdentityListViewItem::IdentityListViewItem
IdentityListViewItem(IdentityListView *parent, const KPIMIdentities::Identity &ident)
Definition: identitylistview.cpp:59
KMail::IdentityListView::IdentityListView
IdentityListView(QWidget *parent=0)
Definition: identitylistview.cpp:119
KMail::IdentityListView::~IdentityListView
virtual ~IdentityListView()
Definition: identitylistview.h:75
KMail::IdentityListView::commitData
void commitData(QWidget *editor)
Definition: identitylistview.cpp:161
KMail::IdentityListView::slotCustomContextMenuRequested
void slotCustomContextMenuRequested(const QPoint &)
Definition: identitylistview.cpp:176
QTreeWidget
KMail::IdentityListView::contextMenu
void contextMenu(KMail::IdentityListViewItem *, const QPoint &)
QWidget
KMail::IdentityListView::identityManager
KPIMIdentities::IdentityManager * identityManager() const
Definition: identitylistview.cpp:205
KMail::IdentityListViewItem::identity
KPIMIdentities::Identity & identity() const
Definition: identitylistview.cpp:74
KMail::IdentityListViewItem::uoid
uint uoid() const
Definition: identitylistview.h:58
KMail::IdentityListView::setIdentityManager
void setIdentityManager(KPIMIdentities::IdentityManager *im)
Definition: identitylistview.cpp:211
KMail::IdentityListView::editItem
void editItem(QTreeWidgetItem *item, int column=0)
Definition: identitylistview.cpp:143
KMail::IdentityListView::startDrag
void startDrag(Qt::DropActions supportedActions)
Definition: identitylistview.cpp:190
KMail::IdentityListViewItem
A QWidgetTreeItem for use in IdentityListView.
Definition: identitylistview.h:51
QTreeWidgetItem
KMail::IdentityListView::rename
void rename(KMail::IdentityListViewItem *, const QString &)
KMail::IdentityListView
A QTreeWidget for KPIMIdentities::Identity.
Definition: identitylistview.h:71
KMail::IdentityListViewItem::setIdentity
virtual void setIdentity(const KPIMIdentities::Identity &ident)
Definition: identitylistview.cpp:81
KMail::IdentityListViewItem::redisplay
void redisplay()
Definition: identitylistview.cpp:87
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:58:51 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kmail

Skip menu "kmail"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdepim API Reference

Skip menu "kdepim API Reference"
  • akonadi_next
  • akregator
  • blogilo
  • calendarsupport
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt2
  • kjots
  • kleopatra
  • kmail
  • knode
  • knotes
  • kontact
  • korgac
  • korganizer
  • ktimetracker
  • libkdepim
  • libkleo
  • libkpgp
  • mailcommon
  • messagelist
  • messageviewer

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