ui/commandhandlers/commandhandlerbase/inc/glxmpxcommandhandler.h
changeset 29 2c833fc9e98f
parent 24 99ad1390cd33
child 62 36d93b4dc635
--- a/ui/commandhandlers/commandhandlerbase/inc/glxmpxcommandhandler.h	Mon May 03 12:31:32 2010 +0300
+++ b/ui/commandhandlers/commandhandlerbase/inc/glxmpxcommandhandler.h	Fri May 14 15:52:22 2010 +0300
@@ -30,14 +30,19 @@
 #endif
 class MGlxMediaList;
 class HbProgressDialog;
+class HbAction;
 
 class GLX_COMMANDHANDLERBASE_EXPORT GlxMpxCommandHandler : public GlxCommandHandler, public MGlxMediaListObserver
 {
+Q_OBJECT    
 public:
     GlxMpxCommandHandler();
     virtual ~GlxMpxCommandHandler();
     virtual void executeCommand(int commandId,int collectionId,QList<QModelIndex> indexList = QList<QModelIndex>() );
 
+public slots:
+    void messageDialogClose(HbAction* action);
+
 protected: // From MGlxMediaListObserver    
     /// See @ref MGlxMediaListObserver::HandleItemAddedL
     void HandleItemAddedL(TInt aStartIndex, TInt aEndIndex, MGlxMediaList* aList);
@@ -81,19 +86,21 @@
 	virtual QString ProgressTextL() const;        
     virtual QString ConfirmationTextL(bool multiSelection = false) const; 
 private: 
-    bool ConfirmationNoteL(MGlxMediaList& aMediaList) const;
-    bool ConfirmationNoteSingleL(MGlxMediaList& aMediaList) const;
-    bool ConfirmationNoteMultipleL(MGlxMediaList& aMediaList) const;
+    void ConfirmationNoteL(MGlxMediaList& aMediaList);
+    void ConfirmationNoteSingleL(MGlxMediaList& aMediaList) ;
+    void ConfirmationNoteMultipleL(MGlxMediaList& aMediaList) ;
 	void ProgressNoteL(TInt aCommandId);
 	void DismissProgressNoteL();
 	void CompletionNoteL() const;
     void TryExitL(TInt aErrorCode);
     void CreateMediaListL(int aCollectionId, int aHierarchyId, TGlxFilterItemType aFilterType) ;
     void CreateMediaListAlbumItemL(int aCollectionId, int aHierarchyId, TGlxFilterItemType aFilterType);
+    void executeMpxCommand(bool execute);
 private:
     // Instance of Media List
     MGlxMediaList* iMediaList;
 	TBool iProgressComplete;
 	HbProgressDialog* mProgressDialog;
+	int mCommandId;
 };
-#endif //GLXMPXCOMMANDHANDLER_H
\ No newline at end of file
+#endif //GLXMPXCOMMANDHANDLER_H