videocollection/videocollectionwrapper/inc/videocollectionclient.h
changeset 36 8aed59de29f9
parent 35 3738fe97f027
child 50 21fe8338c6bf
--- a/videocollection/videocollectionwrapper/inc/videocollectionclient.h	Thu Apr 01 23:32:44 2010 +0300
+++ b/videocollection/videocollectionwrapper/inc/videocollectionclient.h	Fri Apr 16 18:13:14 2010 +0300
@@ -20,13 +20,13 @@
 #include <vcxmyvideosdefs.h>
 #include <QList>
 #include "videocollectioncommon.h"
+
 // FORWARD DECLARATIONS
 
 class MMPXCollectionUtility;
 class VideoDataSignalReceiver;
 class VideoCollectionListener;
 
-
 // CLASS DECLARATION
 
 /**
@@ -36,7 +36,7 @@
  */
 class VideoCollectionClient 
 {
-        
+
 public: 
     
     /**
@@ -59,7 +59,6 @@
     int initialize(VideoDataSignalReceiver *signalReceiver);
 
 public:
-   
         
     /**
      * Collection opening status
@@ -70,8 +69,6 @@
         ECollectionOpening,
         ECollectionOpened            
     };  
-        
-
 
     /**
      * Connects videodata signals to provided object
@@ -112,7 +109,7 @@
      * startOpenCurrentState to start collection into current state. 
      * 
      */
-    void setOpenStatus(int status);
+    void setOpenStatus(int status,  bool startOpening = true);
         
     /**
      * Starts opening of collection to the all videos category
@@ -205,6 +202,15 @@
      * @return 0 if no errors.
      */
     int removeItemsFromAlbum(TMPXItemId &albumId, const QList<TMPXItemId> &mediaIds);
+    
+    /**
+     * Renames an album.
+     * 
+     * @param albumId, Album to be renamed.
+     * @param newTitle, New title for the album.
+     * @return 0 if no errors.
+     */
+    int renameAlbum(const TMPXItemId &albumId, const QString &newTitle);
 
 private:
     
@@ -290,8 +296,16 @@
      */
     void removeItemsFromAlbumL(TMPXItemId &albumId, const QList<TMPXItemId> &mediaIds);
     
+    /**
+     * Renames an album.
+     * 
+     * @param albumId, Album to be renamed.
+     * @param newTitle, New title for the album.
+     * @return None.
+     */
+    void renameAlbumL(const TMPXItemId &albumId, const QString newTitle);
+    
 private:
-    
 
     /**
      * Pointer to MPX Collection utility.