|
QGIS API Documentation 4.3.0-Master (16eddb2670e)
|
Parser for published QGIS news feeds. More...
#include <qgsnewsfeedparser.h>

Classes | |
| class | Entry |
| Represents a single entry from a news feed. More... | |
Public Slots | |
| void | fetch () |
| Fetches new entries from the feed's URL. | |
Signals | |
| void | enabledChanged () |
| Emitted when the enabled/disabled state of the feed URL associated to the news parser changes. | |
| void | entryAdded (const QgsNewsFeedParser::Entry &entry) |
| Emitted whenever a new entry is available from the feed (as a result of a call to fetch()). | |
| void | entryDismissed (const QgsNewsFeedParser::Entry &entry) |
| Emitted whenever an entry is dismissed (as a result of a call to dismissEntry()). | |
| void | entryUpdated (const QgsNewsFeedParser::Entry &entry) |
| Emitted whenever an existing entry is available from the feed (as a result of a call to fetch()). | |
| void | fetched (const QList< QgsNewsFeedParser::Entry > &entries) |
| Emitted when entries have been fetched from the feed. | |
| void | imageFetched (int key, const QPixmap &pixmap) |
| Emitted when the image attached to the entry with the specified key has been fetched and is now available. | |
| void | isFetchingChanged () |
| Emitted when the news parser's fetching state changes. | |
Public Member Functions | |
| QgsNewsFeedParser (const QUrl &feedUrl, const QString &authcfg=QString(), QObject *parent=nullptr) | |
| Constructor for QgsNewsFeedParser, parsing the specified feedUrl. | |
| QString | authcfg () const |
| Returns the authentication configuration for the parser. | |
| Q_INVOKABLE void | dismissAll () |
| Dismisses all current news items. | |
| Q_INVOKABLE void | dismissEntry (int key) |
| Dismisses an entry with matching key. | |
| bool | enabled () const |
Returns true if the feed URL associated with the news parser is enabled. | |
| QList< QgsNewsFeedParser::Entry > | entries () const |
| Returns a list of existing entries in the feed. | |
| bool | isFetching () const |
Returns true if the news parser is fetching items. | |
| void | setEnabled (bool enabled) |
| Sets whether the feed URL associated with the news parser is enabled. | |
Static Public Member Functions | |
| static QString | keyForFeed (const QString &baseUrl) |
| Returns the settings key used for a feed with the given baseUrl. | |
Properties | |
| bool | enabled |
| bool | isFetching |
Friends | |
| class | TestQgsNewsFeedParser |
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.
Definition at line 46 of file qgsnewsfeedparser.h.
| 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 56 of file qgsnewsfeedparser.cpp.
| QString QgsNewsFeedParser::authcfg | ( | ) | const |
Returns the authentication configuration for the parser.
Definition at line 186 of file qgsnewsfeedparser.cpp.
| void QgsNewsFeedParser::dismissAll | ( | ) |
Dismisses all current news items.
Definition at line 177 of file qgsnewsfeedparser.cpp.
| 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.
Definition at line 131 of file qgsnewsfeedparser.cpp.
|
inline |
Returns true if the feed URL associated with the news parser is enabled.
Definition at line 121 of file qgsnewsfeedparser.h.
|
signal |
Emitted when the enabled/disabled state of the feed URL associated to the news parser changes.
| QList< QgsNewsFeedParser::Entry > QgsNewsFeedParser::entries | ( | ) | const |
Returns a list of existing entries in the feed.
Definition at line 126 of file qgsnewsfeedparser.cpp.
|
signal |
|
signal |
Emitted whenever an entry is dismissed (as a result of a call to dismissEntry()).
|
signal |
|
slot |
Fetches new entries from the feed's URL.
Definition at line 191 of file qgsnewsfeedparser.cpp.
|
signal |
Emitted when entries have been fetched from the feed.
|
signal |
Emitted when the image attached to the entry with the specified key has been fetched and is now available.
|
inline |
Returns true if the news parser is fetching items.
Definition at line 135 of file qgsnewsfeedparser.h.
|
signal |
Emitted when the news parser's fetching state changes.
|
static |
Returns the settings key used for a feed with the given baseUrl.
Definition at line 431 of file qgsnewsfeedparser.cpp.
| void QgsNewsFeedParser::setEnabled | ( | bool | enabled | ) |
Sets whether the feed URL associated with the news parser is enabled.
Definition at line 113 of file qgsnewsfeedparser.cpp.
|
friend |
Definition at line 250 of file qgsnewsfeedparser.h.
|
static |
Definition at line 56 of file qgsnewsfeedparser.h.
|
static |
Definition at line 65 of file qgsnewsfeedparser.h.
|
static |
Definition at line 69 of file qgsnewsfeedparser.h.
|
static |
Definition at line 64 of file qgsnewsfeedparser.h.
|
static |
Definition at line 66 of file qgsnewsfeedparser.h.
|
static |
Definition at line 68 of file qgsnewsfeedparser.h.
|
static |
Definition at line 67 of file qgsnewsfeedparser.h.
|
static |
Definition at line 63 of file qgsnewsfeedparser.h.
|
static |
Definition at line 58 of file qgsnewsfeedparser.h.
|
static |
Definition at line 57 of file qgsnewsfeedparser.h.
|
static |
Definition at line 59 of file qgsnewsfeedparser.h.
|
static |
Definition at line 60 of file qgsnewsfeedparser.h.
|
inlinestatic |
Definition at line 55 of file qgsnewsfeedparser.h.
|
inlinestatic |
Definition at line 62 of file qgsnewsfeedparser.h.
|
readwrite |
Definition at line 50 of file qgsnewsfeedparser.h.
|
read |
Definition at line 51 of file qgsnewsfeedparser.h.