"#include "client.h"\n#include "ui_client.h"\n\nClient::Client(QWidget *parent) :\n QMainWindow(parent),\n ui(new Ui::Client)\n{\n ui->setupUi(this);\n}\n\nClient::~Client()\n{\n delete ui; \n}\n\n\n#include "server.h"\n#include "ui_server.h"\n\nServer::Server(QWidget *parent) :\n QMainWindow(parent),\n ui(new Ui::Server)\n{\n ui->setupUi(this);\n}\n\nServer::~Server()\n{\n delete ui; \n}\n\n\n#include "mainwindow.h"\n#include "ui_mainwindow.h"\n#include "client.h"\n#include "server.h"\n\nMainWindow::MainWindow(QWidget *parent) \n : QMainWindow(parent) \n , ui(new Ui::MainWindow)\n{\n ui->setupUi(this);\n}\n\nMainWindow::~MainWindow()\n{\n delete ui; \n}\n\n\nvoid MainWindow::on_clientButton_clicked()\n{\n Client *client = new Client(this);\n client->show();\n}\n\nvoid MainWindow::on_serverButton_clicked()\n{\n Server *server = new Server(this);\n server->show();\n}\n\n\n#ifndef MAINWINDOW_H\n#define MAINWINDOW_H\n\n#include \n\nQT_BEGIN_NAMESPACE\nnamespace Ui { class MainWindow; }\nQT_END_NAMESPACE\n\nclass MainWindow : public QMainWindow\n{\n Q_OBJECT\n\npublic:\n MainWindow(QWidget *parent = nullptr);\n ~MainWindow();\n\nprivate slots:\n void on_clientButton_clicked();\n\n void on_serverButton_clicked();\n\nprivate:\n Ui::MainWindow *ui; \n};\n#endif // MAINWINDOW_H\n\n\n#include "mainwindow.h"\n#include \n\nint main(int argc, char *argv[])\n{\n QApplication a(argc, argv);\n MainWindow w; \n w.show();\n return a.exec();\n}\n\n\n\n<ui version="4.0">\n Client\n <widget class="QWidget" name="Client">\n <property name="geometry">\n \n 0\n 0\n 400\n 300\n \n \n <property name="windowTitle">\n Client\n \n <layout class="QVBoxLayout" name="verticalLayout">\n - \n <widget class="QGroupBox" name="groupBox">\n <property name="title">\n Bedroom\n \n <layout class="QHBoxLayout" name="horizontalLayout">\n
- \n <widget class="QCheckBox" name="lightCheckBox">\n <property name="text">\n Light\n \n \n
\n - \n <widget class="QCheckBox" name="acCheckBox">\n <property name="text">\n Air Conditioner\n \n \n
\n \n \n \n - \n <widget class="QGroupBox" name="groupBox_2">\n <property name="title">\n Kitchen\n \n <layout class="QHBoxLayout" name="horizontalLayout_2">\n
- \n <widget class="QCheckBox" name="lightCheckBox_2">\n <property name="text">\n Light\n \n \n
\n - \n <widget class="QCheckBox" name="acCheckBox_2">\n <property name="text">\n Air Conditioner\n \n \n
\n \n \n \n - \n <widget class="QGroupBox" name="groupBox_3">\n <property name="title">\n Living Room\n \n <layout class="QHBoxLayout" name="horizontalLayout_3">\n
- \n <widget class="QCheckBox" name="lightCheckBox_3">\n <property name="text">\n Light\n \n \n
\n - \n <widget class="QCheckBox" name="acCheckBox_3">\n <property name="text">\n Air Conditioner\n \n \n
\n \n \n \n - \n <widget class="QGroupBox" name="groupBox_4">\n <property name="title">\n Bathroom\n \n <layout class="QHBoxLayout" name="horizontalLayout_4">\n
- \n <widget class="QCheckBox" name="lightCheckBox_4">\n <property name="text">\n Light\n \n \n
\n - \n <widget class="QCheckBox" name="acCheckBox_4">\n <property name="text">\n Air Conditioner\n \n \n
\n \n \n \n - \n <layout class="QHBoxLayout" name="horizontalLayout_5">\n
- \n <widget class="QPushButton" name="connectButton">\n <property name="text">\n Connect\n \n \n
\n - \n <widget class="QPushButton" name="disconnectButton">\n <property name="text">\n Disconnect\n \n <property name="enabled">\n false\n \n \n
\n \n \n \n \n \n \n\n\n\n<ui version="4.0">\n Server\n <widget class="QWidget" name="Server">\n <property name="geometry">\n \n 0\n 0\n 400\n 300\n \n \n <property name="windowTitle">\n Server\n \n <layout class="QVBoxLayout" name="verticalLayout">\n - \n <widget class="QGroupBox" name="groupBox">\n <property name="title">\n Login\n \n <layout class="QFormLayout" name="formLayout">\n <item row="0" column="0">\n <widget class="QLabel" name="label">\n <property name="text">\n Username:\n \n \n
\n <item row="0" column="1">\n <widget class="QLineEdit" name="usernameLineEdit"/ >\n \n <item row="1" column="0">\n <widget class="QLabel" name="label_2">\n <property name="text">\n Password:\n \n \n \n <item row="1" column="1">\n <widget class="QLineEdit" name="passwordLineEdit" form="Server">\n <property name="echoMode">\n QLineEdit::Password\n \n \n \n <item row="2" column="1">\n <widget class="QPushButton" name="loginButton">\n <property name="text">\n Login\n \n \n \n \n \n \n - \n <widget class="QGroupBox" name="groupBox_2">\n <property name="title">\n Account Registration\n \n <layout class="QFormLayout" name="formLayout_2">\n <item row="0" column="0">\n <widget class="QLabel" name="label_3">\n <property name="text">\n Username:\n \n \n
\n <item row="0" column="1">\n <widget class="QLineEdit" name="usernameLineEdit_2"/ >\n \n <item row="1" column="0">\n <widget class="QLabel" name="label_4">\n <property name="text">\n Password:\n \n \n \n <item row="1" column="1">\n <widget class="QLineEdit" name="passwordLineEdit_2" form="Server">\n <property name="echoMode">\n QLineEdit::Password\n \n \n \n <item row="2" column="1">\n <widget class="QPushButton" name="registerButton">\n <property name="text">\n Register\n \n \n \n \n \n \n \n \n \n \n\n