icecast Class Reference

Provides Icecast streams as Qt model. More...

#include <icecast.h>

Inheritance diagram for icecast:

Inheritance graph
[legend]
Collaboration diagram for icecast:

Collaboration graph
[legend]

List of all members.

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


Detailed Description

Provides Icecast streams as Qt model.

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.


Constructor & Destructor Documentation

icecast::icecast ( QObject *  parent,
const QString &  genreIconFileName = QString() 
) [explicit]

Constructor of the class.

Parameters:
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().

Here is the call graph for this function:

icecast::~icecast (  )  [virtual]

The desctructor.

Definition at line 34 of file icecast.cpp.


Member Function Documentation

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().

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Used to download the list of streams and process them in a separate thread.

Definition at line 52 of file icecast.h.

Referenced by icecast().


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

doxygen