VMime
|
Classes | |
class | property |
Public Member Functions | |
virtual | ~serviceInfos () |
virtual const string | getPropertyPrefix () const =0 |
virtual const std::vector < property > | getAvailableProperties () const =0 |
template<typename TYPE > | |
const TYPE | getPropertyValue (shared_ptr< session > s, const property &p) const |
bool | hasProperty (shared_ptr< session > s, const property &p) const |
Protected Member Functions | |
serviceInfos () | |
serviceInfos (const serviceInfos &) | |
Stores information about a messaging service.
|
protected |
|
protected |
|
virtual |
|
pure virtual |
Return a list of available properties for this service.
Implemented in SMTPServiceInfos, POP3ServiceInfos, IMAPServiceInfos, maildirServiceInfos, and sendmailServiceInfos.
|
pure virtual |
Return the property prefix used by this service.
Use this to set/get properties in the session object.
Implemented in SMTPServiceInfos, POP3ServiceInfos, IMAPServiceInfos, maildirServiceInfos, and sendmailServiceInfos.
Referenced by serviceInfos::hasProperty().
Helper function to retrieve the value of a property.
s | session object |
p | property to retrieve |
exceptions::no_such_property | if the property does not exist and has the flag property::FLAG_REQUIRED |
References serviceInfos::property::getDefaultValue(), serviceInfos::property::getFlags(), and serviceInfos::property::getName().
Helper function to test if the specified property is set in the session object.
s | session object |
p | property to test |
References serviceInfos::property::getName(), and serviceInfos::getPropertyPrefix().