Akonadi Contacts

contactgroupeditordialog.h
1 /*
2  This file is part of Akonadi Contact.
3 
4  SPDX-FileCopyrightText: 2009 Tobias Koenig <[email protected]>
5 
6  SPDX-License-Identifier: LGPL-2.0-or-later
7 */
8 
9 #ifndef AKONADI_CONTACTGROUPEDITORDIALOG_H
10 #define AKONADI_CONTACTGROUPEDITORDIALOG_H
11 
12 #include "akonadi-contact_export.h"
13 
14 #include <QDialog>
15 
16 namespace Akonadi {
17 class Item;
18 class Collection;
19 class ContactGroupEditor;
20 
59 class AKONADI_CONTACT_EXPORT ContactGroupEditorDialog : public QDialog
60 {
61  Q_OBJECT
62 
63 public:
67  enum Mode {
69  EditMode
70  };
71 
78  explicit ContactGroupEditorDialog(Mode mode, QWidget *parent = nullptr);
79 
84 
88  void setContactGroup(const Akonadi::Item &group);
89 
94  void setDefaultAddressBook(const Akonadi::Collection &addressbook);
95 
99  Q_REQUIRED_RESULT ContactGroupEditor *editor() const;
100 
101  void reject() override;
102 Q_SIGNALS:
108  void contactGroupStored(const Akonadi::Item &group);
109 
110 private:
111  void slotAccepted();
112 
113  //@cond PRIVATE
114  class Private;
115  Private *const d;
116  //@endcond
117 };
118 }
119 
120 #endif
A dialog for creating or editing a contact group in Akonadi.
An widget to edit contact groups in Akonadi.
Mode
Describes the mode of the contact group editor.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Fri Nov 27 2020 23:10:51 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.