< streamDirectoryEntry_stream * >
|void||streamlist_ready (icecast_internalThread::streamEntryList list)|
Public Member Functions
|void||setFilename (QString newFilename)|
Protected Member Functions
|virtual void||run ()|
Private Member Functions
|void||readStreamEntry (QXmlStreamReader &reader)|
This class provides processing of the "yellow page" file from icecast.org which provides a list of all available Icecast streams.
For each stream it creates a streamDirectoryEntry_stream objects on the heap. After finishing, it emits the signal streamlist_ready with a list of pointers to these objects. It is up to you to make sure that these objects on the head will get deleted!
You have to setFilename() before calling
start(); otherwise you will just get an emtpy data structure.
Defines a type for a list of pointers to streamDirectoryEntry_stream objects. This type is declared as meta type through Q_DECLARE_METATYPE.
qRegisterMetaType<icecast_internalThread::streamEntryList>();before you can use it in queued signal-slot-connections.
|void icecast_internalThread::readStreamEntry||(||QXmlStreamReader &||reader||)||
Helper function that expects that the actual tocken is
<entry>. It reads the entry, constructs the corresponding object on the heap and adds a pointer to it at streamList.
|reader||A reference to the QXmlStreamReader object that you're using for processing.|
References streamDirectoryEntry_stream::aac, streamDirectoryEntry_stream::aac_plus, streamDirectoryEntry_stream::bitrate, streamDirectoryEntry_stream::currentlyPlaying, streamDirectoryEntry_stream::mp3, streamDirectoryEntry_stream::nsv, streamDirectoryEntry_stream::ogg, streamDirectoryEntry::setName(), streamDirectoryEntry::setValue(), streamList, streamDirectoryEntry_stream::streamType, and streamDirectoryEntry_stream::unknown.
Referenced by run().
This signal is emitted after the thread has prepared the data structure.
|list||A list with pointers the the objects on the heap. It is up to you to make sure that these objects on the head will get deleted!|
Referenced by run().