ITunesDBPlaylist::Entry Class Reference

#include <itunesdb.h>

Inheritance diagram for ITunesDBPlaylist::Entry:

itunesdb::PlaylistItem itunesdb::ListItem List of all members.

Public Member Functions

unsigned int getMHITTrackPos () const
Q_UINT32 getID () const
Q_UINT32 getPosition () const
void setPosition (Q_UINT32 pos)
bool isPositionSet () const
int getType () const
void setItemProperty (const QString &data, ItemProperty field)
bool containsItemProperty (ItemProperty field) const
const QString & getItemProperty (ItemProperty field) const
uint getNumComponents () const
uint getNumStringComponents () const
virtual bool isDirty () const

Protected Types

typedef std::map< Q_UINT32,
QString > 
PropertyMap
typedef std::vector< MHODPair > DumpedMHODs

Protected Member Functions

virtual void doneAddingData ()
virtual void readMHOD (QDataStream &stream, Q_UINT32 type, Q_UINT32 blocklen)
const QByteArray * getDumpedMHOD (Q_UINT32 type) const
Q_UINT32 writeMHODsToStream (QDataStream &outstream) const
virtual void readNonStringMHOD (QDataStream &stream, Q_UINT32 type, Q_UINT32 blocklen)
virtual uint writeNonStringMHODs (QDataStream &outstream) const
virtual void setDirty (bool dirtyFlag=true)

Protected Attributes

Q_UINT32 m_id
Q_UINT32 m_pos
PropertyMap m_properties
DumpedMHODs m_dumpedMHODs
int m_itemType

Friends

class ITunesDBPlaylist

Detailed Description

An entry in this playlist. It directly refers to an existing track in the database.


Member Function Documentation

Q_UINT32 itunesdb::PlaylistItem::getID (  )  const [inherited]

Returns the ID of the track this PlaylistItem is referring to.

Returns:
the trackID of the track.

Q_UINT32 itunesdb::PlaylistItem::getPosition (  )  const [inherited]

Returns the position in the playlist.

void itunesdb::PlaylistItem::setPosition ( Q_UINT32  pos  )  [inherited]

Sets the position of this PlaylistItem in the playlist.

bool itunesdb::PlaylistItem::isPositionSet (  )  const [inline, inherited]

Returns true if the position has been set.

void itunesdb::PlaylistItem::doneAddingData (  )  [protected, virtual, inherited]

override from ListItem::doneAddingData()

Reimplemented from itunesdb::ListItem.

void itunesdb::PlaylistItem::readMHOD ( QDataStream &  stream,
Q_UINT32  type,
Q_UINT32  blocklen 
) [protected, virtual, inherited]

Reads the playlist order MHODs

Reimplemented from itunesdb::ListItem.

int itunesdb::ListItem::getType (  )  const [inherited]

returns the type ofthis item possible values from the known implementors are ITEMTYPE_PLAYLIST, ITEMTYPE_PLAYLISTITEM and ITEMTYPE_TRACK

void itunesdb::ListItem::setItemProperty ( const QString &  data,
ItemProperty  field 
) [inherited]

sets a given itunesDB item property

Parameters:
data value for the property to be set
field propertyID of the property to be set

bool itunesdb::ListItem::containsItemProperty ( ItemProperty  field  )  const [inherited]

Returns true if the given field is set with a non empty value.

Parameters:
field PropertyID of the property to be checked.
Returns:
true if the given field is set with a non empty value.

const QString & itunesdb::ListItem::getItemProperty ( ItemProperty  field  )  const [inherited]

Returns the value for the given property.

Parameters:
field PropertyID of the property to be returned.
Returns:
the value for the given property.

uint itunesdb::ListItem::getNumComponents (  )  const [inherited]

Returns the number of properties.

uint itunesdb::ListItem::getNumStringComponents (  )  const [inherited]

Returns the number of String properties.

bool itunesdb::ListItem::isDirty (  )  const [virtual, inherited]

Returns true if this database item is out of sync with the database. This is true if/when the item got changed and did not get saved back to the database yet.


The documentation for this class was generated from the following files:
Generated on Wed Dec 19 00:15:19 2007 for libqtpod by  doxygen 1.5.0