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

kaddressbook

  • sources
  • kde-4.14
  • kdepim
  • kaddressbook
contactselectionwidget.h
Go to the documentation of this file.
1 /*
2  Copyright (c) 2009 Tobias Koenig <tokoe@kde.org>
3 
4  This library is free software; you can redistribute it and/or modify it
5  under the terms of the GNU Library General Public License as published by
6  the Free Software Foundation; either version 2 of the License, or (at your
7  option) any later version.
8 
9  This library is distributed in the hope that it will be useful, but WITHOUT
10  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11  FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
12  License for more details.
13 
14  You should have received a copy of the GNU Library General Public License
15  along with this library; see the file COPYING.LIB. If not, write to the
16  Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17  02110-1301, USA.
18 */
19 
20 #ifndef CONTACTSELECTIONWIDGET_H
21 #define CONTACTSELECTIONWIDGET_H
22 
23 #include "contactlist.h"
24 
25 #include <KABC/Addressee>
26 #include <Akonadi/Item>
27 #include <QWidget>
28 
29 class QCheckBox;
30 class QItemSelectionModel;
31 class QLabel;
32 class QRadioButton;
33 
34 namespace Akonadi {
35 class Collection;
36 class CollectionComboBox;
37 }
38 
44 class ContactSelectionWidget : public QWidget
45 {
46  Q_OBJECT
47 
48 public:
55  explicit ContactSelectionWidget( QItemSelectionModel *selectionModel, QWidget *parent = 0 );
56 
60  void setMessageText( const QString &message );
61 
65  void setDefaultAddressBook( const Akonadi::Collection &addressBook );
66 
70  ContactList selectedContacts() const;
71 
72  void setAddGroupContact(bool addGroupContact);
73 private:
74  void initGui();
75 
76  ContactList collectAllContacts() const;
77  ContactList collectSelectedContacts() const;
78  ContactList collectAddressBookContacts() const;
79 
80  QItemSelectionModel *mSelectionModel;
81 
82  QLabel *mMessageLabel;
83  QRadioButton *mAllContactsButton;
84  QRadioButton *mSelectedContactsButton;
85  QRadioButton *mAddressBookContactsButton;
86  Akonadi::CollectionComboBox *mAddressBookSelection;
87  QCheckBox *mAddressBookSelectionRecursive;
88  bool mAddContactGroup;
89 };
90 
91 #endif
QWidget
ContactSelectionWidget::setDefaultAddressBook
void setDefaultAddressBook(const Akonadi::Collection &addressBook)
Sets the default addressbook.
Definition: contactselectionwidget.cpp:68
ContactSelectionWidget::setAddGroupContact
void setAddGroupContact(bool addGroupContact)
Definition: contactselectionwidget.cpp:87
ContactSelectionWidget::setMessageText
void setMessageText(const QString &message)
Sets the message text.
Definition: contactselectionwidget.cpp:63
ContactSelectionWidget
A widget to select a group of contacts.
Definition: contactselectionwidget.h:44
QCheckBox
ContactList
Definition: contactlist.h:27
ContactSelectionWidget::ContactSelectionWidget
ContactSelectionWidget(QItemSelectionModel *selectionModel, QWidget *parent=0)
Creates a new contact selection widget.
Definition: contactselectionwidget.cpp:40
QString
contactlist.h
ContactSelectionWidget::selectedContacts
ContactList selectedContacts() const
Returns the list of selected contacts.
Definition: contactselectionwidget.cpp:73
QRadioButton
QItemSelectionModel
QLabel
QObject::parent
QObject * parent() const
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:32:34 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kaddressbook

Skip menu "kaddressbook"
  • 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
  • pimprint

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