2013-08-01 18:22:54 +04:00
|
|
|
/*
|
|
|
|
* Copyright (C) by Krzesimir Nowak <krzesimir@endocode.com>
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
2016-10-25 12:00:07 +03:00
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
2013-08-01 18:22:54 +04:00
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful, but
|
|
|
|
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
|
|
|
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
|
|
* for more details.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef MIRALL_ACCESS_MANAGER_H
|
|
|
|
#define MIRALL_ACCESS_MANAGER_H
|
|
|
|
|
2014-04-29 17:30:19 +04:00
|
|
|
#include "owncloudlib.h"
|
2013-08-01 18:22:54 +04:00
|
|
|
#include <QNetworkAccessManager>
|
|
|
|
|
2014-08-22 15:46:22 +04:00
|
|
|
class QByteArray;
|
|
|
|
class QUrl;
|
2014-11-12 02:07:59 +03:00
|
|
|
|
2014-11-10 00:34:07 +03:00
|
|
|
namespace OCC {
|
2013-08-01 18:22:54 +04:00
|
|
|
|
2015-06-29 19:56:09 +03:00
|
|
|
/**
|
|
|
|
* @brief The AccessManager class
|
|
|
|
* @ingroup libsync
|
2015-06-26 18:07:47 +03:00
|
|
|
*/
|
2014-11-10 00:30:29 +03:00
|
|
|
class OWNCLOUDSYNC_EXPORT AccessManager : public QNetworkAccessManager
|
2013-08-01 18:22:54 +04:00
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2018-11-12 20:46:39 +03:00
|
|
|
AccessManager(QObject *parent = nullptr);
|
2013-08-01 18:22:54 +04:00
|
|
|
|
|
|
|
protected:
|
2018-11-12 20:46:39 +03:00
|
|
|
QNetworkReply *createRequest(QNetworkAccessManager::Operation op, const QNetworkRequest &request, QIODevice *outgoingData = nullptr) override;
|
2013-08-01 18:22:54 +04:00
|
|
|
};
|
|
|
|
|
2014-11-10 00:34:07 +03:00
|
|
|
} // namespace OCC
|
2013-08-01 18:22:54 +04:00
|
|
|
|
|
|
|
#endif
|