#ifndef MAINVIEW_H
#define MAINVIEW_H
-// Application headers.
-#include "UserAgentHelper.h"
-
// Qt framework headers.
#include <QPushButton>
#include <QWebEngineHistory>
signals:
// Define the signals.
- void linkHovered(const QString &linkUrl);
+ void linkHovered(const QString &linkUrl) const;
public Q_SLOTS:
// Define the public slots.
- void applyApplicationSettings();
- void applyDomainSettingsAndReload();
+ void applyApplicationSettings() const;
+ void applyDomainSettingsAndReload() const;
private Q_SLOTS:
// Define the private slots.
- void goHome();
- void loadUrl(const QString &urlFromUser);
- void pageLinkHovered(const QString &linkUrl);
- void toggleJavaScript();
- void updateInterface();
+ void goHome() const;
+ void loadUrlFromTextBox(QString urlFromUser) const;
+ void pageLinkHovered(const QString &linkUrl) const;
+ void toggleJavaScript() const;
+ void updateInterface() const;
private:
// Define the private variables.
QWebEngineProfile *webEngineProfilePointer;
QWebEngineSettings *webEngineSettingsPointer;
QWebEngineView *webEngineViewPointer;
- UserAgentHelper *userAgentHelperPointer;
// Define the private functions.
- void applyDomainSettings(bool reloadWebsite);
+ void applyDomainSettings(bool reloadWebsite) const;
};
#endif