1 /* |
|
2 * Copyright (c) 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 "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: Location Centre Server object. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef C_LCREGISTRYUPDATE_H |
|
20 #define C_LCREGISTRYUPDATE_H |
|
21 |
|
22 /** |
|
23 * @file lcregistryupdate.h |
|
24 * |
|
25 * This file provides the definitions for the file server notifier class which enables |
|
26 * lc server to listen to notifications(like new registration file addition/removal also for MMC removal/addition) |
|
27 * from file server. |
|
28 * |
|
29 * @since S60 v5.0 |
|
30 */ |
|
31 |
|
32 // SYSTEM INCLUDES |
|
33 #include <e32base.h> |
|
34 #include <f32file.h> |
|
35 |
|
36 //USER INCLUDE |
|
37 |
|
38 |
|
39 //FORWARD DECLARATION |
|
40 class MLcRegistryUpdateNotifier; |
|
41 |
|
42 /** |
|
43 * @class CLcRegistryUpdate |
|
44 * |
|
45 * This class provides all the interface for the file server notifications |
|
46 * (like new registration file addition/removal etc) from file server. |
|
47 * |
|
48 * @since S60 v5.0 |
|
49 */ |
|
50 |
|
51 NONSHARABLE_CLASS( CLcRegistryUpdate ) : public CActive |
|
52 { |
|
53 public: |
|
54 /** |
|
55 * Constructs a new instance of CLcRegistryUpdate. |
|
56 * |
|
57 * @return The new instance of CLcRegistryUpdate object. |
|
58 * @leave System wide error code if the object creation fails. |
|
59 */ |
|
60 static CLcRegistryUpdate* NewL(MLcRegistryUpdateNotifier& aFileNotifier, |
|
61 RFs& aFs); |
|
62 |
|
63 /** |
|
64 * C++ Destructor. |
|
65 * Frees all the resources associated with this Location Centre |
|
66 * server registry handler |
|
67 */ |
|
68 virtual ~CLcRegistryUpdate(); |
|
69 |
|
70 private: |
|
71 /** |
|
72 * C++ Default constructor |
|
73 */ |
|
74 CLcRegistryUpdate( MLcRegistryUpdateNotifier& aFileNotifier, RFs& aFs ); |
|
75 |
|
76 /** |
|
77 * Private Second phase constructor |
|
78 */ |
|
79 void ConstructL(); |
|
80 |
|
81 public: |
|
82 void StartFileNotifation(); |
|
83 |
|
84 private: // From CActive |
|
85 /** |
|
86 * Inherited from CActive |
|
87 */ |
|
88 void RunL(); |
|
89 |
|
90 /** |
|
91 * Inherited from CActive |
|
92 */ |
|
93 void DoCancel(); |
|
94 |
|
95 /** |
|
96 * Inherited from CActive |
|
97 */ |
|
98 TInt RunError( TInt aError ); |
|
99 |
|
100 private: //data member |
|
101 MLcRegistryUpdateNotifier& iFileNotifier; |
|
102 RFs& iFs; |
|
103 RTimer iTimer; |
|
104 TBool iFileNotifyPending; |
|
105 }; |
|
106 |
|
107 #endif // C_LCREGISTRYUPDATE_H |
|
108 |
|