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

Inherits from

Constructor & Destructor Documentation

CVoipEventLog()

CVoipEventLog()[private]

C++ default constructor.

~CVoipEventLog()

IMPORT_C~CVoipEventLog()

Destructor.

Member Functions Documentation

ConstructL()

voidConstructL()[private]

By default Symbian 2nd phase constructor is private.

DoWriteErrorL(const CVoipErrorEntry &)

voidDoWriteErrorL(const CVoipErrorEntry &aErrorEntry)[private]

Writes an error data to event log this is leave function

Since
S60 v3.2

Parameters

const CVoipErrorEntry & aErrorEntryError information

DoWriteErrorL(TInt)

voidDoWriteErrorL(TIntaErrorCode)[private]
Writes an error code to event log this is leave function
Since
S60 v3.2

Parameters

TInt aErrorCodeVoIP error identification

ErrorCount()

IMPORT_C TIntErrorCount()const

Reads error count from the log

Since
S60 v3.2

NewL()

IMPORT_C CVoipEventLog *NewL()[static]

Two-phased constructor.

NewLC()

IMPORT_C CVoipEventLog *NewLC()[static]

ReadError(TInt, CVoipErrorEntry &)

IMPORT_C TIntReadError(TIntaIndex,
CVoipErrorEntry &aErrorEntry
)const

Reads an error information from the log

Since
S60 v3.2

Parameters

TInt aIndexthe index of error to be read, 0 means latest error index
CVoipErrorEntry & aErrorEntryin return, error information corresponding to aIndex

ResetLog()

IMPORT_C TIntResetLog()

Clear all voip error entries from the log

Since
S60 v3.2

WriteError(const CVoipErrorEntry &)

IMPORT_C TIntWriteError(const CVoipErrorEntry &aErrorEntry)

Writes an error data to event log

Since
S60 v3.2

Parameters

const CVoipErrorEntry & aErrorEntryError information

WriteError(TInt)

IMPORT_C TIntWriteError(TIntaErrorCode)
Writes an error code to event log this function only writes the error code, no other infomration
Since
S60 v3.2

Parameters

TInt aErrorCodeVoIP error identification

Member Data Documentation

CVoipEventLogEngine * iEngine

CVoipEventLogEngine *iEngine[private]