libqutim  0.3.1.0
qutim_sdk_0_3::ChatSession Class Referenceabstract

#include <chatsession.h>

+ Inheritance diagram for qutim_sdk_0_3::ChatSession:

Public Slots

void activate ()
 
virtual void addContact (qutim_sdk_0_3::Buddy *c)=0
 
qint64 appendMessage (qutim_sdk_0_3::Message &message)
 
qint64 appendMessage (const QString &text)
 
virtual void removeContact (qutim_sdk_0_3::Buddy *c)=0
 
void setActive (bool active)
 

Signals

void activated (bool active)
 
void contactAdded (qutim_sdk_0_3::Buddy *c)
 
void contactRemoved (qutim_sdk_0_3::Buddy *c)
 
void dateOpenedChanged (const QDateTime &date)
 
void messageReceived (qutim_sdk_0_3::Message *message)
 
void messageSent (qutim_sdk_0_3::Message *message)
 
void unreadChanged (const qutim_sdk_0_3::MessageList &)
 

Public Member Functions

virtual ~ChatSession ()
 
Q_INVOKABLE qint64 append (qutim_sdk_0_3::Message &message)
 
QDateTime dateOpened () const
 
virtual QTextDocument * getInputField ()=0
 
virtual ChatUnitgetUnit () const =0
 
bool isActive ()
 
virtual void markRead (quint64 id)=0
 
virtual Q_INVOKABLE void setChatUnit (qutim_sdk_0_3::ChatUnit *unit)=0
 
void setDateOpened (const QDateTime &date)
 
Q_INVOKABLE
qutim_sdk_0_3::ChatUnit
unit () const
 
virtual MessageList unread () const =0
 

Protected Member Functions

 ChatSession (ChatLayer *chat)
 
virtual qint64 doAppendMessage (qutim_sdk_0_3::Message &message)=0
 
virtual void doSetActive (bool active)=0
 
virtual void virtual_hook (int id, void *data)
 

Properties

bool active
 
QDateTime dateOpened
 
qutim_sdk_0_3::MessageList unread
 

Friends

class MessageHandlerHook
 

Constructor & Destructor Documentation

virtual qutim_sdk_0_3::ChatSession::~ChatSession ( )
virtual
qutim_sdk_0_3::ChatSession::ChatSession ( ChatLayer chat)
protected

Member Function Documentation

void qutim_sdk_0_3::ChatSession::activate ( )
inlineslot
void qutim_sdk_0_3::ChatSession::activated ( bool  active)
signal
virtual void qutim_sdk_0_3::ChatSession::addContact ( qutim_sdk_0_3::Buddy c)
pure virtualslot
Q_INVOKABLE qint64 qutim_sdk_0_3::ChatSession::append ( qutim_sdk_0_3::Message message)
qint64 qutim_sdk_0_3::ChatSession::appendMessage ( qutim_sdk_0_3::Message message)
slot
qint64 qutim_sdk_0_3::ChatSession::appendMessage ( const QString &  text)
inlineslot
void qutim_sdk_0_3::ChatSession::contactAdded ( qutim_sdk_0_3::Buddy c)
signal
void qutim_sdk_0_3::ChatSession::contactRemoved ( qutim_sdk_0_3::Buddy c)
signal
QDateTime qutim_sdk_0_3::ChatSession::dateOpened ( ) const
void qutim_sdk_0_3::ChatSession::dateOpenedChanged ( const QDateTime &  date)
signal
virtual qint64 qutim_sdk_0_3::ChatSession::doAppendMessage ( qutim_sdk_0_3::Message message)
protectedpure virtual
virtual void qutim_sdk_0_3::ChatSession::doSetActive ( bool  active)
protectedpure virtual
virtual QTextDocument* qutim_sdk_0_3::ChatSession::getInputField ( )
pure virtual
virtual ChatUnit* qutim_sdk_0_3::ChatSession::getUnit ( ) const
pure virtual
bool qutim_sdk_0_3::ChatSession::isActive ( )
virtual void qutim_sdk_0_3::ChatSession::markRead ( quint64  id)
pure virtual
void qutim_sdk_0_3::ChatSession::messageReceived ( qutim_sdk_0_3::Message message)
signal
void qutim_sdk_0_3::ChatSession::messageSent ( qutim_sdk_0_3::Message message)
signal
virtual void qutim_sdk_0_3::ChatSession::removeContact ( qutim_sdk_0_3::Buddy c)
pure virtualslot
void qutim_sdk_0_3::ChatSession::setActive ( bool  active)
slot
virtual Q_INVOKABLE void qutim_sdk_0_3::ChatSession::setChatUnit ( qutim_sdk_0_3::ChatUnit unit)
pure virtual
void qutim_sdk_0_3::ChatSession::setDateOpened ( const QDateTime &  date)
Q_INVOKABLE qutim_sdk_0_3::ChatUnit* qutim_sdk_0_3::ChatSession::unit ( ) const
inline
virtual MessageList qutim_sdk_0_3::ChatSession::unread ( ) const
pure virtual
void qutim_sdk_0_3::ChatSession::unreadChanged ( const qutim_sdk_0_3::MessageList )
signal
virtual void qutim_sdk_0_3::ChatSession::virtual_hook ( int  id,
void *  data 
)
protectedvirtual

Friends And Related Function Documentation

friend class MessageHandlerHook
friend

Property Documentation

bool qutim_sdk_0_3::ChatSession::active
readwrite
QDateTime qutim_sdk_0_3::ChatSession::dateOpened
readwrite
qutim_sdk_0_3::MessageList qutim_sdk_0_3::ChatSession::unread
read

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

Generated by Doxygen