| 1 | // SPDX-FileCopyrightText: 2023 UnionTech Software Technology Co., Ltd. |
|---|---|
| 2 | // |
| 3 | // SPDX-License-Identifier: GPL-3.0-or-later |
| 4 | |
| 5 | #include "serverinfo.h" |
| 6 | |
| 7 | const int kPort = 4711; |
| 8 | ServerInfo::ServerInfo(QObject *parent) : QObject(parent) |
| 9 | { |
| 10 | |
| 11 | } |
| 12 | |
| 13 | int ServerInfo::port() const |
| 14 | { |
| 15 | return iPort; |
| 16 | } |
| 17 | |
| 18 | void ServerInfo::setPort(int port) |
| 19 | { |
| 20 | iPort = port; |
| 21 | } |
| 22 | |
| 23 | const QString &ServerInfo::gethost() const |
| 24 | { |
| 25 | return host; |
| 26 | } |
| 27 | |
| 28 | void ServerInfo::setHost(QString &_host) |
| 29 | { |
| 30 | host = _host; |
| 31 | } |
| 32 |