kopete/libkopete
contactaddednotifydialog.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef KOPETE_UICONTACTADDEDNOTIFYDIALOG_H
00018 #define KOPETE_UICONTACTADDEDNOTIFYDIALOG_H
00019
00020 #include <kdialog.h>
00021 #include "kopete_export.h"
00022
00023 namespace KABC {
00024 class Addressee;
00025 }
00026
00027 namespace Kopete {
00028
00029 class Group;
00030 class Account;
00031 class MetaContact;
00032
00033 namespace UI {
00034
00069 class KOPETE_EXPORT ContactAddedNotifyDialog : public KDialog
00070 {
00071 Q_OBJECT
00072 public:
00076 enum HideWidget
00077 {
00078 DefaultHide = 0x00,
00079 InfoButton = 0x01,
00080 AuthorizeCheckBox = 0x02,
00081 AddCheckBox = 0x04,
00082 AddGroupBox = 0x08
00083 };
00084 Q_DECLARE_FLAGS(HideWidgetOptions, HideWidget)
00085
00086
00097 explicit ContactAddedNotifyDialog(const QString& contactId, const QString& contactNick=QString::null,
00098 Kopete::Account *account=0L, const HideWidgetOptions &hide=DefaultHide);
00099
00103 ~ContactAddedNotifyDialog();
00104
00109 bool authorized() const;
00110
00115 bool added() const;
00116
00120 QString displayName() const;
00121
00127 Group* group() const;
00128
00129 public slots:
00130
00141 MetaContact *addContact() const;
00142
00143 signals:
00148 void applyClicked(const QString &contactId);
00149
00159 void infoClicked(const QString &contactId);
00160
00161
00162 private slots:
00163 void slotAddresseeSelected( const KABC::Addressee &);
00164 void slotInfoClicked();
00165 void slotFinished();
00166
00167 private:
00168 struct Private;
00169 Private *d;
00170 };
00171
00172 Q_DECLARE_OPERATORS_FOR_FLAGS( ContactAddedNotifyDialog::HideWidgetOptions )
00173
00174 }
00175 }
00176 #endif