34 lines
567 B
C++
34 lines
567 B
C++
/*
|
|
* Copyright 2013 (c) Anna Schumaker.
|
|
*/
|
|
#ifndef OCARINA_PLAYLIST_H
|
|
#define OCARINA_PLAYLIST_H
|
|
|
|
#include <vector>
|
|
|
|
enum playlist_flags {
|
|
PL_ENABLED = (1 << 0),
|
|
PL_RANDOM = (1 << 1),
|
|
PL_LOCKED = (1 << 2),
|
|
};
|
|
|
|
class Playlist {
|
|
private:
|
|
std :: vector <unsigned int> tracks;
|
|
unsigned int flags;
|
|
|
|
public:
|
|
Playlist(playlist_flags);
|
|
~Playlist();
|
|
|
|
void set_flag(playlist_flags);
|
|
void unset_flag(playlist_flags);
|
|
const unsigned int get_flags();
|
|
|
|
unsigned int add(unsigned int);
|
|
void del(unsigned int);
|
|
unsigned int size();
|
|
};
|
|
|
|
#endif /* OCARINA_PLAYLIST_H */
|