itunesdb::MasterPlaylist Class Reference

Inheritance diagram for itunesdb::MasterPlaylist:

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

Public Member Functions

 MasterPlaylist (itunesdb::TrackPtrList &allTracks)
void sortIndices (const TrackComparatorPtr &comparator) const
void writeMHOD52 (QDataStream &stream, uint sortIndex, const TrackComparatorPtr &comparator) const
virtual uint writeNonStringMHODs (QDataStream &outstream) const

Classes

struct  IndexComparator

Detailed Description

void itunesdb::ItunesDBWriter::fillPodcastBuffer( QByteArray& buffer ) { QBuffer io_buffer( buffer); io_buffer.open(IO_WriteOnly); QDataStream stream( &io_buffer); stream.setByteOrder( QDataStream::LittleEndian);

stream << (Q_UINT32) 0x6473686D; // "mhsd" stream << (Q_UINT32) MHSD_HEADERLEN; // headerlen stream << (Q_UINT32) 0x0; // length - set when we're done stream << (Q_UINT32) 3; // type: podcastlist for( int i= 0; i< 20; i++) stream << (Q_UINT32) 0; // pad the rest (80 bytes)

stream << (Q_UINT32) 0x706C686D; // "mhlp" stream << (Q_UINT32) 0x5C; // headerlen stream << (Q_UINT32) 1; // one podlist for( int i= 0; i< 20; i++) stream << (Q_UINT32) 0; // pad the rest (80 bytes) ???

io_buffer.at( 8); stream << (Q_UINT32)io_buffer.size(); // write the length

io_buffer.close(); }


The documentation for this class was generated from the following file:
Generated on Tue Dec 12 16:39:27 2006 for libqtpod.kdevelop by  doxygen 1.5.1