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

kabc

  • 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
38namespace KABC {
39
43class 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
98class 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::AddresseeDialog
Dialog for selecting address book entries.
Definition: addresseedialog.h:99
KABC::AddresseeItem
Special ListViewItem, that is used by the AddresseeDialog.
Definition: addresseedialog.h:44
KABC::AddresseeItem::Columns
Columns
Type of column.
Definition: addresseedialog.h:50
KABC::AddresseeList
a QValueList of Addressee, with sorting functionality
Definition: addresseelist.h:289
KABC::Addressee
address book entry
Definition: addressee.h:79
KABC
Class that holds a Calendar Url (FBURL/CALADRURI/CALURI)
Definition: address.h:29
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Thu Jul 21 2022 00:00:00 by doxygen 1.9.5 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-4.14.10 API Reference

Skip menu "kdepimlibs-4.14.10 API Reference"
  • akonadi
  •   contact
  •   kmime
  •   socialutils
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmbox
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
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