libkpimidentities

#include <identitycombo.h>

Inherits TQComboBox.

Public Slots

void slotIdentityManagerChanged ()
 

Signals

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

Public Member Functions

 IdentityCombo (IdentityManager *manager, TQWidget *parent=0, const char *name=0)
 
TQString currentIdentityName () const
 
uint currentIdentity () const
 
void setCurrentIdentity (const TQString &identityName)
 
void setCurrentIdentity (const Identity &identity)
 
void setCurrentIdentity (uint uoid)
 

Protected Slots

void slotEmitChanged (int)
 

Protected Member Functions

void reloadCombo ()
 
void reloadUoidList ()
 

Protected Attributes

TQValueList< uint > mUoidList
 
IdentityManager * mIdentityManager
 

Detailed Description

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

Author
Marc Mutz mutz@.nosp@m.kde..nosp@m.org

Definition at line 51 of file identitycombo.h.

Constructor & Destructor Documentation

◆ IdentityCombo()

IdentityCombo::IdentityCombo ( IdentityManager *  manager,
TQWidget *  parent = 0,
const char *  name = 0 
)

Definition at line 46 of file identitycombo.cpp.

Member Function Documentation

◆ currentIdentity()

uint IdentityCombo::currentIdentity ( ) const

Definition at line 60 of file identitycombo.cpp.

◆ currentIdentityName()

TQString IdentityCombo::currentIdentityName ( ) const

Definition at line 56 of file identitycombo.cpp.

◆ identityChanged [1/2]

void KPIM::IdentityCombo::identityChanged ( const TQString &  identityName)
signal
Deprecated:
Really emitted whenever the current identity changes. Either by user intervention or on setCurrentIdentity() or if the current identity disappears.

◆ identityChanged [2/2]

void KPIM::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.

◆ reloadCombo()

void IdentityCombo::reloadCombo ( )
protected

Definition at line 92 of file identitycombo.cpp.

◆ reloadUoidList()

void IdentityCombo::reloadUoidList ( )
protected

Definition at line 101 of file identitycombo.cpp.

◆ setCurrentIdentity() [1/3]

void IdentityCombo::setCurrentIdentity ( const Identity identity)

Definition at line 64 of file identitycombo.cpp.

◆ setCurrentIdentity() [2/3]

void IdentityCombo::setCurrentIdentity ( const TQString &  identityName)

Definition at line 68 of file identitycombo.cpp.

◆ setCurrentIdentity() [3/3]

void IdentityCombo::setCurrentIdentity ( uint  uoid)

Definition at line 80 of file identitycombo.cpp.

◆ slotEmitChanged

void IdentityCombo::slotEmitChanged ( int  idx)
protectedslot

Definition at line 124 of file identitycombo.cpp.

◆ slotIdentityManagerChanged

void IdentityCombo::slotIdentityManagerChanged ( )
slot

Connected to IdentityManager::changed().

Reloads the list of identities.

Definition at line 108 of file identitycombo.cpp.

Member Data Documentation

◆ mIdentityManager

IdentityManager* KPIM::IdentityCombo::mIdentityManager
protected

Definition at line 95 of file identitycombo.h.

◆ mUoidList

TQValueList<uint> KPIM::IdentityCombo::mUoidList
protected

Definition at line 94 of file identitycombo.h.


The documentation for this class was generated from the following files: