1 | // SPDX-FileCopyrightText: 2023 UnionTech Software Technology Co., Ltd. |
2 | // |
3 | // SPDX-License-Identifier: GPL-3.0-or-later |
4 | |
5 | #ifndef SERVERINFO_H |
6 | #define SERVERINFO_H |
7 | |
8 | #include <QObject> |
9 | |
10 | extern const int kPort; |
11 | class ServerInfo : public QObject |
12 | { |
13 | Q_OBJECT |
14 | public: |
15 | explicit ServerInfo(QObject *parent = nullptr); |
16 | |
17 | Q_CLASSINFO("D-Bus Interface" , "com.deepin.unioncode.interface" ) |
18 | |
19 | public slots: |
20 | int port() const; |
21 | void setPort(int port); |
22 | |
23 | const QString &gethost() const; |
24 | void setHost(QString &_host); |
25 | |
26 | private: |
27 | int iPort = 0; |
28 | QString host; |
29 | }; |
30 | |
31 | #endif // SERVERINFO_H |
32 | |