#include <smsulog.h>
class CSmsEventLogger : public CSmsuActiveBase |
Public Member Functions | |
---|---|
~CSmsEventLogger() | |
IMPORT_C void | AddEvent(TRequestStatus &, const CSmsMessage &, const TLogSmsPduData &, TInt *) |
IMPORT_C void | ChangeEvent(TRequestStatus &, const CSmsMessage &, const TLogSmsPduData &, TInt *) |
IMPORT_C void | ChangeEvent(TRequestStatus &, const CSmsMessage &, const TTime *, const TLogSmsPduData &, TInt *) |
TBool | ClientAvailable() |
IMPORT_C void | DeleteEvent(TRequestStatus &) |
CLogEvent & | Event() |
const CLogEvent & | Event() |
IMPORT_C void | GetEvent(TRequestStatus &, TLogId) |
TInt | GetString(TDes &, TInt) |
IMPORT_C CSmsEventLogger * | NewL(RFs &, TInt) |
const TLogSmsPduData & | SmsPDUData() |
Protected Member Functions | |
---|---|
virtual void | DoCancel() |
Inherited Attributes | |
---|---|
CActive::iStatus | |
CSmsuActiveBase::iReport | |
CSmsuActiveBase::iSmsuTimeout |
Inherited Enumerations | |
---|---|
CActive:TPriority |
Logs SMS-related events.
The class uses the log engine functionality provided by the Log Engine (CLogWrapper etc.).
IMPORT_C void | AddEvent | ( | TRequestStatus & | aStatus, |
const CSmsMessage & | aSmsMessage, | |||
const TLogSmsPduData & | aData, | |||
TInt * | aStatusId = NULL | |||
) |
Adds an event to the log database.
Parameter | Description |
---|---|
aStatus | Asynchronous status word to signal when the operation is complete |
aSmsMessage | The SMS message that the event concerns |
aData | SMS PDU information for the event |
aStatusId | Optional string to include in the log message, specified by resource ID |
IMPORT_C void | ChangeEvent | ( | TRequestStatus & | aStatus, |
const CSmsMessage & | aSmsMessage, | |||
const TLogSmsPduData & | aData, | |||
TInt * | aStatusId = NULL | |||
) |
Changes the details of an existing event.
Use GetEvent() to specify the event.
Parameter | Description |
---|---|
aStatus | Asynchronous status word to signal when the operation is complete |
aSmsMessage | The SMS message that the event concerns |
aData | SMS PDU information for the event |
aStatusId | Optional string to include in the log message, specified by resource ID |
IMPORT_C void | ChangeEvent | ( | TRequestStatus & | aStatus, |
const CSmsMessage & | aSmsMessage, | |||
const TTime * | aTime, | |||
const TLogSmsPduData & | aData, | |||
TInt * | aStatusId = NULL | |||
) |
Changes the details of an existing event.
Use GetEvent() to specify the event.
Parameter | Description |
---|---|
aStatus | Asynchronous status word to signal when the operation is complete |
aSmsMessage | The SMS message that the event concerns |
aTime | SMS delivery time |
aData | SMS PDU information for the event |
aStatusId | Optional string to include in the log message, specified by resource ID |
IMPORT_C void | DeleteEvent | ( | TRequestStatus & | aStatus | ) |
Parameter | Description |
---|---|
aStatus | Asynchronous status word to signal when the operation is complete |
void | DoCancel | ( | ) | [protected, virtual] |
Reimplemented from CActive::DoCancel()
Implements cancellation of an outstanding request.
This function is called as part of the active object's Cancel().
It must call the appropriate cancel function offered by the active object's asynchronous service provider. The asynchronous service provider's cancel is expected to act immediately.
DoCancel() must not wait for event completion; this is handled by Cancel().
See also: CActive::Cancel
const CLogEvent & | Event | ( | ) | const [inline] |
Gets the current (const) log event.
Returns: Current log event
IMPORT_C void | GetEvent | ( | TRequestStatus & | aStatus, |
TLogId | aId | |||
) |
Gets the specified event from the log.
The event itself can be obtained using a subsequent call to Event().
Parameter | Description |
---|---|
aStatus | Asynchronous status word to signal when the operation is complete |
aId | Log event ID for the event |
IMPORT_C CSmsEventLogger * | NewL | ( | RFs & | aFs, |
TInt | aPriority = CActive::EPriorityStandard | |||
) | [static] |
Allocates and creates a logger.
Parameter | Description |
---|---|
aFs | File server handle |
aPriority | Active object priority |
Returns: New CSmsEventLogger object
const TLogSmsPduData & | SmsPDUData | ( | ) | const [inline] |
Gets the current event's SMS PDU data.
Returns: Current event's SMS PDU data