stationdirectorytree.h

Go to the documentation of this file.
00001 /*
00002     Copyright (C) 2008-2009  Tim Fechtner < urwald at users dot sourceforge dot net >
00003 
00004     This program is free software; you can redistribute it and/or
00005     modify it under the terms of the GNU General Public License as
00006     published by the Free Software Foundation; either version 2 of
00007     the License or (at your option) version 3 or any later version
00008     accepted by the membership of KDE e.V. (or its successor approved
00009     by the membership of KDE e.V.), which shall act as a proxy
00010     defined in Section 14 of version 3 of the license.
00011 
00012     This program is distributed in the hope that it will be useful,
00013     but WITHOUT ANY WARRANTY; without even the implied warranty of
00014     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015     GNU General Public License for more details.
00016 
00017     You should have received a copy of the GNU General Public License
00018     along with this program.  If not, see <http://www.gnu.org/licenses/>.
00019 */
00020 
00021 #ifndef STATIONDIRECTORYTREE_H
00022 #define STATIONDIRECTORYTREE_H
00023 
00024 #include <QTreeWidget>
00025 #include <KIcon>
00026 class streamDirectoryService;
00027 /* This must be a forward declaration and not an #include, because
00028  * streamDirectoryService and stationDirectoryTree depend on each other.
00029  * So, here make a forward declaration, and in streamdirectoryservice.h
00030  * we can include THIS file. */
00031 
00038 class stationDirectoryTree : public QTreeWidget
00039 {
00040 
00041   Q_OBJECT
00042 
00043   friend class streamDirectoryService;  // TODO lasse das nur für die nötigsten Funktionen gelten
00044 
00045   public:
00049     explicit stationDirectoryTree(QWidget *parent, const QString & genreIconFileName = QString());
00051     virtual ~stationDirectoryTree();
00058     void registerPlugin(streamDirectoryService *plugin);
00059 
00060   private:
00063     void addStreamToWidget(streamDirectoryService *plugin,
00064                            const QString & genre,
00065                            const QString & streamName,
00066                            const quint64 bitrate,
00067                            const QString & currentlyPlaying = QString());
00071     void removeAllStreamsOfThisService(const streamDirectoryService *plugin);
00077     KIcon genreIcon;
00078 
00079 };
00080 
00081 #endif

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