LeechCraft  0.6.70-9312-g4cc613a2df
Modular cross-platform feature rich live environment.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Media::IRestorableRadioStationProvider Class Referenceabstract

Interface for radio station providers able to restore the radio stations between LeechCraft runs. More...

#include "irestorableradiostationprovider.h"

Public Member Functions

virtual QFuture
< RadiosRestoreResult_t
RestoreRadioStations (const QStringList &ids)=0
 Initiates restoring the radio stations for the given IDs. More...
 

Protected Member Functions

virtual ~IRestorableRadioStationProvider ()
 

Detailed Description

Interface for radio station providers able to restore the radio stations between LeechCraft runs.

An example of such a provider could be the VKontakte streamer. The links to the songs die after a certain amount of time, but still it's desirable to allow restoring the list of tracks.

See Also
IRadioStationProvider

Definition at line 85 of file irestorableradiostationprovider.h.

Constructor & Destructor Documentation

virtual Media::IRestorableRadioStationProvider::~IRestorableRadioStationProvider ( )
inlineprotectedvirtual

Definition at line 88 of file irestorableradiostationprovider.h.

Member Function Documentation

virtual QFuture<RadiosRestoreResult_t> Media::IRestorableRadioStationProvider::RestoreRadioStations ( const QStringList &  ids)
pure virtual

Initiates restoring the radio stations for the given IDs.

The IDs are the ones exposed by the provider via the Media::RadioItemRole::RadioID model role.

Parameters
[in]idsThe list of radio IDs to restore.
Returns
The future providing a list of RadioRestoreResult structs.
See Also
RadioRestoreResult

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