|
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: Observer to listen refresh events |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef MSSSETTINGSREFRESHOBSERVER_H |
|
21 #define MSSSETTINGSREFRESHOBSERVER_H |
|
22 |
|
23 |
|
24 // INCLUDES |
|
25 #include <e32std.h> |
|
26 #include <etelsat.h> |
|
27 #include <MSatRefreshObserver.h> |
|
28 |
|
29 |
|
30 // DATA TYPES |
|
31 |
|
32 // CLASS DECLARATION |
|
33 |
|
34 /** |
|
35 * Observer to listen refresh events |
|
36 * |
|
37 * @lib SSSettings.lib |
|
38 * @since 2.8 |
|
39 */ |
|
40 class MSSSettingsRefreshObserver |
|
41 { |
|
42 public: // New functions |
|
43 |
|
44 /** |
|
45 * Refresh query. Client should determine whether it allow the |
|
46 * refresh to happen. |
|
47 * |
|
48 * @param aType Refresh type. |
|
49 * @param aFiles Elementary files which are to be changed. |
|
50 * May be zero length. |
|
51 * @return ETrue to allow refresh, EFalse to decline refresh. |
|
52 */ |
|
53 virtual TBool AllowRefresh( |
|
54 const TSatRefreshType aType, |
|
55 const TSatElementaryFiles aFiles ) = 0; |
|
56 |
|
57 /** |
|
58 * Notification of refresh. |
|
59 * |
|
60 * @param aType Type of refresh which has happened. |
|
61 * @param aFiles List of elementary files which have been changed. |
|
62 * May be zero length. |
|
63 */ |
|
64 virtual void Refresh( |
|
65 const TSatRefreshType aType, |
|
66 const TSatElementaryFiles aFiles ) = 0; |
|
67 }; |
|
68 |
|
69 #endif // MSSSETTINGSREFRESHOBSERVER_H |
|
70 |
|
71 // End of File |