Main Page Modules Class Hierarchy Compound List File List Compound Members File Members

# Playlist Class Reference

`#include <playlist.h>`

Inherits Linklist.

Inheritance diagram for Playlist:

[legend]
Collaboration diagram for Playlist:

[legend]
List of all members.

## Detailed Description

Playlist queue.

Playlist class serves the methods to add new files or urls, select them and such. It basically adds some few functionalities on top of the basic ones implemented by the Linklist parent class.

Definition at line 54 of file playlist.h.

## Public Member Functions
char * | addurl (const char *file)
| append a new url at the end of the playlist queue
char * | addurl (const char *file, int pos)
| add a new url at a certain position of the playlist queue
char * | song (int pos)
| return the url at a certain position of the playlist queue
char * | selection ()
| return the currently selected url in the playlist queue
void | cleanup ()
| cleanup and release all playlist queue

## Member Function Documentation

char * Playlist::song | ( | int | pos | ) |

  | return the url at a certain position of the playlist queue Parameters:
  pos | position in playlist (starts from 1)
Returns: string pointer to the playlist url at pos Definition at line 68 of file playlist.cpp.

The documentation for this class was generated from the following files:

- playlist.h
- playlist.cpp