Public Member Functions
|icecast (QObject *parent)|
|void||process_file (KJob *job)|
|void||use_data (icecast_internalThread::streamEntryList list)|
|QPointer< KIO::CopyJob >||m_copyjob|
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.
|void icecast::process_file||(||KJob *||job||)||
Starts the processing of the downloaded file with the stream list if there didn't happen errors while the download.
Referenced by icecast().
The temporary directory which is used to download the stream list.
We download the file here and not in the thread because the KIO library is not reentrant or even thread save.