]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/viewproperties.h
Use a KIO Job for applying the view properties recursively to sub directories.
[dolphin.git] / src / viewproperties.h
index 1524707f84bc0f3dbe7ed882f7cdd9b6286901b9..7f57f2eed205f17b4978acc027cc88106643a9a9 100644 (file)
@@ -34,7 +34,7 @@ class QFile;
  *
  * The view properties are automatically stored inside
  * the directory as hidden file called '.dolphinview'. To read out the view properties
- * just construct an instance by passing the URL of the directory:
+ * just construct an instance by passing the Url of the directory:
  * \code
  * ViewProperties props(KUrl("/home/peter/Documents"));
  * const DolphinView::Mode mode = props.viewMode();
@@ -50,7 +50,7 @@ class QFile;
 class ViewProperties
 {
 public:
-    ViewProperties(KUrl url);
+    ViewProperties(const KUrl& url);
     virtual ~ViewProperties();
 
     void setViewMode(DolphinView::Mode mode);
@@ -65,23 +65,21 @@ public:
     void setSortOrder(Qt::SortOrder sortOrder);
     Qt::SortOrder sortOrder() const;
 
-    void setValidForSubDirs(bool valid);
-    bool isValidForSubDirs() const;
-
     void setAutoSaveEnabled(bool autoSave);
     bool isAutoSaveEnabled() const;
 
     void updateTimeStamp();
     void save();
 
-    ViewProperties& operator = (const ViewProperties& props);
 
 private:
     bool m_changedProps;
     bool m_autoSave;
-    bool m_subDirValidityHidden;
     QString m_filepath;
     ViewPropertySettings* m_node;
+
+    ViewProperties(const ViewProperties& props);
+    ViewProperties& operator= (const ViewProperties& props);
 };
 
 #endif