|
QGIS API Documentation
2.8.2-Wien
|
HTTP network content fetcher. More...
#include <qgsnetworkcontentfetcher.h>
Signals | |
| void | finished () |
| Emitted when content has loaded. | |
Public Member Functions | |
| QgsNetworkContentFetcher () | |
| virtual | ~QgsNetworkContentFetcher () |
| QString | contentAsString () const |
| Returns the fetched content as a string. | |
| void | fetchContent (const QUrl url) |
| Fetches content from a remote URL and handles redirects. | |
| QNetworkReply * | reply () |
| Returns a reference to the network reply. | |
HTTP network content fetcher.
A simple method for fetching remote HTTP content and converting the content to standard formats. Url redirects are automatically handled.
Definition at line 35 of file qgsnetworkcontentfetcher.h.
| QgsNetworkContentFetcher::QgsNetworkContentFetcher | ( | ) |
Definition at line 26 of file qgsnetworkcontentfetcher.cpp.
|
virtual |
Definition at line 33 of file qgsnetworkcontentfetcher.cpp.
| QString QgsNetworkContentFetcher::contentAsString | ( | ) | const |
Returns the fetched content as a string.
Definition at line 76 of file qgsnetworkcontentfetcher.cpp.
| void QgsNetworkContentFetcher::fetchContent | ( | const QUrl | url | ) |
Fetches content from a remote URL and handles redirects.
The finished() signal will be emitted when content has been fetched.
| url | URL to fetch |
Definition at line 46 of file qgsnetworkcontentfetcher.cpp.
|
signal |
Emitted when content has loaded.
| QNetworkReply * QgsNetworkContentFetcher::reply | ( | ) |
Returns a reference to the network reply.
Definition at line 66 of file qgsnetworkcontentfetcher.cpp.
1.8.1.2