[Pkg-owncloud-commits] [owncloud-client] 325/498: Folder: Getter and Setter for ignore hidden files for folder config.

Sandro Knauß hefee-guest at moszumanska.debian.org
Tue Aug 11 14:49:03 UTC 2015


This is an automated email from the git hooks/post-receive script.

hefee-guest pushed a commit to branch master
in repository owncloud-client.

commit 3ba6e20f6623b2d2c450e4214fe13bfd9445663b
Author: Klaas Freitag <freitag at owncloud.com>
Date:   Tue Jul 14 16:56:55 2015 +0200

    Folder: Getter and Setter for ignore hidden files for folder config.
    
    With these, the ignore hidden files flag can be set and get from the
    folder configuration file.
---
 src/gui/folder.cpp | 11 +++++++++++
 src/gui/folder.h   |  7 +++++++
 2 files changed, 18 insertions(+)

diff --git a/src/gui/folder.cpp b/src/gui/folder.cpp
index f83ad78..6caae6b 100644
--- a/src/gui/folder.cpp
+++ b/src/gui/folder.cpp
@@ -191,6 +191,17 @@ QString Folder::path() const
     return p;
 }
 
+bool Folder::ignoreHiddenFiles()
+{
+    bool re(_definition.ignoreHiddenFiles);
+    return re;
+}
+
+void Folder::setIgnoreHiddenFiles(bool ignore)
+{
+    _definition.ignoreHiddenFiles = ignore;
+}
+
 QString Folder::cleanPath()
 {
     QString cleanedPath = QDir::cleanPath(_definition.localPath);
diff --git a/src/gui/folder.h b/src/gui/folder.h
index 837cae4..d500b0c 100644
--- a/src/gui/folder.h
+++ b/src/gui/folder.h
@@ -170,6 +170,13 @@ public:
 
      void setDirtyNetworkLimits();
 
+     /**
+      * Ignore syncing of hidden files or not. This is defined in the
+      * folder definition
+      */
+     bool ignoreHiddenFiles();
+     void setIgnoreHiddenFiles(bool ignore);
+
      // Used by the Socket API
      SyncJournalDb *journalDb() { return &_journal; }
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git



More information about the Pkg-owncloud-commits mailing list