-
Notifications
You must be signed in to change notification settings - Fork 4
/
Settings.hpp
42 lines (36 loc) · 1009 Bytes
/
Settings.hpp
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
// Settings.hpp --- SimpleBrowser settings
// Copyright (C) 2019 Katayama Hirofumi MZ <[email protected]>
// This file is public domain software.
#ifndef SETTINGS_HPP_
#define SETTINGS_HPP_
#ifndef _INC_WINDOWS
#include <windows.h>
#endif
#include <string>
#include <vector>
struct SETTINGS
{
INT m_x, m_y, m_cx, m_cy;
BOOL m_bMaximized;
std::wstring m_homepage;
typedef std::vector<std::wstring> list_type;
list_type m_url_list;
list_type m_black_list;
BOOL m_secure;
BOOL m_dont_r_click;
BOOL m_local_file_access;
BOOL m_dont_popup;
BOOL m_ignore_errors;
BOOL m_kiosk_mode;
BOOL m_no_virus_scan;
BOOL m_zone_ident;
BOOL m_play_sound;
DWORD m_emulation;
DWORD m_refresh_interval;
BOOL load();
BOOL save();
void reset();
};
extern SETTINGS g_settings;
void ShowSettingsDlg(HINSTANCE hInst, HWND hwnd, const std::wstring& strCurPage);
#endif // ndef SETTINGS_HPP_