first commit
This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
#ifndef FCREATENOTIFY_H
|
||||
#define FCREATENOTIFY_H
|
||||
|
||||
#include "webservernotify.h"
|
||||
#include <QDialog>
|
||||
|
||||
namespace Ui {
|
||||
class FCreateNotify;
|
||||
}
|
||||
|
||||
class FCreateNotify : public QDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
signals:
|
||||
void serverCreated(HttpServer *server, const QString &name);
|
||||
|
||||
public:
|
||||
explicit FCreateNotify(QWidget *parent = nullptr);
|
||||
~FCreateNotify();
|
||||
|
||||
protected:
|
||||
void closeEvent(QCloseEvent *event) override;
|
||||
|
||||
private slots:
|
||||
void on_btnOpenImg_clicked();
|
||||
void on_btnOpenSong_clicked();
|
||||
void on_btnTest_clicked();
|
||||
void on_btnAdd_clicked();
|
||||
void onServerStarted(bool success);
|
||||
|
||||
private:
|
||||
Ui::FCreateNotify *ui;
|
||||
void createNotification(bool isTest = false);
|
||||
QString getAbsolutePath(const QString &relativePath);
|
||||
void copyFileToAppDir(const QString &sourcePath, const QString &destSubDir);
|
||||
|
||||
// Сервер
|
||||
HttpServer *m_server;
|
||||
int m_notificationCounter;
|
||||
void createServer();
|
||||
};
|
||||
|
||||
#endif // FCREATENOTIFY_H
|
||||
Reference in New Issue
Block a user