libqutim  0.3.1.0
qutim_sdk_0_3::InfoRequest Class Referenceabstract

#include <inforequest.h>

+ Inheritance diagram for qutim_sdk_0_3::InfoRequest:

Public Types

enum  State {
  Initialized, Requesting, RequestDone, Updating,
  Updated, Canceled, LoadedFromCache, Error
}
 

Signals

void errorStringChanged (const qutim_sdk_0_3::LocalizedString &error)
 
void stateChanged (qutim_sdk_0_3::InfoRequest::State state)
 

Public Member Functions

virtual ~InfoRequest ()
 
void cancel ()
 
DataItem dataItem () const
 
LocalizedString errorString () const
 
QObject * object () const
 
void requestData (const QSet< QString > &hints=QSet< QString >())
 
State state () const
 
void updateData (const DataItem &dataItem)
 
QVariant value (const QString &name, const QVariant &def=QVariant()) const
 
template<typename T >
value (const QString &name, const T &def=T()) const
 

Protected Member Functions

 InfoRequest (QObject *object)
 
virtual DataItem createDataItem () const =0
 
virtual void doCancel ()=0
 
virtual void doRequest (const QSet< QString > &hints)=0
 
virtual void doUpdate (const DataItem &dataItem)=0
 
virtual QVariant getValue (const QString &name) const
 
void setErrorString (const LocalizedString &errorString)
 
void setState (State state)
 
virtual void virtual_hook (int id, void *data)
 

Member Enumeration Documentation

Enumerator
Initialized 
Requesting 
RequestDone 
Updating 
Updated 
Canceled 
LoadedFromCache 
Error 

Constructor & Destructor Documentation

virtual qutim_sdk_0_3::InfoRequest::~InfoRequest ( )
virtual
qutim_sdk_0_3::InfoRequest::InfoRequest ( QObject *  object)
protected

Member Function Documentation

void qutim_sdk_0_3::InfoRequest::cancel ( )
virtual DataItem qutim_sdk_0_3::InfoRequest::createDataItem ( ) const
protectedpure virtual
DataItem qutim_sdk_0_3::InfoRequest::dataItem ( ) const
virtual void qutim_sdk_0_3::InfoRequest::doCancel ( )
protectedpure virtual
virtual void qutim_sdk_0_3::InfoRequest::doRequest ( const QSet< QString > &  hints)
protectedpure virtual
virtual void qutim_sdk_0_3::InfoRequest::doUpdate ( const DataItem dataItem)
protectedpure virtual
LocalizedString qutim_sdk_0_3::InfoRequest::errorString ( ) const
void qutim_sdk_0_3::InfoRequest::errorStringChanged ( const qutim_sdk_0_3::LocalizedString error)
signal
virtual QVariant qutim_sdk_0_3::InfoRequest::getValue ( const QString &  name) const
protectedvirtual
QObject* qutim_sdk_0_3::InfoRequest::object ( ) const
void qutim_sdk_0_3::InfoRequest::requestData ( const QSet< QString > &  hints = QSet< QString >())
void qutim_sdk_0_3::InfoRequest::setErrorString ( const LocalizedString errorString)
protected
void qutim_sdk_0_3::InfoRequest::setState ( State  state)
protected
State qutim_sdk_0_3::InfoRequest::state ( ) const
void qutim_sdk_0_3::InfoRequest::stateChanged ( qutim_sdk_0_3::InfoRequest::State  state)
signal
void qutim_sdk_0_3::InfoRequest::updateData ( const DataItem dataItem)
QVariant qutim_sdk_0_3::InfoRequest::value ( const QString &  name,
const QVariant &  def = QVariant() 
) const
template<typename T >
T qutim_sdk_0_3::InfoRequest::value ( const QString &  name,
const T &  def = T() 
) const
virtual void qutim_sdk_0_3::InfoRequest::virtual_hook ( int  id,
void *  data 
)
protectedvirtual

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

Generated by Doxygen