|
VMime
|
#include <service.hpp>


Public Types | |
| enum | Type { TYPE_STORE = 0 , TYPE_TRANSPORT } |
Protected Member Functions | |
| service (shared_ptr< session > sess, const serviceInfos &infos, shared_ptr< security::authenticator > auth) | |
Protected Member Functions inherited from object | |
| object () | |
| object (const object &) | |
| object & | operator= (const object &) |
| virtual | ~object () |
Base class for messaging services.
|
protected |
References vmime::dynamicCast(), and platform::getHandler().
|
virtual |
Connect to service.
Implemented in IMAPStore, maildirStore, POP3Store, sendmailTransport, and SMTPTransport.
Disconnect from service.
Implemented in IMAPStore, maildirStore, POP3Store, sendmailTransport, and SMTPTransport.
| shared_ptr< security::authenticator > getAuthenticator | ( | ) |
Return the authenticator object used with this service instance.
| shared_ptr< const security::authenticator > getAuthenticator | ( | ) | const |
Return the authenticator object used with this service instance.
Referenced by IMAPStore::connect(), POP3Store::connect(), SMTPTransport::connect(), and IMAPFolder::open().
| shared_ptr< security::cert::certificateVerifier > getCertificateVerifier | ( | ) |
Get the object responsible for verifying certificates when using secured connections (TLS/SSL).
Referenced by POP3Connection::connect(), and SMTPConnection::connect().
|
pure virtual |
Get information about the connection.
Implemented in IMAPStore, maildirStore, POP3Store, sendmailTransport, and SMTPTransport.
|
pure virtual |
Return information about this service.
Implemented in IMAPSStore, IMAPStore, maildirStore, POP3SStore, POP3Store, sendmailTransport, SMTPSTransport, and SMTPTransport.
Return the protocol name of this service.
Implemented in IMAPSStore, IMAPStore, maildirStore, POP3SStore, POP3Store, sendmailTransport, SMTPSTransport, and SMTPTransport.
| shared_ptr< session > getSession | ( | ) |
Return the session object associated with this service instance.
| shared_ptr< const session > getSession | ( | ) | const |
Return the session object associated with this service instance.
Referenced by POP3Connection::connect(), SMTPConnection::connect(), and SMTPTransport::send().
| shared_ptr< socketFactory > getSocketFactory | ( | ) |
Return the factory used to create socket objects for this service.
Referenced by POP3Connection::connect(), and SMTPConnection::connect().
| shared_ptr< timeoutHandlerFactory > getTimeoutHandlerFactory | ( | ) |
Return the factory used to create timeoutHandler objects for this service.
Referenced by POP3Connection::connect(), and SMTPConnection::connect().
| shared_ptr< tracerFactory > getTracerFactory | ( | ) |
Referenced by POP3Connection::POP3Connection(), and SMTPConnection::SMTPConnection().
Test whether this service is connected.
Implemented in IMAPStore, maildirStore, POP3Store, sendmailTransport, and SMTPTransport.
Check whether the connection is secured.
Implemented in IMAPStore, maildirStore, POP3Store, sendmailTransport, and SMTPTransport.
Do nothing but ensure the server do not disconnect (for example, this can reset the auto-logout timer on the server, if one exists).
Implemented in IMAPStore, maildirStore, POP3Store, sendmailTransport, and SMTPTransport.
| void setAuthenticator | ( | shared_ptr< security::authenticator > | auth | ) |
Set the authenticator object used with this service instance.
| auth | authenticator object |
References vmime::dynamicCast().
| void setCertificateVerifier | ( | shared_ptr< security::cert::certificateVerifier > | cv | ) |
Set the object responsible for verifying certificates when using secured connections (TLS/SSL).
References vmime::dynamicCast().
Set a property for this service (service prefix is added automatically).
WARNING: this sets the property on the session object, so all service instances created with the session object will inherit the property.
| name | property name |
| value | property value |
| void setSocketFactory | ( | shared_ptr< socketFactory > | sf | ) |
Set the factory used to create socket objects for this service.
| sf | socket factory |
References vmime::dynamicCast().
| void setTimeoutHandlerFactory | ( | shared_ptr< timeoutHandlerFactory > | thf | ) |
Set the factory used to create timeoutHandler objects for this service.
By default, the defaultTimeoutHandler class is used. Not all services support timeout handling.
| thf | timeoutHandler factory |
References vmime::dynamicCast().
| void setTracerFactory | ( | shared_ptr< tracerFactory > | tf | ) |
References vmime::dynamicCast().