Freya  0.0.1
A Gtk3 MPD Client
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions
Glyr::Stack Class Reference

#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.

Detailed Description

Definition at line 27 of file Request.hh.


Member Function Documentation

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.

Parameters:
songA song with tagged artist/album/title
typeone of the GLYR_GET_TYPE enum
numbernumber 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.

Parameters:
artistArtist (will be sanitized)
albumAlbum (will be sanitized)
titleTitle (will be sanitized)
typeone of the GLYR_GET_TYPE enum
numbernumber of items, by default just one

The documentation for this class was generated from the following file: