ui/commandhandlers/commoncommandhandlers/inc/glxcommandhandleraddtocontainer.h
changeset 50 a0f57508af73
parent 40 112f0ac2d1f0
child 62 36d93b4dc635
equal deleted inserted replaced
45:863223ea6961 50:a0f57508af73
    31 class HbPushButton;
    31 class HbPushButton;
    32 class HbListView;
    32 class HbListView;
    33 class QGraphicsGridLayout;
    33 class QGraphicsGridLayout;
    34 class GlxAlbumModel;
    34 class GlxAlbumModel;
    35 class QGraphicsItem;
    35 class QGraphicsItem;
    36 class HbDialog;
       
    37 class QItemSelectionModel;
    36 class QItemSelectionModel;
    38 class QEventLoop;
    37 class QEventLoop;
    39 
    38 
    40 class GLX_COMMONCOMMANDHANDLERS_EXPORT GlxCommandHandlerAddToContainer : public GlxMpxCommandHandler
    39 class GLX_COMMONCOMMANDHANDLERS_EXPORT GlxCommandHandlerAddToContainer : public GlxMpxCommandHandler
    41 {
    40 {
    49     QString CompletionTextL() const;
    48     QString CompletionTextL() const;
    50     QString ProgressTextL() const; 
    49     QString ProgressTextL() const; 
    51     void createNewMedia() const;
    50     void createNewMedia() const;
    52 
    51 
    53 private:
    52 private:
    54     static TInt iSelectionCount;
       
    55     mutable bool mNewMediaAdded ;
    53     mutable bool mNewMediaAdded ;
    56     mutable CMPXCollectionPath* mTargetContainers ;
    54     mutable CMPXCollectionPath* mTargetContainers ;
       
    55     mutable QString mAlbumName;
    57 };
    56 };
    58 
    57 
    59 class GlxAlbumSelectionPopup: public QObject
    58 class GlxAlbumSelectionPopup: public QObject
    60 {
    59 {
    61     Q_OBJECT
    60     Q_OBJECT
    64     GlxAlbumSelectionPopup();
    63     GlxAlbumSelectionPopup();
    65     ~GlxAlbumSelectionPopup();
    64     ~GlxAlbumSelectionPopup();
    66     QModelIndexList GetSelectionList(GlxAlbumModel *model,bool *ok = 0) ;
    65     QModelIndexList GetSelectionList(GlxAlbumModel *model,bool *ok = 0) ;
    67     
    66     
    68 private slots:
    67 private slots:
    69     void changeButtonText();
       
    70     void dialogClosed( HbAction *action ) ;
    68     void dialogClosed( HbAction *action ) ;
    71     
    69     
    72 private :
    70 private :
    73     HbDialog* mPopupDlg;
       
    74     QItemSelectionModel * mSelectionModel; //no owner ship
    71     QItemSelectionModel * mSelectionModel; //no owner ship
    75     QEventLoop *mEventLoop;
    72     QEventLoop *mEventLoop;
    76     bool mResult;        
    73     bool mResult;        
    77 };
    74 };
    78     
    75