mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-29 12:19:03 +03:00
Make mac implementation of file provider settings controller a QObject
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
parent
21a317cff3
commit
9774ac6dde
2 changed files with 3 additions and 7 deletions
|
@ -60,10 +60,9 @@ signals:
|
||||||
|
|
||||||
private:
|
private:
|
||||||
explicit FileProviderSettingsController(QObject *parent = nullptr);
|
explicit FileProviderSettingsController(QObject *parent = nullptr);
|
||||||
~FileProviderSettingsController() override;
|
|
||||||
|
|
||||||
class MacImplementation;
|
class MacImplementation;
|
||||||
std::unique_ptr<MacImplementation> d;
|
MacImplementation *d;
|
||||||
|
|
||||||
QHash<QString, UserInfo*> _userInfos;
|
QHash<QString, UserInfo*> _userInfos;
|
||||||
};
|
};
|
||||||
|
|
|
@ -54,7 +54,7 @@ namespace Mac {
|
||||||
|
|
||||||
Q_LOGGING_CATEGORY(lcFileProviderSettingsController, "nextcloud.gui.mac.fileprovider.settingscontroller")
|
Q_LOGGING_CATEGORY(lcFileProviderSettingsController, "nextcloud.gui.mac.fileprovider.settingscontroller")
|
||||||
|
|
||||||
class FileProviderSettingsController::MacImplementation
|
class FileProviderSettingsController::MacImplementation : public QObject
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
enum class VfsAccountsAction {
|
enum class VfsAccountsAction {
|
||||||
|
@ -292,13 +292,10 @@ FileProviderSettingsController *FileProviderSettingsController::instance()
|
||||||
return &controller;
|
return &controller;
|
||||||
}
|
}
|
||||||
|
|
||||||
FileProviderSettingsController::~FileProviderSettingsController() = default;
|
|
||||||
|
|
||||||
FileProviderSettingsController::FileProviderSettingsController(QObject *parent)
|
FileProviderSettingsController::FileProviderSettingsController(QObject *parent)
|
||||||
: QObject{parent}
|
: QObject{parent}
|
||||||
|
, d(new FileProviderSettingsController::MacImplementation(this))
|
||||||
{
|
{
|
||||||
d = std::make_unique<FileProviderSettingsController::MacImplementation>(this);
|
|
||||||
|
|
||||||
const auto accManager = AccountManager::instance();
|
const auto accManager = AccountManager::instance();
|
||||||
const auto accountsList = accManager->accounts();
|
const auto accountsList = accManager->accounts();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue