stationDirectoryTree Class Reference

A widget which provides a stream directory. More...

#include <stationdirectorytree.h>

List of all members.

Public Member Functions

 stationDirectoryTree (QWidget *parent, const QString &genreIconFileName=QString())
virtual ~stationDirectoryTree ()
void registerPlugin (streamDirectoryService *plugin)

Private Member Functions

void addStreamToWidget (streamDirectoryService *plugin, const QString &genre, const QString &streamName, const quint64 bitrate, const QString &currentlyPlaying=QString())
void removeAllStreamsOfThisService (const streamDirectoryService *plugin)

Private Attributes

KIcon genreIcon

Friends

class streamDirectoryService


Detailed Description

A widget which provides a stream directory.

To access stream directories in the internet, this widget uses plugins. Plugins are objects which are derived from streamDirectoryService. To use them, create such an object, make your settings, and than register it with registerPlugin().

Definition at line 38 of file stationdirectorytree.h.


Constructor & Destructor Documentation

stationDirectoryTree::stationDirectoryTree ( QWidget *  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 26 of file stationdirectorytree.cpp.

References genreIcon.

stationDirectoryTree::~stationDirectoryTree (  )  [virtual]

The desctructor.

Definition at line 50 of file stationdirectorytree.cpp.


Member Function Documentation

void stationDirectoryTree::registerPlugin ( streamDirectoryService plugin  ) 

Uses the specified object as plugin.

If the specified object is already registered as plugin at another widget, it will be unregistered there and than registered here.

Parameters:
plugin The object to be registered as plugin.

Definition at line 65 of file stationdirectorytree.cpp.

References streamDirectoryService::setWidget().

Here is the call graph for this function:

void stationDirectoryTree::addStreamToWidget ( streamDirectoryService plugin,
const QString &  genre,
const QString &  streamName,
const quint64  bitrate,
const QString &  currentlyPlaying = QString() 
) [private]

Adds a stream with the specified values. Is provides for use from the friend class streamDirectoryService. TODO Parameter dokumentieren.

Definition at line 54 of file stationdirectorytree.cpp.

void stationDirectoryTree::removeAllStreamsOfThisService ( const streamDirectoryService plugin  )  [private]

Removes all streams that have been added by the specified plugin. Is provides for use from the friend class streamDirectoryService.

Parameters:
plugin the plugin

Definition at line 72 of file stationdirectorytree.cpp.


Friends And Related Function Documentation

friend class streamDirectoryService [friend]

Definition at line 43 of file stationdirectorytree.h.


Member Data Documentation

Holds the icon the is used for the genres. It is set in the constructor and later can't be changed anymore.

The constructor determinates the size of this icon (based on the font size used in the list).

Definition at line 77 of file stationdirectorytree.h.

Referenced by stationDirectoryTree().


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

Generated on Sat May 2 10:44:02 2009 for kradioripper by  doxygen 1.5.6