forked from gort818/qtwebflix
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathqtws.h
60 lines (45 loc) · 1.08 KB
/
qtws.h
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#ifndef QTWS_H
#define QTWS_H
#include <QString>
#include <QList>
#include <QStringList>
#include <QWebEnginePage>
#include "menuaction.h"
class QtWS {
public:
QtWS(QString filename);
QString getName();
QList<QString> getWScope();
bool isInScope(QUrl);
QList<QString> getPlugins();
QString getHome();
QString getIconPath();
QList<MenuAction> getMenu();
QString getConfigName();
bool isSaveSession();
bool isAlwaysOnTop();
bool isMenuDisabled();
bool hasMultimedia();
bool canDownload();
int getCacheMB();
bool hasPermission(QWebEnginePage::Feature);
int getNumberOfPermissions();
QString getUserReadablePermissions();
private:
QString name;
QList<QString> scope;
QList<QString> plugins;
QString home;
QString iconPath;
bool saveSession;
bool alwaysOnTop;
bool menuDisabled;
bool multimedia;
bool download;
int cacheMB;
QList<int> permissions;
QStringList userReadablePermissions;
QList<MenuAction> menu;
void loadData(QString filename);
};
#endif // QTWS_H