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 __LOGSERVOPERATIONFACTORY_H__
|
sl@0
|
17 |
#define __LOGSERVOPERATIONFACTORY_H__
|
sl@0
|
18 |
|
sl@0
|
19 |
#include <e32base.h>
|
sl@0
|
20 |
#include "LogServDefs.h"
|
sl@0
|
21 |
#include "LogCliServShared.h"
|
sl@0
|
22 |
|
sl@0
|
23 |
// Classes referenced
|
sl@0
|
24 |
class CLogPackage;
|
sl@0
|
25 |
class CLogServViewBase;
|
sl@0
|
26 |
class CLogServOperationBase;
|
sl@0
|
27 |
class MLogServTaskInterface;
|
sl@0
|
28 |
class MLogServBackupInterface;
|
sl@0
|
29 |
class MLogServOperationManager;
|
sl@0
|
30 |
class MLogServDatabaseTransactionInterface;
|
sl@0
|
31 |
|
sl@0
|
32 |
/**
|
sl@0
|
33 |
A factory class, used for creation of operation objects and queueing them for execution.
|
sl@0
|
34 |
|
sl@0
|
35 |
Operation objects. Every operation class derives from CLogServOperationBase.
|
sl@0
|
36 |
|
sl@0
|
37 |
@see CLogServOperationBase
|
sl@0
|
38 |
|
sl@0
|
39 |
@see CLogServOpEventAdd
|
sl@0
|
40 |
@see CLogServOpEventGet
|
sl@0
|
41 |
@see CLogServOpEventChange
|
sl@0
|
42 |
@see CLogServOpEventDelete
|
sl@0
|
43 |
@see CLogServOpTypeAdd
|
sl@0
|
44 |
@see CLogServOpTypeGet
|
sl@0
|
45 |
@see CLogServOpTypeChange
|
sl@0
|
46 |
@see CLogServOpTypeDelete
|
sl@0
|
47 |
@see CLogServOpClearLog
|
sl@0
|
48 |
@see CLogServOpClearRecent
|
sl@0
|
49 |
@see CLogServOpConfigGet
|
sl@0
|
50 |
@see CLogServOpConfigChange
|
sl@0
|
51 |
@see CLogServOpMaintenance
|
sl@0
|
52 |
|
sl@0
|
53 |
@see CLogServOpViewSetup
|
sl@0
|
54 |
@see CLogServOpViewEventRemove
|
sl@0
|
55 |
@see CLogServOpViewClearDuplicates
|
sl@0
|
56 |
@see CLogServOpViewSetFlags
|
sl@0
|
57 |
@see CLogServOpViewWindowFetcher
|
sl@0
|
58 |
|
sl@0
|
59 |
View objects.Every view class derives from CLogServViewBase.
|
sl@0
|
60 |
|
sl@0
|
61 |
@see CLogServViewBase
|
sl@0
|
62 |
|
sl@0
|
63 |
@see CLogServViewEvent
|
sl@0
|
64 |
@see CLogServViewRecent
|
sl@0
|
65 |
@see CLogServViewDuplicate
|
sl@0
|
66 |
|
sl@0
|
67 |
The class also offers a factory method for views creation - NewViewL().
|
sl@0
|
68 |
All created objects accept a reference to the MLogServOperationManager object and add themselves to the
|
sl@0
|
69 |
operations queue.
|
sl@0
|
70 |
|
sl@0
|
71 |
@see MLogServOperationManager
|
sl@0
|
72 |
|
sl@0
|
73 |
@internalComponent
|
sl@0
|
74 |
*/
|
sl@0
|
75 |
class LogServFactory
|
sl@0
|
76 |
{
|
sl@0
|
77 |
public:
|
sl@0
|
78 |
static CLogServOperationBase* NewOperationL(const TLogClientServerData& aCliServData,
|
sl@0
|
79 |
MLogServTaskInterface& aTaskInterface,
|
sl@0
|
80 |
MLogServOperationManager& aOperationManager,
|
sl@0
|
81 |
const RMessage2& aMessage,
|
sl@0
|
82 |
CLogPackage& aLogPackage,
|
sl@0
|
83 |
TLogServSessionId aSessionId
|
sl@0
|
84 |
);
|
sl@0
|
85 |
|
sl@0
|
86 |
static CLogServOperationBase* NewViewOperationL(const TLogClientServerData& aCliServData,
|
sl@0
|
87 |
MLogServTaskInterface& aTaskInterface,
|
sl@0
|
88 |
MLogServOperationManager& aOperationManager,
|
sl@0
|
89 |
const RMessage2& aMessage,
|
sl@0
|
90 |
CLogPackage& aLogPackage,
|
sl@0
|
91 |
TLogServSessionId aSessionId,
|
sl@0
|
92 |
CLogServViewBase& aView
|
sl@0
|
93 |
);
|
sl@0
|
94 |
|
sl@0
|
95 |
|
sl@0
|
96 |
static CLogServViewBase* NewViewL(TLogViewType aType,
|
sl@0
|
97 |
TLogViewId aId,
|
sl@0
|
98 |
MLogServDatabaseTransactionInterface& aDatabase,
|
sl@0
|
99 |
MLogServBackupInterface& aBackupInterface,
|
sl@0
|
100 |
CLogPackage& aPackage,
|
sl@0
|
101 |
const RMessage2& aMessage
|
sl@0
|
102 |
);
|
sl@0
|
103 |
};
|
sl@0
|
104 |
|
sl@0
|
105 |
#endif
|
sl@0
|
106 |
|