]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/views/viewproperties.h
ViewProperties: Store view properties in extended file attributes
[dolphin.git] / src / views / viewproperties.h
index 29827c38b61c4175e37e366bd07b3c092740dec8..44c7034823ac116449d1ed040401a4b8203998b2 100644 (file)
@@ -108,15 +108,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
@@ -124,6 +115,7 @@ private:
      */
     QString destinationDir(const QString &subDir) const;
 
+private:
     /**
      * Returns the view-mode prefix when storing additional properties for
      * a view-mode.
@@ -161,6 +153,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: