-
Notifications
You must be signed in to change notification settings - Fork 0
/
UtPod.h
49 lines (34 loc) · 788 Bytes
/
UtPod.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
42
43
44
45
46
47
48
//DOCUMENT HERE
#ifndef UTPOD_H
#define UTPOD_H
#include "Song.h"
//UtPod class declaration
class UtPod
{
private:
static const int MAX_MEMORY = 512;
static const int SUCCESS = 0;
static const int NO_MEMORY = -1;
static const int NOT_FOUND = -2;
struct SongNode
{
Song s;
SongNode *next;
};
SongNode *songs; //the head pointer
int memSize;
public:
UtPod();
UtPod(int size);
int addSong(Song const &s);
int removeSong(Song const &s);
void shuffle();
void showSongList();
void sortSongList();
int getTotalMemory() {
return memSize;
}
int getRemainingMemory();
~UtPod();
};
#endif