Parser for published QGIS news feeds.
More...
#include <qgsnewsfeedparser.h>
|
class | Entry |
| Represents a single entry from a news feed. More...
|
|
|
void | fetch () |
| Fetches new entries from the feed's URL. More...
|
|
|
static QString | keyForFeed (const QString &baseUrl) |
| Returns the settings key used for a feed with the given baseUrl. More...
|
|
|
static const QgsSettingsEntryString | settingsFeedLanguage = QgsSettingsEntryString( QStringLiteral( "%1/lang" ), QgsSettings::Core, QString(), QObject::tr( "Feed language" ) ) |
| Settings entry feed language. More...
|
|
static const QgsSettingsEntryInteger | settingsFeedLastFetchTime = QgsSettingsEntryInteger( QStringLiteral( "%1/lastFetchTime" ), QgsSettings::Core, 0, QObject::tr( "Feed last fetch time" ), 0 ) |
| Settings entry last fetch time. More...
|
|
static const QgsSettingsEntryDouble | settingsFeedLatitude = QgsSettingsEntryDouble( QStringLiteral( "%1/latitude" ), QgsSettings::Core, 0.0, QObject::tr( "Feed latitude" ) ) |
| Settings entry feed latitude. More...
|
|
static const QgsSettingsEntryDouble | settingsFeedLongitude = QgsSettingsEntryDouble( QStringLiteral( "%1/longitude" ), QgsSettings::Core, 0.0, QObject::tr( "Feed longitude" ) ) |
| Settings entry feed longitude. More...
|
|
Parser for published QGIS news feeds.
This class is designed to work with the specialized QGIS news feed API. See https://github.com/elpaso/qgis-feed.
- Since
- QGIS 3.10
Definition at line 37 of file qgsnewsfeedparser.h.
◆ QgsNewsFeedParser()
QgsNewsFeedParser::QgsNewsFeedParser |
( |
const QUrl & |
feedUrl, |
|
|
const QString & |
authcfg = QString() , |
|
|
QObject * |
parent = nullptr |
|
) |
| |
Constructor for QgsNewsFeedParser, parsing the specified feedUrl.
The optional authcfg argument can be used to specify an authentication configuration to use when connecting to the feed.
Definition at line 31 of file qgsnewsfeedparser.cpp.
◆ authcfg()
QString QgsNewsFeedParser::authcfg |
( |
| ) |
const |
◆ dismissAll()
void QgsNewsFeedParser::dismissAll |
( |
| ) |
|
◆ dismissEntry()
void QgsNewsFeedParser::dismissEntry |
( |
int |
key | ) |
|
Dismisses an entry with matching key.
This removes the entry from the local store, ensuring it will never be present again.
- See also
- dismissAll()
Definition at line 90 of file qgsnewsfeedparser.cpp.
◆ entries()
◆ entryAdded
Emitted whenever a new entry is available from the feed (as a result of a call to fetch()).
- See also
- fetch()
◆ entryDismissed
◆ fetch
void QgsNewsFeedParser::fetch |
( |
| ) |
|
|
slot |
◆ fetched
Emitted when entries have fetched from the feed.
- See also
- fetch()
◆ imageFetched
void QgsNewsFeedParser::imageFetched |
( |
int |
key, |
|
|
const QPixmap & |
pixmap |
|
) |
| |
|
signal |
Emitted when the image attached to the entry with the specified key has been fetched and is now available.
◆ keyForFeed()
QString QgsNewsFeedParser::keyForFeed |
( |
const QString & |
baseUrl | ) |
|
|
static |
◆ TestQgsNewsFeedParser
friend class TestQgsNewsFeedParser |
|
friend |
◆ settingsFeedLanguage
◆ settingsFeedLastFetchTime
◆ settingsFeedLatitude
◆ settingsFeedLongitude
The documentation for this class was generated from the following files: