|
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 |
Referenced by serviceFactory, and serviceInfos().
|
protected |
References serviceInfos().
|
virtual |
|
pure virtual |
Return a list of available properties for this service.
Implemented in IMAPServiceInfos, maildirServiceInfos, POP3ServiceInfos, sendmailServiceInfos, and SMTPServiceInfos.
|
pure virtual |
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 getPropertyValue(), and hasProperty().
| const TYPE getPropertyValue | ( | shared_ptr< session > | s, |
| const property & | p ) const |
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::FLAG_REQUIRED, serviceInfos::property::getDefaultValue(), serviceInfos::property::getFlags(), serviceInfos::property::getName(), and getPropertyPrefix().
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(), getPropertyPrefix(), and hasProperty().
Referenced by hasProperty().