kpimidentities
identitycombo.h
Go to the documentation of this file.
00001 /* 00002 Copyright (c) 2002 Marc Mutz <mutz@kde.org> 00003 00004 This library is free software; you can redistribute it and/or modify it 00005 under the terms of the GNU Library General Public License as published by 00006 the Free Software Foundation; either version 2 of the License, or (at your 00007 option) any later version. 00008 00009 This library is distributed in the hope that it will be useful, but WITHOUT 00010 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 00011 FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public 00012 License for more details. 00013 00014 You should have received a copy of the GNU Library General Public License 00015 along with this library; see the file COPYING.LIB. If not, write to the 00016 Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 00017 02110-1301, USA. 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 //KDE5: subclass from a KComboBox 00045 class KPIMIDENTITIES_EXPORT IdentityCombo : public QComboBox //krazy:exclude=qclasses 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 ); 00061 IdentityManager* identityManager() const; 00062 00063 Q_SIGNALS: 00064 00073 void identityChanged( uint uoid ); 00074 00075 public Q_SLOTS: 00079 void slotIdentityManagerChanged(); 00080 00081 protected Q_SLOTS: 00082 void slotEmitChanged( int ); 00083 void slotUpdateTooltip( uint uoid ); 00084 00085 protected: 00086 void reloadCombo(); 00087 void reloadUoidList(); 00088 QList<uint> mUoidList; 00089 IdentityManager *mIdentityManager; 00090 00091 private: 00092 //@cond PRIVATE 00093 class Private; 00094 Private *const d; 00095 //@endcond 00096 }; 00097 00098 } 00099 00100 #endif
This file is part of the KDE documentation.
Documentation copyright © 1996-2012 The KDE developers.
Generated on Thu May 10 2012 22:20:45 by doxygen 1.8.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2012 The KDE developers.
Generated on Thu May 10 2012 22:20:45 by doxygen 1.8.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.