|
1 /* |
|
2 * Copyright (c) 2002-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: |
|
15 * Phonebook 2 contact store configuration monitor. |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 #ifndef CPBK2STORECONFIGURATIONMONITOR_H |
|
21 #define CPBK2STORECONFIGURATIONMONITOR_H |
|
22 |
|
23 // INCLUDE FILES |
|
24 #include <e32base.h> |
|
25 #include <badesca.h> |
|
26 |
|
27 // FORWARD DECLARATIONS |
|
28 class CRepository; |
|
29 class TVPbkContactStoreUriPtr; |
|
30 class CVPbkContactStoreUriArray; |
|
31 class MPbk2StoreConfigurationObserver; |
|
32 |
|
33 /** |
|
34 * Phonebook 2 contact store configuration monitor. |
|
35 */ |
|
36 NONSHARABLE_CLASS(CPbk2StoreConfigurationMonitor) : |
|
37 public CActive |
|
38 { |
|
39 public: // Construction & destruction |
|
40 static CPbk2StoreConfigurationMonitor* NewL( |
|
41 CRepository& aRepository, |
|
42 MPbk2StoreConfigurationObserver& aObserver); |
|
43 |
|
44 ~CPbk2StoreConfigurationMonitor(); |
|
45 |
|
46 public: // From CActive |
|
47 void RunL(); |
|
48 void DoCancel(); |
|
49 |
|
50 private: // Implementation |
|
51 CPbk2StoreConfigurationMonitor( |
|
52 CRepository& aRepository, |
|
53 MPbk2StoreConfigurationObserver& aObserver); |
|
54 void ConstructL(); |
|
55 void RenewRequestL(); |
|
56 |
|
57 private: // Data |
|
58 /// Ref: Central repository handle |
|
59 CRepository& iRepository; |
|
60 /// Ref: Observers of store configuration events |
|
61 MPbk2StoreConfigurationObserver& iObserver; |
|
62 }; |
|
63 |
|
64 #endif // CPBK2STORECONFIGURATIONMONITOR_H |
|
65 |
|
66 // End of File |