File indexing completed on 2024-05-19 04:50:23
0001 /**************************************************************************************** 0002 * Copyright (c) 2008 Nikolaj Hald Nielsen <nhn@kde.org> * 0003 * * 0004 * This program is free software; you can redistribute it and/or modify it under * 0005 * the terms of the GNU General Public License as published by the Free Software * 0006 * Foundation; either version 2 of the License, or (at your option) any later * 0007 * version. * 0008 * * 0009 * This program is distributed in the hope that it will be useful, but WITHOUT ANY * 0010 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A * 0011 * PARTICULAR PURPOSE. See the GNU General Public License for more details. * 0012 * * 0013 * You should have received a copy of the GNU General Public License along with * 0014 * this program. If not, see <http://www.gnu.org/licenses/>. * 0015 ****************************************************************************************/ 0016 0017 #ifndef OPMLDIRECTORYMETA_H 0018 #define OPMLDIRECTORYMETA_H 0019 0020 0021 #include "../ServiceMetaBase.h" 0022 0023 #include <QDateTime> 0024 #include <QString> 0025 #include <QStringList> 0026 #include <QList> 0027 0028 class OpmlDirectoryService; 0029 0030 class OpmlDirectoryMetaFactory : public ServiceMetaFactory 0031 { 0032 public: 0033 OpmlDirectoryMetaFactory( const QString &dbPrefix, OpmlDirectoryService *service ); 0034 ~OpmlDirectoryMetaFactory() override {} 0035 0036 Meta::TrackPtr createTrack( const QStringList &rows ) override; 0037 Meta::AlbumPtr createAlbum( const QStringList &rows ) override; 0038 }; 0039 0040 0041 namespace Meta 0042 { 0043 class OpmlDirectoryFeed; 0044 class OpmlDirectoryCategory; 0045 0046 typedef AmarokSharedPointer<OpmlDirectoryFeed> OpmlDirectoryFeedPtr; 0047 typedef AmarokSharedPointer<OpmlDirectoryCategory> OpmlDirectoryCategoryPtr; 0048 class OpmlDirectoryFeed : public ServiceTrack 0049 { 0050 0051 0052 public: 0053 explicit OpmlDirectoryFeed( const QString &name ); 0054 explicit OpmlDirectoryFeed( const QStringList &resultRow ); 0055 }; 0056 0057 class OpmlDirectoryCategory : public ServiceAlbum 0058 { 0059 public: 0060 explicit OpmlDirectoryCategory( const QString &name ); 0061 explicit OpmlDirectoryCategory( const QStringList &resultRow ); 0062 }; 0063 0064 } 0065 0066 0067 #endif