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

kabc

  • sources
  • kde-4.12
  • kdepimlibs
  • kabc
addresseedialog.h
1 /*
2  This file is part of libkabc.
3  Copyright (c) 2001 Cornelius Schumacher <schumacher@kde.org>
4 
5  This library is free software; you can redistribute it and/or
6  modify it under the terms of the GNU Library General Public
7  License as published by the Free Software Foundation; either
8  version 2 of the License, or (at your option) any later version.
9 
10  This library is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  Library General Public License for more details.
14 
15  You should have received a copy of the GNU Library General Public License
16  along with this library; see the file COPYING.LIB. If not, write to
17  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18  Boston, MA 02110-1301, USA.
19 */
20 
21 #ifndef KABC_ADDRESSEEDIALOG_H
22 #define KABC_ADDRESSEEDIALOG_H
23 
24 #include "kabc_export.h"
25 #ifndef KDEPIM_NO_KRESOURCES
26 #include "addressbook.h"
27 #else
28 #include "addressee.h"
29 #endif
30 
31 #include <kdialog.h>
32 #include <klineedit.h>
33 
34 #include <QtCore/QHash>
35 #include <QtCore/QString>
36 #include <QTreeWidgetItem>
37 
38 namespace KABC {
39 
43 class KABC_EXPORT AddresseeItem : public QTreeWidgetItem
44 {
45  public:
46 
50  enum Columns {
51  Name = 0,
52  Email = 1
53  };
54 
61  AddresseeItem( QTreeWidget *parent, const Addressee &addressee );
62 
66  ~AddresseeItem();
67 
71  Addressee addressee() const;
72 
76  virtual QString key( int column, bool ascending ) const;
77 
78  private:
79  class Private;
80  Private *const d;
81 
82  Q_DISABLE_COPY( AddresseeItem )
83 };
84 
98 class KABC_DEPRECATED_EXPORT AddresseeDialog : public KDialog
99 {
100  Q_OBJECT
101 
102  public:
109  explicit AddresseeDialog( QWidget *parent = 0, bool multiple = false );
110 
114  virtual ~AddresseeDialog();
115 
121  Addressee addressee() const;
122 
126  Addressee::List addressees() const;
127 
137  static Addressee getAddressee( QWidget *parent );
138 
148  static Addressee::List getAddressees( QWidget *parent );
149 
150  private:
151  class Private;
152  Private *const d;
153 
154  Q_PRIVATE_SLOT( d, void addressBookChanged() )
155  Q_PRIVATE_SLOT( d, void selectItem( const QString & ) )
156  Q_PRIVATE_SLOT( d, void updateEdit() )
157  Q_PRIVATE_SLOT( d, void addSelected( QTreeWidgetItem * ) )
158  Q_PRIVATE_SLOT( d, void removeSelected() )
159 };
160 
161 }
162 #endif
KABC::AddresseeItem
Special ListViewItem, that is used by the AddresseeDialog.
Definition: addresseedialog.h:43
KABC::AddresseeList
a QValueList of Addressee, with sorting functionality
Definition: addresseelist.h:288
KABC::AddresseeItem::Columns
Columns
Type of column.
Definition: addresseedialog.h:50
KABC::Addressee
address book entry
Definition: addressee.h:74
KABC::AddresseeDialog
Dialog for selecting address book entries.
Definition: addresseedialog.h:98
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:01:05 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kabc

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

kdepimlibs API Reference

Skip menu "kdepimlibs API Reference"
  • akonadi
  •   contact
  •   kmime
  •   socialutils
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kldap
  • kmbox
  • kmime
  • kpimidentities
  • kpimtextedit
  • kresources
  • ktnef
  • kxmlrpcclient
  • microblog

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