first commit
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
#ifndef FCREATECHAT_H
|
||||
#define FCREATECHAT_H
|
||||
|
||||
#include "webserverchat.h"
|
||||
#include <QDialog>
|
||||
|
||||
namespace Ui {
|
||||
class FCreateChat;
|
||||
}
|
||||
|
||||
class FCreateChat : public QDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
signals:
|
||||
void serverCreated(HttpServerChat *server, const QString &name);
|
||||
void serverUpdated(HttpServerChat *server, const QString &name);
|
||||
|
||||
public:
|
||||
explicit FCreateChat(QWidget *parent = nullptr);
|
||||
~FCreateChat();
|
||||
HttpServerChat *m_chatServer;
|
||||
|
||||
StyleChat *m_StyleChat;
|
||||
void loadExistingServer(HttpServerChat *server, const QString &name);
|
||||
void setEditMode(bool isEditMode);
|
||||
|
||||
private slots:
|
||||
void onBtnTestClicked();
|
||||
void onBtnAddClicked();
|
||||
|
||||
private:
|
||||
Ui::FCreateChat *ui;
|
||||
bool m_isEditMode;
|
||||
QString m_existingServerName;
|
||||
void createServer();
|
||||
void createTestMessage(bool isTest = false);
|
||||
|
||||
};
|
||||
|
||||
#endif // FCREATECHAT_H
|
||||
Reference in New Issue
Block a user