-
Notifications
You must be signed in to change notification settings - Fork 93
/
impl.h
41 lines (29 loc) · 944 Bytes
/
impl.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#pragma once
#include <vector>
#include <string>
#include <stdexcept>
template<class Container, class Song_t>
class StaticPlaylist
{
public:
/** @todo Member traits */
/** @todo Iterators */
StaticPlaylist() = default;
/** @todo Constructor from any reversible sequence container */
/** @todo Assignment from any reversible sequence container */
/** @todo Add track from initializer */
template<class... Args>
const Song_t& play(Args&&... songData);
/** @todo Add track */
const Song_t& play(const Song_t& song);
/** @todo Get first track in playlist stack */
const Song_t& current() const;
/** @todo Skip to the next track in playlist, remove current */
void switchNext();
/** @todo Amount of tracks in playlist */
size_type count() const;
/** @todo Checks if playlist has any playable tracks */
bool hasTracks() const;
private:
Container m_tracklist;
};