]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/views/viewproperties.h
Merge remote-tracking branch 'fork/work/zakharafoniam/useful-groups'
[dolphin.git] / src / views / viewproperties.h
index 0c0452d7aea0fe11be16afda688151322d0a08ef..ac9ee4bb6082917a72215069a951a45c4c5806d5 100644 (file)
@@ -71,6 +71,9 @@ public:
     void setSortHiddenLast(bool hiddenLast);
     bool sortHiddenLast() const;
 
+    void setDynamicViewPassed(bool dynamicViewPassed);
+    bool dynamicViewPassed() const;
+
     /**
      * Sets the additional information for the current set view-mode.
      * Note that the additional-info property is the only property where
@@ -114,15 +117,6 @@ public:
      */
     void save();
 
-    /**
-     * @return True if properties for the given URL exist:
-     *         As soon as the properties for an URL have been saved with
-     *         ViewProperties::save(), true will be returned. If false is
-     *         returned, the default view-properties are used.
-     */
-    bool exist() const;
-
-private:
     /**
      * Returns the destination directory path where the view
      * properties are stored. \a subDir specifies the used sub
@@ -130,6 +124,7 @@ private:
      */
     QString destinationDir(const QString &subDir) const;
 
+private:
     /**
      * Returns the view-mode prefix when storing additional properties for
      * a view-mode.
@@ -167,6 +162,11 @@ private:
      */
     static QString directoryHashForUrl(const QUrl &url);
 
+    /** @returns a ViewPropertySettings object with properties loaded for the directory at @param filePath. Ownership is returned to the caller. */
+    ViewPropertySettings *loadProperties(const QString &folderPath) const;
+    /** @returns a ViewPropertySettings object with the globally configured default values. Ownership is returned to the caller. */
+    ViewPropertySettings *defaultProperties() const;
+
     Q_DISABLE_COPY(ViewProperties)
 
 private: