|
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 SAT refresses. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef MSSSETTINGSREFRESHHANDLER_H |
|
21 #define MSSSETTINGSREFRESHHANDLER_H |
|
22 |
|
23 |
|
24 // INCLUDES |
|
25 #include <MSSSettingsRefreshObserver.h> |
|
26 #include <msatrefreshobserver.h> |
|
27 |
|
28 |
|
29 // FORWARD DECLARATIONS |
|
30 class CSSSettingsNotifyContainer; |
|
31 |
|
32 |
|
33 // CLASS DECLARATION |
|
34 |
|
35 /** |
|
36 * The Refresh handler to inform SAT refresses. |
|
37 * |
|
38 * @lib SsSettings.lib |
|
39 * @since 2.8 |
|
40 */ |
|
41 class MSSSettingsRefreshHandler |
|
42 { |
|
43 public: // New functions |
|
44 |
|
45 /** |
|
46 * Start the waiting for refresh events. |
|
47 * |
|
48 * @param aObserver The observer to handle refresh events. |
|
49 * @param aObservedFile The file change to be observed. |
|
50 * @param aObservedRefreshType The refresh type(s) to be observed. |
|
51 */ |
|
52 virtual void NotifyFileChangeL( |
|
53 MSSSettingsRefreshObserver& aObserver, |
|
54 TSatElementaryFiles aObservedFile, |
|
55 TSatRefreshType aObservedRefreshType ) = 0; |
|
56 |
|
57 /** |
|
58 * Cancel the notification started in NotifyFileChangeL. |
|
59 * |
|
60 * @param aObserver The observer whose notify to be canceled. |
|
61 * @param aObservedFile The file change to be canceled. |
|
62 * @param aObservedRefreshType The refresh type to be canceled. |
|
63 */ |
|
64 virtual void CancelNotify() = 0; |
|
65 |
|
66 /** |
|
67 * Get the changed CSP information after Refresh. |
|
68 * |
|
69 * @param aChangedCsps The changed CSP fields, |
|
70 * type RMobilePhone::TMobilePhoneCspFileV1Pckg. |
|
71 * @param aNewValues The new values of changed CSP fields, |
|
72 * type RMobilePhone::TMobilePhoneCspFileV1Pckg. |
|
73 * @return Error code. KErrNone if successful. |
|
74 */ |
|
75 virtual TInt ChangedCspTable( |
|
76 TDes8& aChangedCsps, |
|
77 TDes8& aNewValues ) = 0; |
|
78 }; |
|
79 |
|
80 #endif // MSSSETTINGSREFRESHHANDLER_H |
|
81 |
|
82 // End of File |