File indexing completed on 2024-05-19 04:50:22
0001 /**************************************************************************************** 0002 * Copyright (c) 2007 Nikolaj Hald Nielsen <nhn@kde.org> * 0003 * Copyright (c) 2007,2008 Casey Link <unnamedrambler@gmail.com> * 0004 * * 0005 * This program is free software; you can redistribute it and/or modify it under * 0006 * the terms of the GNU General Public License as published by the Free Software * 0007 * Foundation; either version 2 of the License, or (at your option) any later * 0008 * version. * 0009 * * 0010 * This program is distributed in the hope that it will be useful, but WITHOUT ANY * 0011 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A * 0012 * PARTICULAR PURPOSE. See the GNU General Public License for more details. * 0013 * * 0014 * You should have received a copy of the GNU General Public License along with * 0015 * this program. If not, see <http://www.gnu.org/licenses/>. * 0016 ****************************************************************************************/ 0017 0018 #ifndef MP3TUNESMETA_H 0019 #define MP3TUNESMETA_H 0020 0021 #include "../ServiceMetaBase.h" 0022 #include "../ServiceAlbumCoverDownloader.h" 0023 0024 #include <QDateTime> 0025 #include <QList> 0026 #include <QString> 0027 #include <QStringList> 0028 0029 0030 namespace Meta 0031 { 0032 0033 class Mp3TunesTrack : public ServiceTrack 0034 { 0035 0036 public: 0037 0038 explicit Mp3TunesTrack( const QString& title ); 0039 0040 virtual QString sourceName(); 0041 virtual QString sourceDescription(); 0042 virtual QPixmap emblem(); 0043 virtual QString type() const; 0044 void setType( const QString &type ); 0045 private: 0046 QString m_filetype; 0047 }; 0048 0049 0050 class Mp3TunesAlbum : public ServiceAlbumWithCover 0051 { 0052 private: 0053 QString m_coverURL; 0054 0055 public: 0056 explicit Mp3TunesAlbum( const QString &name ); 0057 explicit Mp3TunesAlbum( const QStringList &resultRow ); 0058 0059 ~Mp3TunesAlbum(); 0060 0061 virtual QString downloadPrefix() const { return "mp3tunes"; } 0062 0063 virtual void setCoverUrl( const QString &coverURL ); 0064 virtual QString coverUrl() const; 0065 }; 0066 0067 } 0068 0069 #endif