xref: /haiku/src/apps/webpositive/SettingsKeys.cpp (revision e5feb3a7ae31b61a985065085342286f74892700)
1 /*
2  * Copyright (C) 2010 Stephan Aßmus <superstippi@gmx.de>
3  * Coptright 2014 Haiku, Inc. All rights reserved.
4  *
5  * Distributed under the terms of the MIT License.
6  *
7  * Authors:
8  *		Stephan Aßmus, superstippi@gmx.de
9  *		John Scipione, jscipione@gmail.com
10  */
11 
12 
13 #include "SettingsKeys.h"
14 
15 
16 const char* kSettingsKeyDownloadPath = "download path";
17 const char* kSettingsKeyShowTabsIfSinglePageOpen
18 	= "show tabs if single page open";
19 const char* kSettingsKeyAutoHideInterfaceInFullscreenMode
20 	= "auto hide interface in full screen mode";
21 const char* kSettingsKeyAutoHidePointer = "auto hide pointer";
22 const char* kSettingsKeyShowHomeButton = "show home button";
23 
24 const char* kSettingsKeyNewWindowPolicy = "new window policy";
25 const char* kSettingsKeyNewTabPolicy = "new tab policy";
26 const char* kSettingsKeyStartUpPolicy = "start up policy";
27 const char* kSettingsKeyStartPageURL = "start page url";
28 const char* kSettingsKeySearchPageURL = "search page url";
29 
30 const char* kDefaultDownloadPath = "/boot/home/Desktop/";
31 const char* kDefaultStartPageURL
32 	= "file:///boot/home/config/settings/WebPositive/LoaderPages/Welcome";
33 const char* kDefaultSearchPageURL = "https://duckduckgo.com/?q=%s";
34 
35 const char* kSettingsKeyUseProxy = "use http proxy";
36 const char* kSettingsKeyProxyAddress = "http proxy address";
37 const char* kSettingsKeyProxyPort = "http proxy port";
38 const char* kSettingsKeyUseProxyAuth = "use http proxy authentication";
39 const char* kSettingsKeyProxyUsername = "http proxy username";
40 const char* kSettingsKeyProxyPassword = "http proxy password";
41 
42 const char* kSettingsShowBookmarkBar = "show bookmarks bar";
43 
44 const struct SearchEngine kSearchEngines[] = {
45 	{ "Baidu",      "https://www.baidu.com/search?wd=%s",             "a " },
46 	{ "Bing",       "https://bing.com/search?q=%s",                   "b " },
47 	{ "DuckDuckGo", "https://duckduckgo.com/?q=%s",                   "d " },
48 	{ "Ecosia",     "https://www.ecosia.org/search?q=%s",             "e " },
49 	{ "Google",     "https://google.com/search?q=%s",                 "g " },
50 	{ "Qwant",      "https://www.qwant.com/?q=%s",                    "q " },
51 	{ "Wikipedia",  "https://en.wikipedia.org/w/index.php?search=%s", "w " },
52 	{ "Yandex",     "https://yandex.com/search/?text=%s",             "y " },
53 	{ "Yahoo",      "https://search.yahoo.com/search?p=%s",           "z " },
54 	{ NULL, NULL, NULL }
55 };
56