Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/desktop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Kamm <kamm@incasoftware.de>2015-01-28 12:38:54 +0300
committerChristian Kamm <kamm@incasoftware.de>2015-01-28 12:40:32 +0300
commit350ad98c2729ed182f1541a13778618841ccbd8b (patch)
tree5282405623dfef6694a5be8ef80a6a5d2aee7296 /src/gui/folderwizard.h
parent2a3df5562c1ccd02bf31b127aaa99c07b02d10c2 (diff)
Folderwizard: Prepare for multiaccount. #43
Avoid accessing the global account instance and instead pass it in from the outside.
Diffstat (limited to 'src/gui/folderwizard.h')
-rw-r--r--src/gui/folderwizard.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/gui/folderwizard.h b/src/gui/folderwizard.h
index bdf02e1c8..88b86409b 100644
--- a/src/gui/folderwizard.h
+++ b/src/gui/folderwizard.h
@@ -20,6 +20,7 @@
#include <QTimer>
#include "folder.h"
+#include "accountfwd.h"
#include "ui_folderwizardsourcepage.h"
#include "ui_folderwizardtargetpage.h"
@@ -67,7 +68,7 @@ class FolderWizardRemotePath : public FormatWarningsWizardPage
{
Q_OBJECT
public:
- FolderWizardRemotePath();
+ explicit FolderWizardRemotePath(AccountPtr account);
~FolderWizardRemotePath();
virtual bool isComplete() const Q_DECL_OVERRIDE;
@@ -89,7 +90,7 @@ private:
void recursiveInsert(QTreeWidgetItem *parent, QStringList pathTrail, QString path);
Ui_FolderWizardTargetPage _ui;
bool _warnWasVisible;
-
+ AccountPtr _account;
};
@@ -97,7 +98,7 @@ class FolderWizardSelectiveSync : public QWizardPage
{
Q_OBJECT
public:
- FolderWizardSelectiveSync();
+ explicit FolderWizardSelectiveSync(AccountPtr account);
~FolderWizardSelectiveSync();
virtual bool validatePage() Q_DECL_OVERRIDE;
@@ -125,7 +126,7 @@ public:
Page_SelectiveSync
};
- FolderWizard(QWidget *parent = 0);
+ explicit FolderWizard(AccountPtr account, QWidget *parent = 0);
~FolderWizard();
private: