[CSE] Adjust the calls to ent-to-end encryption

We changed the name.
This commit is contained in:
Tomaz Canabrava 2017-10-16 19:50:00 +02:00 committed by Roeland Jago Douma
parent 0f1480728e
commit 08dfe86f37
No known key found for this signature in database
GPG key ID: F941078878347C0C
3 changed files with 5 additions and 5 deletions

View file

@ -282,7 +282,7 @@ void AccountSettings::slotCustomContextMenuRequested(const QPoint &pos)
connect(ac, &QAction::triggered, [this, &fileId](bool triggered) {
Q_UNUSED(triggered);
auto job = new OCC::JsonApiJob(accountsState()->account(),
"ocs/v2.php/apps/client_side_encryption/api/v1/encrypted/" + QString(fileId));
"ocs/v2.php/apps/end_to_end_encryption/api/v1/encrypted/" + QString(fileId));
connect(job, &OCC::JsonApiJob::jsonReceived, [this](const QJsonDocument& json, int httpResponse) {
Q_UNUSED(json);
@ -295,7 +295,7 @@ void AccountSettings::slotCustomContextMenuRequested(const QPoint &pos)
connect(ac, &QAction::triggered, [this, &fileId](bool triggered) {
Q_UNUSED(triggered);
auto job = new OCC::DeleteApiJob(accountsState()->account(),
"ocs/v2.php/apps/client_side_encryption/api/v1/encrypted/" + QString(fileId));
"ocs/v2.php/apps/end_to_end_encryption/api/v1/encrypted/" + QString(fileId));
connect(job, &OCC::DeleteApiJob::result, [this](int httpResponse) {
qCInfo(lcAccountSettings) << "Decrypt Http Response" << httpResponse;
});

View file

@ -87,8 +87,8 @@ bool Capabilities::shareResharing() const
bool Capabilities::clientSideEncryptionAvaliable() const
{
return _capabilities.keys().indexOf("client-side-encryption") != -1
? _capabilities["client-side-encryption"].toMap()["enabled"].toBool() : false;
return _capabilities.keys().indexOf("end-to-end-encryption") != -1
? _capabilities["end-to-end-encryption"].toMap()["enabled"].toBool() : false;
}
bool Capabilities::notificationsAvailable() const

View file

@ -26,7 +26,7 @@ namespace OCC
Q_LOGGING_CATEGORY(lcCse, "sync.clientsideencryption", QtInfoMsg)
QString baseUrl = QStringLiteral("ocs/v2.php/apps/client_side_encryption/api/v1/");
QString baseUrl = QStringLiteral("ocs/v2.php/apps/end_to_end_encryption/api/v1/");
QString baseDirectory = QDir::homePath() + QStringLiteral("/.nextcloud-keys/");
namespace {