-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpandorasong.h
84 lines (71 loc) · 1.54 KB
/
pandorasong.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
#ifndef PANDORASONG_H
#define PANDORASONG_H
#include "piano.h"
#include <fstream>
#include <sstream>
#include <iostream>
#include <string>
#include <QString>
class PandoraSong
{
private:
char* artist;
char* stationId;
char* album;
char* audioUrl;
char* coverArt;
char* musicId;
char* title;
char* seedId;
char* feedbackId;
char* detailUrl;
char* trackToken;
float fileGain;
PianoSongRating_t rating;
PianoAudioFormat_t format;
bool songDownloaded;
bool albumArtDownloaded;
public:
PandoraSong(PianoSong_t song);
/**
* Returns the string representation of this song in the following
* format:
*
* Artist - Title - Album
*/
QString toString();
/**
* Returns the shorter string representation of this song in the following
* format:
*
* Artist - Title
*/
QString toShortString();
/**
* Returns the song artist
*/
char* getArtist();
/**
* Returns the song title
*/
char* getTitle();
/**
* Returns the song album
*/
char* getAlbum();
bool isSongNeutral();
bool isSongLoved();
bool isSongBanned();
/**
* Returns the audio url in a QString that is usable by the phonon
* to grab.
*/
QString getAudioURL();
/**
* Returns the url to the album art to be displayed for this song. This
* is returned in a QString to simplify the program.
*/
QString getAlbumArtURL();
PianoSong_t toPianoSong();
};
#endif // PANDORASONG_H