mpviewplugins/mpcollectionviewplugin/inc/mpcollectionpopuphandler.h
changeset 55 f3930dda3342
parent 37 eb79a7c355bf
equal deleted inserted replaced
51:560ce2306a17 55:f3930dda3342
    17 
    17 
    18 #ifndef MPCOLLECTIONPOPUPHANDLER_H
    18 #ifndef MPCOLLECTIONPOPUPHANDLER_H
    19 #define MPCOLLECTIONPOPUPHANDLER_H
    19 #define MPCOLLECTIONPOPUPHANDLER_H
    20 
    20 
    21 #include <QObject>
    21 #include <QObject>
       
    22 #include <QModelIndex>
    22 #include "mpmpxcollectionviewdefs.h"
    23 #include "mpmpxcollectionviewdefs.h"
    23 
    24 
    24 class MpCollectionView;
    25 class MpCollectionView;
    25 class HbPopup;
    26 class HbPopup;
    26 class HbAction;
    27 class HbAction;
    36 
    37 
    37 public:
    38 public:
    38     MpCollectionPopupHandler( MpCollectionView *parent );
    39     MpCollectionPopupHandler( MpCollectionView *parent );
    39     virtual ~MpCollectionPopupHandler();
    40     virtual ~MpCollectionPopupHandler();
    40 
    41 
    41     void openDefaultViewContextMenu( int index, const QPointF &coords );
    42     void openDefaultViewContextMenu( const QModelIndex &index, const QPointF &coords );
    42     void openFetchViewContextMenu( int index, const QPointF &coords );
    43     void openFetchViewContextMenu( const QModelIndex &index, const QPointF &coords );
    43     void openRenamePlaylistContainerDialog( const QString &currentName );
    44     void openRenamePlaylistContainerDialog( const QString &currentName );
    44     void openRenamePlaylistItemDialog( const QString &currentName );
    45     void openRenamePlaylistItemDialog( const QString &currentName );
    45     void openAddSongsToPlaylist( QAbstractItemModel* model );
    46     void openAddSongsToPlaylist( QAbstractItemModel* model );
    46     void openAddSongsToPlaylistFromTBone();
    47     void openAddSongsToPlaylistFromTBone();
    47     void openDeleteSongs( QAbstractItemModel* model );
    48     void openDeleteSongs( QAbstractItemModel* model );
    48     void openAddToCurrentPlaylist( MpMpxCollectionData* collectionData );
    49     void openAddToCurrentPlaylist( MpMpxCollectionData* collectionData );
    49     void openCreateNewPlaylist( MpMpxCollectionData* collectionData );
    50     void openCreateNewPlaylist( MpMpxCollectionData* collectionData, bool isolated );
       
    51     void openCreateNewPlaylistFromTBone();
    50     void openArrangeSongs();
    52     void openArrangeSongs();
    51     void cancelOngoingPopup(  bool onlyContextMenu );
    53     void cancelOngoingPopup(  bool onlyContextMenu );
    52 
    54 
    53 public slots:
    55 public slots:
    54     //Context Menus
    56     //Context Menus
    72     void handleDeleteStarted( TCollectionContext context, int count );
    74     void handleDeleteStarted( TCollectionContext context, int count );
    73     void handleAddingSongs( int count );
    75     void handleAddingSongs( int count );
    74     void handleOperationEnded( bool success );
    76     void handleOperationEnded( bool success );
    75 
    77 
    76     void outstandingPopupClosing();
    78     void outstandingPopupClosing();
       
    79     void inputDialogChanged( QString text );
       
    80     void requestDelete();
    77 
    81 
    78 private:
    82 private:
    79     void setOutstandingPopup( HbPopup *popup );
    83     void setOutstandingPopup( HbPopup *popup );
    80     void clearOutstandingPopup( HbPopup *popup );    
    84     void clearOutstandingPopup( HbPopup *popup );    
    81     void launchAddToPlaylistDialog( QList<int> &selection );
    85     void launchAddToPlaylistDialog( QList<int> &selection );
    82     void queryNewPlaylistName(const QStringList &playlists, const char *handler );
    86     void queryNewPlaylistName(const QStringList &playlists, const char *handler );
    83     void getText(const QString &label, const QString &text, const char *handler );
    87     void getText(const QString &label, const QString &text, const QString &confirmationActionLabel, const char *handler );
    84     void getModelIndexes( const QString &label, QAbstractItemModel* model, const char *handler );
    88     void getModelIndexes( const QString &label, const QString &confirmationActionLabel, QAbstractItemModel* model, const char *handler );
    85     void launchArrangeSongsDialog();
    89     void launchArrangeSongsDialog();
    86     void requestDelete( QList<int> &selection );
       
    87     void launchProgressDialog( const char *id );
    90     void launchProgressDialog( const char *id );
    88     void connectExternalEvents();
    91     void connectExternalEvents();
    89 
    92 
    90 private:
    93 private:
    91     MpCollectionView                *mView;                          // Not own
    94     MpCollectionView                *mView;                          // Not own