refactor
This commit is contained in:
@@ -57,6 +57,33 @@ public:
|
||||
void addNotification(const Notification ¬ification);
|
||||
void clearNotifications();
|
||||
|
||||
// Методы для доступа к настройкам (нужно реализовать хранение)
|
||||
void setBlockColor(const QString &color);
|
||||
QString getBlockColor() const;
|
||||
void setBorderColor(const QString &color);
|
||||
QString getBorderColor() const;
|
||||
void setBorderSize(int size);
|
||||
int getBorderSize() const;
|
||||
void setTransparency(int transparency);
|
||||
int getTransparency() const;
|
||||
void setPageBackgroundColor(const QString &color);
|
||||
QString getPageBackgroundColor() const;
|
||||
void setTitleFont(const QString &family, int size, const QString &color);
|
||||
void getTitleFont(QString &family, int &size, QString &color) const;
|
||||
void setContentFont(const QString &family, int size, const QString &color);
|
||||
void getContentFont(QString &family, int &size, QString &color) const;
|
||||
void setDuration(int duration);
|
||||
int getDuration() const;
|
||||
|
||||
|
||||
QString getTitleFamily() const;
|
||||
int getTitleSize() const;
|
||||
QString getTitleColor() const;
|
||||
QString getContentFamily() const;
|
||||
int getContentSize() const;
|
||||
QString getContentColor() const;
|
||||
|
||||
|
||||
signals:
|
||||
void serverStarted(bool success);
|
||||
|
||||
@@ -71,6 +98,19 @@ private:
|
||||
QList<Notification> m_notifications;
|
||||
QString m_pageBackgroundColor; // Цвет фона страницы
|
||||
|
||||
|
||||
QString m_blockColor;
|
||||
QString m_borderColor;
|
||||
int m_borderSize;
|
||||
int m_transparency;
|
||||
QString m_titleFamily;
|
||||
int m_titleSize;
|
||||
QString m_titleColor;
|
||||
QString m_contentFamily;
|
||||
int m_contentSize;
|
||||
QString m_contentColor;
|
||||
int m_duration;
|
||||
|
||||
void processRequest(QTcpSocket *socket, const QString &request);
|
||||
void sendResponse(QTcpSocket *socket, const QString &contentType, const QString &content, int statusCode = 200);
|
||||
void sendHtmlPage(QTcpSocket *socket);
|
||||
|
||||
Reference in New Issue
Block a user