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 class KPIMIDENTITIES_EXPORT IdentityCombo : public QComboBox
00045 {
00046 Q_OBJECT
00047 public:
00048 explicit IdentityCombo( IdentityManager *manager, QWidget *parent=0 );
00049
00050 ~IdentityCombo();
00051 QString currentIdentityName() const;
00052 uint currentIdentity() const;
00053 void setCurrentIdentity( const QString &identityName );
00054 void setCurrentIdentity( const Identity &identity );
00055 void setCurrentIdentity( uint uoid );
00056
00057 Q_SIGNALS:
00058
00067 void identityChanged( uint uoid );
00068
00069 public Q_SLOTS:
00073 void slotIdentityManagerChanged();
00074
00075 protected Q_SLOTS:
00076 void slotEmitChanged( int );
00077
00078 protected:
00079 void reloadCombo();
00080 void reloadUoidList();
00081 QList<uint> mUoidList;
00082 IdentityManager *mIdentityManager;
00083
00084 private:
00085
00086 class Private;
00087 Private *const d;
00088
00089 };
00090
00091 }
00092
00093 #endif