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 void slotUpdateTooltip( uint uoid );
00079
00080 protected:
00081 void reloadCombo();
00082 void reloadUoidList();
00083 QList<uint> mUoidList;
00084 IdentityManager *mIdentityManager;
00085
00086 private:
00087
00088 class Private;
00089 Private *const d;
00090
00091 };
00092
00093 }
00094
00095 #endif