-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathClassMusic.h
94 lines (59 loc) · 1.86 KB
/
ClassMusic.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
// --------------------------
// Kevin Doveton
// Copyright 2015
// --------------------------
#ifndef ClassMusic_cpp
#define ClassMusic_cpp
#include <stdio.h>
#include <chrono>
#include <sstream>
class SongData
{
public:
void setID(int ID);
int getID();
void setArtist(std::string ARTIST);
std::string getArtist();
void setAlbum(std::string ALBUM);
std::string getAlbum();
void setTitle(std::string SONG);
std::string getTitle();
void setPath(std::string PATH);
std::string getPath();
void setRating(float RATING);
float getRating();
void setPlayCount(int PLAYCOUNT);
int getPlayCount();
void setSkipCount(int SKIPCOUNT);
int getSkipCount();
void setKind(std::string KIND);
std::string getKind();
void setBitRate(int BITRATE);
int getBitRate();
void setLastPlayed(std::string LASTPLAYED);
std::string getLastPlayed();
void setSampleRate(int SAMPLERATE);
int getSampleRate();
void setLength(int LENGTH);
int getLength();
std::string getAlbumImagePath();
void get(int& ID, std::string& ARTIST, std::string& ALBUM, std::string& SONG, std::string& PATH, int& RATING, int& PLAYCOUNT, int& SKIPCOUNT, std::string& KIND, int& BITRATE, std::string& LASTPLAYED, int& SAMPLERATE, int& LENGTH);
void set(int ID, std::string ARTIST, std::string ALBUM, std::string SONG, std::string PATH, int RATING, int PLAYCOUNT, int SKIPCOUNT, std::string KIND, int BITRATE, std::string LASTPLAYED, int SAMPLERATE, int LENGTH, std::string ALBUMIMAGEPATH);
std::string dump(std::string info = "all");
protected:
int id;
std::string artist;
std::string album;
std::string song;
std::string path;
float rating;
int playCount;
int skipCount;
std::string kind;
int bitRate;
std::string lastPlayed; // this needs to be date time..
int sampleRate;
int length;
std::string albumImagePath;
};
#endif /* xmldata_cpp */