#include <ipod_cpp.h>
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 |
| uint32_t IPodTrackItem::GetAttribute | ( | int | tag | ) |
Return a numerical attribute for the track item.
| tag | an identifier for the attribute to be retrieved |
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.
| tag | an identifier for the attribute to be modified | |
| value | the new value for the attribute |
trackItem.SetAttribute(IPOD_TRACK_ITEM_TRACK_ID,42);
1.5.3