#include <itunesdblistener.h>
Public Member Functions | |
virtual Track * | createNewTrack () |
virtual Playlist * | createNewPlaylist () |
virtual void | handleError (const QString &message)=0 |
virtual void | handleDataSet (Q_UINT32 type)=0 |
virtual void | setNumTracks (Q_UINT32 numtracks)=0 |
virtual void | setNumPlaylists (Q_UINT32 numplaylists)=0 |
virtual void | handlePlaycount (Q_UINT32 idx, Q_UINT32 lastplayed, Q_UINT32 stars, Q_UINT32 count, Q_UINT32 bookmark)=0 |
virtual void | handleOTGPlaylist (Playlist *playlist)=0 |
virtual void | handlePlaylist (Playlist *playlist)=0 |
virtual void | handleTrack (Track *track)=0 |
virtual void | parseStarted ()=0 |
virtual void | parseFinished ()=0 |
Track * ItunesDBListener::createNewTrack | ( | ) | [virtual] |
Creates a new Track. Override this method if you need your own Track implementation. The returned pointer will be handed over to the handleTrack()
method during the parse process.
Playlist * ItunesDBListener::createNewPlaylist | ( | ) | [virtual] |
Creates a new Playlist. Override this method if you need your own Playlist implementation. The returned pointer will be handed over to the handlePlaylist()
and handleOTGPlaylist()
methods during the parse process.
virtual void itunesdb::ItunesDBListener::handleError | ( | const QString & | message | ) | [pure virtual] |
gets called if an error occured during the parse process. The parse process ends after a call to this method.
virtual void itunesdb::ItunesDBListener::handleDataSet | ( | Q_UINT32 | type | ) | [pure virtual] |
gets called if the parser finds a mhsd block
virtual void itunesdb::ItunesDBListener::setNumTracks | ( | Q_UINT32 | numtracks | ) | [pure virtual] |
sets the number of tracks (information from the itunesdb file)
virtual void itunesdb::ItunesDBListener::setNumPlaylists | ( | Q_UINT32 | numplaylists | ) | [pure virtual] |
sets the number of playlists (information from the itunesdb file)
virtual void itunesdb::ItunesDBListener::handlePlaycount | ( | Q_UINT32 | idx, | |
Q_UINT32 | lastplayed, | |||
Q_UINT32 | stars, | |||
Q_UINT32 | count, | |||
Q_UINT32 | bookmark | |||
) | [pure virtual] |
Handles a given Playcount entry
virtual void itunesdb::ItunesDBListener::handleOTGPlaylist | ( | Playlist * | playlist | ) | [pure virtual] |
Handles the given on the go playlist. The pointer was created with the createNewPlaylist Method. The implementor is the owner thus responsible for managing the pointer.
virtual void itunesdb::ItunesDBListener::handlePlaylist | ( | Playlist * | playlist | ) | [pure virtual] |
handles the given playlist. The pointer was created with the createNewPlaylist
Method. The implementor is the owner thus responsible for managing the pointer.
virtual void itunesdb::ItunesDBListener::handleTrack | ( | Track * | track | ) | [pure virtual] |
handles the given track. The pointer was created with the createNewTrack
Method. The implementor is the owner thus responsible for managing the pointer.
virtual void itunesdb::ItunesDBListener::parseStarted | ( | ) | [pure virtual] |
gets called at the beginning of the parse process.
virtual void itunesdb::ItunesDBListener::parseFinished | ( | ) | [pure virtual] |
parsing process done. No calls to the methods above will happen from the parser.