#include <ipod_cpp.h>
Public Member Functions | |
| IPodPlaylist (IPod &ipod) | |
| Constructor, creates a new empty playlist on the iPod. | |
| ~IPodPlaylist () | |
| Destructor, does not delete the playlist. | |
| void | Remove (void) |
| Removes the playlist from the iPod. | |
| std::string | GetText (int tag) |
| Retrieves a text attribute from the playlist. | |
| void | SetText (int tag, std::string s) |
| Sets a text attribute for the playlist. | |
| bool | HasText (int tag) |
| Indicates whether the playlist currently has a particular string. | |
| uint32_t | GetAttribute (int tag) |
| Return a numerical attribute for the playlist. | |
| void | SetAttribute (int tag, uint32_t value) |
| Set the value of an attribute for the playlist. | |
| unsigned long | TrackItemCount (void) |
| Return the number of track items in this playlist. | |
| IPodTrackItem | TrackItemByIndex (unsigned long index) |
| Return an object encapsulating a track item. | |
Friends | |
| class | IPod |
| class | IPodTrackItem |
|
|
Constructor, creates a new empty playlist on the iPod.
|
|
|
Return a numerical attribute for the playlist.
|
|
|
Retrieves a text attribute from the playlist.
|
|
|
Indicates whether the playlist currently has a particular string.
|
|
||||||||||||
|
Set the value of an attribute for the playlist.
playlist.SetAttribute(IPOD_PLAYLIST_HIDDEN,1); |
|
||||||||||||
|
Sets a text attribute for the playlist.
std:string title = "Favorites";
playlist.SetText(IPOD_TITLE,title);
|
|
|
Return an object encapsulating a track item.
|
|
|
Return the number of track items in this playlist.
|
1.3.9.1