2
This file is part of KContactManager.
4
Copyright (c) 2009 Tobias Koenig <tokoe@kde.org>
6
This program is free software; you can redistribute it and/or modify
7
it under the terms of the GNU General Public License as published by
8
the Free Software Foundation; either version 2 of the License, or
9
(at your option) any later version.
11
This program is distributed in the hope that it will be useful,
12
but WITHOUT ANY WARRANTY; without even the implied warranty of
13
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
GNU General Public License for more details.
16
You should have received a copy of the GNU General Public License along
17
with this program; if not, write to the Free Software Foundation, Inc.,
18
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21
#ifndef CONTACTGROUPEDITORDIALOG_H
22
#define CONTACTGROUPEDITORDIALOG_H
28
class ContactGroupEditor;
31
class QAbstractItemModel;
33
class ContactGroupEditorDialog : public KDialog
40
CreateMode, ///< Creates a new contact group
41
EditMode ///< Edits an existing contact group
45
* Creates a new contact group editor dialog.
47
* @param mode The mode of the dialog.
48
* @param collectionModel The collection model.
49
* @param parent The parent widget of the dialog.
51
ContactGroupEditorDialog( Mode mode, QAbstractItemModel *collectionModel, QWidget *parent = 0 );
54
* Destroys the contact group editor dialog.
56
~ContactGroupEditorDialog();
59
* Sets the contact @p group to edit when in EditMode.
61
void setContactGroup( const Akonadi::Item &group );
65
* This signal is emitted whenever a contact group was updated or stored.
67
* @param group The contact group.
69
void contactGroupStored( const Akonadi::Item &group );
72
virtual void slotButtonClicked( int button );
75
Akonadi::ContactGroupEditor *mEditor;