libqutim  0.3.1.0
qutim_sdk_0_3::Contact Class Referenceabstract

#include <contact.h>

+ Inheritance diagram for qutim_sdk_0_3::Contact:

Signals

void inListChanged (bool inList)
 
void tagsChanged (const QStringList &current, const QStringList &previous)
 
- Signals inherited from qutim_sdk_0_3::Buddy
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

 Contact (Account *account)
 
 Contact (ContactPrivate &d, Account *account)
 
virtual ~Contact ()
 
void addToList ()
 
virtual bool isInList () const =0
 
void removeFromList ()
 
virtual void setInList (bool inList)=0
 
virtual void setTags (const QStringList &tags)=0
 
virtual QStringList tags () const
 
virtual ChatUnitupperUnit ()
 
- Public Member Functions inherited from qutim_sdk_0_3::Buddy
 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())
 
- 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 *)
 
- Protected Member Functions inherited from qutim_sdk_0_3::Buddy
bool event (QEvent *ev)
 

Properties

bool inList
 
QStringList tags
 
- Properties inherited from qutim_sdk_0_3::Buddy
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
 

Friends

class MetaContact
 

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 *)
 

Detailed Description

Contact is base class for all contactlist members.

Constructor & Destructor Documentation

qutim_sdk_0_3::Contact::Contact ( Account account)

default Contact's contructor

Parameters
accountPointer to chatunit's account
qutim_sdk_0_3::Contact::Contact ( ContactPrivate &  d,
Account account 
)
virtual qutim_sdk_0_3::Contact::~Contact ( )
virtual

Contact's destructor.

Member Function Documentation

void qutim_sdk_0_3::Contact::addToList ( )
inline

add contact to contactlist, see also setInList(bool inList)

bool qutim_sdk_0_3::Contact::event ( QEvent *  )
protected
void qutim_sdk_0_3::Contact::inListChanged ( bool  inList)
signal
virtual bool qutim_sdk_0_3::Contact::isInList ( ) const
pure virtual

Returns membership contact to contactlist.

Returns
isInList

Implemented in qutim_sdk_0_3::MetaContact.

void qutim_sdk_0_3::Contact::removeFromList ( )
inline

remove contact from contactlist, see also setInList(bool inList)

virtual void qutim_sdk_0_3::Contact::setInList ( bool  inList)
pure virtual

set a membership contact to contactlist

Parameters
inList

Implemented in qutim_sdk_0_3::MetaContact.

virtual void qutim_sdk_0_3::Contact::setTags ( const QStringList &  tags)
pure virtual

set a set of tags

Parameters
tags
virtual QStringList qutim_sdk_0_3::Contact::tags ( ) const
virtual

Returns set of tags that mark the contact.

Returns
QSet<QString> tags
void qutim_sdk_0_3::Contact::tagsChanged ( const QStringList &  current,
const QStringList &  previous 
)
signal
virtual ChatUnit* qutim_sdk_0_3::Contact::upperUnit ( )
virtual

Returns TODO.

Returns
Pointer to upper chatunit

Reimplemented from qutim_sdk_0_3::ChatUnit.

Friends And Related Function Documentation

friend class MetaContact
friend

Property Documentation

bool qutim_sdk_0_3::Contact::inList
readwrite
QStringList qutim_sdk_0_3::Contact::tags
readwrite

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

Generated by Doxygen