Home · All Namespaces · All Classes · Grouped Classes · Modules · Functions |
The AccountConfiguration class stores attributes associated with an external messaging account. More...
#include <AccountConfiguration>
This class is under development and is subject to change.
The AccountConfiguration class stores attributes associated with an external messaging account.
The AccountConfiguration class stores various attributes associated with either an incoming source of messages such as an SMS, MMS, POP, or IMAP account, or an outgoing sink for messages such as an SMTP account.
Note: the AccountConfiguration class will be replaced by a more flexible solution in a future release of Qt Extended.
AccountConfiguration includes a number of SMTP specific methods. emailAddress() is used as the from email address when composing email messages. smtpServer() is the domain name or DNS address of the SMTP server used to send email messages, and smtpPort() is the port address of the server.
If smtpAuthentication() or smtpEncryption() is true then smtpUsername() and smtpPassword() will be used to authenticate and/or encrypt communication to the server.
If useSignature() is true the signature as given by signature() will be appended to emails sent.
Each of these methods has a corresponding setter method.
A number of POP/IMAP specific methods are included in AccountConfiguration. mailUserName() and mailPassword() are used when logging into an a POP or IMAP server. mailServer() is the domain name or DNS address of the server, and mailPort() is the port number of the server. If mailEncryption() is true encrypted communication with the server will be attempted.
If canCollectMail() is true then the account can be used to collect email. If canDeleteMail() is true then mail will be deleted from the server after it is downloaded to the client.
maxMailSize() is the size of the largest mail to download in full. For mails larger than this size only header (summary) information such as the title, author, recipients and date will be downloaded.
markMessageForDeletion() can be used to mark a message for deletion and serverUids() returns a list of unique server identifiers for messages in the account.
Each of these methods has a corresponding setter method.
A few IMAP specific methods are included. baseFolder() defines the folder that will be used as the root folder when communicating with the server, only messages in the base folder and subfolders of the base folder will be retrieved. The base folder can be set with setBaseFolder().
mailboxes() returns a list of folders owned by the account, and getMailbox() can be used to find the folder with a specified name.
A few MMS specific methods are also included. networkConfig() returns the network configuration used for the account, and if isAutoDownload() is true then when a preliminary MMS notification arrives an attempt at retrieving the full MMS message will be made.
This enum type is used to describe the type of authentication used to communicate with a server.
Constant | Value | Description |
---|---|---|
AccountConfiguration::Auth_NONE | 0 | No authentication is used for this account. |
AccountConfiguration::Auth_LOGIN | 1 | A two stage simple cleartext password mechanism. |
AccountConfiguration::Auth_PLAIN | 2 | A one stage simple cleartext password mechanism. PLAIN supercedes the LOGIN mechanism. |
AccountConfiguration::Auth_INCOMING | 3 | Indicates mail check must be done before sending SMTP mail. Only applies to accounts with both incoming and outgoing details defined. |
This enum type is used to describe the type of encryption used to communicate with a server. Transport Layer Security (TLS) and its predecessor Secure Sockets Layer (SSL) enable encrypted communication with an e-mail server.
Constant | Value | Description |
---|---|---|
AccountConfiguration::Encrypt_NONE | 0 | No encryption is used. |
AccountConfiguration::Encrypt_SSL | 1 | SSL (Secure Sockets Layer) encryption is used. |
AccountConfiguration::Encrypt_TLS | 2 | TLS (Transport Layer Security) encryption is used. |
Creates an empty and invalid AccountConfiguration.
Creates an AccountConfiguration by loading the data from the mail store as specified by the QMailAccountId id. If the account does not exist in the store, then an empty and invalid AccountConfiguration will result.
See also QMailStore::account().
Destroys the configuration object.
Returns the name of the account.
Returns the account type.
Returns the base folder for this account.
See also setBaseFolder().
Returns true if the account can be used to collect mail.
Returns true if mail should be deleted from the server after being deleted and expunged locally; otherwise returns false.
See also setDeleteMail().
Returns true if the account can be used to send mail.
Returns the time in minutes between automatic mail retrieval attempts for the account.
See also setCheckInterval().
Returns the email address used when sending mail.
See also setEmailAddress().
Returns the storage id for this account.
Returns true if interval mail checking is enabled even when the device is in roaming mode.
See also setIntervalCheckRoamingEnabled().
Only applicable for MMS accounts. Returns true if the full MMS will be retrieved when the preliminary MMS notification arrives; otherwise returns false.
See also setAutoDownload().
Returns the encryption type used for the incoming mail server for the account.
See also setMailEncryption().
Returns the password used to login to the incoming mail server for the account.
See also setMailPassword().
Returns the incoming mail server port for the account.
See also setMailPort().
Returns the incoming mail server for the account.
See also setMailServer().
Returns the user name used to login to the incoming mail server for the account.
See also setMailUserName().
Returns the maximum size of mails to be fully downloaded.
See also setMaxMailSize().
Returns the network configuration for the account if any; otherwise returns the default WAP account from the general Qt Extended network settings.
See also setNetworkConfig().
Returns true if the account is push email enabled otherwise returns false.
If an account is push email enabled then the connection to the server for this account should be kept open so that new mail can be discovered as soon as it arrives. This may require less bandwith than repeatedly polling the account for new mail using interval checking.
Currently only supported for IMAP accounts using the IDLE extension documented in RFC2177.
See also setPushEnabled().
Deserialize the account information from the current group of the given QSettings file conf.
See also saveSettings().
Serialize the account information to the current group of the given QSettings file conf.
See also readSettings().
Only applicable for MMS accounts. If autodl is true sets the account to automatically download the full MMS message once the preliminary MMS notification arrives. Otherwise full MMS messages will not be automatically fetched.
See also isAutoDownload().
Sets the base folder for this account to s. This folder is shown in the user interface as the root folder for this account.
See also baseFolder().
Sets the time in minutes between automatic mail retrieval attempts for the account to i.
See also checkInterval().
If b is true the mail should be deleted from the server after being deleted and expunged locally; otherwise do not delete mail from the server. When enabled mail is deleted on the server the next time mail is downloaded.
See also canDeleteMail().
Sets the email address used when sending mail to str.
See also emailAddress().
Sets whether interval checking is enabled during device roaming to enabled.
See also intervalCheckRoamingEnabled().
Sets the encryption type used for the incoming mail server for the account to t.
See also mailEncryption().
Sets the password used to login to the incoming mail server for the account to str.
See also mailPassword().
Sets the incoming mail server port for the account to i.
See also mailPort().
Sets the incoming mail server for the account to str.
See also mailServer().
Sets the user name used to login to the incoming mail server for the account to str.
See also mailUserName().
Sets the maximum size of mails to download in bytes to i. For mails larger than this size only the mail header will be downloaded.
See also maxMailSize().
Sets the network configuration for the account to c.
See also networkConfig().
Sets whether the account is push email enabled to enabled.
See also pushEnabled().
Sets the signature text for outgoing mails for the account to str.
See also signature().
Sets the authentication type used for the outgoing SMTP mail server for the account to t.
See also smtpAuthentication().
Sets the encryption type used for the outgoing SMTP mail server for the account to t.
See also smtpEncryption().
Sets the password used to login to the outgoing SMTP mail server for the account to password.
See also smtpPassword().
Sets the SMTP port number used when sending mail to i.
See also smtpPort().
Sets the SMTP server used to send mail to str.
See also smtpServer().
Sets the user name used to login to the outgoing SMTP mail server for the account to username.
See also smtpUsername().
If b is true append signature text to outgoing mails for the account; otherwise do not.
See also useSignature().
Sets the user name used to login to the outgoing mail server for the account to str.
See also userName().
Returns the signature text for outgoing mails for the account.
See also setSignature().
Returns the authentication type used for the outgoing SMTP mail server for the account.
See also setSmtpAuthentication().
Returns the encryption type used for the outgoing SMTP mail server for the account.
See also setSmtpEncryption().
Returns the password used to login to the outgoing SMTP mail server for the account.
See also setSmtpPassword().
Returns the SMTP port number used when sending mail.
See also setSmtpPort().
Returns the SMTP server used to send mail.
See also setSmtpServer().
Returns the user name used to login to the outgoing SMTP mail server for the account.
See also setSmtpUsername().
Returns true if signature text should be appended to outgoing mails for the account; otherwise returns false.
See also setUseSignature().
Returns the user name used to login to the outgoing mail server for the account.
See also setUserName().
Copyright © 2009 Trolltech | Trademarks | Qt Extended 4.4.3 |