itunesdblistener.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 ITUNESDBITUNESDBLISTENER_H
00025 #define ITUNESDBITUNESDBLISTENER_H
00026 
00027 #include <qstring.h>
00028 #include "track.h"
00029 #include "playlist.h"
00030 #include "playlistitem.h"
00031 
00032 namespace itunesdb {
00033 
00038 class ItunesDBListener {
00039 
00040 public:
00041 
00042     virtual ~ItunesDBListener() {}
00043 
00049     virtual Track * createNewTrack();
00050 
00056     virtual Playlist * createNewPlaylist();
00057 
00062     virtual void handleError( const QString& message) = 0;
00063 
00067     virtual void handleDataSet(Q_UINT32 type) = 0;
00068 
00072     virtual void setNumTracks( Q_UINT32 numtracks) = 0;
00073 
00077     virtual void setNumPlaylists( Q_UINT32 numplaylists) = 0;
00078 
00082     virtual void handlePlaycount( Q_UINT32 idx, Q_UINT32 lastplayed, Q_UINT32 stars, Q_UINT32 count, Q_UINT32 bookmark) = 0;
00083 
00088     virtual void handleOTGPlaylist( Playlist * playlist ) = 0;
00089 
00094     virtual void handlePlaylist( Playlist * playlist ) = 0;
00095 
00100     virtual void handleTrack( Track * track) = 0;
00101 
00105     virtual void parseStarted() = 0;
00106 
00110     virtual void parseFinished() = 0;
00111 };
00112 
00113 }
00114 
00115 #endif

Generated on Tue Dec 12 16:39:26 2006 for libqtpod.kdevelop by  doxygen 1.5.1