kopete/kopete
accountidentitydialog.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
00018 #ifndef ACCOUNTIDENTITYDIALOG_H
00019 #define ACCOUNTIDENTITYDIALOG_H
00020
00021 #include <KDialog>
00022 #include <kopete_export.h>
00023
00024 namespace Kopete
00025 {
00026 class Identity;
00027 class Account;
00028 }
00029
00035 class KOPETE_IDENTITY_EXPORT AccountIdentityDialog : public KDialog
00036 {
00037 Q_OBJECT
00038
00039 public:
00047 explicit AccountIdentityDialog( QWidget *parent = 0 );
00048 ~AccountIdentityDialog();
00049
00053 void setAccount(Kopete::Account *account);
00054
00058 void setAccounts(QList<Kopete::Account*> accountList);
00059
00063 void setMessage(const QString &text);
00064
00068 void setHiddenIdentity(Kopete::Identity *ident);
00069
00087 static bool changeAccountIdentity( QWidget *parent, Kopete::Account *account,
00088 Kopete::Identity *hidden_ident = 0,
00089 const QString &message = QString() );
00102 static bool changeAccountIdentity( QWidget *parent, QList<Kopete::Account*> accountList,
00103 Kopete::Identity *hidden_ident = 0,
00104 const QString &message = QString() );
00105
00106 private slots:
00107 void slotValidate();
00108 void slotIdentityListDoubleClicked();
00109 void slotLoadIdentities();
00110 void slotLoadAccounts();
00111
00112 protected slots:
00113 virtual void accept();
00114 virtual void reject();
00115
00116 private:
00117 class Private;
00118 Private *d;
00119 };
00120
00121 #endif
00122
00123
00124