kpimidentities
identitycombo.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
00030 #ifndef KPIMIDENTITIES_IDENTITYCOMBO_H
00031 #define KPIMIDENTITIES_IDENTITYCOMBO_H
00032
00033 #include "kpimidentities_export.h"
00034 #include <QtGui/QComboBox>
00035
00036 class QString;
00037
00038 namespace KPIMIdentities
00039 {
00040
00041 class IdentityManager;
00042 class Identity;
00043
00044
00045 class KPIMIDENTITIES_EXPORT IdentityCombo : public QComboBox
00046 {
00047 Q_OBJECT
00048 public:
00049 explicit IdentityCombo( IdentityManager *manager, QWidget *parent=0 );
00050
00051 ~IdentityCombo();
00052 QString currentIdentityName() const;
00053 uint currentIdentity() const;
00054 void setCurrentIdentity( const QString &identityName );
00055 void setCurrentIdentity( const Identity &identity );
00056 void setCurrentIdentity( uint uoid );
00057
00058 Q_SIGNALS:
00059
00068 void identityChanged( uint uoid );
00069
00070 public Q_SLOTS:
00074 void slotIdentityManagerChanged();
00075
00076 protected Q_SLOTS:
00077 void slotEmitChanged( int );
00078
00079 protected:
00080 void reloadCombo();
00081 void reloadUoidList();
00082 QList<uint> mUoidList;
00083 IdentityManager *mIdentityManager;
00084
00085 private:
00086
00087 class Private;
00088 Private *const d;
00089
00090 };
00091
00092 }
00093
00094 #endif