diff options
author | Hannah von Reth <hannah.vonreth@owncloud.com> | 2020-06-18 17:12:35 +0300 |
---|---|---|
committer | Kevin Ottens <kevin.ottens@nextcloud.com> | 2020-12-15 12:59:14 +0300 |
commit | f932dfc64801f255ada8715b6911cc7dff6ce004 (patch) | |
tree | 8ce207f2adb02dc27a567a3b3b97846197b71417 /test | |
parent | a0d81df21e2e9c3712856ddd6b1f2401403bb615 (diff) |
VFS: Tell the vfs plugin whether we have multiple accounts
This allows us to decide on the presentation of the account
Diffstat (limited to 'test')
-rw-r--r-- | test/stubfolderman.cpp | 1 | ||||
-rw-r--r-- | test/stubremotewipe.cpp | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/test/stubfolderman.cpp b/test/stubfolderman.cpp index 0ee32d731..3df56d1d1 100644 --- a/test/stubfolderman.cpp +++ b/test/stubfolderman.cpp @@ -8,6 +8,7 @@ void OCC::AccountManager::save(bool) { } void OCC::AccountManager::saveAccountState(AccountState *) { } void OCC::AccountManager::deleteAccount(AccountState *) { } void OCC::AccountManager::accountRemoved(OCC::AccountState*) { } +QList<OCC::AccountStatePtr> OCC::AccountManager::accounts() const { return QList<OCC::AccountStatePtr>(); } OCC::AccountStatePtr OCC::AccountManager::account(const QString &){ return AccountStatePtr(); } void OCC::AccountManager::removeAccountFolders(OCC::AccountState*) { } const QMetaObject OCC::AccountManager::staticMetaObject = QObject::staticMetaObject; diff --git a/test/stubremotewipe.cpp b/test/stubremotewipe.cpp index d74dde2da..e434424fd 100644 --- a/test/stubremotewipe.cpp +++ b/test/stubremotewipe.cpp @@ -9,6 +9,7 @@ void OCC::AccountManager::save(bool) { } OCC::AccountState *OCC::AccountManager::addAccount(const AccountPtr& ac) { return new OCC::AccountState(ac); } void OCC::AccountManager::deleteAccount(AccountState *) { } void OCC::AccountManager::accountRemoved(OCC::AccountState*) { } +QList<OCC::AccountStatePtr> OCC::AccountManager::accounts() const { return QList<OCC::AccountStatePtr>(); } OCC::AccountStatePtr OCC::AccountManager::account(const QString &){ return AccountStatePtr(); } const QMetaObject OCC::AccountManager::staticMetaObject = QObject::staticMetaObject; |