• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdenetwork API Reference
  • KDE Home
  • Contact Us
 

kopete/libkopete

  • Kopete
  • Identity
Public Types | Public Slots | Signals | Public Member Functions | Protected Slots | List of all members
Kopete::Identity Class Reference

#include <kopeteidentity.h>

Inheritance diagram for Kopete::Identity:
Inheritance graph
[legend]

Public Types

typedef QList< Identity * > List
 

Public Slots

void removeAccount (const Kopete::Account *account)
 
void setOnlineStatus (uint category, const Kopete::StatusMessage &statusMessage)
 
void setStatusMessage (const Kopete::StatusMessage &statusMessage)
 
void updateOnlineStatus ()
 

Signals

void identityChanged (Kopete::Identity *identity)
 
void identityDestroyed (const Kopete::Identity *identity)
 
void onlineStatusChanged (Kopete::Identity *)
 
void toolTipChanged (Kopete::Identity *)
 
- Signals inherited from Kopete::PropertyContainer
void propertyChanged (Kopete::PropertyContainer *container, const QString &key, const QVariant &oldValue, const QVariant &newValue)
 

Public Member Functions

 Identity (const QString &label)
 
 Identity (const QString &id, const QString &label)
 
 ~Identity ()
 
QList< Account * > accounts () const
 
void addAccount (Kopete::Account *account)
 
Identity * clone () const
 
KConfigGroup * configGroup () const
 
QString customIcon () const
 
bool excludeConnect () const
 
QString id () const
 
QString label () const
 
void load ()
 
OnlineStatus::StatusType onlineStatus () const
 
void save ()
 
void setLabel (const QString &label)
 
Kopete::StatusMessage statusMessage () const
 
QString toolTip () const
 
- Public Member Functions inherited from Kopete::PropertyContainer
 PropertyContainer (QObject *parent=0)
 
virtual ~PropertyContainer ()
 
void deserializeProperties (const QMap< QString, QString > &serializedData)
 
bool hasProperty (const QString &key) const
 
QStringList properties () const
 
const Kopete::Property & property (const QString &key) const
 
const Kopete::Property & property (const Kopete::PropertyTmpl &tmpl) const
 
void removeProperty (const Kopete::PropertyTmpl &tmpl)
 
void serializeProperties (QMap< QString, QString > &serializedData) const
 
void setProperty (const Kopete::PropertyTmpl &tmpl, const QVariant &value)
 
- Public Member Functions inherited from QObject
 QObject (QObject *parent)
 
 QObject (QObject *parent, const char *name)
 
virtual  ~QObject ()
 
bool blockSignals (bool block)
 
QObject * child (const char *objName, const char *inheritsClass, bool recursiveSearch) const
 
const QObjectList & children () const
 
const char * className () const
 
bool connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const
 
void deleteLater ()
 
void destroyed (QObject *obj)
 
bool disconnect (const QObject *receiver, const char *method)
 
bool disconnect (const char *signal, const QObject *receiver, const char *method)
 
void dumpObjectInfo ()
 
void dumpObjectTree ()
 
QList< QByteArray > dynamicPropertyNames () const
 
virtual bool event (QEvent *e)
 
virtual bool eventFilter (QObject *watched, QEvent *event)
 
T findChild (const QString &name) const
 
QList< T > findChildren (const QRegExp &regExp) const
 
QList< T > findChildren (const QString &name) const
 
bool inherits (const char *className) const
 
void insertChild (QObject *object)
 
void installEventFilter (QObject *filterObj)
 
bool isA (const char *className) const
 
bool isWidgetType () const
 
void killTimer (int id)
 
virtual const QMetaObject * metaObject () const
 
void moveToThread (QThread *targetThread)
 
const char * name () const
 
const char * name (const char *defaultName) const
 
QString objectName () const
 
QObject * parent () const
 
QVariant property (const char *name) const
 
void removeChild (QObject *object)
 
void removeEventFilter (QObject *obj)
 
void setName (const char *name)
 
void setObjectName (const QString &name)
 
void setParent (QObject *parent)
 
bool setProperty (const char *name, const QVariant &value)
 
bool signalsBlocked () const
 
int startTimer (int interval)
 
QThread * thread () const
 

Protected Slots

void slotSaveProperty (Kopete::PropertyContainer *container, const QString &key, const QVariant &oldValue, const QVariant &newValue)
 

Additional Inherited Members

- Static Public Member Functions inherited from QObject
bool connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
 
bool connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type)
 
bool disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method)
 
bool disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method)
 
QString tr (const char *sourceText, const char *disambiguation, int n)
 
QString trUtf8 (const char *sourceText, const char *disambiguation, int n)
 
- Protected Member Functions inherited from QObject
bool checkConnectArgs (const char *signal, const QObject *object, const char *method)
 
virtual void childEvent (QChildEvent *event)
 
virtual void connectNotify (const char *signal)
 
virtual void customEvent (QEvent *event)
 
virtual void disconnectNotify (const char *signal)
 
int receivers (const char *signal) const
 
QObject * sender () const
 
int senderSignalIndex () const
 
virtual void timerEvent (QTimerEvent *event)
 
- Static Protected Member Functions inherited from QObject
QByteArray normalizeSignalSlot (const char *signalSlot)
 
- Properties inherited from QObject
 objectName
 

Detailed Description

Author
Gustavo Pichorim Boiko gusta.nosp@m.vo.b.nosp@m.oiko@.nosp@m.kdem.nosp@m.ail.n.nosp@m.et

