diff -r c5b304f4d89b -r ed94e1e8390e mpviewplugins/mpcollectionviewplugin/inc/mpcollectionpopuphandler.h --- a/mpviewplugins/mpcollectionviewplugin/inc/mpcollectionpopuphandler.h Thu Sep 02 20:24:03 2010 +0300 +++ b/mpviewplugins/mpcollectionviewplugin/inc/mpcollectionpopuphandler.h Fri Sep 17 08:28:52 2010 +0300 @@ -19,6 +19,7 @@ #define MPCOLLECTIONPOPUPHANDLER_H #include +#include #include "mpmpxcollectionviewdefs.h" class MpCollectionView; @@ -38,15 +39,16 @@ MpCollectionPopupHandler( MpCollectionView *parent ); virtual ~MpCollectionPopupHandler(); - void openDefaultViewContextMenu( int index, const QPointF &coords ); - void openFetchViewContextMenu( int index, const QPointF &coords ); + void openDefaultViewContextMenu( const QModelIndex &index, const QPointF &coords ); + void openFetchViewContextMenu( const QModelIndex &index, const QPointF &coords ); void openRenamePlaylistContainerDialog( const QString ¤tName ); void openRenamePlaylistItemDialog( const QString ¤tName ); void openAddSongsToPlaylist( QAbstractItemModel* model ); void openAddSongsToPlaylistFromTBone(); void openDeleteSongs( QAbstractItemModel* model ); void openAddToCurrentPlaylist( MpMpxCollectionData* collectionData ); - void openCreateNewPlaylist( MpMpxCollectionData* collectionData ); + void openCreateNewPlaylist( MpMpxCollectionData* collectionData, bool isolated ); + void openCreateNewPlaylistFromTBone(); void openArrangeSongs(); void cancelOngoingPopup( bool onlyContextMenu ); @@ -74,16 +76,17 @@ void handleOperationEnded( bool success ); void outstandingPopupClosing(); + void inputDialogChanged( QString text ); + void requestDelete(); private: void setOutstandingPopup( HbPopup *popup ); void clearOutstandingPopup( HbPopup *popup ); void launchAddToPlaylistDialog( QList &selection ); void queryNewPlaylistName(const QStringList &playlists, const char *handler ); - void getText(const QString &label, const QString &text, const char *handler ); - void getModelIndexes( const QString &label, QAbstractItemModel* model, const char *handler ); + void getText(const QString &label, const QString &text, const QString &confirmationActionLabel, const char *handler ); + void getModelIndexes( const QString &label, const QString &confirmationActionLabel, QAbstractItemModel* model, const char *handler ); void launchArrangeSongsDialog(); - void requestDelete( QList &selection ); void launchProgressDialog( const char *id ); void connectExternalEvents();