]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/dolphinpart.h
Refactor DolphinContextMenu so its actions are retrievable
[dolphin.git] / src / dolphinpart.h
index 16c49f96e1f7f767b69e0dc3c0241c8ec1b906d5..a49603ca877fc2c5bd27ab27a1609953d3cf9ca1 100644 (file)
@@ -9,6 +9,7 @@
 
 #include <KParts/ReadOnlyPart>
 
+#include <QAction>
 #include <QUrl>
 
 class DolphinNewFileMenu;
@@ -122,14 +123,11 @@ private Q_SLOTS:
      * @pos           Position in screen coordinates.
      * @item          File item context. If item is null, the context menu
      *                should be applied to \a url.
+     * @selectedItems The selected items for which the context menu
+     *                is opened. This list generally includes \a item.
      * @url           URL which contains \a item.
-     * @customActions Actions that should be added to the context menu,
-     *                if the file item is null.
      */
-    void slotOpenContextMenu(const QPoint& pos,
-                             const KFileItem& item,
-                             const QUrl& url,
-                             const QList<QAction*>& customActions);
+    void slotOpenContextMenu(const QPoint &pos, const KFileItem &_item, const KFileItemList &selectedItems, const QUrl &);
 
     /**
      * Informs the host that we are opening \a url (e.g. after a redirection
@@ -218,6 +216,8 @@ private:
 
     void openSelectionDialog(const QString& title, const QString& text,
                              bool selectItems);
+    QString urlToLocalFilePath(const QUrl &url);
+    QString localFilePathOrHome() const;
 
 private:
     DolphinView* m_view;