|
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 PSETREFRESHHANDLER_H |
|
21 #define PSETREFRESHHANDLER_H |
|
22 |
|
23 |
|
24 // INCLUDES |
|
25 #include <MSSSettingsRefreshObserver.h> |
|
26 #include <MSatRefreshObserver.h> |
|
27 |
|
28 |
|
29 // DATA TYPES |
|
30 |
|
31 // Changed CSP settings. |
|
32 enum TPSetChangedCspSetting |
|
33 { |
|
34 EPSetNoChangedSetting = 0x0000, // No setting was changed in refresh. |
|
35 EPSetCW = 0x0001, // Call Waiting setting was changed. |
|
36 EPSetCB = 0x0002, // Call Barring was changed. |
|
37 EPSetCF = 0x0004, // Call Forwarding setting was changed. |
|
38 EPSetALS = 0x0008, // Alternate Line setting was changed. |
|
39 EPSetNetSelSup = 0x0010, // Manual Network Selection setting |
|
40 // was changed. |
|
41 }; |
|
42 |
|
43 |
|
44 // CLASS DECLARATION |
|
45 |
|
46 /** |
|
47 * The Refresh handler to inform refresses. |
|
48 * |
|
49 * @lib PhoneSettings.lib |
|
50 * @since 2.8 |
|
51 */ |
|
52 class CPSetRefreshHandler : |
|
53 public CBase |
|
54 { |
|
55 public: // New functions |
|
56 |
|
57 /** |
|
58 * Start the waiting for refresh events. |
|
59 * |
|
60 * @param aObserver The observer to handle refresh events. |
|
61 * @param aObservedFile The file change to be observed. |
|
62 * @param aObservedRefreshType The refresh type(s) to be observed. |
|
63 */ |
|
64 virtual void NotifyFileChangeL( |
|
65 MSSSettingsRefreshObserver& aObserver, |
|
66 TSatElementaryFiles aObservedFile, |
|
67 TSatRefreshType aObservedRefreshType ) = 0; |
|
68 |
|
69 /** |
|
70 * Cancel the notification started in NotifyFileChangeL. |
|
71 * |
|
72 * @param aObserver The observer whose notify to be canceled. |
|
73 * @param aObservedFile The file change to be canceled. |
|
74 * @param aObservedRefreshType The refresh type to be canceled. |
|
75 */ |
|
76 virtual void CancelNotify() = 0; |
|
77 |
|
78 /** |
|
79 * Get the changed CSP information after Refresh. |
|
80 * |
|
81 * @param aChangedCspSettings The changed CSP settings, |
|
82 * TPSetChangedCspSetting values combined. |
|
83 * @param aNewValues The new values of changed CSP settings, |
|
84 * TPSetChangedCspSetting values combined. |
|
85 * @return Error code. KErrNone if successful. |
|
86 */ |
|
87 virtual TInt ChangedCspSettings( |
|
88 TPSetChangedCspSetting& aChangedCspSettings, |
|
89 TPSetChangedCspSetting& aNewValues ) = 0; |
|
90 }; |
|
91 |
|
92 #endif // PSETREFRESHHANDLER_H |
|
93 |
|
94 // End of File |