#include <itunesdb.h>
Inheritance diagram for ITunesDBPlaylist::Entry:
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 |
Q_UINT32 itunesdb::PlaylistItem::getID | ( | ) | const [inherited] |
Returns the ID of the track this PlaylistItem is referring to.
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
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.
field | PropertyID of the property to be checked. |
const QString & itunesdb::ListItem::getItemProperty | ( | ItemProperty | field | ) | const [inherited] |
Returns the value for the given property.
field | PropertyID of the property to be returned. |
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.