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/navigationpanehelper.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/navigationpanehelper.h')
-rw-r--r-- | src/gui/navigationpanehelper.h | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/src/gui/navigationpanehelper.h b/src/gui/navigationpanehelper.h new file mode 100644 index 000000000..62e75dd1e --- /dev/null +++ b/src/gui/navigationpanehelper.h @@ -0,0 +1,42 @@ +/* + * Copyright (C) by Jocelyn Turcotte <jturcotte@woboq.com> + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY + * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + * for more details. + */ + + +#ifndef NAVIGATIONPANEHELPER_H +#define NAVIGATIONPANEHELPER_H + +#include <QObject> +#include <QTimer> + +namespace OCC { + +class FolderMan; + +class NavigationPaneHelper : public QObject +{ + Q_OBJECT +public: + NavigationPaneHelper(FolderMan *folderMan); + + void scheduleUpdateCloudStorageRegistry(); + +private: + void updateCloudStorageRegistry(); + + FolderMan *_folderMan; + QTimer _updateCloudStorageRegistryTimer; +}; + +} // namespace OCC +#endif // NAVIGATIONPANEHELPER_H |