9 * Initial Contributors: |
9 * Initial Contributors: |
10 * Nokia Corporation - initial contribution. |
10 * Nokia Corporation - initial contribution. |
11 * |
11 * |
12 * Contributors: |
12 * Contributors: |
13 * |
13 * |
14 * Description: |
14 * Description: |
15 * |
15 * |
16 */ |
16 */ |
17 |
|
18 |
17 |
19 |
18 |
20 |
19 |
21 #ifndef VCXMYVIDEOSCOLLECTIONUTIL_H |
20 #ifndef VCXMYVIDEOSCOLLECTIONUTIL_H |
22 #define VCXMYVIDEOSCOLLECTIONUTIL_H |
21 #define VCXMYVIDEOSCOLLECTIONUTIL_H |
23 |
22 |
24 // INCLUDES |
23 // INCLUDES |
|
24 #include <vcxmyvideosdefs.h> |
25 |
25 |
26 // FORWARD DECLARATIONS |
26 // FORWARD DECLARATIONS |
27 class CMPXMedia; |
27 class CMPXMedia; |
28 class RFs; |
28 class RFs; |
29 |
29 |
81 RArray<CMPXMedia*>& aFromArray, |
81 RArray<CMPXMedia*>& aFromArray, |
82 CMPXMedia& aToList, |
82 CMPXMedia& aToList, |
83 RArray<TUint32>& aMdsIds ); |
83 RArray<TUint32>& aMdsIds ); |
84 |
84 |
85 /** |
85 /** |
|
86 * Appends all items from aFromList to aToList. New items will point to |
|
87 * same shared memory. |
|
88 * |
|
89 * @param aToList List in which items are appended to. |
|
90 * @param aFromList List in which items are copied from. |
|
91 */ |
|
92 static void AppendToListL( CMPXMedia& aToList, CMPXMedia& aFromList ); |
|
93 |
|
94 /** |
86 * Converts drive letter to drive number. |
95 * Converts drive letter to drive number. |
87 * |
96 * |
88 * @param aDrive drive letter |
97 * @param aDrive drive letter |
89 * @return drive number |
98 * @return drive number |
90 */ |
99 */ |
205 * @return Returns Origin or KErrNotFound if not found. KVcxMvcCategoryIdAll |
214 * @return Returns Origin or KErrNotFound if not found. KVcxMvcCategoryIdAll |
206 * returns also KErrNotFound. |
215 * returns also KErrNotFound. |
207 */ |
216 */ |
208 static TInt Origin( TInt aCategoryId ); |
217 static TInt Origin( TInt aCategoryId ); |
209 |
218 |
|
219 /** |
|
220 * Gets KMPXMediaArrayContents attribute from aMedia. Leaves |
|
221 * with KErrArgument is attribute is not supported. |
|
222 * |
|
223 * @param aMedia Media where from the attribute is fetched. |
|
224 * @return Pointer to media array. |
|
225 */ |
|
226 static CMPXMediaArray* MediaArrayL( CMPXMedia& aMedia ); |
|
227 |
|
228 /** |
|
229 * Gets KVcxMediaMyVideosInt32Value attribute from aMedia. Leaves |
|
230 * with KErrArgument if attribute is not supported. |
|
231 * |
|
232 * @param aMedia Media where from the attribute is fetched. |
|
233 * @return Value of KVcxMediaMyVideosInt32Value attribute. |
|
234 */ |
|
235 static TInt32 Int32ValueL( CMPXMedia& aMedia ); |
|
236 |
|
237 /** |
|
238 * Gets KVcxMediaMyVideosUint32Value attribute from aMedia. Leaves |
|
239 * with KErrArgument if attribute is not supported. |
|
240 * |
|
241 * @param aMedia Media where from the attribute is fetched. |
|
242 * @return Value of KVcxMediaMyVideosUint32Value attribute. |
|
243 */ |
|
244 static TUint32 Uint32ValueL( CMPXMedia& aMedia ); |
|
245 |
|
246 /** |
|
247 * Gets KMPXMediaGeneralId attributes from aMediaArray and |
|
248 * puts them to aIdArray. aIdArray is reset before adding. |
|
249 * |
|
250 * @param aMediaArray Media array containing media items which |
|
251 * have KMPXMediaGeneralId attribute set. |
|
252 * @param aIdArray Array where to the IDs are written to. |
|
253 */ |
|
254 static void GetIdsFromMediaArrayL( CMPXMediaArray& aMediaArray, |
|
255 RArray<TUint32>& aIdArray ); |
|
256 |
210 #ifdef _DEBUG |
257 #ifdef _DEBUG |
211 /** |
258 /** |
212 * Prints process names which have file handle open to aFileName |
259 * Prints process names which have file handle open to aFileName |
213 * |
260 * |
214 * @param aFileName File to check for open file handles. |
261 * @param aFileName File to check for open file handles. |