|
VMime
|
#include <serviceInfos.hpp>

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 |
Return a list of available properties for this service.
Implemented in IMAPServiceInfos, maildirServiceInfos, POP3ServiceInfos, sendmailServiceInfos, and SMTPServiceInfos.
Return the property prefix used by this service.
Use this to set/get properties in the session object.
Implemented in IMAPServiceInfos, maildirServiceInfos, POP3ServiceInfos, sendmailServiceInfos, and SMTPServiceInfos.
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().
| bool hasProperty | ( | shared_ptr< session > | s, |
| const property & | p | ||
| ) | const |
Helper function to test if the specified property is set in the session object.
| s | session object |
| p | property to test |
References vmime::dynamicCast(), serviceInfos::getPropertyPrefix(), and serviceInfos::hasProperty().
Referenced by serviceInfos::hasProperty().