Main Page | Namespace List | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

yeppPlaylist Class Reference

Handles the info for a playlist, either internal or external. More...

#include <yepp.h>

List of all members.

Public Member Functions

 yeppPlaylist ()
 Does nothing.

 yeppPlaylist (const yeppPlaylist &source)
 Copy constructor.

int build (char *buffer, int buflen)
 Build a yeppPlaylist from the data in the buffer.

int build (char *filename)
 Used in development.

int title_frame_no (char *buffer)
 Checks wheter this is a title frame and return its index.


Public Attributes

vector< yeppTracktracks
 Tracks in the playlist.


Friends

ostream & operator<< (ostream &os, const yeppPlaylist &p)
 Friendly printout of the playlist.


Detailed Description

Handles the info for a playlist, either internal or external.

This class does not know where playlist is.

See also:
yeppTrack

Definition at line 148 of file yepp.h.


Constructor & Destructor Documentation

yeppPlaylist::yeppPlaylist  )  [inline]
 

Does nothing.

Definition at line 153 of file yepp.h.

yeppPlaylist::yeppPlaylist const yeppPlaylist source  ) 
 

Copy constructor.


Member Function Documentation

int yeppPlaylist::build char *  buffer,
int  buflen
 

Build a yeppPlaylist from the data in the buffer.

Parameters:
buffer Data read from the device with Get Playlist command
buflen Buffer length
Returns:
int
  • 0 All right
  • -1 There was a problem extracting the title from the frames. Result is probably crap

int yeppPlaylist::build char *  filename  ) 
 

Used in development.

int yeppPlaylist::title_frame_no char *  buffer  ) 
 

Checks wheter this is a title frame and return its index.

Since title frames are downloaded from device in reverse order I use this as a convenience.

Parameters:
buffer Contains the frame (32 bytes)
Returns:
int
  • 1 if this is the first frame
  • 2 if this is the second frame
  • 3 if this is the third frame
  • -1 if it's not a title frame or buffer empty
  • -2 if first byte is not right
  • -3 if frame index is not between 1 and 3


Friends And Related Function Documentation

ostream& operator<< ostream &  os,
const yeppPlaylist p
[friend]
 

Friendly printout of the playlist.


Member Data Documentation

vector<yeppTrack> yeppPlaylist::tracks
 

Tracks in the playlist.

Definition at line 151 of file yepp.h.


The documentation for this class was generated from the following file:
Generated on Sun May 29 16:13:38 2005 for yex by doxygen 1.3.7