|
1 /* |
|
2 * =========================================================================== |
|
3 * Name : hgfswobservers.h |
|
4 * Part of : Huriganes / Fast Swap Server |
|
5 * Description : Observer interfaces to get notifications from appui and from engine |
|
6 * Version : %version: sa1spcx1#4 % |
|
7 * |
|
8 * Copyright © 2008 Nokia Corporation. |
|
9 * This material, including documentation and any related |
|
10 * computer programs, is protected by copyright controlled by |
|
11 * Nokia Corporation. All rights are reserved. Copying, |
|
12 * including reproducing, storing, adapting or translating, any |
|
13 * or all of this material requires the prior written consent of |
|
14 * Nokia Corporation. This material also contains confidential |
|
15 * information which may not be disclosed to others without the |
|
16 * prior written consent of Nokia Corporation. |
|
17 * =========================================================================== |
|
18 */ |
|
19 |
|
20 #ifndef __HGFSWOBSERVERS_H |
|
21 #define __HGFSWOBSERVERS_H |
|
22 |
|
23 /** |
|
24 * Interface to get notifications from appui when window groups |
|
25 * have changed. |
|
26 */ |
|
27 class MHgFswTaskListObserver |
|
28 { |
|
29 public: |
|
30 /** |
|
31 * Function called by AppUi to notify about possible |
|
32 * changes in task list |
|
33 */ |
|
34 virtual void UpdateTaskList() = 0; |
|
35 }; |
|
36 |
|
37 /** |
|
38 * Interface to get notifications from appui's HandleResourceChangeL. |
|
39 */ |
|
40 class MHgFswResourceObserver |
|
41 { |
|
42 public: |
|
43 /** |
|
44 * Function called by AppUi to notify about resource changes. |
|
45 */ |
|
46 virtual void HandleResourceChange( TInt aType ) = 0; |
|
47 }; |
|
48 |
|
49 /** |
|
50 * Observer interface to get notifications from engine |
|
51 * when fsw content has changed. |
|
52 */ |
|
53 class MHgFswEngineObserver |
|
54 { |
|
55 public: |
|
56 /** |
|
57 * Called when there is a change in the task list. |
|
58 */ |
|
59 virtual void FswDataChanged() = 0; |
|
60 |
|
61 /** |
|
62 * Called to find out how many clients are subscribed |
|
63 * for fsw content change notifications. |
|
64 */ |
|
65 virtual TInt FswDataListenerCount() = 0; |
|
66 }; |
|
67 |
|
68 /** |
|
69 * This class is interface for CHgFsHiddenAppList |
|
70 * to notify about list change |
|
71 */ |
|
72 class MHgFsHiddenAppListObserver |
|
73 { |
|
74 public: |
|
75 /** |
|
76 * This function is called by CHgFsHiddenAppList when list is changed. |
|
77 */ |
|
78 virtual void HiddenAppListUpdated() = 0; |
|
79 }; |
|
80 |
|
81 #endif |