mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-26 00:08:20 -04:00
Run clang-tidy modernize-use-override to remove all the redundant virtual keywords from overridden methods, and add some missing overrides. Another benefit is that this has also added the overrides on destructors, which will cause a build failure if a base class is missing a virtual destructor.
78 lines
2.0 KiB
Plaintext
78 lines
2.0 KiB
Plaintext
/************************************************************************
|
|
* This file has been generated automatically from *
|
|
* *
|
|
* src/core/qgsnetworkcontentfetcher.h *
|
|
* *
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class QgsNetworkContentFetcher : QObject
|
|
{
|
|
%Docstring
|
|
HTTP network content fetcher. A simple method for fetching remote HTTP content
|
|
and converting the content to standard formats. Url redirects are automatically
|
|
handled.
|
|
|
|
.. versionadded:: 2.5
|
|
%End
|
|
|
|
%TypeHeaderCode
|
|
#include "qgsnetworkcontentfetcher.h"
|
|
%End
|
|
public:
|
|
|
|
QgsNetworkContentFetcher();
|
|
%Docstring
|
|
Constructor for QgsNetworkContentFetcher.
|
|
%End
|
|
|
|
~QgsNetworkContentFetcher();
|
|
|
|
void fetchContent( const QUrl &url );
|
|
%Docstring
|
|
Fetches content from a remote URL and handles redirects. The finished()
|
|
signal will be emitted when content has been fetched.
|
|
:param url: URL to fetch
|
|
%End
|
|
|
|
QNetworkReply *reply();
|
|
%Docstring
|
|
Returns a reference to the network reply
|
|
|
|
:return: QNetworkReply for fetched URL content
|
|
:rtype: QNetworkReply
|
|
|
|
%End
|
|
|
|
QString contentAsString() const;
|
|
%Docstring
|
|
Returns the fetched content as a string
|
|
|
|
:return: string containing network content
|
|
:rtype: str
|
|
|
|
%End
|
|
|
|
signals:
|
|
|
|
void finished();
|
|
%Docstring
|
|
Emitted when content has loaded
|
|
%End
|
|
|
|
};
|
|
|
|
/************************************************************************
|
|
* This file has been generated automatically from *
|
|
* *
|
|
* src/core/qgsnetworkcontentfetcher.h *
|
|
* *
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
************************************************************************/
|