diff options
author | Jocelyn Turcotte <jturcotte@woboq.com> | 2017-10-04 14:49:42 +0300 |
---|---|---|
committer | Jocelyn Turcotte <turcotte.j@gmail.com> | 2017-10-24 17:10:53 +0300 |
commit | 56e38e6f80a1c59679620f91b304f85677583220 (patch) | |
tree | 6fd0ecb3505329748bbf9085e477392ba2df8615 /src/gui/folder.h | |
parent | e85a339d9461d82e8439fc6714f032f74b58de4b (diff) |
Windows: Add sync folders to Explorer's navigation pane
This is only the navigation pane, the SyncRootManager entries aren't handled yet.
This follows the instructions from:
https://msdn.microsoft.com/en-us/library/windows/desktop/dn889934%28v=vs.85%29.aspx
Issue #5295
Diffstat (limited to 'src/gui/folder.h')
-rw-r--r-- | src/gui/folder.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gui/folder.h b/src/gui/folder.h index 2e7f2a7c0..ac4954a06 100644 --- a/src/gui/folder.h +++ b/src/gui/folder.h @@ -27,6 +27,7 @@ #include <QObject> #include <QStringList> +#include <QUuid> #include <set> class QThread; @@ -64,6 +65,8 @@ public: bool paused; /// whether the folder syncs hidden files bool ignoreHiddenFiles; + /// The CLSID where this folder appears in registry for the Explorer navigation pane entry. + QUuid navigationPaneClsid; /// Saves the folder definition, creating a new settings group. static void save(QSettings &settings, const FolderDefinition &folder); @@ -135,6 +138,9 @@ public: */ QString remotePath() const; + void setNavigationPaneClsid(const QUuid &clsid) { _definition.navigationPaneClsid = clsid; } + QUuid navigationPaneClsid() const { return _definition.navigationPaneClsid; } + /** * remote folder path with server url */ |