|
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: Declaration of CPhoneSettingsTestRefreshHandler class. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef PHONESETTINGSTESTREFRESHHANDLER_H |
|
21 #define PHONESETTINGSTESTREFRESHHANDLER_H |
|
22 |
|
23 #include <e32base.h> |
|
24 #include <PSetRefreshHandler.h> |
|
25 #include "PhoneSettingsTestParser.h" |
|
26 |
|
27 // CLASS DECLARATION |
|
28 |
|
29 NONSHARABLE_CLASS(CPhoneSettingsTestRefreshHandler) : |
|
30 public CPSetRefreshHandler |
|
31 { |
|
32 public: // Constructors and destructor |
|
33 |
|
34 /** |
|
35 * Two-phased constructor. |
|
36 */ |
|
37 static CPhoneSettingsTestRefreshHandler* NewL() |
|
38 { |
|
39 CPhoneSettingsTestRefreshHandler* self = |
|
40 new (ELeave) CPhoneSettingsTestRefreshHandler(); |
|
41 CleanupStack::PushL( self ); |
|
42 self->ConstructL(); |
|
43 CleanupStack::Pop(); |
|
44 return self; |
|
45 } |
|
46 |
|
47 /** |
|
48 * Destructor. |
|
49 */ |
|
50 virtual ~CPhoneSettingsTestRefreshHandler(){} |
|
51 |
|
52 private: |
|
53 |
|
54 /** |
|
55 * C++ default constructor. |
|
56 */ |
|
57 CPhoneSettingsTestRefreshHandler(){} |
|
58 |
|
59 /** |
|
60 * By default Symbian 2nd phase constructor is private. |
|
61 */ |
|
62 void ConstructL(){} |
|
63 |
|
64 /** |
|
65 * Start the waiting for refresh events. |
|
66 * |
|
67 * @param aObserver The observer to handle refresh events. |
|
68 * @param aObservedFile The file change to be observed. |
|
69 * @param aObservedRefreshType The refresh type(s) to be observed. |
|
70 */ |
|
71 virtual void NotifyFileChangeL( |
|
72 MSSSettingsRefreshObserver& /*aObserver*/, |
|
73 TSatElementaryFiles /*aObservedFile*/, |
|
74 TSatRefreshType /*aObservedRefreshType*/ ){} |
|
75 |
|
76 /** |
|
77 * Cancel the notification started in NotifyFileChangeL. |
|
78 * |
|
79 * @param aObserver The observer whose notify to be canceled. |
|
80 * @param aObservedFile The file change to be canceled. |
|
81 * @param aObservedRefreshType The refresh type to be canceled. |
|
82 */ |
|
83 virtual void CancelNotify(){} |
|
84 |
|
85 /** |
|
86 * Get the changed CSP information after Refresh. |
|
87 * |
|
88 * @param aChangedCspSettings The changed CSP settings, |
|
89 * TPSetChangedCspSetting values combined. |
|
90 * @param aNewValues The new values of changed CSP settings, |
|
91 * TPSetChangedCspSetting values combined. |
|
92 * @return Error code. KErrNone if successful. |
|
93 */ |
|
94 virtual TInt ChangedCspSettings( |
|
95 TPSetChangedCspSetting& /*aChangedCspSettings*/, |
|
96 TPSetChangedCspSetting& /*aNewValues*/ ){return KErrNone;} |
|
97 }; |
|
98 |
|
99 |
|
100 #endif // PHONESETTINGSTESTREFRESHHANDLER_H |
|
101 |
|
102 // End of File |