-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmpdtrack.h
executable file
·49 lines (39 loc) · 1.02 KB
/
mpdtrack.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
#ifndef MPDTRACK_H
#define MPDTRACK_H
#include <QObject>
#include "mpdalbum.h"
#include "mpdartist.h"
class MpdArtist;
class MpdAlbum;
class MpdTrack : public QObject
{
Q_OBJECT
public:
explicit MpdTrack(QObject *parent = 0);
MpdTrack(QObject *parent,QString file,QString title, quint32 length);
MpdTrack(QObject *parent,QString file,QString title, quint32 length,bool playing);
MpdTrack(QObject *parent,QString file,QString title,QString artist, QString album, quint32 length);
QString getName();
QString getTitle();
QString getFileUri();
quint32 getLength();
QString getAlbum();
QString getArtist();
QString getLengthFormated();
void setTitle(QString);
void setFileUri(QString);
void setLength(quint32 length);
void setAlbum(QString);
void setArtist(QString);
bool getPlaying();
private:
QString title;
QString filename;
quint32 length;
QString artist;
QString album;
bool playing;
signals:
public slots:
};
#endif // MPDTRACK_H