Location:
smsulog.h
Link against: smsu.lib
class CSmsEventLogger : public CSmsuActiveBase;
Logs SMS-related events.
The class uses the log engine functionality provided by the Log Engine (CLogWrapper
etc.).
CBase
- Base class for all classes to be instantiated on the heap
CActive
- The core class of the active object abstraction
CSmsuActiveBase
- Base class for SMS active objects
CSmsEventLogger
- Logs SMS-related events
Defined in CSmsEventLogger
:
AddEvent()
, ChangeEvent()
, ClientAvailable()
, DeleteEvent()
, DoCancel()
, DoComplete()
, DoRunL()
, Event()
, Event()
, GetEvent()
, GetString()
, NewL()
, SmsPDUData()
, ~CSmsEventLogger()
Inherited from CActive
:
Cancel()
,
Deque()
,
EPriorityHigh
,
EPriorityIdle
,
EPriorityLow
,
EPriorityStandard
,
EPriorityUserInput
,
Extension_()
,
IsActive()
,
IsAdded()
,
Priority()
,
SetActive()
,
SetPriority()
,
TPriority
,
iStatus
Inherited from CBase
:
Delete()
,
operator new()
Inherited from CSmsuActiveBase
:
Complete()
,
CompleteMyself()
,
ConstructTimeoutL()
,
Queue()
,
RunError()
,
RunL()
,
TimedSetActive()
,
iReport
,
iSmsuTimeout
Capability: | Illegal |
static IMPORT_C CSmsEventLogger *NewL(RFs &aFs, TInt aPriority=CActive::EPriorityStandard);
Allocates and creates a logger.
|
|
Capability: | WriteUserData |
IMPORT_C void AddEvent(TRequestStatus &aStatus, const CSmsMessage &aSmsMessage, const TLogSmsPduData &aData, TInt *aStatusId=0);
Adds an event to the log database.
|
Capability: | ReadUserData |
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()
.
|
Capability: | WriteUserData |
IMPORT_C void ChangeEvent(TRequestStatus &aStatus, const CSmsMessage &aSmsMessage, const TLogSmsPduData &aData, TInt *aStatusId=0);
Changes the details of an existing event.
Use GetEvent()
to specify the event.
|
Capability: | WriteUserData |
IMPORT_C void DeleteEvent(TRequestStatus &aStatus);
Deletes an event.
Use GetEvent()
to specify the event.
|
inline TBool ClientAvailable() const;
Tests whether the Log Engine is installed.
|
inline TInt GetString(TDes &aString, TInt aId) const;
Gets a standard string from the specified resource.
|
|
inline CLogEvent &Event();
Gets the current log event.
|
inline const CLogEvent &Event() const;
Gets the current (const) log event.
|
inline const TLogSmsPduData &SmsPDUData() const;
Gets the current event's SMS PDU data.
|
protected: virtual void 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()
.
private: virtual void DoRunL();
< Trapped in CSmsuActiveBase::RunError()
which calls Complete()
.
private: virtual void DoComplete(TInt &aStatus);
Implements derived-class specified Complete()
behaviour.
This is called from Complete()
.
|