|
libcuteradio
A Qt/C++ library and QML module to access the cuteRadio Data API.
|
A model for retrieving station genres. More...
Additional Inherited Members | |
Public Slots inherited from CuteRadio::ResourcesModel | |
| void | cancel () |
| Cancels the current request. | |
| void | reload () |
| Clears any existing data and retreives a new list of cuteRadio resources using the existing properties. | |
Signals inherited from CuteRadio::ResourcesModel | |
| void | accessTokenChanged () |
| Emitted when the accessToken changes. | |
| void | statusChanged (CuteRadio::ResourcesRequest::Status s) |
| Emitted when the status changes. | |
Public Member Functions inherited from CuteRadio::ResourcesModel | |
| void | setNetworkAccessManager (QNetworkAccessManager *manager) |
| Sets the QNetworkAccessManager instance to be used when making requests to the cuteRadio Data API. | |
Properties inherited from CuteRadio::ResourcesModel | |
| QString | accessToken |
| The access token to be used when making requests to the cuteRadio Data API. | |
| QString | resource |
| The resource type to be retrieved by the model. | |
| QVariantMap | filters |
| A map of key/value pairs used to filter requests. | |
| CuteRadio::ResourcesRequest::Status | status |
| The current status of the model. | |
| QVariant | result |
| The current result of the model. | |
| CuteRadio::ResourcesRequest::Error | error |
| The error type of the model. | |
| QString | errorString |
| A description of the error of the model. | |
A model for retrieving station genres.
GenresModel is used for retrieving station genres, and extends ResourcesModel by providing the following data roles:
| Role | Role name | Description |
|---|---|---|
| Qt::DisplayRole/NameRole | name | The display name of the genre. |
| CountRole | count | The number of stations belonging to the genre. |
1.8.1.2