]> gitweb.stoutner.com Git - PrivacyBrowserPC.git/blobdiff - src/mainview.h
Make Privacy Browser installable.
[PrivacyBrowserPC.git] / src / mainview.h
diff --git a/src/mainview.h b/src/mainview.h
new file mode 100644 (file)
index 0000000..6b9e6ca
--- /dev/null
@@ -0,0 +1,45 @@
+/*
+    SPDX-FileCopyrightText: %{CURRENT_YEAR} %{AUTHOR} <%{EMAIL}>
+
+    SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
+*/
+
+#ifndef MAINVIEW_H
+#define MAINVIEW_H
+
+#include "ui_mainview.h"
+
+
+/**
+ * This class serves as the main window for privacybrowserpc.  It handles the
+ * menus, toolbars and status bars.
+ *
+ * @short Main window class
+ * @author %{AUTHOR} <%{EMAIL}>
+ * @version %{VERSION}
+ */
+class MainView : public QWidget
+{
+    Q_OBJECT
+public:
+    /**
+     * Default Constructor
+     */
+    explicit MainView(QWidget *parent);
+
+    /**
+     * Default Destructor
+     */
+    ~MainView() override;
+
+public Q_SLOTS:
+    void switchColors();
+    void handleSettingsChanged();
+
+private:
+    // this is the name of the root widget inside our Ui file
+    // you can rename it in designer and then change it here
+    Ui::MainView m_ui;
+};
+
+#endif