An identity that might contain one or more accounts associated to it

Definition at line 41 of file kopeteidentity.h.

Member Typedef Documentation

typedef QList<Identity*> Kopete::Identity::List

Definition at line 45 of file kopeteidentity.h.

Constructor & Destructor Documentation

Kopete::Identity::Identity ( const QString &  label)

The main constructor for Kopete Identities.

This will create an empty identity with a random id

Parameters
labelthe label to use for this identity

Definition at line 64 of file kopeteidentity.cpp.

Kopete::Identity::Identity ( const QString &  id,
const QString &  label 
)

Constructor for deserialising stored Identities.

Parameters
idthe stored Identity's id
labelthe stored Identity's label

Definition at line 56 of file kopeteidentity.cpp.

Kopete::Identity::~Identity ( )

Definition at line 83 of file kopeteidentity.cpp.

Member Function Documentation

QList< Account * > Kopete::Identity::accounts ( ) const

Returns the accounts assigned to this identity.

Definition at line 189 of file kopeteidentity.cpp.

void Kopete::Identity::addAccount ( Kopete::Account *  account)

Adds an account to the identity.

Parameters
accountthe account to be added

Definition at line 194 of file kopeteidentity.cpp.

Identity * Kopete::Identity::clone ( ) const

Duplicates an existing identity.

This will create a new identity name

Parameters
id,thatclones all properties
Returns
duplicate Identity

Definition at line 71 of file kopeteidentity.cpp.

KConfigGroup * Kopete::Identity::configGroup ( ) const

Returns the KConfigGroup that should be used to read/write settings of this identity.

Definition at line 229 of file kopeteidentity.cpp.

QString Kopete::Identity::customIcon ( ) const

Return the icon for this identity.

Definition at line 180 of file kopeteidentity.cpp.

bool Kopete::Identity::excludeConnect ( ) const

This identity should be connected when connect all is called?

Definition at line 107 of file kopeteidentity.cpp.

QString Kopete::Identity::id ( ) const

The id is a unique internal handle and should not be exposed in the UI.

Returns
the identity's id

Definition at line 91 of file kopeteidentity.cpp.

void Kopete::Identity::identityChanged ( Kopete::Identity *  identity)
signal
void Kopete::Identity::identityDestroyed ( const Kopete::Identity *  identity)
signal
QString Kopete::Identity::label ( ) const

The label is used to identify the identity in the UI.

Returns
the identity's label

Definition at line 96 of file kopeteidentity.cpp.

void Kopete::Identity::load ( )

Load the identity information.

Definition at line 234 of file kopeteidentity.cpp.

OnlineStatus::StatusType Kopete::Identity::onlineStatus ( ) const

Get the online status of the identity.

Returns
the online status of the identity

Definition at line 142 of file kopeteidentity.cpp.

void Kopete::Identity::onlineStatusChanged ( Kopete::Identity *  )
signal
void Kopete::Identity::removeAccount ( const Kopete::Account *  account)
slot

Removes an account from the identity.

Parameters
accountthe account to be removed

Definition at line 216 of file kopeteidentity.cpp.

void Kopete::Identity::save ( )

Save the identity information.

Definition at line 242 of file kopeteidentity.cpp.

void Kopete::Identity::setLabel ( const QString &  label)

Sets the label.

Parameters
newLabela new label for the identity

Definition at line 101 of file kopeteidentity.cpp.

void Kopete::Identity::setOnlineStatus ( uint  category,
const Kopete::StatusMessage &  statusMessage 
)
slot

Sets the online status for this identity Sets the online status for each account in this identity, except those which are set to 'Exclude from connect all' (Kopete::Account::excludeConnect()).

Parameters
categorygeneric OnlineStatusManager::Categories identifying status to set
statusMessageis the new status message to use in this onlinestatus

Definition at line 113 of file kopeteidentity.cpp.

void Kopete::Identity::setStatusMessage ( const Kopete::StatusMessage &  statusMessage)
slot

Sets the status message for this identity Sets the status message for each account in this identity, except those which are set to 'Exclude from connect all' (Kopete::Account::excludeConnect()).

Parameters
statusMessageis the new status message to use

Definition at line 126 of file kopeteidentity.cpp.

void Kopete::Identity::slotSaveProperty ( Kopete::PropertyContainer *  container,
const QString &  key,
const QVariant &  oldValue,
const QVariant &  newValue 
)
protectedslot

Definition at line 276 of file kopeteidentity.cpp.

Kopete::StatusMessage Kopete::Identity::statusMessage ( ) const

Get the current status message of the identity.

Definition at line 147 of file kopeteidentity.cpp.

QString Kopete::Identity::toolTip ( ) const

Get the tooltip for this identity.

Returns
an RTF tooltip depending on Kopete::AppearanceSettings settings

Definition at line 152 of file kopeteidentity.cpp.

void Kopete::Identity::toolTipChanged ( Kopete::Identity *  )
signal
void Kopete::Identity::updateOnlineStatus ( )
slot

Definition at line 254 of file kopeteidentity.cpp.


The documentation for this class was generated from the following files:
  • kopeteidentity.h
  • kopeteidentity.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:29:20 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kopete/libkopete

Skip menu "kopete/libkopete"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdenetwork API Reference

Skip menu "kdenetwork API Reference"
  • kget
  • kopete
  •   kopete
  •   libkopete
  • krdc
  • krfb

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal