#include <mw/smtpset.h>
Link against: imcm.lib
class TImSmtpProgress |
Public Attributes | |
---|---|
TImImailFileProgress | iSendFileProgress |
Public Member Functions | |
---|---|
IMPORT_C TInt | ConnectionIAP() |
IMPORT_C TInt | ConnectionState() |
IMPORT_C void | DecrementSendTotal() |
IMPORT_C TInt | Error() |
IMPORT_C TInt | FailedToSend() |
IMPORT_C void | InitialiseTotal(const TInt &) |
IMPORT_C TInt | MsgNo() |
IMPORT_C TInt | NotSent() |
IMPORT_C TInt | SendTotal() |
IMPORT_C TInt | Sent() |
IMPORT_C TMsvId | ServiceId() |
IMPORT_C void | SetConnectionIAP(TInt) |
IMPORT_C void | SetError(TInt) |
IMPORT_C void | SetMsgNo(TInt) |
IMPORT_C void | SetServiceId(TMsvId) |
IMPORT_C void | SetStatus(TMsgImOutboxSendState) |
IMPORT_C TMsgImOutboxSendState | Status() |
IMPORT_C void | UpdateFailedToSend() |
IMPORT_C void | UpdateSent() |
Progress information for SMTP operations on the Internet Mail MTM.
The information is obtained through calling CMsvOperation::Progress() on the operation. It is packaged into an 8-bit descriptor.
Messaging clients use the getter functions to get various types of information about an operation's progress. The setter functions are for use by the MTM.
TImImailFileProgress | iSendFileProgress |
Status information about the message that is currently being sent (if sending is in progress).
IMPORT_C TInt | ConnectionIAP | ( | ) | const |
Retrieves the internet access point that is used when connecting to the SMTP service.
IMPORT_C TInt | ConnectionState | ( | ) | const |
Retrieves the stage of the connection process as defined in nifvar.h and csdprog.h while the service is connecting to the SMTP server.
IMPORT_C void | DecrementSendTotal | ( | ) |
Decrements the send total.
This can be used to adjust the total if a message is found to be deleted before it can be sent.
IMPORT_C TInt | Error | ( | ) | const |
Gets an operation error code.
This is set only when a send operation has completed.
IMPORT_C TInt | FailedToSend | ( | ) | const |
Gets the number of messages that the MTM failed to send this session.
For example, failure could be because the SMTP server refused to accept a message.
IMPORT_C void | InitialiseTotal | ( | const TInt & | aTotal | ) |
Set the progress variables to initial values.
The "send total" and "not sent" variables are set to aTotal. Other counter variables are set to 0. The initial status is set to EMsgOutboxProgressWaiting.
Parameters | |
---|---|
aTotal | Number of messages to send |
IMPORT_C TInt | MsgNo | ( | ) | const |
Gets the index of the message that is currently being sent.
The index range is from 0 to SendTotal().
IMPORT_C TInt | NotSent | ( | ) | const |
Gets the number of messages that the MTM did not attempt to send in this session.
A possible reason is because the message store was locked by another client.
IMPORT_C TInt | SendTotal | ( | ) | const |
Gets the total number of messages that the MTM is attempting to send in this session.
The following equation is always true: Sent() + NotSent() + FailedToSend() = SendTotal().
IMPORT_C TInt | Sent | ( | ) | const |
Gets the number of messages sent so far in this SMTP session.
IMPORT_C TMsvId | ServiceId | ( | ) | const |
Gets the message server entry ID of the SMTP service being used.
IMPORT_C void | SetConnectionIAP | ( | TInt | aConnectionIAP | ) |
Sets the ConnectionIAP value.
Parameters | |
---|---|
aConnectionIAP | The value that the ConnectionIAP will be set to. |
IMPORT_C void | SetError | ( | TInt | anError | ) |
Sets an error code for the operation.
Parameters | |
---|---|
anError | Error code |
IMPORT_C void | SetMsgNo | ( | TInt | aMsgNo | ) |
Sets the index of the message that is currently being sent.
Parameters | |
---|---|
aMsgNo | Index of the message being sent |
IMPORT_C void | SetServiceId | ( | TMsvId | aServiceId | ) |
Sets the message server entry ID of the SMTP service being used.
Parameters | |
---|---|
aServiceId | Message server entry ID of the SMTP service |
IMPORT_C void | SetStatus | ( | TMsgImOutboxSendState | aStatus | ) |
Sets the sending status of the SMTP operation
Parameters | |
---|---|
aStatus | New sending status |
IMPORT_C TMsgImOutboxSendState | Status | ( | ) | const |
Gets the sending status of the SMTP operation.