summaryrefslogtreecommitdiff
path: root/src/serverinfo.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/serverinfo.cpp')
-rw-r--r--src/serverinfo.cpp31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/serverinfo.cpp b/src/serverinfo.cpp
index e96b69d2..5912c226 100644
--- a/src/serverinfo.cpp
+++ b/src/serverinfo.cpp
@@ -1 +1,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;
+}