1/*
2 * Copyright (C) by Jocelyn Turcotte <jturcotte@woboq.com>
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful, but
10 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
11 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * for more details.
13 */
14
15
16#ifndef NAVIGATIONPANEHELPER_H
17#define NAVIGATIONPANEHELPER_H
18
19#include <QObject>
20#include <QTimer>
21
22namespace OCC {
23
24class FolderMan;
25
26class NavigationPaneHelper : public QObject
27{
28 Q_OBJECT
29public:
30 NavigationPaneHelper(FolderMan *folderMan);
31
32 bool showInExplorerNavigationPane() const { return _showInExplorerNavigationPane; }
33 void setShowInExplorerNavigationPane(bool show);
34
35 void scheduleUpdateCloudStorageRegistry();
36
37private:
38 void updateCloudStorageRegistry();
39
40 FolderMan *_folderMan;
41 bool _showInExplorerNavigationPane;
42 QTimer _updateCloudStorageRegistryTimer;
43};
44
45} // namespace OCC
46#endif // NAVIGATIONPANEHELPER_H
47