libqutim  0.3.1.0
qutim_sdk_0_3::Status Class Reference

#include <status.h>

Public Types

enum  ChangeReason {
  ByUser, ByIdle, ByAuthorizationFailed, ByNetworkError,
  ByFatalError
}
 
enum  Type {
  Connecting = -1, Online = 0, FreeChat, Away,
  NA, DND, Invisible, Offline
}
 

Public Member Functions

 Status (Type type=Offline)
 
 Status (const Status &other)
 
virtual ~Status ()
 
ChangeReason changeReason () const
 
Status connectingGoal () const
 
QVariantHash extendedInfo (const QString &name) const
 
QHash< QString, QVariantHash > extendedInfos () const
 
QIcon icon () const
 
void initIcon (const QString &protocol=QString())
 
LocalizedString name () const
 
bool operator!= (Type type) const
 
Statusoperator= (const Status &other)
 
Statusoperator= (Type type)
 
bool operator== (Type type) const
 
QVariant property (const char *name, const QVariant &def) const
 
template<typename T >
property (const char *name, const T &def) const
 
void removeExtendedInfo (const QString &name)
 
void setChangeReason (ChangeReason reason)
 
void setExtendedInfo (const QString &name, const QVariantHash &status)
 
void setExtendedInfos (const QHash< QString, QVariantHash > &extInfos)
 
void setIcon (const QIcon &icon)
 
void setName (const LocalizedString &name)
 
void setProperty (const char *name, const QVariant &value)
 
void setSubtype (int stype)
 
template<typename T >
void setSubtype (T stype)
 
void setText (const QString &text)
 
void setType (Type type)
 
int subtype () const
 
template<typename T >
subtype () const
 
QString text () const
 
Type type () const
 

Static Public Member Functions

static Status connectingGoal (const Status &status)
 
static Status createConnecting (const Status &status, const char *proto)
 
static QIcon createIcon (Type type, const QString &protocol=QString())
 
static QString iconName (Type type, const QString &protocol=QString())
 
static Status instance (Type type, const char *proto, int subtype=0)
 
static bool remember (const Status &status, const char *proto)
 

Member Enumeration Documentation

Enumerator
ByUser 
ByIdle 
ByAuthorizationFailed 
ByNetworkError 
ByFatalError 
Enumerator
Connecting 
Online 
FreeChat 
Away 
NA 
DND 
Invisible 
Offline 

Constructor & Destructor Documentation

qutim_sdk_0_3::Status::Status ( Type  type = Offline)
qutim_sdk_0_3::Status::Status ( const Status other)
virtual qutim_sdk_0_3::Status::~Status ( )
virtual

Member Function Documentation

ChangeReason qutim_sdk_0_3::Status::changeReason ( ) const
static Status qutim_sdk_0_3::Status::connectingGoal ( const Status status)
static
Status qutim_sdk_0_3::Status::connectingGoal ( ) const
static Status qutim_sdk_0_3::Status::createConnecting ( const Status status,
const char *  proto 
)
static
static QIcon qutim_sdk_0_3::Status::createIcon ( Type  type,
const QString &  protocol = QString() 
)
static
QVariantHash qutim_sdk_0_3::Status::extendedInfo ( const QString &  name) const
QHash<QString, QVariantHash> qutim_sdk_0_3::Status::extendedInfos ( ) const
QIcon qutim_sdk_0_3::Status::icon ( ) const
static QString qutim_sdk_0_3::Status::iconName ( Type  type,
const QString &  protocol = QString() 
)
static
void qutim_sdk_0_3::Status::initIcon ( const QString &  protocol = QString())
static Status qutim_sdk_0_3::Status::instance ( Type  type,
const char *  proto,
int  subtype = 0 
)
static
LocalizedString qutim_sdk_0_3::Status::name ( ) const
bool qutim_sdk_0_3::Status::operator!= ( Type  type) const
inline
Status& qutim_sdk_0_3::Status::operator= ( const Status other)
Status& qutim_sdk_0_3::Status::operator= ( Type  type)
bool qutim_sdk_0_3::Status::operator== ( Type  type) const
QVariant qutim_sdk_0_3::Status::property ( const char *  name,
const QVariant &  def 
) const
template<typename T >
T qutim_sdk_0_3::Status::property ( const char *  name,
const T &  def 
) const
static bool qutim_sdk_0_3::Status::remember ( const Status status,
const char *  proto 
)
static
void qutim_sdk_0_3::Status::removeExtendedInfo ( const QString &  name)
void qutim_sdk_0_3::Status::setChangeReason ( ChangeReason  reason)
void qutim_sdk_0_3::Status::setExtendedInfo ( const QString &  name,
const QVariantHash &  status 
)
void qutim_sdk_0_3::Status::setExtendedInfos ( const QHash< QString, QVariantHash > &  extInfos)
void qutim_sdk_0_3::Status::setIcon ( const QIcon &  icon)
void qutim_sdk_0_3::Status::setName ( const LocalizedString name)
void qutim_sdk_0_3::Status::setProperty ( const char *  name,
const QVariant &  value 
)
void qutim_sdk_0_3::Status::setSubtype ( int  stype)
template<typename T >
void qutim_sdk_0_3::Status::setSubtype ( stype)
inline
void qutim_sdk_0_3::Status::setText ( const QString &  text)
void qutim_sdk_0_3::Status::setType ( Type  type)
int qutim_sdk_0_3::Status::subtype ( ) const
template<typename T >
T qutim_sdk_0_3::Status::subtype ( ) const
inline
QString qutim_sdk_0_3::Status::text ( ) const
Type qutim_sdk_0_3::Status::type ( ) const

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

Generated by Doxygen