CFileLoggerServer Class Reference
class CFileLoggerServer : public CServer2 |
CFileLoggerServer - maintain server state
This class is responsible for maintaining the server state. It provides control of the second thread, the ini file change notifier, the current list of valid logs and other ini file settings, and the log queue.
Constructor & Destructor Documentation
CFileLoggerServer()
CFileLoggerServer | ( | ) | [private] |
Member Functions Documentation
AppendAndGiveOwnership(CLogMessageBase *)
Append a log package to the queue end.
Note: Entry only allowed for primary (producer) thread.
If win32 and debug port logging on, package is written immediately to the debug port as well.
If no space has been allocated for the OOM error msg, then this is done first.
If flushing (synchronous) operation then waits for completion.
ConstructL()
void | ConstructL | ( | ) | [private] |
Note:
Constructs the secondary thread, passing through a pointer to the log queue. Constructs the file parser object and parses the file, attempting to copy the file from the ROM if it is not found on C drive. Constructs the time beat. Performs the first UpdateMedia to ensure a media is set.
GetFirstMessageAndTakeOwnership(CLogMessageBase *&)
IniFileChanged(TDesC &)
void | IniFileChanged | ( | TDesC & | aIniFile | ) | |
Called by the file watcher when the ini file changes. Any OOM problems are ignored
NewSessionL(const TVersion &, const RMessage2 &)
Create a new server session. Check that client is using current or older interface and make a new session.
Note: Called by kernel after RFileLogger::DoConnect().
PutOOMErrorInLog()
void | PutOOMErrorInLog | ( | ) | [virtual] |
RePrepareForOOML()
void | RePrepareForOOML | ( | ) | [private] |
Called to ensure there is space for the OOM error msg in log queue.
RunError(TInt)
TInt
| RunError | ( | TInt | aError | ) | [protected, virtual] |
Leave has occured in CFileLogSession::ServiceL. Usually this is because the appending of the message to the queue has failed due to the queue being filled.
SignalCompletionSemaphore()
void | SignalCompletionSemaphore | ( | ) | [virtual] |
UpdateMediaL()
void | UpdateMediaL | ( | ) | [private] |
Member Data Documentation
TBool
iArrayHasSpaceForWrite
TBool
| iArrayHasSpaceForWrite | [private] |
RSemaphore
iCompletionSemaphore
RCriticalSection
iCriticalSection
CIniFileParser * iIniFileParser
CIniFileWatcher * iIniFileWatcher
CIniFileWatcher * iIniOldFileWatcher
RPointerArray< CLogMessageBase > iLogMessageArray
CLogCommentMessage * iPreAllocatedErrorMessage
CSecondaryThread * iSecondaryThread
CTimeManager * iTimeManager
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.