Server info class. More...
#include <xmpputils.h>
Public Types | |
| enum | ServerFlag { NoAutoRestart = 0x0001, KeepRoster = 0x0002, TlsRequired = 0x0004, OldStyleAuth = 0x0008, AllowPlainAuth = 0x0020, AllowUnsafeSetup = 0x0040 } |
Public Member Functions | |
| XMPPServerInfo (const char *name, const char *address, int port, const char *password, const char *identity, const char *fullidentity, int flags) | |
| XMPPServerInfo (const char *name, int port) | |
| const String & | address () const |
| const String & | name () const |
| const int | port () const |
| const String & | password () const |
| const String & | identity () const |
| const String & | fullIdentity () const |
| bool | flag (int mask) const |
Static Public Attributes | |
| static TokenDict | s_flagName [] |
Server info class.
This class holds informations about a server
| enum ServerFlag |
Server flags
| XMPPServerInfo | ( | const char * | name, | |
| const char * | address, | |||
| int | port, | |||
| const char * | password, | |||
| const char * | identity, | |||
| const char * | fullidentity, | |||
| int | flags | |||
| ) | [inline] |
Constructor. Construct a full server info object
| name | Server domain name | |
| address | IP address | |
| port | IP port | |
| password | Component only: Password used for authentication | |
| identity | Component only: The stream identity used when connecting | |
| fullidentity | Component only: The user identity | |
| flags | Server flags |
| XMPPServerInfo | ( | const char * | name, | |
| int | port | |||
| ) | [inline] |
Constructor. Construct a partial server info object
| name | Server domain name | |
| port | IP port |
| const String& address | ( | ) | const [inline] |
Get the server's address
| bool flag | ( | int | mask | ) | const [inline] |
Check if a given flag (or mask) is set
| const String& fullIdentity | ( | ) | const [inline] |
Get the server's full identity
| const String& identity | ( | ) | const [inline] |
Get the server's identity
| const String& name | ( | ) | const [inline] |
Get the server's domain name
| const String& password | ( | ) | const [inline] |
Get the server's port used to connect to
| const int port | ( | ) | const [inline] |
Get the server's port used to connect to
TokenDict s_flagName[] [static] |
Flag names dictionary
1.6.3