equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2006-2007 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 the License "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: includes observer methods on the logdatabase. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef LOGOBSERVER_H |
|
21 #define LOGOBSERVER_H |
|
22 |
|
23 /** |
|
24 *Forward Declarations |
|
25 */ |
|
26 class CLogClient ; |
|
27 class CBase ; |
|
28 class MLogClientChangeObserver ; |
|
29 class RFs ; |
|
30 |
|
31 /** |
|
32 * Observer Class Abstraction |
|
33 */ |
|
34 |
|
35 class CLogObserver : public CBase |
|
36 { |
|
37 public : |
|
38 |
|
39 /** |
|
40 * Two phase constructors |
|
41 */ |
|
42 static CLogObserver* NewL() ; |
|
43 static CLogObserver* NewLC() ; |
|
44 |
|
45 /** |
|
46 * ConstructL method, to construct the clients |
|
47 */ |
|
48 void ConstructL() ; |
|
49 |
|
50 /** |
|
51 * SetObserver methods, sets the observer for the |
|
52 * changes happening in the database |
|
53 */ |
|
54 |
|
55 void SetObserverL(MLogClientChangeObserver* aObserver) ; |
|
56 |
|
57 /** |
|
58 * Default Destructors |
|
59 */ |
|
60 |
|
61 ~CLogObserver() ; |
|
62 |
|
63 protected : |
|
64 |
|
65 /** |
|
66 * Protected Constructor |
|
67 */ |
|
68 |
|
69 CLogObserver() ; |
|
70 |
|
71 private : |
|
72 |
|
73 /** |
|
74 * datamembers |
|
75 */ |
|
76 RFs iFs ; |
|
77 CLogClient* iLogClient ; |
|
78 }; |
|
79 #endif |