#include <stationdirectorytree.h>
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 ¤tlyPlaying=QString()) |
void | removeAllStreamsOfThisService (const streamDirectoryService *plugin) |
Private Attributes | |
KIcon | genreIcon |
Friends | |
class | streamDirectoryService |
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.
stationDirectoryTree::stationDirectoryTree | ( | QWidget * | parent, | |
const QString & | genreIconFileName = QString() | |||
) | [explicit] |
Constructor of the class.
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.
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.
plugin | The object to be registered as plugin. |
Definition at line 65 of file stationdirectorytree.cpp.
References streamDirectoryService::setWidget().
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.
plugin | the plugin |
Definition at line 72 of file stationdirectorytree.cpp.
friend class streamDirectoryService [friend] |
Definition at line 43 of file stationdirectorytree.h.
KIcon stationDirectoryTree::genreIcon [private] |
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().