diff options
author | Daniel Molkentin <daniel.molkentin@nokia.com> | 2011-07-15 15:24:43 +0200 |
---|---|---|
committer | Eike Ziller <eike.ziller@nokia.com> | 2011-07-21 08:30:58 +0200 |
commit | 49b55569216c1545c95c58ab969d8cb6fb82cd59 (patch) | |
tree | 5f437ebd7b572ad306e466715a3d9d06b9ab0a5e /src/libs/utils/networkaccessmanager.h | |
parent | d20594a71d700f2ec82aec1faea94f0bb04be356 (diff) | |
download | qt-creator-49b55569216c1545c95c58ab969d8cb6fb82cd59.tar.gz |
Refactor: Move NAM to utils, rss model to welcome.
Change-Id: I0dddedd820e75df05c3a028e7fbb02b642c79659
Reviewed-on: http://codereview.qt.nokia.com/1902
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
Diffstat (limited to 'src/libs/utils/networkaccessmanager.h')
-rw-r--r-- | src/libs/utils/networkaccessmanager.h | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/src/libs/utils/networkaccessmanager.h b/src/libs/utils/networkaccessmanager.h new file mode 100644 index 0000000000..dd43cee0ca --- /dev/null +++ b/src/libs/utils/networkaccessmanager.h @@ -0,0 +1,54 @@ +/************************************************************************** +** +** This file is part of Qt Creator +** +** Copyright (c) 2011 Nokia Corporation and/or its subsidiary(-ies). +** +** Contact: Nokia Corporation (info@qt.nokia.com) +** +** +** GNU Lesser General Public License Usage +** +** This file may be used under the terms of the GNU Lesser General Public +** License version 2.1 as published by the Free Software Foundation and +** appearing in the file LICENSE.LGPL included in the packaging of this file. +** Please review the following information to ensure the GNU Lesser General +** Public License version 2.1 requirements will be met: +** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. +** +** In addition, as a special exception, Nokia gives you certain additional +** rights. These rights are described in the Nokia Qt LGPL Exception +** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. +** +** Other Usage +** +** Alternatively, this file may be used in accordance with the terms and +** conditions contained in a signed written agreement between you and Nokia. +** +** If you have questions regarding the use of this file, please contact +** Nokia at info@qt.nokia.com. +** +**************************************************************************/ + +#include "utils_global.h" + +#include <QtCore/QUrl> +#include <QtNetwork/QNetworkAccessManager> + +namespace Utils { + +class QTCREATOR_UTILS_EXPORT NetworkAccessManager : public QNetworkAccessManager +{ + Q_OBJECT +public: + NetworkAccessManager(QObject *parent = 0); + +public slots: + void getUrl(const QUrl &url); + +protected: + virtual QNetworkReply* createRequest(Operation op, const QNetworkRequest &request, QIODevice *outgoingData); +}; + + +} // namespace utils |