-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtrack.h
38 lines (30 loc) · 815 Bytes
/
track.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
#ifndef TRACK_H_
#define TRACK_H_
#include <QtCore>
#include <ostream>
#include <Track.h>
class MyTrack {
private:
QString m_artist;
QString m_title;
QString m_album;
int m_playedTime;
int m_totalTime;
bool m_scrobbled;
lastfm::MutableTrack m_track;
public:
QString getArtist() const;
QString getTitle() const;
QString getAlbum() const;
int getPlayedTime() const;
int getTotalTime() const;
bool isScrobbled() const;
QString toString() const;
void setPlayedTime(int t);
void setTotalTime(int t);
void setScrobbled(bool s);
bool equals(const MyTrack *track);
MyTrack(QString artist, QString title, QString album);
void scrobble();
};
#endif