#include <streamdirectoryentry_stream.h>
Public Types | |
enum | type_of_stream { unknown, mp3, ogg, nsv, aac, aac_plus } |
Public Member Functions | |
streamDirectoryEntry_stream () | |
virtual | ~streamDirectoryEntry_stream () |
virtual QVariant | data (const int column) const |
virtual bool | hasChildren () const |
QVariant | rawData (const int column) const |
Static Public Member Functions | |
static QString | formatedStreamType (const type_of_stream streamType) |
Public Attributes | |
quint64 | bitrate |
bool | currentlyPlaying |
type_of_stream | streamType |
This is a data type representing a stream with some information about it - within a tree structure.
Definition at line 31 of file streamdirectoryentry_stream.h.
A data type for the type of stream.
Definition at line 50 of file streamdirectoryentry_stream.h.
streamDirectoryEntry_stream::streamDirectoryEntry_stream | ( | ) |
The constructor.
Definition at line 25 of file streamdirectoryentry_stream.cpp.
References bitrate, currentlyPlaying, streamDirectoryEntry::name(), streamType, and unknown.
streamDirectoryEntry_stream::~streamDirectoryEntry_stream | ( | ) | [virtual] |
The destructor.
Definition at line 33 of file streamdirectoryentry_stream.cpp.
QVariant streamDirectoryEntry_stream::data | ( | const int | column | ) | const [virtual] |
Returns the data of the stream.
column | The column for which the data is reported. |
Reimplemented from streamDirectoryEntry.
Definition at line 79 of file streamdirectoryentry_stream.cpp.
References bitrate, currentlyPlaying, formatedStreamType(), streamDirectoryEntry::name(), streamType, and streamDirectoryEntry::value().
Referenced by rawData().
QString streamDirectoryEntry_stream::formatedStreamType | ( | const type_of_stream | streamType | ) | [static] |
Returns a formated (human readable and localized) version of the stream type.
streamType | The stream type that which you want to get the formated version. |
Definition at line 37 of file streamdirectoryentry_stream.cpp.
References aac, aac_plus, mp3, nsv, ogg, and unknown.
Referenced by data().
bool streamDirectoryEntry_stream::hasChildren | ( | ) | const [virtual] |
Implements streamDirectoryEntry.
Definition at line 115 of file streamdirectoryentry_stream.cpp.
QVariant streamDirectoryEntry_stream::rawData | ( | const int | column | ) | const [virtual] |
Reimplemented from base class.
Reimplemented from streamDirectoryEntry.
Definition at line 70 of file streamdirectoryentry_stream.cpp.
References bitrate, and data().
The bitrate of the stream. Set this to 0 if unknown!
Default value: 0
Definition at line 62 of file streamdirectoryentry_stream.h.
Referenced by data(), rawData(), icecast_internalThread::readStreamEntry(), and streamDirectoryEntry_stream().
Holds whether the stream provides useful meta-information about the actually played song.
Default value: false
Definition at line 68 of file streamdirectoryentry_stream.h.
Referenced by data(), icecast_internalThread::readStreamEntry(), and streamDirectoryEntry_stream().
The type of the stream. Set to unknown if it can not be determinated.
Default value: unknown
Definition at line 88 of file streamdirectoryentry_stream.h.
Referenced by data(), icecast_internalThread::readStreamEntry(), and streamDirectoryEntry_stream().