This Class is the Frontend of libmygpo-qt. More...
#include <ApiRequest.h>
Public Member Functions | |
| ApiRequest (const QString &username, const QString &password, QNetworkAccessManager *nam) | |
| ApiRequest (QNetworkAccessManager *nam) | |
| QNetworkReply * | toplistOpml (uint count) |
| Returns the OPML Result for the Simple API Call "Downloading Podcast Toplists". More... | |
| QNetworkReply * | searchOpml (const QString &query) |
| Returns the OPML Result for the Simple API Call "Searching for Podcasts". More... | |
| QNetworkReply * | suggestionsOpml (uint count) |
| Returns the OPML Result for the Simple API Call "Downloading podcast suggestions" Requires Authentication. More... | |
| QNetworkReply * | downloadSubscriptionsOpml (const QString &username, const QString &device) |
| QNetworkReply * | toplistTxt (uint count) |
| Returns the TXT Result for the Simple API Call "Downloading Podcast Toplists". More... | |
| QNetworkReply * | searchTxt (const QString &query) |
| Returns the TXT Result for the Simple API Call "Searching for Podcasts". More... | |
| QNetworkReply * | suggestionsTxt (uint count) |
| Returns the TXT Result for the Simple API Call "Downloading podcast suggestions" Requires Authentication. More... | |
| QNetworkReply * | downloadSubscriptionsTxt (const QString &username, const QString &device) |
| QNetworkReply * | toplistXml (uint count) |
| Returns the TXT Result for the Simple API Call "Downloading Podcast Toplists". More... | |
| QNetworkReply * | searchXml (const QString &query) |
| Returns the XML Result for the Simple API Call "Searching for Podcasts". More... | |
| PodcastListPtr | toplist (uint count) |
| Returns the Result for the Simple API Call "Downloading Podcast Toplists". More... | |
| PodcastListPtr | search (const QString &query) |
| Returns the Result for the Simple API Call "Searching for Podcasts". More... | |
| PodcastListPtr | suggestions (uint count) |
| Returns the Result for the Simple API Call "Downloading podcast suggestions" Requires Authentication. More... | |
| QNetworkReply * | downloadSubscriptionsJson (const QString &username, const QString &device) |
| PodcastListPtr | podcastsOfTag (uint count, const QString &tag) |
| Returns the Result for the Advanced API Call "Retrieving Podcasts of a Tag". More... | |
| PodcastPtr | podcastData (const QUrl &podcasturl) |
| Returns the Result for the Advanced API Call "Retrieving Podcast Data". More... | |
| EpisodePtr | episodeData (const QUrl &podcasturl, const QUrl &episodeurl) |
| Returns the Result for the Advanced API Call "Retrieving Episode Data". More... | |
| EpisodeListPtr | favoriteEpisodes (const QString &username) |
| Returns the Result for the Advanced API Call "Listing Favorite Episodes". More... | |
| TagListPtr | topTags (uint count) |
| Returns the Result for the Advanced API Call "Retrieving Top Tags". More... | |
| AddRemoveResultPtr | addRemoveSubscriptions (const QString &username, const QString &device, const QList< QUrl > &add, const QList< QUrl > &remove) |
| Uploads Data & returns the Result for the Advanced API Call "Add/remove subscriptions" Requires Authentication. More... | |
| SettingsPtr | accountSettings (const QString &username) |
| Retrieve settings which are attached to an account. More... | |
| SettingsPtr | deviceSettings (const QString &username, const QString &device) |
| Retrieve settings which are attached to a device. More... | |
| SettingsPtr | podcastSettings (const QString &username, const QString &podcastUrl) |
| Retrieve settings which are attached to a podcast. More... | |
| SettingsPtr | episodeSettings (const QString &username, const QString &podcastUrl, const QString &episodeUrl) |
| Retrieve settings which are attached to an episode. More... | |
| SettingsPtr | setAccountSettings (const QString &username, QMap< QString, QVariant > &set, const QList< QString > &remove) |
| Set and or remove settings which are attached to an account. More... | |
| SettingsPtr | setDeviceSettings (const QString &username, const QString &device, QMap< QString, QVariant > &set, const QList< QString > &remove) |
| Set and or remove settings which are attached to a device. More... | |
| SettingsPtr | setPodcastSettings (const QString &username, const QString &podcastUrl, QMap< QString, QVariant > &set, const QList< QString > &remove) |
| Set and or remove settings which are attached to a podcast. More... | |
| SettingsPtr | setEpisodeSettings (const QString &username, const QString &podcastUrl, const QString &episodeUrl, QMap< QString, QVariant > &set, const QList< QString > &remove) |
| Set and or remove settings which are attached to an episode. More... | |
| DeviceUpdatesPtr | deviceUpdates (const QString &username, const QString &deviceId, qlonglong timestamp) |
| Retrieve episode and subscription updates for a given device. More... | |
| QNetworkReply * | renameDevice (const QString &username, const QString &deviceId, const QString &caption, Device::Type type) |
| Sets a new name and type for a device identified by a given ID. More... | |
| DeviceListPtr | listDevices (const QString &username) |
| Returns the list of devices that belong to a user. More... | |
| EpisodeActionListPtr | episodeActions (const QString &username, const bool aggregated=false) |
| Download episode actions for a given username. More... | |
| EpisodeActionListPtr | episodeActionsByPodcast (const QString &username, const QString &podcastUrl, const bool aggregated=false) |
| Download episode actions for a given podcast. More... | |
| EpisodeActionListPtr | episodeActionsByDevice (const QString &username, const QString &deviceId, const bool aggregated=false) |
| Download episode actions for a given device. More... | |
| EpisodeActionListPtr | episodeActionsByTimestamp (const QString &username, const qulonglong since) |
| Download episode actions for a given username since a given timestamp. More... | |
| EpisodeActionListPtr | episodeActionsByPodcastAndTimestamp (const QString &username, const QString &podcastUrl, const qulonglong since) |
| Download episode actions for a given podcast since a given timestamp. More... | |
| EpisodeActionListPtr | episodeActionsByDeviceAndTimestamp (const QString &username, const QString &deviceId, const qulonglong since) |
| Download episode actions for a given device since a given timestamp. More... | |
| AddRemoveResultPtr | uploadEpisodeActions (const QString &username, const QList< EpisodeActionPtr > &episodeActions) |
| Upload episode actions. More... | |
| DeviceSyncResultPtr | deviceSynchronizationStatus (const QString &username) |
| DeviceSyncResultPtr | setDeviceSynchronizationStatus (const QString &username, const QList< QStringList > &synchronize, const QList< QString > &stopSynchronize) |
This Class is the Frontend of libmygpo-qt.
Methods from this Class map the Web API of gpodder.net and return the Results of the Requests. Web API Documentation can be found here: http://wiki.gpodder.org/wiki/Web_Services/API_2
| SettingsPtr mygpo::ApiRequest::accountSettings | ( | const QString & | username | ) |
Retrieve settings which are attached to an account.
| username | Username of the targeted account |
| AddRemoveResultPtr mygpo::ApiRequest::addRemoveSubscriptions | ( | const QString & | username, |
| const QString & | device, | ||
| const QList< QUrl > & | add, | ||
| const QList< QUrl > & | remove | ||
| ) |
Uploads Data & returns the Result for the Advanced API Call "Add/remove subscriptions" Requires Authentication.
| username | User for which this API Call should be executed |
| device | gPodder Device for which this API Call should be executed |
| add | URLs of Podcasts that should be added to the Subscriptions of the User |
| remove | URLs of Podcasts that should be removed from the Subscriptions of the User |
| SettingsPtr mygpo::ApiRequest::deviceSettings | ( | const QString & | username, |
| const QString & | device | ||
| ) |
Retrieve settings which are attached to a device.
| username | Username of the account which owns the device |
| device | Name of the targeted device |
| DeviceUpdatesPtr mygpo::ApiRequest::deviceUpdates | ( | const QString & | username, |
| const QString & | deviceId, | ||
| qlonglong | timestamp | ||
| ) |
Retrieve episode and subscription updates for a given device.
| username | Username of the account which owns the device |
| deviceId | Id of the targeted device |
| timestamp | A date in milliseconds, All changes since this timestamp will be retrieved |
| EpisodeActionListPtr mygpo::ApiRequest::episodeActions | ( | const QString & | username, |
| const bool | aggregated = false |
||
| ) |
Download episode actions for a given username.
| Username | of the targeted user |
| aggregated | If aggregated is set to true, only the latest episode action will be returned |
| EpisodeActionListPtr mygpo::ApiRequest::episodeActionsByDevice | ( | const QString & | username, |
| const QString & | deviceId, | ||
| const bool | aggregated = false |
||
| ) |
Download episode actions for a given device.
| username | Username of the account which owns the device |
| deviceId | The Id of the targeted device |
| aggregated | If aggregated is set to true, only the latest episode action will be returned |
| EpisodeActionListPtr mygpo::ApiRequest::episodeActionsByDeviceAndTimestamp | ( | const QString & | username, |
| const QString & | deviceId, | ||
| const qulonglong | since | ||
| ) |
Download episode actions for a given device since a given timestamp.
| username | Username of the account which owns the device |
| deviceId | The Id of the targeted device |
| since | Timestamp in milliseconds, Episode Actions since this time will be retrieved |
| EpisodeActionListPtr mygpo::ApiRequest::episodeActionsByPodcast | ( | const QString & | username, |
| const QString & | podcastUrl, | ||
| const bool | aggregated = false |
||
| ) |
Download episode actions for a given podcast.
| username | Username of the account which owns the podcast |
| podcastUrl | Url which identifies the targeted podcast |
| aggregated | If aggregated is set to true, only the latest episode action will be returned |
| EpisodeActionListPtr mygpo::ApiRequest::episodeActionsByPodcastAndTimestamp | ( | const QString & | username, |
| const QString & | podcastUrl, | ||
| const qulonglong | since | ||
| ) |
Download episode actions for a given podcast since a given timestamp.
| username | Username of the account which owns the podcast |
| podcastUrl | Url which identifies the targeted podcast |
| since | Timestamp in milliseconds, Episode Actions since this time will be retrieved |
| EpisodeActionListPtr mygpo::ApiRequest::episodeActionsByTimestamp | ( | const QString & | username, |
| const qulonglong | since | ||
| ) |
Download episode actions for a given username since a given timestamp.
| Username | of the targeted user |
| since | Timestamp in milliseconds, Episode Actions since this time will be retrieved |
| EpisodePtr mygpo::ApiRequest::episodeData | ( | const QUrl & | podcasturl, |
| const QUrl & | episodeurl | ||
| ) |
| SettingsPtr mygpo::ApiRequest::episodeSettings | ( | const QString & | username, |
| const QString & | podcastUrl, | ||
| const QString & | episodeUrl | ||
| ) |
Retrieve settings which are attached to an episode.
| username | Username of the account which owns the episode |
| podcastUrl | Url as String which identifies the podcast to which the episode belongs to |
| episodeUrl | Url as String which identifies the targeted episode |
| EpisodeListPtr mygpo::ApiRequest::favoriteEpisodes | ( | const QString & | username | ) |
Returns the Result for the Advanced API Call "Listing Favorite Episodes".
| username | The User whose Favorite Episodes should be retrieved |
| DeviceListPtr mygpo::ApiRequest::listDevices | ( | const QString & | username | ) |
Returns the list of devices that belong to a user.
| username | Username of the targeted user |
| PodcastPtr mygpo::ApiRequest::podcastData | ( | const QUrl & | podcasturl | ) |
| SettingsPtr mygpo::ApiRequest::podcastSettings | ( | const QString & | username, |
| const QString & | podcastUrl | ||
| ) |
Retrieve settings which are attached to a podcast.
| username | Username of the account which owns the podcast |
| podcastUrl | Url which identifies the targeted podcast |
| PodcastListPtr mygpo::ApiRequest::podcastsOfTag | ( | uint | count, |
| const QString & | tag | ||
| ) |
| QNetworkReply* mygpo::ApiRequest::renameDevice | ( | const QString & | username, |
| const QString & | deviceId, | ||
| const QString & | caption, | ||
| Device::Type | type | ||
| ) |
Sets a new name and type for a device identified by a given ID.
| username | Username of the account which owns the device |
| deviceId | The id of the targeted device |
| caption | The new name of the device |
| type | The new type of the device |
| PodcastListPtr mygpo::ApiRequest::search | ( | const QString & | query | ) |
Returns the Result for the Simple API Call "Searching for Podcasts".
| query | The String you want to search for |
| QNetworkReply* mygpo::ApiRequest::searchOpml | ( | const QString & | query | ) |
Returns the OPML Result for the Simple API Call "Searching for Podcasts".
| query | The String you want to search for |
| QNetworkReply* mygpo::ApiRequest::searchTxt | ( | const QString & | query | ) |
Returns the TXT Result for the Simple API Call "Searching for Podcasts".
| query | The String you want to search for |
| QNetworkReply* mygpo::ApiRequest::searchXml | ( | const QString & | query | ) |
Returns the XML Result for the Simple API Call "Searching for Podcasts".
| query | The String you want to search for |
| SettingsPtr mygpo::ApiRequest::setAccountSettings | ( | const QString & | username, |
| QMap< QString, QVariant > & | set, | ||
| const QList< QString > & | remove | ||
| ) |
Set and or remove settings which are attached to an account.
| username | Username of the targeted account |
| set | A set of settings as key-value-pairs which shall be set |
| set | A set of exisiting settings as key-value-pairs which shall be removed |
| SettingsPtr mygpo::ApiRequest::setDeviceSettings | ( | const QString & | username, |
| const QString & | device, | ||
| QMap< QString, QVariant > & | set, | ||
| const QList< QString > & | remove | ||
| ) |
Set and or remove settings which are attached to a device.
| username | Username of the account which owns the device |
| device | Name of the targeted device |
| set | A set of settings as key-value-pairs which shall be set |
| set | A set of exisiting settings as key-value-pairs which shall be removed |
| SettingsPtr mygpo::ApiRequest::setEpisodeSettings | ( | const QString & | username, |
| const QString & | podcastUrl, | ||
| const QString & | episodeUrl, | ||
| QMap< QString, QVariant > & | set, | ||
| const QList< QString > & | remove | ||
| ) |
Set and or remove settings which are attached to an episode.
| username | Username of the account which owns the episode |
| podcastUrl | Url as String which identifies the podcast to which the episode belongs to |
| episodeUrl | Url as String which identifies the targeted episode |
| set | A set of settings as key-value-pairs which shall be set |
| set | A set of exisiting settings as key-value-pairs which shall be removed |
| SettingsPtr mygpo::ApiRequest::setPodcastSettings | ( | const QString & | username, |
| const QString & | podcastUrl, | ||
| QMap< QString, QVariant > & | set, | ||
| const QList< QString > & | remove | ||
| ) |
Set and or remove settings which are attached to a podcast.
| username | Username of the account which owns the podcast |
| podcastUrl | Url which identifies the targeted podcast |
| set | A set of settings as key-value-pairs which shall be set |
| set | A set of exisiting settings as key-value-pairs which shall be removed |
| PodcastListPtr mygpo::ApiRequest::suggestions | ( | uint | count | ) |
Returns the Result for the Simple API Call "Downloading podcast suggestions" Requires Authentication.
| count | The maximum number of Podcasts that should be returned - will be set to to 100 if > 100 or < 1 |
| QNetworkReply* mygpo::ApiRequest::suggestionsOpml | ( | uint | count | ) |
Returns the OPML Result for the Simple API Call "Downloading podcast suggestions" Requires Authentication.
| count | The maximum number of Podcasts that should be returned - will be set to to 100 if > 100 or < 1 |
| QNetworkReply* mygpo::ApiRequest::suggestionsTxt | ( | uint | count | ) |
Returns the TXT Result for the Simple API Call "Downloading podcast suggestions" Requires Authentication.
| count | The maximum number of Podcasts that should be returned - will be set to to 100 if > 100 or < 1 |
| PodcastListPtr mygpo::ApiRequest::toplist | ( | uint | count | ) |
Returns the Result for the Simple API Call "Downloading Podcast Toplists".
| count | The number of Podcasts that should be returned - will be set to to 100 if > 100 or < 1 |
| QNetworkReply* mygpo::ApiRequest::toplistOpml | ( | uint | count | ) |
Returns the OPML Result for the Simple API Call "Downloading Podcast Toplists".
| count | The number of Podcasts that should be returned - will be set to to 100 if > 100 or < 1 |
| QNetworkReply* mygpo::ApiRequest::toplistTxt | ( | uint | count | ) |
Returns the TXT Result for the Simple API Call "Downloading Podcast Toplists".
| count | The number of Podcasts that should be returned - will be set to to 100 if > 100 or < 1 |
| QNetworkReply* mygpo::ApiRequest::toplistXml | ( | uint | count | ) |
Returns the TXT Result for the Simple API Call "Downloading Podcast Toplists".
| count | The number of Podcasts that should be returned - will be set to to 100 if > 100 or < 1 |
| TagListPtr mygpo::ApiRequest::topTags | ( | uint | count | ) |
Returns the Result for the Advanced API Call "Retrieving Top Tags".
| count | The number of Tags that should be returned - will be set to to 100 if > 100 or < 1 |
| AddRemoveResultPtr mygpo::ApiRequest::uploadEpisodeActions | ( | const QString & | username, |
| const QList< EpisodeActionPtr > & | episodeActions | ||
| ) |
Upload episode actions.
| episodeActions | The list of episode actions which shall be uploaded |
1.8.3.1