|
Freya
0.0.1
A Gtk3 MPD Client
|
#include <Request.hh>
Public Member Functions | |
| void | request (UpdateInterface *intf, MPD::Song &song, GLYR_GET_TYPE type, int number=1) |
| Requets online metadata. | |
| void | request (UpdateInterface *intf, const char *artist, const char *album, const char *title, GLYR_GET_TYPE type, int number=1) |
| Requets online metadata. | |
| void | destroy () |
| void | enqueue (UpdateInterface *intf) |
| Begin a request. | |
Definition at line 27 of file Request.hh.
| void Glyr::Stack::destroy | ( | ) |
| void Glyr::Stack::enqueue | ( | UpdateInterface * | intf | ) |
Begin a request.
This is not necessary to call - most of the time it's just fine to call request(), but if you want to group several requests in one response use begin_request() and end_request() to wrap your requests, so they get delievered as "one", otherwise only the most recent request gets delivered
| void Glyr::Stack::request | ( | UpdateInterface * | intf, |
| MPD::Song & | song, | ||
| GLYR_GET_TYPE | type, | ||
| int | number = 1 |
||
| ) |
Requets online metadata.
| song | A song with tagged artist/album/title |
| type | one of the GLYR_GET_TYPE enum |
| number | number of items, by default just one |
| void Glyr::Stack::request | ( | UpdateInterface * | intf, |
| const char * | artist, | ||
| const char * | album, | ||
| const char * | title, | ||
| GLYR_GET_TYPE | type, | ||
| int | number = 1 |
||
| ) |
Requets online metadata.
| artist | Artist (will be sanitized) |
| album | Album (will be sanitized) |
| title | Title (will be sanitized) |
| type | one of the GLYR_GET_TYPE enum |
| number | number of items, by default just one |
1.8.0