videocollection/videocollectionview/inc/videolistselectiondialog.h
changeset 35 3738fe97f027
parent 34 bbb98528c666
child 36 8aed59de29f9
equal deleted inserted replaced
34:bbb98528c666 35:3738fe97f027
    50 public: 
    50 public: 
    51     
    51     
    52     enum TSelectionFunction
    52     enum TSelectionFunction
    53     {
    53     {
    54         EDeleteVideos,
    54         EDeleteVideos,
    55         EAddToCollection,
    55         EAddToCollection,        
       
    56         ERemoveFromCollection,
    56         ESelectCollection
    57         ESelectCollection
    57     };
    58     };
    58     
    59     
    59     /**
    60     /**
    60      * Constructor
    61      * Constructor
    83 public slots:
    84 public slots:
    84 
    85 
    85     /**
    86     /**
    86      * Shows modal dialog build from the provided Videolistwidget.
    87      * Shows modal dialog build from the provided Videolistwidget.
    87      *
    88      *
    88      * @return HbAction primary action if "OK" iis pressed
    89      */
    89      */
    90     void exec();
    90     HbAction* exec();
       
    91     
    91     
    92 private slots:
    92 private slots:
    93     
    93     
    94     /**
    94     /**
    95      * Slot connected to mCheckBox's stateChanged -signal. 
    95      * Slot connected to mCheckBox's stateChanged -signal. 
   139     /**
   139     /**
   140      * Primary action triggered signal slot.
   140      * Primary action triggered signal slot.
   141      * 
   141      * 
   142      */
   142      */
   143     void primaryActionTriggeredSlot();
   143     void primaryActionTriggeredSlot();
       
   144     
       
   145     /**
       
   146      * called when dialog has been finished
       
   147      * 
       
   148      * @param action causing the finished
       
   149      */
       
   150     void finishedSlot(HbAction *action);
   144       
   151       
   145 private:
   152 private:
   146     
   153     
   147     /**
   154     /**
   148      * Method initializes dialog by getting all ui components and 
   155      * Method initializes dialog by getting all ui components and 
   175      */
   182      */
   176     QString getSelectedName();
   183     QString getSelectedName();
   177     
   184     
   178     /**
   185     /**
   179      * opens an input dialog for a user to input new album name
   186      * opens an input dialog for a user to input new album name
   180      * If everything goes well and user accepts, method returns new album id
   187      * If everything goes well and user accepts, method returns new album name and
   181      * 
   188      * saves album id into mSelectedAlbumId
   182      * @return TMPXItemId new album id or TMPXItemID::Invalid() in case of cancel
   189      * 
   183      */
   190      * @return QString new name or empty string in case of error or cancel
   184     TMPXItemId queryNewAlbum();
   191      */
       
   192     QString queryNewAlbumSelected();
   185     
   193     
   186 private:
   194 private:
   187    
   195    
   188     /**
   196     /**
   189      * docml UI loader, not owned
   197      * docml UI loader, not owned