FougTools  0.7.0dev-046fb6a
Handy tools for C++, Qt and OpenCascade
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | Static Public Member Functions | List of all members
qtnetwork::SmtpAccount Class Reference

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...
 

Detailed Description

Provides a convenient interface to define the user account to connect to a SMTP server.

Member Enumeration Documentation

Enumerator
NoAuthentication 
LoginAuthentication 
PlainAuthentication 
CramMd5Authentication 
Enumerator
NoSecurity 
StartTlsSecurity 
SslTlsSecurity 

Constructor & Destructor Documentation

qtnetwork::SmtpAccount::SmtpAccount ( )

Member Function Documentation

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)
SmtpAccount::AuthenticationMethod qtnetwork::SmtpAccount::toAuthenticationMethod ( int  id,
bool *  ok = NULL 
)
static

Convert integer id to a value of SmtpAccount::AuthenticationMethod.

If ok is not null, it will contain the result state of the conversion

Return values
SmtpAccount::NoAuthenticationIf id does not match the enum
SmtpAccount::ConnectionSecurity qtnetwork::SmtpAccount::toConnectionSecurity ( int  id,
bool *  ok = NULL 
)
static

Convert integer id to a value of SmtpAccount::ConnectionSecurity.

If ok is not null, it will contain the result state of the conversion

Return values
SmtpAccount::NoSecurityIf id does not match the enum
QString qtnetwork::SmtpAccount::userName ( ) const

The documentation for this class was generated from the following files: