CSmsEventLogger Class Reference
class CSmsEventLogger : public CSmsuActiveBase |
Logs SMS-related events.
The class uses the log engine functionality provided by the Log Engine (CLogWrapper etc.).
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 |
---|
void | DoCancel() |
Constructor & Destructor Documentation
CSmsEventLogger(TInt)
CSmsEventLogger | ( | TInt | aPriority | ) | [private] |
~CSmsEventLogger()
IMPORT_C | ~CSmsEventLogger | ( | ) | |
Destructor.
- capability
- None
Member Functions Documentation
AddEvent(TRequestStatus &, const CSmsMessage &, const TLogSmsPduData &, TInt *)
Adds an event to the log database.
Parameters
TRequestStatus & aStatus | Asynchronous status word to signal when the operation is complete |
const CSmsMessage & aSmsMessage | The SMS message that the event concerns |
const TLogSmsPduData & aData | SMS PDU information for the event |
TInt * aStatusId = NULL | Optional string to include in the log message, specified by resource ID |
ChangeEvent(TRequestStatus &, const CSmsMessage &, const TLogSmsPduData &, TInt *)
Changes the details of an existing event.
Use GetEvent() to specify the event.
Parameters
TRequestStatus & aStatus | Asynchronous status word to signal when the operation is complete |
const CSmsMessage & aSmsMessage | The SMS message that the event concerns |
const TLogSmsPduData & aData | SMS PDU information for the event |
TInt * aStatusId = NULL | Optional string to include in the log message, specified by resource ID |
ChangeEvent(TRequestStatus &, const CSmsMessage &, const TTime *, const TLogSmsPduData &, TInt *)
Changes the details of an existing event.
Use GetEvent() to specify the event.
Parameters
TRequestStatus & aStatus | Asynchronous status word to signal when the operation is complete |
const CSmsMessage & aSmsMessage | The SMS message that the event concerns |
const TTime * aTime | SMS delivery time |
const TLogSmsPduData & aData | SMS PDU information for the event |
TInt * aStatusId = NULL | Optional string to include in the log message, specified by resource ID |
ClientAvailable()
TBool
| ClientAvailable | ( | ) | const [inline] |
ConstructL(RFs &)
void | ConstructL | ( | RFs & | aFs | ) | [private] |
DeleteEvent(TRequestStatus &)
Deletes an event.
Use GetEvent() to specify the event.
Parameters
TRequestStatus & aStatus | Asynchronous status word to signal when the operation is complete |
DoAddEventL(const CSmsMessage &, TInt *)
DoCancel()
void | DoCancel | ( | ) | [protected, virtual] |
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().
CActive::Cancel
DoComplete(TInt &)
void | DoComplete | ( | TInt & | | ) | [private, virtual] |
DoRunL()
void | DoRunL | ( | ) | [private, virtual] |
Implements derived-class specified RunL() behaviour.
This is called from RunL().
Event()
Gets the current log event.
Event()
Gets the current (const) log event.
GetEvent(TRequestStatus &, TLogId)
Gets the specified event from the log.
The event itself can be obtained using a subsequent call to Event().
Parameters
TRequestStatus & aStatus | Asynchronous status word to signal when the operation is complete |
TLogId aId | Log event ID for the event |
GetString(TDes &, TInt)
Gets a standard string from the specified resource.
Parameters
TDes & aString | On return, string read from resource |
TInt aId | Resource ID |
GetStringL(TDes &, TInt)
void | GetStringL | ( | TDes & | aString, |
| TInt | aId |
| ) | const [private, inline] |
Gets the current event's SMS PDU data.
NewL(RFs &, TInt)
Allocates and creates a logger.
Parameters
RFs & aFs | File server handle |
TInt aPriority = CActive::EPriorityStandard | Active object priority |
SetDataL(const CSmsMessage &, TInt *, const TTime *)
void | SetDataL | ( | const CSmsMessage & | aSmsMessage, |
| TInt * | aStatusId, |
| const TTime * | aDischargeTime |
| ) | [private] |
SmsPDUData()
Gets the current event's SMS PDU data.
Member Enumerations Documentation
Enum TSmsEventLoggerState
Enumerators
ESmsEventLoggerIdle | |
ESmsEventLoggerGettingEvent | |
ESmsEventLoggerAddingEvent | |
ESmsEventLoggerChangingEvent | |
ESmsEventLoggerDeletingEvent | |
Member Data Documentation
CLogWrapper * iLogWrapper
TLogSmsPduData
iSmsPDUData
TSmsEventLoggerState
iState
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.