|
1 /* |
|
2 * Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * Produces objects that implement MLogsReader |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 #ifndef __Logs_Engine_CLogsReaderFactory_H__ |
|
21 #define __Logs_Engine_CLogsReaderFactory_H__ |
|
22 |
|
23 // INCLUDES |
|
24 #include <e32base.h> |
|
25 #include <f32file.h> |
|
26 #include "LogsEng.hrh" |
|
27 |
|
28 // FORWARD DECLARATION |
|
29 |
|
30 // CLASS DECLARATION |
|
31 class CPbkContactEngine; |
|
32 class MLogsObserver; |
|
33 class MLogsEvent; |
|
34 class MLogsReader; |
|
35 class MLogsEventArray; |
|
36 struct TLogsEventStrings; |
|
37 class CLogsEngine; |
|
38 |
|
39 /** |
|
40 * Produces objects that implement MLogsReader |
|
41 */ |
|
42 class CLogsReaderFactory : public CBase |
|
43 { |
|
44 |
|
45 public: |
|
46 |
|
47 /** |
|
48 * produces MLogsReader implementation object |
|
49 * |
|
50 * @param aFsSession ref. to file server session |
|
51 * @param aEventArray array of events |
|
52 * @param aStrings log client constants |
|
53 * @param aModelId model id |
|
54 * @param aObserver observer |
|
55 * @return MLogsReader implementation object |
|
56 */ |
|
57 static MLogsReader* LogsReaderL( RFs& aFsSession, |
|
58 MLogsEventArray& aEventArray, |
|
59 TLogsEventStrings& aStrings, |
|
60 TLogsModel aModelId, MLogsObserver* aObserver, |
|
61 CLogsEngine* aLogsEngineRef ); |
|
62 |
|
63 /** |
|
64 * produces MLogsReader implementation object |
|
65 * |
|
66 * @param aFsSession ref. to file server session |
|
67 * @param aObserver observer |
|
68 * @param aPbkEngine phonebook engine |
|
69 * @param aSMS if ETrue return SMS event updater |
|
70 * @return MLogsReader implementation object |
|
71 */ |
|
72 /**** |
|
73 static MLogsReader* LogsEventUpdaterL( RFs& aFsSession, |
|
74 CPbkContactEngine* aPbkEngine, |
|
75 MLogsObserver* aObserver, |
|
76 TBool aSMS = ETrue ); |
|
77 *****/ |
|
78 }; |
|
79 |
|
80 #endif // __Logs_Engine_CLogsReaderFactory_H__ |
|
81 |
|
82 // End of File |