]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/views/dolphinview.h
Added implementation of the FileInfoExtension to allow KPart plugins to obtain such...
[dolphin.git] / src / views / dolphinview.h
index 4877b0cd26c9630c58a773a1da679b8263f90e6c..a06105cf3c8808a0b2d3358efd785c67be0a7d43 100644 (file)
@@ -195,13 +195,6 @@ public:
      */
     KFileItemList selectedItems() const;
 
-    /**
-     * Returns a list of URLs for all selected items. An empty list
-     * is returned, if no item is selected.
-     * @see DolphinView::selectedItems()
-     */
-    KUrl::List selectedUrls() const;
-
     /**
      * Returns the number of selected items (this is faster than
      * invoking selectedItems().count()).
@@ -257,6 +250,8 @@ public:
     /** Reloads the current directory. */
     void reload();
 
+    void stopLoading();
+
     /**
      * Refreshes the view to get synchronized with the (updated) Dolphin settings.
      * This method only needs to get invoked if the view settings for the Icons View,
@@ -329,6 +324,11 @@ public:
      */
     void saveState(QDataStream& stream);
 
+    /**
+     * Returns all the items in the current view.
+     */
+    KFileItemList allItems() const;
+
 public slots:
     /**
      * Changes the directory to \a url. If the current directory is equal to
@@ -416,18 +416,6 @@ public slots:
      */
     void setCategorizedSorting(bool categorized);
 
-    /** Switches between an ascending and descending sorting order. */
-    void toggleSortOrder();
-
-    /** Switches between a separate sorting (with folders first) and a mixed sorting of files and folders. */
-    void toggleSortFoldersFirst();
-
-    /**
-     * Switches on or off the displaying of additional information
-     * as specified by \a action.
-     */
-    void toggleAdditionalInfo(QAction* action);
-
 signals:
     /**
      * Is emitted if the view has been activated by e. g. a mouse click.
@@ -524,6 +512,12 @@ signals:
      */
     void startedPathLoading(const KUrl& url);
 
+    /**
+     * Is emitted after the path triggered by DolphinView::setUrl()
+     * has been loaded.
+     */
+    void finishedPathLoading(const KUrl& url);
+
     /**
      * Emitted when KDirLister emits redirection.
      * Testcase: fish://localhost
@@ -783,7 +777,6 @@ private:
     bool m_storedCategorizedSorting : 1;
     bool m_tabsForFiles : 1;
     bool m_isContextMenuOpen : 1;   // TODO: workaround for Qt-issue 207192
-    bool m_ignoreViewProperties : 1;
     bool m_assureVisibleCurrentIndex : 1;
     bool m_expanderActive : 1;
 
@@ -809,6 +802,9 @@ private:
      * slotDirListerCompleted().
      */
     QSet<QString> m_newFileNames;
+
+    // For unit tests
+    friend class TestBase;
 };
 
 /// Allow using DolphinView::Mode in QVariant