• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • KDE-PIM Libraries
  • Sitemap
  • Contact Us
 

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   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       //@cond PRIVATE
00086       class Private;
00087       Private *const d;
00088       //@endcond
00089   };
00090 
00091 }
00092 
00093 #endif

kpimidentities

Skip menu "kpimidentities"
  • Main Page
  • Alphabetical List
  • Class List
  • File List
  • Class Members

KDE-PIM Libraries

Skip menu "KDE-PIM Libraries"
  • akonadi
  • kabc
  • kblog
  • kcal
  • kimap
  • kioslave
  •   imap4
  •   mbox
  • kldap
  • kmime
  • kpimidentities
  •   richtextbuilders
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
Generated for KDE-PIM Libraries by doxygen 1.5.6
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal