CVoipEventLog Class Reference
class CVoipEventLog : public CBase
|
VoIP event log API class
CVoipEventLog
is responsible for writing and reading error information from central repository The maximu error count is saved in cenrep ini file, if there are more errors than maximum count, old error is overwritten.
_LIT( KErrorText, "something wrong, man!" );
CVoipEventLog* eventLog = CVoipEventLog::NewLC();
CVoipErrorEntry* entry = CVoipErrorEntry::NewLC();
entry->SetErrorCode( -1 );
User::LeaveIfError( entry->SetErrorText( KErrorText ));
TInt err = eventLog->WriteError( *entry );
User::LeaveIfError( err );
CleanupStack::PopAndDestroy( entry );
CleanupStack::PopAndDestroy( eventLog );
voipeventlog.lib
-
Since
-
S60 v3.2
Constructor & Destructor Documentation
CVoipEventLog()
CVoipEventLog
|
(
|
)
|
[private]
|
~CVoipEventLog()
IMPORT_C
|
~CVoipEventLog
|
(
|
)
|
|
Member Functions Documentation
ConstructL()
void
|
ConstructL
|
(
|
)
|
[private]
|
By default Symbian 2nd phase constructor is private.
DoWriteErrorL(const CVoipErrorEntry &)
Writes an error data to event log this is leave function
DoWriteErrorL(TInt)
void
|
DoWriteErrorL
|
(
|
TInt
|
aErrorCode
|
)
|
[private]
|
Writes an error code to event log this is leave function
-
Since
-
S60 v3.2
Parameters
TInt
aErrorCode
|
VoIP error identification
|
ErrorCount()
IMPORT_C
TInt
|
ErrorCount
|
(
|
)
|
const
|
Reads error count from the log
ReadError(TInt, CVoipErrorEntry &)
Reads an error information from the log
Parameters
TInt
aIndex
|
the index of error to be read, 0 means latest error index
|
CVoipErrorEntry
& aErrorEntry
|
in return, error information corresponding to aIndex
|
ResetLog()
IMPORT_C
TInt
|
ResetLog
|
(
|
)
|
|
Clear all voip error entries from the log
WriteError(const CVoipErrorEntry &)
Writes an error data to event log
WriteError(TInt)
IMPORT_C
TInt
|
WriteError
|
(
|
TInt
|
aErrorCode
|
)
|
|
Writes an error code to event log this function only writes the error code, no other infomration
-
Since
-
S60 v3.2
Parameters
TInt
aErrorCode
|
VoIP error identification
|
Member Data Documentation
CVoipEventLogEngine * iEngine
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.