aboutsummaryrefslogtreecommitdiff
path: root/src/permissiondialog.h
blob: 1835d354ec43ebe3dbdebc6a055a2f163aa4bc42 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#ifndef PERMISSIONDIALOG_H
#define PERMISSIONDIALOG_H

#include <QSettings>
#include <QWebEnginePage>
#include <QWidget>

namespace Ui {
class PermissionDialog;
}

class PermissionDialog : public QWidget {
  Q_OBJECT

public:
  explicit PermissionDialog(QWidget *parent = nullptr);
  ~PermissionDialog();

signals:
  void webPageFeatureChanged(QWebEnginePage::Feature feature);

protected slots:
  void keyPressEvent(QKeyEvent *e);
private slots:
  void addToFeaturesTable(QWebEnginePage::Feature feature,
                          QString &featureName);

private:
  Ui::PermissionDialog *ui;
  QSettings settings;
};

#endif // PERMISSIONDIALOG_H