#ifndef FCREATENOTIFY_H #define FCREATENOTIFY_H #include "webservernotify.h" #include 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