Home · All Classes · All Namespaces · Modules · Functions · Files
Public Types | Public Member Functions | Static Public Member Functions | List of all members
Tp::PresenceSpec Class Reference

The PresenceSpec class represents a Telepathy presence information supported by a protocol. More...

#include <TelepathyQt/PresenceSpec>

Public Types

enum  SimpleStatusFlag { NoFlags, MaySetOnSelf, CanHaveStatusMessage, AllFlags }
 

Public Member Functions

 Q_DECLARE_FLAGS (SimpleStatusFlags, SimpleStatusFlag)
 
 PresenceSpec ()
 
 PresenceSpec (const QString &status, const SimpleStatusSpec &spec)
 
 PresenceSpec (const PresenceSpec &other)
 
 ~PresenceSpec ()
 
bool isValid () const
 
PresenceSpecoperator= (const PresenceSpec &other)
 
bool operator== (const PresenceSpec &other) const
 
bool operator!= (const PresenceSpec &other) const
 
bool operator< (const PresenceSpec &other) const
 
Presence presence (const QString &statusMessage=QString()) const
 
bool maySetOnSelf () const
 
bool canHaveStatusMessage () const
 
SimpleStatusSpec bareSpec () const
 

Static Public Member Functions

static PresenceSpec available (SimpleStatusFlags flags=AllFlags)
 
static PresenceSpec chat (SimpleStatusFlags flags=AllFlags)
 
static PresenceSpec pstn (SimpleStatusFlags flags=CanHaveStatusMessage)
 
static PresenceSpec away (SimpleStatusFlags flags=AllFlags)
 
static PresenceSpec brb (SimpleStatusFlags flags=AllFlags)
 
static PresenceSpec dnd (SimpleStatusFlags flags=AllFlags)
 
static PresenceSpec busy (SimpleStatusFlags flags=AllFlags)
 
static PresenceSpec xa (SimpleStatusFlags flags=AllFlags)
 
static PresenceSpec hidden (SimpleStatusFlags flags=AllFlags)
 
static PresenceSpec offline (SimpleStatusFlags flags=CanHaveStatusMessage)
 
static PresenceSpec unknown (SimpleStatusFlags flags=CanHaveStatusMessage)
 
static PresenceSpec error (SimpleStatusFlags flags=CanHaveStatusMessage)
 

Detailed Description

The PresenceSpec class represents a Telepathy presence information supported by a protocol.

Member Enumeration Documentation

§ SimpleStatusFlag

Enumerator
NoFlags 
MaySetOnSelf 
CanHaveStatusMessage 
AllFlags 

Constructor & Destructor Documentation

§ PresenceSpec() [1/3]

Tp::PresenceSpec::PresenceSpec ( )

§ PresenceSpec() [2/3]

Tp::PresenceSpec::PresenceSpec ( const QString status,
const SimpleStatusSpec spec 
)

§ PresenceSpec() [3/3]

Tp::PresenceSpec::PresenceSpec ( const PresenceSpec other)

§ ~PresenceSpec()

Tp::PresenceSpec::~PresenceSpec ( )

Member Function Documentation

§ Q_DECLARE_FLAGS()

Tp::PresenceSpec::Q_DECLARE_FLAGS ( SimpleStatusFlags  ,
SimpleStatusFlag   
)

§ available()

PresenceSpec Tp::PresenceSpec::available ( SimpleStatusFlags  flags = AllFlags)
static

§ chat()

PresenceSpec Tp::PresenceSpec::chat ( SimpleStatusFlags  flags = AllFlags)
static

§ pstn()

PresenceSpec Tp::PresenceSpec::pstn ( SimpleStatusFlags  flags = CanHaveStatusMessage)
static

§ away()

PresenceSpec Tp::PresenceSpec::away ( SimpleStatusFlags  flags = AllFlags)
static

§ brb()

PresenceSpec Tp::PresenceSpec::brb ( SimpleStatusFlags  flags = AllFlags)
static

§ dnd()

PresenceSpec Tp::PresenceSpec::dnd ( SimpleStatusFlags  flags = AllFlags)
static

§ busy()

PresenceSpec Tp::PresenceSpec::busy ( SimpleStatusFlags  flags = AllFlags)
static

§ xa()

PresenceSpec Tp::PresenceSpec::xa ( SimpleStatusFlags  flags = AllFlags)
static

§ hidden()

PresenceSpec Tp::PresenceSpec::hidden ( SimpleStatusFlags  flags = AllFlags)
static

§ offline()

PresenceSpec Tp::PresenceSpec::offline ( SimpleStatusFlags  flags = CanHaveStatusMessage)
static

§ unknown()

PresenceSpec Tp::PresenceSpec::unknown ( SimpleStatusFlags  flags = CanHaveStatusMessage)
static

§ error()

PresenceSpec Tp::PresenceSpec::error ( SimpleStatusFlags  flags = CanHaveStatusMessage)
static

§ isValid()

bool Tp::PresenceSpec::isValid ( ) const
inline

§ operator=()

PresenceSpec & Tp::PresenceSpec::operator= ( const PresenceSpec other)

§ operator==()

bool Tp::PresenceSpec::operator== ( const PresenceSpec other) const

§ operator!=()

bool Tp::PresenceSpec::operator!= ( const PresenceSpec other) const

§ operator<()

bool Tp::PresenceSpec::operator< ( const PresenceSpec other) const

§ presence()

Presence Tp::PresenceSpec::presence ( const QString statusMessage = QString()) const

§ maySetOnSelf()

bool Tp::PresenceSpec::maySetOnSelf ( ) const

§ canHaveStatusMessage()

bool Tp::PresenceSpec::canHaveStatusMessage ( ) const

§ bareSpec()

SimpleStatusSpec Tp::PresenceSpec::bareSpec ( ) const


Copyright © 2008-2011 Collabora Ltd. and Nokia Corporation
Telepathy-Qt 0.9.7