File indexing completed on 2025-01-05 04:29:53
0001 /** 0002 * SPDX-FileCopyrightText: 2021 Bart De Vries <bart@mogwai.be> 0003 * 0004 * SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL 0005 */ 0006 0007 #include "logoutrequest.h" 0008 0009 #include <QNetworkReply> 0010 0011 #include "synclogging.h" 0012 0013 LogoutRequest::LogoutRequest(SyncUtils::Provider provider, QNetworkReply *reply, QObject *parent) 0014 : GenericRequest(provider, reply, parent) 0015 { 0016 } 0017 0018 bool LogoutRequest::success() const 0019 { 0020 return m_success; 0021 } 0022 0023 void LogoutRequest::processResults() 0024 { 0025 if (m_reply->error()) { 0026 m_error = m_reply->error(); 0027 m_errorString = m_reply->errorString(); 0028 qCDebug(kastsSync) << "m_reply error" << m_reply->errorString(); 0029 } else if (!m_abort) { 0030 m_success = true; 0031 } 0032 Q_EMIT finished(); 0033 m_reply->deleteLater(); 0034 deleteLater(); 0035 }