streamDirectoryEntry_stream Class Reference

Data type representing a stream. More...

#include <streamdirectoryentry_stream.h>

Inheritance diagram for streamDirectoryEntry_stream:

Inheritance graph
[legend]
Collaboration diagram for streamDirectoryEntry_stream:

Collaboration graph
[legend]

List of all members.

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


Detailed Description

Data type representing a stream.

This is a data type representing a stream with some information about it - within a tree structure.

See also:
stationDirectoryTree

Definition at line 31 of file streamdirectoryentry_stream.h.


Member Enumeration Documentation

A data type for the type of stream.

Enumerator:
unknown 
mp3 
ogg 
nsv 
aac 
aac_plus 

Definition at line 50 of file streamdirectoryentry_stream.h.


Constructor & Destructor Documentation

streamDirectoryEntry_stream::streamDirectoryEntry_stream (  ) 

The constructor.

Definition at line 25 of file streamdirectoryentry_stream.cpp.

References bitrate, currentlyPlaying, streamDirectoryEntry::name(), streamType, and unknown.

Here is the call graph for this function:

streamDirectoryEntry_stream::~streamDirectoryEntry_stream (  )  [virtual]

The destructor.

Definition at line 33 of file streamdirectoryentry_stream.cpp.


Member Function Documentation

QVariant streamDirectoryEntry_stream::data ( const int  column  )  const [virtual]

Returns the data of the stream.

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

Here is the call graph for this function:

Here is the caller graph for this function:

QString streamDirectoryEntry_stream::formatedStreamType ( const type_of_stream  streamType  )  [static]

Returns a formated (human readable and localized) version of the stream type.

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

Here is the caller graph for this function:

bool streamDirectoryEntry_stream::hasChildren (  )  const [virtual]

Returns:
false (A stream should not have children.)

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

Here is the call graph for this function:


Member Data Documentation

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


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

doxygen