Main Page | Class List | File List | Class Members | File Members

IPodTrackItem Class Reference

A class representing a track item in a playlist. More...

#include <ipod_cpp.h>

List of all members.

Public Member Functions

 IPodTrackItem (IPodPlaylist &playlist)
 Constructor, creates a new, empty track item in the playlist.
 ~IPodTrackItem ()
 Destructor, does not delete the track item.
void Remove (void)
 Removes the track item from the playlist.
uint32_t GetAttribute (int tag)
 Return a numerical attribute for the track item.
void SetAttribute (int tag, uint32_t value)
 Set the value of an attribute for the track item.

Friends

class IPodPlaylist


Detailed Description

A class representing a track item in a playlist.


Member Function Documentation

uint32_t IPodTrackItem::GetAttribute int  tag  ) 
 

Return a numerical attribute for the track item.

Parameters:
tag an identifier for the attribute to be retrieved
Returns:
the current value for the attribute
  cout << "Track ID is " << trackItem.GetAttribute(IPOD_TRACK_ITEM_TRACK_ID) << endl;

void IPodTrackItem::SetAttribute int  tag,
uint32_t  value
 

Set the value of an attribute for the track item.

Parameters:
tag an identifier for the attribute to be modified
value the new value for the attribute
   trackItem.SetAttribute(IPOD_TRACK_ITEM_TRACK_ID,42);


The documentation for this class was generated from the following file:
Generated on Tue Dec 13 14:55:22 2005 for libipod by  doxygen 1.3.9.1