Account: remove dependency with ConfigFile

Part of #6213
This commit is contained in:
Olivier Goffart 2017-12-06 15:45:17 +01:00
parent e0a14cac5b
commit 4581d708ff
4 changed files with 3 additions and 6 deletions

View file

@ -11,7 +11,6 @@
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* for more details.
*/
#include "configfile.h"
#include "common/utility.h"
#include "account.h"
#include "simplesslerrorhandler.h"

View file

@ -51,6 +51,7 @@
#include <QTranslator>
#include <QMenu>
#include <QMessageBox>
#include <QDesktopServices>
class QSocket;

View file

@ -15,7 +15,6 @@
#include "account.h"
#include "cookiejar.h"
#include "networkjobs.h"
#include "configfile.h"
#include "accessmanager.h"
#include "creds/abstractcredentials.h"
#include "capabilities.h"
@ -33,6 +32,7 @@
#include <QDir>
#include <QSslKey>
#include <QAuthenticator>
#include <QStandardPaths>
namespace OCC {
@ -206,8 +206,7 @@ void Account::lendCookieJarTo(QNetworkAccessManager *guest)
QString Account::cookieJarPath()
{
ConfigFile cfg;
return cfg.configPath() + "/cookies" + id() + ".db";
return QStandardPaths::writableLocation(QStandardPaths::AppConfigLocation) + "/cookies" + id() + ".db";
}
void Account::resetNetworkAccessManager()

View file

@ -14,8 +14,6 @@
#include "capabilities.h"
#include "configfile.h"
#include <QVariantMap>
namespace OCC {