equal
deleted
inserted
replaced
18 |
18 |
19 #ifndef WRHARVESTERREGISTRYACCESS_H |
19 #ifndef WRHARVESTERREGISTRYACCESS_H |
20 #define WRHARVESTERREGISTRYACCESS_H |
20 #define WRHARVESTERREGISTRYACCESS_H |
21 |
21 |
22 // INCLUDES |
22 // INCLUDES |
23 #include <widgetregistryclient.h> |
23 #include <WidgetRegistryClient.h> |
24 #include <badesca.h> |
24 #include <badesca.h> |
25 |
25 |
26 // FORWARD DECLARATIONS |
26 // FORWARD DECLARATIONS |
27 class CWidgetInfo; |
27 class CWidgetInfo; |
28 |
28 |
29 // CONSTANTS |
29 // CONSTANTS |
30 const TInt32 KS60Widget = 1; |
|
31 template < class T > class RWrtArray : public RPointerArray< T > |
30 template < class T > class RWrtArray : public RPointerArray< T > |
32 { |
31 { |
33 public: |
32 public: |
34 inline RWrtArray() : RPointerArray< T >() |
33 inline RWrtArray() : RPointerArray< T >() |
35 { |
34 { |
71 inline CWrtInfo() |
70 inline CWrtInfo() |
72 { |
71 { |
73 iUid = TUid::Uid(0); |
72 iUid = TUid::Uid(0); |
74 iDisplayName = NULL; |
73 iDisplayName = NULL; |
75 iBundleId = NULL; |
74 iBundleId = NULL; |
76 iType = KErrNotFound; |
|
77 } |
75 } |
78 |
76 |
79 /** |
77 /** |
80 * Destructor. |
78 * Destructor. |
81 */ |
79 */ |
87 |
85 |
88 public: |
86 public: |
89 TUid iUid; |
87 TUid iUid; |
90 HBufC* iDisplayName;// widget display name |
88 HBufC* iDisplayName;// widget display name |
91 HBufC* iBundleId; // widget bundle identifier |
89 HBufC* iBundleId; // widget bundle identifier |
92 TInt iType; // widget type |
|
93 }; |
90 }; |
94 |
91 |
95 // CLASS DECLARATION |
92 // CLASS DECLARATION |
96 |
93 |
97 /** |
94 /** |
132 * @param aSession Widget registry session |
129 * @param aSession Widget registry session |
133 * @param aUid UID of widget. |
130 * @param aUid UID of widget. |
134 * @return Yes or no. |
131 * @return Yes or no. |
135 */ |
132 */ |
136 TBool SupportsMiniviewL( RWidgetRegistryClientSession& aSession, const TUid& aUid ); |
133 TBool SupportsMiniviewL( RWidgetRegistryClientSession& aSession, const TUid& aUid ); |
137 |
|
138 /** |
|
139 * Check if the widget is wgz. |
|
140 * |
|
141 * @param aSession Widget registry session |
|
142 * @param aUid UID of widget. |
|
143 * @return Yes or no. |
|
144 */ |
|
145 TBool IsNokiaWidget( RWidgetRegistryClientSession& aSession, const TUid& aUid ); |
|
146 |
134 |
147 /** |
135 /** |
148 * Returns the property value for the widget as a string. Ownership transferred. |
136 * Returns the property value for the widget as a string. Ownership transferred. |
149 * |
137 * |
150 * @param aSession Widget registry session |
138 * @param aSession Widget registry session |