![]() |
LeechCraft
0.6.70-15082-g543737046d
Modular cross-platform feature rich live environment.
|
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... | |
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.
Definition at line 27 of file imodifiableradiostation.h.
|
inlinevirtual |
Definition at line 30 of file imodifiableradiostation.h.
|
pure virtual |
Adds a new item.
Adds an item with the given url under the given name.
[in] | url | The URL of the stream to add. |
[in] | name | The name of the radio station (may be empty). |
|
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.
[in] | index | The index of the stream to remove. |