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 #include "OpmlDirectoryMeta.h"
0018 
0019 #include "OpmlDirectoryService.h"
0020 
0021 #include "core/support/Debug.h"
0022 
0023 using namespace Meta;
0024 
0025 OpmlDirectoryMetaFactory::OpmlDirectoryMetaFactory( const QString & dbPrefix, OpmlDirectoryService * )
0026     : ServiceMetaFactory( dbPrefix )
0027 {
0028 }
0029 
0030 TrackPtr OpmlDirectoryMetaFactory::createTrack( const QStringList & rows )
0031 {
0032     return TrackPtr( new OpmlDirectoryFeed( rows ) );
0033 }
0034 
0035 
0036 AlbumPtr OpmlDirectoryMetaFactory::createAlbum( const QStringList & rows )
0037 {
0038     return AlbumPtr( new OpmlDirectoryCategory( rows ) );
0039 }
0040 
0041 
0042 //// OpmlDirectoryFeed ////
0043 
0044 OpmlDirectoryFeed::OpmlDirectoryFeed( const QString &name )
0045     : ServiceTrack( name )
0046 {
0047 }
0048 
0049 OpmlDirectoryFeed::OpmlDirectoryFeed( const QStringList & resultRow )
0050     : ServiceTrack( resultRow )
0051 {
0052 }
0053 
0054 OpmlDirectoryCategory::OpmlDirectoryCategory( const QString & name )
0055     : ServiceAlbum( name )
0056 {
0057 }
0058 
0059 OpmlDirectoryCategory::OpmlDirectoryCategory( const QStringList & resultRow )
0060     : ServiceAlbum( resultRow )
0061 {
0062 }
0063 
0064 
0065 
0066 
0067