if (command == QStringLiteral("FILE_PROVIDER_DOMAIN_IDENTIFIER_REQUEST_REPLY")) {
_accountState = accountStateFromFileProviderDomainIdentifier(argument);
+ sendAccountKeychainEntryKey();
return;
}
sendMessage(requestMessage);
}
+void FileProviderSocketController::sendAccountKeychainEntryKey() const
+{
+ Q_ASSERT(_accountState);
+ const auto account = _accountState->account();
+ Q_ASSERT(account);
+ const auto credentials = account->credentials();
+ Q_ASSERT(credentials);
+ const auto accountUrl = account->url().toString();
+ const auto accountUser = account->credentials()->user();
+ const auto accountId = account->id();
+ const auto accountKey = credentials->keychainKey(accountUrl, accountUser, accountId);
+
+ const auto message = QString(QStringLiteral("ACCOUNT_KEYCHAIN_NAME:") + accountKey);
+ sendMessage(message);
+}
+
}
}
void parseReceivedLine(const QString &receivedLine);
void requestFileProviderDomainInfo() const;
+ void sendAccountKeychainEntryKey() const;
private:
static AccountStatePtr accountStateFromFileProviderDomainIdentifier(const QString &domainIdentifier);