00001 /* 00002 Copyright (C) 2008-2010 Lukas Sommer < SommerLuk at gmail dot com > 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 STREAMDIRECTORYENTRY_STREAM_H 00022 #define STREAMDIRECTORYENTRY_STREAM_H 00023 00024 #include "streamdirectoryentry.h" 00025 00031 class streamDirectoryEntry_stream : public streamDirectoryEntry 00032 { 00033 public: 00035 streamDirectoryEntry_stream(); 00036 00038 virtual ~streamDirectoryEntry_stream(); 00039 00050 enum type_of_stream { 00051 unknown, 00052 mp3, 00053 ogg, 00054 nsv, 00055 aac, 00056 aac_plus 00057 }; 00058 00062 quint64 bitrate; 00063 00068 bool currentlyPlaying; 00069 00072 virtual QVariant data(const int column) const; 00073 00076 static QString formatedStreamType(const type_of_stream streamType); 00077 00079 virtual bool hasChildren() const; 00080 00082 QVariant rawData(const int column) const; 00083 00088 type_of_stream streamType; 00089 }; 00090 00091 #endif