|
1 /* |
|
2 * Copyright (c) 2004 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: The Refresh handler to inform refresses. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef CPSETREFRESHHANDLERIMPL_H |
|
21 #define CPSETREFRESHHANDLERIMPL_H |
|
22 |
|
23 |
|
24 // INCLUDES |
|
25 #include <PSetRefreshHandler.h> |
|
26 #include <msatrefreshobserver.h> |
|
27 |
|
28 |
|
29 // FORWARD DECLARATIONS |
|
30 class CPsetCustomerServiceProfile; |
|
31 class CSSSettingsRefreshContainer; |
|
32 class MSSSettingsRefreshHandler; |
|
33 |
|
34 |
|
35 // CLASS DECLARATION |
|
36 |
|
37 /** |
|
38 * The Refresh handler to inform refresses. |
|
39 * |
|
40 * @lib PhoneSettings.lib |
|
41 * @since 2.8 |
|
42 */ |
|
43 class CPSetRefreshHandlerImpl : |
|
44 public CPSetRefreshHandler, |
|
45 public MSSSettingsRefreshObserver |
|
46 { |
|
47 public: // Constructors and destructor |
|
48 |
|
49 /** |
|
50 * Two-phased constructor. |
|
51 */ |
|
52 static CPSetRefreshHandlerImpl* NewL(); |
|
53 |
|
54 /** |
|
55 * Destructor. |
|
56 */ |
|
57 virtual ~CPSetRefreshHandlerImpl(); |
|
58 |
|
59 |
|
60 public: // Functions from base classes |
|
61 |
|
62 /** |
|
63 * @see CPSetRefreshHandler::NotifyFileChangeL. |
|
64 */ |
|
65 void NotifyFileChangeL( |
|
66 MSSSettingsRefreshObserver& aObserver, |
|
67 TSatElementaryFiles aObservedFiles, |
|
68 TSatRefreshType aObservedRefreshType ); |
|
69 |
|
70 /** |
|
71 * @see CPSetRefreshHandler::CancelNotify. |
|
72 */ |
|
73 void CancelNotify(); |
|
74 |
|
75 /** |
|
76 * @see CPSetRefreshHandler::ChangedCspSettings. |
|
77 */ |
|
78 TInt ChangedCspSettings( |
|
79 TPSetChangedCspSetting& aChangedCspSettings, |
|
80 TPSetChangedCspSetting& aNewValues ); |
|
81 |
|
82 |
|
83 public: // Functions from base classes |
|
84 |
|
85 /** |
|
86 * @see MSSSettingsRefreshObserver::AllowRefresh |
|
87 */ |
|
88 TBool AllowRefresh( |
|
89 const TSatRefreshType aType, |
|
90 const TSatElementaryFiles aFiles ); |
|
91 |
|
92 /** |
|
93 * @see MSSSettingsRefreshObserver::Refresh |
|
94 */ |
|
95 void Refresh( |
|
96 const TSatRefreshType aType, |
|
97 const TSatElementaryFiles aFiles ); |
|
98 |
|
99 |
|
100 private: |
|
101 |
|
102 /** |
|
103 * C++ default constructor. |
|
104 */ |
|
105 CPSetRefreshHandlerImpl(); |
|
106 |
|
107 /** |
|
108 * By default Symbian 2nd phase constructor is private. |
|
109 */ |
|
110 void ConstructL(); |
|
111 |
|
112 |
|
113 private: // Data |
|
114 |
|
115 // The Csp handler. |
|
116 CPsetCustomerServiceProfile* iCsp; |
|
117 |
|
118 // The SSSettings refresh handler container. |
|
119 CSSSettingsRefreshContainer* iSSSetRefContainer; |
|
120 |
|
121 // The SSSettings refresh handler. |
|
122 MSSSettingsRefreshHandler* iSSSetRefHandler; |
|
123 |
|
124 // The observer for refresses |
|
125 MSSSettingsRefreshObserver* iObserver; |
|
126 |
|
127 }; |
|
128 |
|
129 #endif // CPSETREFRESHHANDLERIMPL_H |
|
130 |
|
131 // End of File |