class XMPPDirVal

Direction flags. More...

Full nameTelEngine::XMPPDirVal
Definition#include <libs/yjabber/xmpputils.h>
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Types

Public Methods

Public Members


Detailed Description

This class holds a direction flags (such as subscription states)

enum Direction { None = 0x00, To = 0x01, From = 0x02, PendingIn = 0x10, PendingOut = 0x20, Both = 0x03, Pending = 0x30 }

Direction

Direction flags enumeration

inline  XMPPDirVal (int flags = None)

XMPPDirVal

Constructor

Parameters:
flagsFlag(s) to set

inline  XMPPDirVal (const String& flags)

XMPPDirVal

Constructor

Parameters:
flagsComma separated list of flags

inline  XMPPDirVal (const XMPPDirVal& other)

XMPPDirVal

Copy constructor

Parameters:
otherSource to copy

inline void  replace (int flag)

replace

Replace all flags

Parameters:
flagThe new value of the flags

inline void  replace (const String& flags)

replace

Replace all flags from a list

Parameters:
flagsComma separated list of flags

void  toString (String& buf, bool full)

toString

[const]

Build a string representation of this object

Parameters:
bufDestination string
fullTrue to add all flags, false to ignore pending flags

void  toSubscription (String& buf)

toSubscription

[const]

Build a subscription state string representation of this object

Parameters:
bufDestination string

inline void  set (int flag)

set

Set one or more flags

Parameters:
flagFlag(s) to set

inline void  reset (int flag)

reset

Reset one or more flags

Parameters:
flagFlag(s) to reset

inline bool  test (int mask)

test

[const]

Check if a given bit mask is set

Parameters:
maskBit mask to check

Returns: True if the given bit mask is set

inline bool  to ()

to

[const]

Check if the 'To' flag is set

Returns: True if the 'To' flag is set

inline bool  from ()

from

[const]

Check if the 'From' flag is set

Returns: True if the 'From' flag is set

inline operator  int ()

int

Cast operator

static const TokenDict s_names[]

s_names[]


Generated by: paulc on bussard on Mon Feb 10 13:15:47 2014, using kdoc 2.0a54.