#include <smsulog.h>
Link against: smsu.lib
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 = 0 | |||
) |
Adds an event to the log database.
Parameters | |
---|---|
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 |
Capability | |
---|---|
WriteUserData |
IMPORT_C void | ChangeEvent | ( | TRequestStatus & | aStatus, |
const CSmsMessage & | aSmsMessage, | |||
const TLogSmsPduData & | aData, | |||
TInt * | aStatusId = 0 | |||
) |
Parameters | |
---|---|
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 |
Capability | |
---|---|
WriteUserData |
IMPORT_C void | ChangeEvent | ( | TRequestStatus & | aStatus, |
const CSmsMessage & | aSmsMessage, | |||
const TTime * | aTime, | |||
const TLogSmsPduData & | aData, | |||
TInt * | aStatusId = 0 | |||
) |
Parameters | |
---|---|
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 |
Capability | |
---|---|
WriteUserData |
TBool | ClientAvailable | ( | ) | const [inline] |
IMPORT_C void | DeleteEvent | ( | TRequestStatus & | aStatus | ) |
Parameters | |
---|---|
aStatus | Asynchronous status word to signal when the operation is complete |
Capability | |
---|---|
WriteUserData |
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.
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().
Parameters | |
---|---|
aStatus | Asynchronous status word to signal when the operation is complete |
aId | Log event ID for the event |
Capability | |
---|---|
ReadUserData |
IMPORT_C CSmsEventLogger * | NewL | ( | RFs & | aFs, |
TInt | aPriority = CActive::EPriorityStandard | |||
) | [static] |
Allocates and creates a logger.
Parameters | |
---|---|
aFs | File server handle |
aPriority | Active object priority |
Capability | |
---|---|
None |
const TLogSmsPduData & | SmsPDUData | ( | ) | const [inline] |
Gets the current event's SMS PDU data.