81 RArray<CMPXMedia*>& aFromArray, |
84 RArray<CMPXMedia*>& aFromArray, |
82 CMPXMedia& aToList, |
85 CMPXMedia& aToList, |
83 RArray<TUint32>& aMdsIds ); |
86 RArray<TUint32>& aMdsIds ); |
84 |
87 |
85 /** |
88 /** |
|
89 * Appends all items from aFromList to aToList. New items will point to |
|
90 * same shared memory. |
|
91 * |
|
92 * @param aToList List in which items are appended to. |
|
93 * @param aFromList List in which items are copied from. |
|
94 */ |
|
95 static void AppendToListL( CMPXMedia& aToList, CMPXMedia& aFromList ); |
|
96 |
|
97 /** |
86 * Converts drive letter to drive number. |
98 * Converts drive letter to drive number. |
87 * |
99 * |
88 * @param aDrive drive letter |
100 * @param aDrive drive letter |
89 * @return drive number |
101 * @return drive number |
90 */ |
102 */ |
116 * @return Flags, see values from TVcxMyVideosVideoFlags in vcxmyvideosdefs.h |
128 * @return Flags, see values from TVcxMyVideosVideoFlags in vcxmyvideosdefs.h |
117 */ |
129 */ |
118 static TUint32 FlagsL( CMPXMedia& aVideo ); |
130 static TUint32 FlagsL( CMPXMedia& aVideo ); |
119 |
131 |
120 /** |
132 /** |
|
133 * Gets KMPXMediaGeneralDate (creation date) of aVideo. |
|
134 * |
|
135 * @param aVideo Media object to fetch parameter from. |
|
136 * @return Creation date, works with TTime. |
|
137 */ |
|
138 static TInt64 CreationDateL( CMPXMedia& aVideo ); |
|
139 |
|
140 /** |
121 * Gets KVcxMediaMyVideosDownloadId attribute of aVideo. |
141 * Gets KVcxMediaMyVideosDownloadId attribute of aVideo. |
122 * |
142 * |
123 * @param aVideo Media object to fetch parameter from. |
143 * @param aVideo Media object to fetch parameter from. |
124 * @return Download ID in Download Manager. |
144 * @return Download ID in Download Manager. |
125 */ |
145 */ |
137 * Gets KMPXMediaGeneralId attribute of aVideo. |
157 * Gets KMPXMediaGeneralId attribute of aVideo. |
138 * |
158 * |
139 * @param aVideo Media object to fetch parameter from. |
159 * @param aVideo Media object to fetch parameter from. |
140 * @return ID. |
160 * @return ID. |
141 */ |
161 */ |
142 static TMPXItemId IdL( CMPXMedia& aVideo ); |
162 static TMPXItemId IdL( const CMPXMedia& aVideo ); |
143 |
163 |
144 /** |
164 /** |
145 * Gets KVcxMediaMyVideosDuration attribute of aVideo. |
165 * Gets KVcxMediaMyVideosDuration attribute of aVideo. |
146 * |
166 * |
147 * @param aVideo Media object to fetch parameter from. |
167 * @param aVideo Media object to fetch parameter from. |
153 * Gets KMPXMediaGeneralTitle attribute of the video. |
173 * Gets KMPXMediaGeneralTitle attribute of the video. |
154 * |
174 * |
155 * @return KMPXMediaGeneralTitle value. If attribute is not supported, |
175 * @return KMPXMediaGeneralTitle value. If attribute is not supported, |
156 * then KNullDesC is returned. |
176 * then KNullDesC is returned. |
157 */ |
177 */ |
158 static const TDesC& Title( CMPXMedia& aVideo ); |
178 static const TDesC& Title( const CMPXMedia& aVideo ); |
159 |
179 |
160 /** |
180 /** |
161 * Gets KVcxMediaMyVideosRating attribute of the video. |
181 * Gets KVcxMediaMyVideosRating attribute of the video. |
162 * |
182 * |
163 * @param aVideo Media object to fetch parameter from. |
183 * @param aVideo Media object to fetch parameter from. |
205 * @return Returns Origin or KErrNotFound if not found. KVcxMvcCategoryIdAll |
225 * @return Returns Origin or KErrNotFound if not found. KVcxMvcCategoryIdAll |
206 * returns also KErrNotFound. |
226 * returns also KErrNotFound. |
207 */ |
227 */ |
208 static TInt Origin( TInt aCategoryId ); |
228 static TInt Origin( TInt aCategoryId ); |
209 |
229 |
|
230 /** |
|
231 * Gets KMPXMediaArrayContents attribute from aMedia. Leaves |
|
232 * with KErrArgument is attribute is not supported. |
|
233 * |
|
234 * @param aMedia Media where from the attribute is fetched. |
|
235 * @return Pointer to media array. |
|
236 */ |
|
237 static CMPXMediaArray* MediaArrayL( const CMPXMedia& aMedia ); |
|
238 |
|
239 /** |
|
240 * Gets KVcxMediaMyVideosInt32Value attribute from aMedia. Leaves |
|
241 * with KErrArgument if attribute is not supported. |
|
242 * |
|
243 * @param aMedia Media where from the attribute is fetched. |
|
244 * @return Value of KVcxMediaMyVideosInt32Value attribute. |
|
245 */ |
|
246 static TInt32 Int32ValueL( CMPXMedia& aMedia ); |
|
247 |
|
248 /** |
|
249 * Gets KVcxMediaMyVideosUint32Value attribute from aMedia. Leaves |
|
250 * with KErrArgument if attribute is not supported. |
|
251 * |
|
252 * @param aMedia Media where from the attribute is fetched. |
|
253 * @return Value of KVcxMediaMyVideosUint32Value attribute. |
|
254 */ |
|
255 static TUint32 Uint32ValueL( CMPXMedia& aMedia ); |
|
256 |
|
257 /** |
|
258 * Gets KMPXMediaGeneralId attributes from aMediaArray and |
|
259 * puts them to aIdArray. aIdArray is reset before adding. |
|
260 * |
|
261 * @param aMediaArray Media array containing media items which |
|
262 * have KMPXMediaGeneralId attribute set. |
|
263 * @param aIdArray Array where to the IDs are written to. |
|
264 */ |
|
265 static void GetIdsFromMediaArrayL( CMPXMediaArray& aMediaArray, |
|
266 RArray<TUint32>& aIdArray ); |
|
267 |
210 #ifdef _DEBUG |
268 #ifdef _DEBUG |
211 /** |
269 /** |
212 * Prints process names which have file handle open to aFileName |
270 * Prints process names which have file handle open to aFileName |
213 * |
271 * |
214 * @param aFileName File to check for open file handles. |
272 * @param aFileName File to check for open file handles. |