|
1 /* |
|
2 * Copyright (c) 2008 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 interfaces to get notifications from appui and from engine |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef TSFSWOBSERVERS_H |
|
20 #define TSFSWOBSERVERS_H |
|
21 |
|
22 /** |
|
23 * Interface to get notifications from appui when window groups |
|
24 * have changed. |
|
25 */ |
|
26 class MTsFswTaskListObserver |
|
27 { |
|
28 public: |
|
29 /** |
|
30 * Function called by AppUi to notify about possible |
|
31 * changes in task list |
|
32 */ |
|
33 virtual void UpdateTaskList() = 0; |
|
34 }; |
|
35 |
|
36 /** |
|
37 * Interface to get notifications from appui's HandleResourceChangeL. |
|
38 */ |
|
39 class MTsFswResourceObserver |
|
40 { |
|
41 public: |
|
42 /** |
|
43 * Function called by AppUi to notify about resource changes. |
|
44 */ |
|
45 virtual void HandleResourceChange( TInt aType ) = 0; |
|
46 }; |
|
47 |
|
48 /** |
|
49 * Observer interface to get notifications from engine |
|
50 * when fsw content has changed. |
|
51 */ |
|
52 class MTsFswEngineObserver |
|
53 { |
|
54 public: |
|
55 /** |
|
56 * Called when there is a change in the task list. |
|
57 */ |
|
58 virtual void FswDataChanged() = 0; |
|
59 |
|
60 /** |
|
61 * Called to find out how many clients are subscribed |
|
62 * for fsw content change notifications. |
|
63 */ |
|
64 virtual TInt FswDataListenerCount() = 0; |
|
65 }; |
|
66 |
|
67 /** |
|
68 * This class is interface for CTsFsHiddenAppList |
|
69 * to notify about list change |
|
70 */ |
|
71 class MTsFsHiddenAppListObserver |
|
72 { |
|
73 public: |
|
74 /** |
|
75 * This function is called by CTsFsHiddenAppList when list is changed. |
|
76 */ |
|
77 virtual void HiddenAppListUpdated() = 0; |
|
78 }; |
|
79 |
|
80 #endif |