sl@0
|
1 |
// Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies).
|
sl@0
|
2 |
// All rights reserved.
|
sl@0
|
3 |
// This component and the accompanying materials are made available
|
sl@0
|
4 |
// under the terms of "Eclipse Public License v1.0"
|
sl@0
|
5 |
// which accompanies this distribution, and is available
|
sl@0
|
6 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
sl@0
|
7 |
//
|
sl@0
|
8 |
// Initial Contributors:
|
sl@0
|
9 |
// Nokia Corporation - initial contribution.
|
sl@0
|
10 |
//
|
sl@0
|
11 |
// Contributors:
|
sl@0
|
12 |
//
|
sl@0
|
13 |
// Description:
|
sl@0
|
14 |
//
|
sl@0
|
15 |
|
sl@0
|
16 |
#ifndef __LOGSERVSERVER_H__
|
sl@0
|
17 |
#define __LOGSERVSERVER_H__
|
sl@0
|
18 |
|
sl@0
|
19 |
#include <logcli.h>
|
sl@0
|
20 |
#include "LogCliServShared.h"
|
sl@0
|
21 |
#include "LogServSessionLifetimeObserver.h"
|
sl@0
|
22 |
|
sl@0
|
23 |
// Classes referenced
|
sl@0
|
24 |
class CLogServRecentListManager;
|
sl@0
|
25 |
class CLogServOperationQueue;
|
sl@0
|
26 |
class CLogServDatabaseDriver;
|
sl@0
|
27 |
class CLogServDatabaseMarshall;
|
sl@0
|
28 |
class CLogServResourceInterpreter;
|
sl@0
|
29 |
class CLogServBackupManager;
|
sl@0
|
30 |
class CLogServShutdownTimer;
|
sl@0
|
31 |
class CLogServDatabaseChangeTracker;
|
sl@0
|
32 |
|
sl@0
|
33 |
/**
|
sl@0
|
34 |
The LogEng server class. Implements the MLogServSessionLifetimeObserver interface.
|
sl@0
|
35 |
Owns the following objects (private data members):
|
sl@0
|
36 |
- Shutdown timer (CLogServShutdownTimer instance);
|
sl@0
|
37 |
- Backup manager (CLogServBackupManager instance);
|
sl@0
|
38 |
- Resource interpreter (CLogServResourceInterpreter instance);
|
sl@0
|
39 |
- CLogServDatabaseMarshall instance;
|
sl@0
|
40 |
- CLogServDatabaseChangeTracker instance;
|
sl@0
|
41 |
- CLogServDatabaseDriver instance;
|
sl@0
|
42 |
- CLogServOperationQueue instance;
|
sl@0
|
43 |
|
sl@0
|
44 |
@see MLogServSessionLifetimeObserver
|
sl@0
|
45 |
@see CLogServShutdownTimer
|
sl@0
|
46 |
@see CLogServBackupManager
|
sl@0
|
47 |
@see CLogServResourceInterpreter
|
sl@0
|
48 |
@see CLogServDatabaseMarshall
|
sl@0
|
49 |
@see CLogServDatabaseChangeTracker
|
sl@0
|
50 |
@see CLogServDatabaseDriver
|
sl@0
|
51 |
@see CLogServOperationQueue
|
sl@0
|
52 |
@internalComponent
|
sl@0
|
53 |
*/
|
sl@0
|
54 |
class CLogServServer : public CServer2, public MLogServSessionLifetimeObserver
|
sl@0
|
55 |
{
|
sl@0
|
56 |
public:
|
sl@0
|
57 |
static CLogServServer* NewLC();
|
sl@0
|
58 |
~CLogServServer();
|
sl@0
|
59 |
void MakeTransient(TBool aTransient);
|
sl@0
|
60 |
|
sl@0
|
61 |
private:
|
sl@0
|
62 |
CLogServServer();
|
sl@0
|
63 |
void ConstructL();
|
sl@0
|
64 |
// FROM MLogServSessionLifetimeObserver
|
sl@0
|
65 |
void SLOHandleEvent(TLogServSessionId aId, TLogServSessionEvent aEvent);
|
sl@0
|
66 |
// FROM CServer
|
sl@0
|
67 |
CSession2* NewSessionL(const TVersion& aVersion,const RMessage2& aMessage) const;
|
sl@0
|
68 |
|
sl@0
|
69 |
private:
|
sl@0
|
70 |
TInt iSessionCount;//Number of connected sessions
|
sl@0
|
71 |
TBool iTransient;//Whether the server is transient or not
|
sl@0
|
72 |
TLogServSessionId iNextFreeSessionId;//The next id to assign to any new session
|
sl@0
|
73 |
TLogOperationId iNextFreeOperationId;//The next free id to assign to an operation
|
sl@0
|
74 |
TLogViewId iNextFreeViewId;//The next free id to assign to a view
|
sl@0
|
75 |
RFs iFsSession;
|
sl@0
|
76 |
CLogServShutdownTimer* iShutdownTimer;
|
sl@0
|
77 |
CLogServBackupManager* iBackupManager;
|
sl@0
|
78 |
CLogServResourceInterpreter* iResourceInterpreter;
|
sl@0
|
79 |
CLogServRecentListManager* iRecentListManager;
|
sl@0
|
80 |
CLogServDatabaseMarshall* iDatabaseMarshall;
|
sl@0
|
81 |
CLogServDatabaseChangeTracker* iChangeTracker;
|
sl@0
|
82 |
CLogServDatabaseDriver* iDatabaseDriver;
|
sl@0
|
83 |
CLogServOperationQueue* iOperationQueue;
|
sl@0
|
84 |
};
|
sl@0
|
85 |
|
sl@0
|
86 |
#endif
|