#include <icecast.h>
Public Member Functions | |
icecast (QObject *parent, const QString &genreIconFileName=QString()) | |
virtual | ~icecast () |
Private Slots | |
void | use_data (icecast_internalThread::streamEntryList list) |
Private Attributes | |
icecast_internalThread | m_thread |
This class provides Icecast streams (http://icecast.org) as Qt model derived from streamDirectoryModel.
Internally, it downloads from icecast.org a file with the list of streams and processes it to provide the information in form of a Qt model. Download and processing is done in a separate thread which is started on instanciating the class. It will take some seconds, but as the work in done in it's own thread, it will not block your UI.
Definition at line 37 of file icecast.h.
icecast::icecast | ( | QObject * | parent, | |
const QString & | genreIconFileName = QString() | |||
) | [explicit] |
Constructor of the class.
parent | Sets the parent widget of this object. | |
genreIconFileName | See genreIcon for details. |
Definition at line 23 of file icecast.cpp.
References m_thread, and use_data().
icecast::~icecast | ( | ) | [virtual] |
The desctructor.
Definition at line 34 of file icecast.cpp.
void icecast::use_data | ( | icecast_internalThread::streamEntryList | list | ) | [private, slot] |
Publicate the result of m_thread.
Definition at line 38 of file icecast.cpp.
References streamDirectoryEntry::appendChild(), and streamDirectoryModel::rootEntry.
Referenced by icecast().
icecast_internalThread icecast::m_thread [private] |