62 static QString cookie_policy_string(
int index);
63 static QString use_material_icons(
void);
64 static QString zoom_frame_location_string(
int index);
65 static QStringList s_spell_checker_dictionaries;
66 static QVariant getenv(
const QString &n);
67 static QVariant setting(
const QString &k,
68 const QVariant &default_value = QVariant(
""));
69 static bool has_dooble_credentials(
void);
70 static bool has_dooble_credentials_temporary(
void);
71 static bool set_setting(
const QString &key,
const QVariant &value);
72 static bool site_has_javascript_block_popup_exception(
const QUrl &url);
73 static int main_menu_bar_visible_key(
void);
74 static int site_feature_permission(
const QUrl &url,
75 QWebEnginePage::Feature feature);
76 static void prepare_web_engine_environment_variables(
void);
77 static void remove_setting(
const QString &key);
78 QString shortcut(
const QString &action)
const;
79 void add_shortcut(QObject *
object);
80 void add_shortcut(
const QString &action,
const QString &shortcut);
81 void restore(
bool read_database);
82 void set_settings_path(
const QString &path);
83 void set_site_feature_permission(
const QUrl &url,
84 QWebEnginePage::Feature feature,
86 void show_normal(QWidget *parent);
87 void show_panel(dooble_settings::Panels panel);
93 void closeEvent(QCloseEvent *event);
94 void keyPressEvent(QKeyEvent *event);
95 void resizeEvent(QResizeEvent *event);
98 QFuture<QList<QByteArray> > m_pbkdf2_future;
99 QFutureWatcher<QList<QByteArray> > m_pbkdf2_future_watcher;
100 QPointer<QProgressDialog> m_pbkdf2_dialog;
101 QStandardItemModel *m_shortcuts_model;
103 Ui_dooble_settings m_ui;
104 static QHash<QString, QString> s_web_engine_settings_environment;
105 static QHash<QUrl, char> s_javascript_block_popup_exceptions;
106 static QMap<QString, QVariant> s_getenv;
107 static QMap<QString, QVariant> s_settings;
108 static QMultiMap<QUrl, QPair<int, bool> > s_site_features_permissions;
109 static QReadWriteLock s_getenv_mutex;
110 static QReadWriteLock s_settings_mutex;
111 static QString s_http_user_agent;
112 static void create_tables(QSqlDatabase &db);
113 void new_javascript_block_popup_exception(
const QUrl &url);
114 void prepare_application_fonts(
void);
115 void prepare_fonts(
void);
116 void prepare_icons(
void);
117 void prepare_proxy(
bool save);
118 void prepare_shortcuts(
void);
119 void prepare_table_statistics(
void);
120 void prepare_web_engine_settings(
void);
121 void purge_database_data(
void);
122 void purge_features_permissions(
void);
123 void purge_javascript_block_popup_exceptions(
void);
124 void save_fonts(
void);
125 void save_javascript_block_popup_exception(
const QUrl &url,
bool state);
126 void save_settings(
void);
128 void showEvent(QShowEvent *event)
130 dooble_main_window::showEvent(event);
132 if(!m_timer.isActive())
136 void show_qtwebengine_dictionaries_warning_label(
void);
139 void slot_apply(
void);
140 void slot_clear_cache(
void);
141 void slot_features_permissions_item_changed(QTableWidgetItem *item);
142 void slot_general_timer_timeout(
void);
143 void slot_javascript_block_popups_exceptions_item_changed
144 (QTableWidgetItem *item);
145 void slot_new_javascript_block_popup_exception(
const QUrl &url);
146 void slot_new_javascript_block_popup_exception(
void);
147 void slot_page_button_clicked(
void);
148 void slot_password_changed(
void);
149 void slot_pbkdf2_future_finished(
void);
150 void slot_populate(
void);
151 void slot_proxy_type_changed(
void);
152 void slot_remove_all_features_permissions(
void);
153 void slot_remove_all_javascript_block_popup_exceptions(
void);
154 void slot_remove_selected_features_permissions(
void);
155 void slot_remove_selected_javascript_block_popup_exceptions(
void);
156 void slot_reset(
void);
157 void slot_reset_credentials(
void);
158 void slot_reset_user_agent(
void);
159 void slot_save_credentials(
void);
160 void slot_select_application_font(
void);
161 void slot_web_engine_settings_item_changed(QTableWidgetItem *item);
165 void dooble_credentials_authenticated(
bool state);
166 void dooble_credentials_created(
void);
167 void populated(
void);
Definition dooble_main_window.h:35