|
1 /* |
|
2 * ============================================================================ |
|
3 * Name : hgfswidgetlist.h |
|
4 * Part of : Hg Teleport |
|
5 * Description : web widget list |
|
6 * Version : %version: sa1spcx1#5 % |
|
7 * |
|
8 * Copyright 2008 Nokia. All rights reserved. |
|
9 * This material, including documentation and any related computer |
|
10 * programs, is protected by copyright controlled by Nokia. All |
|
11 * rights are reserved. Copying, including reproducing, storing, |
|
12 * adapting or translating, any or all of this material requires the |
|
13 * prior written consent of Nokia. This material also contains |
|
14 * confidential information which may not be disclosed to others |
|
15 * without the prior written consent of Nokia. |
|
16 * ============================================================================ |
|
17 */ |
|
18 |
|
19 #ifndef HGFSWIDGETLIST_H_ |
|
20 #define HGFSWIDGETLIST_H_ |
|
21 |
|
22 #include <e32base.h> |
|
23 #include <widgetregistryclient.h> |
|
24 |
|
25 const TUint32 KWidgetAppUidValue = 0x10282822; |
|
26 |
|
27 /** |
|
28 * class handling the list of running wrt widgets |
|
29 */ |
|
30 NONSHARABLE_CLASS(CHgFsWidgetList) : public CBase |
|
31 { |
|
32 public: |
|
33 static CHgFsWidgetList* NewL(); |
|
34 |
|
35 /** Destructor */ |
|
36 ~CHgFsWidgetList(); |
|
37 |
|
38 /** |
|
39 * Initializes the list that stores widgets. |
|
40 * @return - |
|
41 */ |
|
42 void InitializeWidgetListL(); |
|
43 |
|
44 /** |
|
45 * Returns a ref to the list of running widgets. |
|
46 */ |
|
47 const RWidgetInfoArray& RunningWidgets() const { return iRunningWidgets; } |
|
48 |
|
49 private: |
|
50 /** Constructor */ |
|
51 CHgFsWidgetList(); |
|
52 void ResetArrayOfWidgetInfo( RWidgetInfoArray& aWidgetInfoArr ); |
|
53 |
|
54 static void CleanupConnect( TAny* aThis ); |
|
55 |
|
56 private: |
|
57 /** Contains list of widgets that are currently running */ |
|
58 RWidgetInfoArray iRunningWidgets; |
|
59 RWidgetRegistryClientSession iWidgetRegistryClientSession; |
|
60 }; |
|
61 |
|
62 #endif |