blob: 5912c2268190a01dbf6284d69b08b6d07534cdbd (
plain)
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
|
#include "serverinfo.h"
ServerInfo::ServerInfo()
: ServerInfo({}, false, {}, false)
{
}
ServerInfo::ServerInfo(QString n, bool premium, QDate last, bool preferred) :
m_name(std::move(n)), m_premium(premium), m_lastSeen(std::move(last)),
m_preferred(preferred)
{
}
const QString& ServerInfo::name() const
{
return m_name;
}
bool ServerInfo::isPremium() const
{
return m_premium;
}
const QDate& ServerInfo::lastSeen() const
{
return m_lastSeen;
}
bool ServerInfo::isPreferred() const
{
return m_preferred;
}
|