|
VMime
|
#include <serviceInfos.hpp>

Public Types | |
| enum | Types { TYPE_INTEGER , TYPE_STRING , TYPE_BOOLEAN , TYPE_DEFAULT = TYPE_STRING } |
| enum | Flags { FLAG_NONE = 0 , FLAG_REQUIRED = (1 << 0) , FLAG_HIDDEN = (1 << 1) , FLAG_DEFAULT = FLAG_NONE } |
Public Member Functions | |
| property (const string &name, const Types type, const string &defaultValue="", const int flags=FLAG_DEFAULT) | |
| property (const property &p, const int addFlags=FLAG_NONE, const int removeFlags=FLAG_NONE) | |
| property (const property &p, const string &newDefaultValue, const int addFlags=FLAG_NONE, const int removeFlags=FLAG_NONE) | |
| property & | operator= (const property &p) |
| const string & | getName () const |
| const string & | getDefaultValue () const |
| Types | getType () const |
| int | getFlags () const |
A service property.
| property | ( | const string & | name, |
| const Types | type, | ||
| const string & | defaultValue = "", |
||
| const int | flags = FLAG_DEFAULT |
||
| ) |
Construct a new property.
| name | property name |
| type | value type |
| defaultValue | default value |
| flags | property attributes |
Construct a new property from an existing property.
| p | source property |
| addFlags | flags to add |
| removeFlags | flags to remove |
References vmime::dynamicCast().
| property | ( | const property & | p, |
| const string & | newDefaultValue, | ||
| const int | addFlags = FLAG_NONE, |
||
| const int | removeFlags = FLAG_NONE |
||
| ) |
Construct a new property from an existing property.
| p | source property |
| newDefaultValue | new default value |
| addFlags | flags to add |
| removeFlags | flags to remove |
References vmime::dynamicCast().
Return the default value of the property or an empty string if there is no default value.
Referenced by serviceInfos::getPropertyValue().
| int getFlags | ( | ) | const |
Return the attributes of the property (see serviceInfos::property::Types constants).
Referenced by serviceInfos::getPropertyValue().
Return the name of the property.
Referenced by defaultAuthenticator::getAccessToken(), defaultAuthenticator::getPassword(), serviceInfos::getPropertyValue(), and defaultAuthenticator::getUsername().
| serviceInfos::property::Types getType | ( | ) | const |
Return the value type of the property.
| serviceInfos::property & operator= | ( | const property & | p | ) |
References vmime::dynamicCast().
|
static |
The common property 'auth.accesstoken' which is the access token used to authenticate with the server.
Referenced by defaultAuthenticator::getAccessToken().
|
static |
The common property 'auth.password' which is the password used to authenticate with the server.
Referenced by defaultAuthenticator::getPassword(), IMAPServiceInfos::getProperties(), POP3ServiceInfos::getProperties(), and SMTPServiceInfos::getProperties().
|
static |
The common property 'auth.username' which is the username used to authenticate with the server.
Referenced by IMAPServiceInfos::getProperties(), POP3ServiceInfos::getProperties(), SMTPServiceInfos::getProperties(), and defaultAuthenticator::getUsername().
|
static |
The common property 'connection.tls': this is used to start a secured connection if it is supported by the server (STARTTLS extension).
Referenced by IMAPServiceInfos::getProperties(), POP3ServiceInfos::getProperties(), and SMTPServiceInfos::getProperties().
|
static |
The common property 'connection.tls.required' should be set to 'true' to make the connection process fail if the server can't start a secured connection (no effect if 'connection.tls' is not set to 'true').
Referenced by IMAPServiceInfos::getProperties(), POP3ServiceInfos::getProperties(), and SMTPServiceInfos::getProperties().
|
static |
The common property 'server.address' which is the host name or the IP address of the server.
Referenced by IMAPServiceInfos::getProperties(), POP3ServiceInfos::getProperties(), and SMTPServiceInfos::getProperties().
|
static |
The common property 'server.port' which is the port used to connect to the server.
Referenced by IMAPServiceInfos::getProperties(), POP3ServiceInfos::getProperties(), and SMTPServiceInfos::getProperties().
|
static |
The common property 'server.rootpath' which is the full path of the folder on the server (for maildir, this is the local filesystem directory).
Referenced by maildirServiceInfos::getProperties().