kmail Library API Documentation

IdentityCombo Class Reference

A combo box that always shows the up-to-date identity list. More...

#include <identitycombo.h>

Inheritance diagram for IdentityCombo:

QComboBox List of all members.

Public Slots

void slotIdentityManagerChanged ()

Signals

void identityChanged (const QString &identityName)
void identityChanged (uint uoid)

Public Methods

 IdentityCombo (QWidget *parent=0, const char *name=0)
QString currentIdentityName () const
uint currentIdentity () const
void setCurrentIdentity (const QString &identityName)
void setCurrentIdentity (const KMIdentity &identity)
void setCurrentIdentity (uint uoid)

Protected Slots

void slotEmitChanged (int)

Protected Methods

void reloadCombo ()
void reloadUoidList ()

Protected Attributes

QValueList< uint > mUoidList

Detailed Description

A combo box that always shows the up-to-date identity list.

Author:
Marc Mutz <mutz@kde.org>

Definition at line 46 of file identitycombo.h.


Member Function Documentation

void IdentityCombo::identityChanged const QString   identityName [signal]
 

Deprecated:
Really emitted whenever the current identity changes. Either by user intervention or on setCurrentIdentity() or if the current identity disappears.

void IdentityCombo::identityChanged uint    uoid [signal]
 

Really emitted whenever the current identity changes.

Either by user intervention or on setCurrentIdentity() or if the current identity disappears.

You might also want to listen to IdentityManager::changed, IdentityManager::deleted and IdentityManager::added.

void IdentityCombo::slotIdentityManagerChanged   [slot]
 

Connected to IdentityManager::changed().

Reloads the list of identities.

Definition at line 109 of file identitycombo.cpp.

References QComboBox::currentItem(), QValueList< uint >::findIndex(), and QComboBox::setCurrentItem().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for kmail Library Version 3.2.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Sat May 1 11:37:35 2004 by doxygen 1.2.15 written by Dimitri van Heesch, © 1997-2003