itunesdbdatasource.h

00001  /*****************************************************************************
00002  *   Copyright (C) 2004 by Michael Schulze                                    *
00003  *   mike.s@genion.de                                                         *
00004  *                                                                            *
00005  *  The code contained in this file is free software; you can redistribute    *
00006  *  it and/or modify it under the terms of the GNU Lesser General Public      *
00007  *  License as published by the Free Software Foundation; either version      *
00008  *  2.1 of the License, or (at your option) any later version.                *
00009  *                                                                            *
00010  *  This file is distributed in the hope that it will be useful,              *
00011  *  but WITHOUT ANY WARRANTY; without even the implied warranty of            *
00012  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU         *
00013  *  Lesser General Public License for more details.                           *
00014  *                                                                            *
00015  *  You should have received a copy of the GNU Lesser General Public          *
00016  *  License along with this code; if not, write to the Free Software          *
00017  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA *
00018  *                                                                            *
00019  *  iTunes and iPod are trademarks of Apple                                   *
00020  *                                                                            *
00021  *  This product is not supported/written/published by Apple!                 *
00022  *****************************************************************************/
00023 
00024 #ifndef ITUNESDBITUNESDBDATASOURCE_H
00025 #define ITUNESDBITUNESDBDATASOURCE_H
00026 
00027 #include <qvaluelist.h>
00028 
00029 #include "track.h"
00030 #include "playlist.h"
00031 #include "playlistitem.h"
00032 
00033 namespace itunesdb {
00034 
00039 class ItunesDBDataSource {
00040 public:
00041 
00042     virtual ~ItunesDBDataSource() {}
00043 
00047     virtual void writeInit() = 0;
00048 
00052     virtual void writeFinished() = 0;
00053 
00057     virtual Q_UINT32 getNumPlaylists() = 0;
00058 
00062     virtual Q_UINT32 getNumTracks() = 0;
00063 
00067     virtual TrackPtrList& getTrackList() = 0;
00068 
00074     virtual Playlist * firstPlaylist() = 0;
00075 
00079     virtual Playlist * nextPlaylist() = 0;
00080 
00085     virtual void handleError( const QString& message) = 0;
00086 
00090     virtual const QString& getTitle() = 0;
00091 };
00092 
00093 }
00094 
00095 #endif

Generated on Sun Oct 1 20:34:29 2006 for libqtpod.kdevelop by  doxygen 1.4.6