LeechCraft  0.6.70-15082-g543737046d
Modular cross-platform feature rich live environment.
Media::IModifiableRadioStation Class Referenceabstract

Interface for radios supporting streams adding or removal. More...

#include "imodifiableradiostation.h"

Public Member Functions

virtual ~IModifiableRadioStation ()
 
virtual void AddItem (const QUrl &url, const QString &name)=0
 Adds a new item. More...
 
virtual void RemoveItem (const QModelIndex &index)=0
 Removes the previously added item. More...
 

Detailed Description

Interface for radios supporting streams adding or removal.

This interface is to be implemented by an IRadioStation that supports adding or removal streams by URL. For example, a pseudo radiostation keeping bookmarks would implement this.

See also
IRadioStation

Definition at line 27 of file imodifiableradiostation.h.

Constructor & Destructor Documentation

◆ ~IModifiableRadioStation()

virtual Media::IModifiableRadioStation::~IModifiableRadioStation ( )
inlinevirtual

Definition at line 30 of file imodifiableradiostation.h.

Member Function Documentation

◆ AddItem()

virtual void Media::IModifiableRadioStation::AddItem ( const QUrl &  url,
const QString &  name 
)
pure virtual

Adds a new item.

Adds an item with the given url under the given name.

Parameters
[in]urlThe URL of the stream to add.
[in]nameThe name of the radio station (may be empty).

◆ RemoveItem()

virtual void Media::IModifiableRadioStation::RemoveItem ( const QModelIndex &  index)
pure virtual

Removes the previously added item.

This function removes an item identified by the index. The index belongs to the model returned by the IRadioStationProvider::GetRadioListItems() method of the parent IRadioStationProvider that returned this radio station.

Parameters
[in]indexThe index of the stream to remove.

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