|
Yate
|
#include <xmpputils.h>
Public Types | |
| enum | Direction { None = 0x00 , To = 0x01 , From = 0x02 , PendingIn = 0x10 , PendingOut = 0x20 , Both = 0x03 , Pending = 0x30 } |
Public Member Functions | |
| XMPPDirVal (int flags=None) | |
| XMPPDirVal (const String &flags) | |
| XMPPDirVal (const XMPPDirVal &other) | |
| void | replace (int flag) |
| void | replace (const String &flags) |
| void | toString (String &buf, bool full) const |
| void | toSubscription (String &buf) const |
| void | set (int flag) |
| void | reset (int flag) |
| bool | test (int mask) const |
| bool | to () const |
| bool | from () const |
| operator int () | |
Static Public Attributes | |
| static const TokenDict | s_names [] |
Direction flags.
This class holds a direction flags (such as subscription states)
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Cast operator
|
inline |
Replace all flags from a list
| flags | Comma separated list of flags |
References XMPPUtils::decodeFlags(), and s_names.
|
inline |
|
inline |
Reset one or more flags
| flag | Flag(s) to reset |
|
inline |
Set one or more flags
| flag | Flag(s) to set |
|
inline |
|
inline |
| void toString | ( | String & | buf, |
| bool | full ) const |
Build a string representation of this object
| buf | Destination string |
| full | True to add all flags, false to ignore pending flags |
| void toSubscription | ( | String & | buf | ) | const |
Build a subscription state string representation of this object
| buf | Destination string |