-
Notifications
You must be signed in to change notification settings - Fork 2
/
common.h
44 lines (38 loc) · 883 Bytes
/
common.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
#ifndef COMMON_H
#define COMMON_H
#include <QObject>
#include <QString>
#include <stdint.h>
typedef struct KChannel
{
QString id;
QString title;
}KChannel;
typedef struct KMediaInfo
{
int32_t id;
QString songId;
QString songName;
QString artistName;
QString albumName;
QString songPicUrl;
QString lrcUrl;
QString mp3Url;
bool operator ==(const KMediaInfo &info)
{
return this->id == info.id;
}
KMediaInfo& operator =(const KMediaInfo &info)
{
this->id = info.id;
this->albumName = info.albumName;
this->artistName = info.artistName;
this->lrcUrl = info.lrcUrl;
this->mp3Url = info.mp3Url;
this->songId = info.songId;
this->songName = info.songName;
this->songPicUrl = info.songPicUrl;
return *this;
}
}KMediaInfo;
#endif // COMMON_H