]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/views/dolphinview.h
It's easier to put functionality that is used by many unit tests into
[dolphin.git] / src / views / dolphinview.h
index 4877b0cd26c9630c58a773a1da679b8263f90e6c..9d2032e9f0b23918aaeb9233a44b3de45756d61e 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,
@@ -416,18 +411,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 +507,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 +772,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 +797,9 @@ private:
      * slotDirListerCompleted().
      */
     QSet<QString> m_newFileNames;
+
+    // For unit tests
+    friend class TestBase;
 };
 
 /// Allow using DolphinView::Mode in QVariant