libqutim  0.3.1.0
qutim_sdk_0_3::Buddy Class Referenceabstract

#include <buddy.h>

+ Inheritance diagram for qutim_sdk_0_3::Buddy:

Signals

void avatarChanged (const QString &path)
 
void nameChanged (const QString &current, const QString &previous)
 
void statusChanged (const qutim_sdk_0_3::Status &current, const qutim_sdk_0_3::Status &previous)
 
- Signals inherited from qutim_sdk_0_3::ChatUnit
void chatStateChanged (qutim_sdk_0_3::ChatState current, qutim_sdk_0_3::ChatState previous)
 
void lastActivityChanged (const QDateTime &current, const QDateTime &previous)
 
void lowerUnitAdded (ChatUnit *unit)
 
void titleChanged (const QString &current, const QString &previous)
 

Public Member Functions

 Buddy (Account *account)
 
 Buddy (BuddyPrivate &d, Account *account)
 
virtual ~Buddy ()
 
virtual QString avatar () const
 
virtual QString name () const
 
virtual bool sendMessage (const Message &message)=0
 
virtual void setName (const QString &name)
 
virtual Status status () const
 
virtual QString title () const
 
- Public Member Functions inherited from qutim_sdk_0_3::ChatUnit
 ChatUnit (Account *account)
 
 ChatUnit (ChatUnitPrivate &d, Account *account)
 
virtual ~ChatUnit ()
 
Accountaccount ()
 
const Accountaccount () const
 
ChatUnitbuddy ()
 
const ChatUnitbuddy () const
 
qutim_sdk_0_3::ChatState chatState () const
 
virtual const ChatUnitgetHistoryUnit () const
 
virtual QString id () const =0
 
bool isConference () const
 
QDateTime lastActivity () const
 
virtual Q_INVOKABLE QList
< qutim_sdk_0_3::ChatUnit * > 
lowerUnits ()
 
ChatUnitmetaContact ()
 
const ChatUnitmetaContact () const
 
Q_INVOKABLE bool send (const qutim_sdk_0_3::Message &message)
 
void setChatState (qutim_sdk_0_3::ChatState state)
 
void setLastActivity (const QDateTime &time=QDateTime::currentDateTime())
 
virtual Q_INVOKABLE
qutim_sdk_0_3::ChatUnit
upperUnit ()
 
- Public Member Functions inherited from qutim_sdk_0_3::MenuController
 MenuController (QObject *parent=0)
 
virtual ~MenuController ()
 
void addAction (const ActionGenerator *gen, const QList< QByteArray > &menu=QList< QByteArray >())
 
template<int N>
void addAction (const ActionGenerator *gen, const char(&menu)[N])
 
template<int N>
Q_INLINE_TEMPLATE void addAction (const ActionGenerator *gen, const char(&menu)[N])
 
template<typename T, int N>
Q_INLINE_TEMPLATE void addAction (const ActionGenerator *gen, const char(&menu)[N])
 
template<int N>
Q_INLINE_TEMPLATE void addAction (const ActionGenerator *gen, const QMetaObject *meta, const char(&menu)[N])
 
QMenu * menu (bool deleteOnClose=true) const
 
bool removeAction (const ActionGenerator *gen)
 

Protected Member Functions

bool event (QEvent *ev)
 

Properties

QString avatar
 
QString name
 
qutim_sdk_0_3::Status status
 
- Properties inherited from qutim_sdk_0_3::ChatUnit
qutim_sdk_0_3::Account account
 
ChatState chatState
 
bool conference
 
QString id
 
QDateTime lastActivity
 
QString title
 

Additional Inherited Members

- Public Types inherited from qutim_sdk_0_3::MenuController
enum  MenuFlag { ShowSelfActions = 0x01, ShowSuperActions = 0x02, ShowOwnerActions = 0x04 }
 
- Public Slots inherited from qutim_sdk_0_3::ChatUnit
quint64 sendMessage (const QString &text)
 
- Static Public Member Functions inherited from qutim_sdk_0_3::MenuController
static void addAction (const ActionGenerator *gen, const QMetaObject *meta, const QList< QByteArray > &menu=QList< QByteArray >())
 
template<typename T >
static void addAction (const ActionGenerator *gen, const QList< QByteArray > &menu=QList< QByteArray >())
 
template<typename T , int N>
static void addAction (const ActionGenerator *gen, const char(&menu)[N])
 
template<int N>
static void addAction (const ActionGenerator *gen, const QMetaObject *meta, const char(&menu)[N])
 
static QObject * get (QAction *)
 
template<typename T >
static T get (QAction *)
 

Constructor & Destructor Documentation

qutim_sdk_0_3::Buddy::Buddy ( Account account)
qutim_sdk_0_3::Buddy::Buddy ( BuddyPrivate &  d,
Account account 
)
virtual qutim_sdk_0_3::Buddy::~Buddy ( )
virtual

Member Function Documentation

virtual QString qutim_sdk_0_3::Buddy::avatar ( ) const
virtual

Path to buddy image.

void qutim_sdk_0_3::Buddy::avatarChanged ( const QString &  path)
signal
bool qutim_sdk_0_3::Buddy::event ( QEvent *  ev)
protected
virtual QString qutim_sdk_0_3::Buddy::name ( ) const
virtual
void qutim_sdk_0_3::Buddy::nameChanged ( const QString &  current,
const QString &  previous 
)
signal
virtual bool qutim_sdk_0_3::Buddy::sendMessage ( const Message message)
pure virtual

send message to contact

Parameters
messageMessage, which to be sent to the recipient

Implements qutim_sdk_0_3::ChatUnit.

virtual void qutim_sdk_0_3::Buddy::setName ( const QString &  name)
virtual
virtual Status qutim_sdk_0_3::Buddy::status ( ) const
virtual
void qutim_sdk_0_3::Buddy::statusChanged ( const qutim_sdk_0_3::Status current,
const qutim_sdk_0_3::Status previous 
)
signal
virtual QString qutim_sdk_0_3::Buddy::title ( ) const
virtual

Returns contact's representable name.

Returns
Contact's name

Reimplemented from qutim_sdk_0_3::ChatUnit.

Property Documentation

QString qutim_sdk_0_3::Buddy::avatar
read
QString qutim_sdk_0_3::Buddy::name
readwrite
qutim_sdk_0_3::Status qutim_sdk_0_3::Buddy::status
read

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

Generated by Doxygen