akonadi/contact
contactgroupeditordialog.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef AKONADI_CONTACTGROUPEDITORDIALOG_H
00023 #define AKONADI_CONTACTGROUPEDITORDIALOG_H
00024
00025 #include "akonadi-contact_export.h"
00026
00027 #include <kdialog.h>
00028
00029 class QAbstractItemModel;
00030
00031 namespace Akonadi {
00032
00033 class Item;
00034 class Collection;
00035 class ContactGroupEditor;
00036
00075 class AKONADI_CONTACT_EXPORT ContactGroupEditorDialog : public KDialog
00076 {
00077 Q_OBJECT
00078
00079 public:
00083 enum Mode
00084 {
00085 CreateMode,
00086 EditMode
00087 };
00088
00095 explicit ContactGroupEditorDialog( Mode mode, QWidget *parent = 0 );
00096
00100 ~ContactGroupEditorDialog();
00101
00105 void setContactGroup( const Akonadi::Item &group );
00106
00111 void setDefaultAddressBook( const Akonadi::Collection &addressbook );
00112
00116 ContactGroupEditor* editor() const;
00117
00118 Q_SIGNALS:
00124 void contactGroupStored( const Akonadi::Item &group );
00125
00126 protected Q_SLOTS:
00127 virtual void slotButtonClicked( int button );
00128
00129 private:
00130
00131 class Private;
00132 Private* const d;
00133
00134 };
00135
00136 }
00137
00138 #endif