FougTools
0.7.0dev-046fb6a
Handy tools for C++, Qt and OpenCascade
|
Provides a convenient interface to define the user account to connect to a SMTP server. More...
#include <qttools/network/smtp_account.h>
Public Types | |
enum | AuthenticationMethod { NoAuthentication, LoginAuthentication, PlainAuthentication, CramMd5Authentication } |
enum | ConnectionSecurity { NoSecurity, StartTlsSecurity, SslTlsSecurity } |
Public Member Functions | |
SmtpAccount () | |
QString | host () const |
void | setHost (const QString &name) |
int | port () const |
void | setPort (int p) |
AuthenticationMethod | authenticationMethod () const |
void | setAuthenticationMethod (AuthenticationMethod method) |
ConnectionSecurity | connectionSecurity () const |
void | setConnectionSecurity (ConnectionSecurity connSecurity) |
QString | userName () const |
void | setUserName (const QString &uname) |
QString | password () const |
void | setPassword (const QString &pwd) |
Static Public Member Functions | |
static AuthenticationMethod | toAuthenticationMethod (int id, bool *ok=NULL) |
Convert integer id to a value of SmtpAccount::AuthenticationMethod. More... | |
static ConnectionSecurity | toConnectionSecurity (int id, bool *ok=NULL) |
Convert integer id to a value of SmtpAccount::ConnectionSecurity. More... | |
Provides a convenient interface to define the user account to connect to a SMTP server.
qtnetwork::SmtpAccount::SmtpAccount | ( | ) |
SmtpAccount::AuthenticationMethod qtnetwork::SmtpAccount::authenticationMethod | ( | ) | const |
SmtpAccount::ConnectionSecurity qtnetwork::SmtpAccount::connectionSecurity | ( | ) | const |
QString qtnetwork::SmtpAccount::host | ( | ) | const |
QString qtnetwork::SmtpAccount::password | ( | ) | const |
int qtnetwork::SmtpAccount::port | ( | ) | const |
void qtnetwork::SmtpAccount::setAuthenticationMethod | ( | AuthenticationMethod | method | ) |
void qtnetwork::SmtpAccount::setConnectionSecurity | ( | ConnectionSecurity | connSecurity | ) |
void qtnetwork::SmtpAccount::setHost | ( | const QString & | name | ) |
void qtnetwork::SmtpAccount::setPassword | ( | const QString & | pwd | ) |
void qtnetwork::SmtpAccount::setPort | ( | int | p | ) |
void qtnetwork::SmtpAccount::setUserName | ( | const QString & | uname | ) |
|
static |
Convert integer id
to a value of SmtpAccount::AuthenticationMethod.
If ok
is not null, it will contain the result state of the conversion
SmtpAccount::NoAuthentication | If id does not match the enum |
|
static |
Convert integer id
to a value of SmtpAccount::ConnectionSecurity.
If ok
is not null, it will contain the result state of the conversion
SmtpAccount::NoSecurity | If id does not match the enum |
QString qtnetwork::SmtpAccount::userName | ( | ) | const |