aboutsummaryrefslogtreecommitdiff
path: root/src/widgets/BrowserApp.hpp
blob: 90d1ae74783f0260d95eeb51485994f3106849b2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#pragma once

#include "widgets/BrowserWindow.hpp"
#include <qlist.h>

class BrowserApp : public QObject {
  Q_OBJECT

public:
  BrowserApp();

  BrowserWindow *create_window(const QStringList &urls = {});

protected:
  bool eventFilter(QObject *target, QEvent *event) override;

private:
  Configuration configuration;
  QWebEngineProfile default_profile{"default"};
  QList<QWebEngineProfile *> profiles{&default_profile};
};