--- a/videocollection/mpxmyvideoscollection/inc/vcxmyvideoscollectionutil.h Tue Feb 02 00:12:10 2010 +0200
+++ b/videocollection/mpxmyvideoscollection/inc/vcxmyvideoscollectionutil.h Fri Apr 16 14:59:52 2010 +0300
@@ -11,17 +11,17 @@
*
* Contributors:
*
-* Description:
+* Description:
*
*/
-
#ifndef VCXMYVIDEOSCOLLECTIONUTIL_H
#define VCXMYVIDEOSCOLLECTIONUTIL_H
// INCLUDES
+#include <vcxmyvideosdefs.h>
// FORWARD DECLARATIONS
class CMPXMedia;
@@ -83,6 +83,15 @@
RArray<TUint32>& aMdsIds );
/**
+ * Appends all items from aFromList to aToList. New items will point to
+ * same shared memory.
+ *
+ * @param aToList List in which items are appended to.
+ * @param aFromList List in which items are copied from.
+ */
+ static void AppendToListL( CMPXMedia& aToList, CMPXMedia& aFromList );
+
+ /**
* Converts drive letter to drive number.
*
* @param aDrive drive letter
@@ -139,7 +148,7 @@
* @param aVideo Media object to fetch parameter from.
* @return ID.
*/
- static TMPXItemId IdL( CMPXMedia& aVideo );
+ static TMPXItemId IdL( const CMPXMedia& aVideo );
/**
* Gets KVcxMediaMyVideosDuration attribute of aVideo.
@@ -155,7 +164,7 @@
* @return KMPXMediaGeneralTitle value. If attribute is not supported,
* then KNullDesC is returned.
*/
- static const TDesC& Title( CMPXMedia& aVideo );
+ static const TDesC& Title( const CMPXMedia& aVideo );
/**
* Gets KVcxMediaMyVideosRating attribute of the video.
@@ -207,6 +216,44 @@
*/
static TInt Origin( TInt aCategoryId );
+ /**
+ * Gets KMPXMediaArrayContents attribute from aMedia. Leaves
+ * with KErrArgument is attribute is not supported.
+ *
+ * @param aMedia Media where from the attribute is fetched.
+ * @return Pointer to media array.
+ */
+ static CMPXMediaArray* MediaArrayL( CMPXMedia& aMedia );
+
+ /**
+ * Gets KVcxMediaMyVideosInt32Value attribute from aMedia. Leaves
+ * with KErrArgument if attribute is not supported.
+ *
+ * @param aMedia Media where from the attribute is fetched.
+ * @return Value of KVcxMediaMyVideosInt32Value attribute.
+ */
+ static TInt32 Int32ValueL( CMPXMedia& aMedia );
+
+ /**
+ * Gets KVcxMediaMyVideosUint32Value attribute from aMedia. Leaves
+ * with KErrArgument if attribute is not supported.
+ *
+ * @param aMedia Media where from the attribute is fetched.
+ * @return Value of KVcxMediaMyVideosUint32Value attribute.
+ */
+ static TUint32 Uint32ValueL( CMPXMedia& aMedia );
+
+ /**
+ * Gets KMPXMediaGeneralId attributes from aMediaArray and
+ * puts them to aIdArray. aIdArray is reset before adding.
+ *
+ * @param aMediaArray Media array containing media items which
+ * have KMPXMediaGeneralId attribute set.
+ * @param aIdArray Array where to the IDs are written to.
+ */
+ static void GetIdsFromMediaArrayL( CMPXMediaArray& aMediaArray,
+ RArray<TUint32>& aIdArray );
+
#ifdef _DEBUG
/**
* Prints process names which have file handle open to aFileName