-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtraktids.cpp
92 lines (76 loc) · 1.37 KB
/
traktids.cpp
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
#include "traktids.h"
#include <QVariantMap>
TraktIds::TraktIds(const QString &type, QObject *parent) :
QObject(parent),
m_type(type)
{
}
TraktIds::TraktIds(const QVariantMap &data, const QString &type, QObject *parent) :
QObject(parent),
m_type(type)
{
m_trakt = data.value("trakt").toInt();
m_slug = data.value("slug").toString();
m_tvdb = data.value("tvdb").toInt();
m_imdb = data.value("imdb").toString();
m_tmdb = data.value("tmdb").toInt();
m_tvrage = data.value("tvrage").toInt();
}
QString TraktIds::type() const
{
return m_type;
}
int TraktIds::trakt() const
{
return m_trakt;
}
void TraktIds::setTrakt(int id)
{
m_trakt = id;
emit traktChanged();
}
QString TraktIds::slug() const
{
return m_slug;
}
void TraktIds::setSlug(const QString &slug)
{
m_slug = slug;
emit slugChanged();
}
int TraktIds::tvdb() const
{
return m_tvdb;
}
void TraktIds::setTvdb(int id)
{
m_tvdb = id;
emit tvdbChanged();
}
QString TraktIds::imdb() const
{
return m_imdb;
}
void TraktIds::setImdb(const QString &id)
{
m_imdb = id;
emit imdbChanged();
}
int TraktIds::tmdb() const
{
return m_tmdb;
}
void TraktIds::setTmdb(int id)
{
m_tmdb = id;
emit tmdbChanged();
}
int TraktIds::tvrage()
{
return m_tvrage;
}
void TraktIds::setTvrage(int id)
{
m_tvrage = id;
emit tvrageChanged();
}