mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-28 19:58:56 +03:00
gui Q_UNUSED
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
parent
ce545b1e47
commit
08abc71acb
3 changed files with 32 additions and 4 deletions
|
@ -304,6 +304,8 @@ void AccountSettings::slotEncryptionFlagSuccess(const QByteArray& fileId)
|
|||
|
||||
void AccountSettings::slotEncryptionFlagError(const QByteArray& fileId, int httpErrorCode)
|
||||
{
|
||||
Q_UNUSED(fileId);
|
||||
Q_UNUSED(httpErrorCode);
|
||||
qDebug() << "Error on the encryption flag";
|
||||
}
|
||||
|
||||
|
@ -344,6 +346,8 @@ void AccountSettings::slotUploadMetadataSuccess(const QByteArray& folderId)
|
|||
|
||||
void AccountSettings::slotUpdateMetadataError(const QByteArray& folderId, int httpReturnCode)
|
||||
{
|
||||
Q_UNUSED(httpReturnCode);
|
||||
|
||||
const auto token = accountsState()->account()->e2e()->tokenForFolder(folderId);
|
||||
auto unlockJob = new UnlockEncryptFolderApiJob(accountsState()->account(), folderId, token);
|
||||
connect(unlockJob, &UnlockEncryptFolderApiJob::success,
|
||||
|
@ -355,15 +359,23 @@ void AccountSettings::slotUpdateMetadataError(const QByteArray& folderId, int ht
|
|||
|
||||
void AccountSettings::slotLockForEncryptionError(const QByteArray& fileId, int httpErrorCode)
|
||||
{
|
||||
Q_UNUSED(fileId);
|
||||
Q_UNUSED(httpErrorCode);
|
||||
|
||||
qCInfo(lcAccountSettings()) << "Locking error" << httpErrorCode;
|
||||
}
|
||||
|
||||
void AccountSettings::slotUnlockFolderError(const QByteArray& fileId, int httpErrorCode)
|
||||
{
|
||||
Q_UNUSED(fileId);
|
||||
Q_UNUSED(httpErrorCode);
|
||||
|
||||
qCInfo(lcAccountSettings()) << "Unlocking error!";
|
||||
}
|
||||
void AccountSettings::slotUnlockFolderSuccess(const QByteArray& fileId)
|
||||
{
|
||||
Q_UNUSED(fileId);
|
||||
|
||||
qCInfo(lcAccountSettings()) << "Unlocking success!";
|
||||
}
|
||||
|
||||
|
@ -475,27 +487,41 @@ void AccountSettings::slotDecryptionFlagSuccess(const QByteArray& fileId)
|
|||
}
|
||||
}
|
||||
|
||||
void AccountSettings::slotDecryptionFlagError(const QByteArray& fileID, int httpReturnCode)
|
||||
void AccountSettings::slotDecryptionFlagError(const QByteArray& fileId, int httpReturnCode)
|
||||
{
|
||||
Q_UNUSED(fileId);
|
||||
Q_UNUSED(httpReturnCode);
|
||||
|
||||
qDebug() << "Error Setting the Decryption Flag";
|
||||
}
|
||||
|
||||
void AccountSettings::slotUnlockForDecryptionError(const QByteArray& fileId, int httpReturnCode)
|
||||
{
|
||||
Q_UNUSED(fileId);
|
||||
Q_UNUSED(httpReturnCode);
|
||||
|
||||
qDebug() << "Error unlocking folder after decryption";
|
||||
}
|
||||
|
||||
void AccountSettings::slotDeleteMetadataError(const QByteArray& fileId, int httpReturnCode)
|
||||
{
|
||||
qDebug() << "Error deleting the metadata";
|
||||
Q_UNUSED(fileId);
|
||||
Q_UNUSED(httpReturnCode);
|
||||
|
||||
qDebug() << "Error deleting the metadata";
|
||||
}
|
||||
void AccountSettings::slotLockForDecryptionError(const QByteArray& fileId, int httpReturnCode)
|
||||
{
|
||||
qDebug() << "Error Locking for decryption";
|
||||
Q_UNUSED(fileId);
|
||||
Q_UNUSED(httpReturnCode);
|
||||
|
||||
qDebug() << "Error Locking for decryption";
|
||||
}
|
||||
|
||||
void AccountSettings::slotSubfolderContextMenuRequested(const QModelIndex& index, const QPoint& pos)
|
||||
{
|
||||
Q_UNUSED(pos);
|
||||
|
||||
QMenu menu;
|
||||
auto ac = menu.addAction(tr("Open folder"));
|
||||
connect(ac, &QAction::triggered, this, &AccountSettings::slotOpenCurrentLocalSubFolder);
|
||||
|
|
|
@ -34,8 +34,8 @@ AccountState::AccountState(AccountPtr account)
|
|||
, _state(AccountState::Disconnected)
|
||||
, _connectionStatus(ConnectionValidator::Undefined)
|
||||
, _waitingForNewCredentials(false)
|
||||
, _maintenanceToConnectedDelay(60000 + (qrand() % (4 * 60000))) // 1-5min delay
|
||||
, _notificationsEtagResponseHeader("*")
|
||||
, _maintenanceToConnectedDelay(60000 + (qrand() % (4 * 60000))) // 1-5min delay
|
||||
{
|
||||
qRegisterMetaType<AccountState *>("AccountState*");
|
||||
|
||||
|
|
|
@ -102,6 +102,8 @@ void WebFlowCredentials::askFromUser() {
|
|||
}
|
||||
|
||||
void WebFlowCredentials::slotAskFromUserCredentialsProvided(const QString &user, const QString &pass, const QString &host) {
|
||||
Q_UNUSED(host);
|
||||
|
||||
if (_user != user) {
|
||||
qCInfo(lcWebFlowCredentials()) << "Authed with the wrong user!";
|
||||
|
||||
|
|
Loading…
Reference in a new issue