LeechCraft  0.6.70-15082-g543737046d
Modular cross-platform feature rich live environment.
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_tRestoreRadioStations (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 64 of file irestorableradiostationprovider.h.

Constructor & Destructor Documentation

◆ ~IRestorableRadioStationProvider()

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

Definition at line 67 of file irestorableradiostationprovider.h.

Member Function Documentation

◆ RestoreRadioStations()

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: