-
-
Notifications
You must be signed in to change notification settings - Fork 78
Expand file tree
/
Copy pathParameterWebBrowser.h
More file actions
134 lines (118 loc) · 3.37 KB
/
ParameterWebBrowser.h
File metadata and controls
134 lines (118 loc) · 3.37 KB
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
// Author: Kang Lin <kl222@126.com>
#pragma once
#include "ParameterOperate.h"
#include "ParameterRecord.h"
#include "ParameterMediaDevices.h"
#include "History/HistoryDatabase.h"
#include "Bookmark/BookmarkDatabase.h"
class CParameterWebBrowser : public CParameterOperate
{
Q_OBJECT
public:
explicit CParameterWebBrowser(QObject *parent = nullptr,
const QString& szPrefix = QString());
virtual ~CParameterWebBrowser();
CParameterRecord m_Record;
CParameterMediaDevices m_MediaDevices;
CHistoryDatabase m_HistoryDatabase;
CBookmarkDatabase m_BookmarkDatabase;
public:
QString GetHomeUrl();
int SetHomeUrl(const QString& url);
private:
QString m_szHomeUrl;
public:
QString GetTabUrl();
int SetTabUrl(const QString& url);
private:
QString m_szTabUrl;
public:
bool GetOpenPrevious();
void SetOpenPrevious(bool bOpen);
private:
bool m_bOpenPrevious;
public:
QString GetDownloadFolder();
int SetDownloadFolder(const QString& folder);
Q_SIGNALS:
void sigDownloadFolderChanged();
private:
QString m_szDownloadFolder;
public:
bool GetShowDownloadManager() const;
void SetShowDownloadManager(bool newShowDownloadManager);
private:
bool m_bShowDownloadManager;
public:
bool GetShowDownloadLocation() const;
void SetShowDownloadLocation(bool newShowDownloadLocation);
private:
bool m_bShowDownloadLocation;
public:
bool GetClearHttpCache() const;
void SetClearHttpCache(bool newClearHttpCache);
private:
bool m_ClearHttpCache;
public:
bool GetClearCookie() const;
void SetClearCookie(bool newClearCookie);
private:
bool m_ClearCookie;
public:
QString GetSearchEngine() const;
void SetSearchEngine(const QString &newSearchEngine);
private:
QString m_szSearchEngine;
public:
QString GetSearchRelaceString() const;
void SetSearchRelaceString(const QString &newSearchRelaceString);
private:
QString m_szSearchRelaceString;
public:
QStringList GetSearchEngineList() const;
void SetSearchEngineList(const QStringList &newSearchEngineList);
private:
QStringList m_SearchEngineList;
public:
bool GetPromptPrintFinished() const;
void SetPromptPrintFinished(bool newPromptPrintFinished);
private:
bool m_bPromptPrintFinished;
public:
bool GetAutoFillUserAndPassword() const;
void SetAutoFillUserAndPassword(bool newAutoFillUserAndPassword);
private:
bool m_bAutoFillUserAndPassword;
public:
int GetDatabaseViewLimit() const;
void SetDatabaseViewLimit(int newLimit);
private:
int m_nDatabaseViewLimit;
public:
int GetAddCompleterLines() const;
void SetAddCompleterLines(int newAddCompleterLines);
private:
int m_nAddCompleterLines;
public:
QSize GetWindowSize() const;
void SetWindowSize(const QSize &newWindowSize);
private:
QSize m_WindowSize;
public:
int GetBookmarkCurrentFolder() const;
void SetBookmarkCurrentFolder(int newCurrentBookmarkFolder);
private:
int m_nBookmarkCurrentFolder;
public:
bool GetBookmarkShowEditor() const;
void SetBookmarkShowEditor(bool newBookmarkShowEditor);
private:
bool m_bBookmarkShowEditor;
// CParameter interface
protected:
virtual int OnLoad(QSettings &set) override;
virtual int OnSave(QSettings &set) override;
// CParameterOperate interface
protected slots:
virtual void slotSetPluginParameters() override;
};