4
4
* This file is licensed by the GPL version 2. Works owned by the
5
5
* Transmission project are granted a special exemption to clause 2(b)
6
* so that the bulk of its code can remain under the MIT license.
6
* so that the bulk of its code can remain under the MIT license.
7
7
* This exemption does not extend to derived works not owned by
8
8
* the Transmission project.
10
* $Id: tr-prefs.h 6329 2008-07-15 01:03:03Z charles $
10
* $Id: tr-prefs.h 6870 2008-10-08 18:26:55Z charles $
16
16
#include <gtk/gtk.h>
18
GtkWidget * tr_prefs_dialog_new( GObject * core, GtkWindow * parent );
18
GtkWidget * tr_prefs_dialog_new( GObject * core,
20
21
/* if you add a key here, you /must/ add its
21
22
* default in tr_prefs_init_global( void ) */
24
25
#define PREF_KEY_DL_LIMIT "download-limit"
25
26
#define PREF_KEY_UL_LIMIT_ENABLED "upload-limit-enabled"
26
27
#define PREF_KEY_UL_LIMIT "upload-limit"
28
#define PREF_KEY_SCHED_LIMIT_ENABLED "sched-limit-enabled"
29
#define PREF_KEY_SCHED_BEGIN "sched-begin"
30
#define PREF_KEY_SCHED_END "sched-end"
31
#define PREF_KEY_SCHED_DL_LIMIT "sched-download-limit"
32
#define PREF_KEY_SCHED_UL_LIMIT "sched-upload-limit"
27
33
#define PREF_KEY_OPTIONS_PROMPT "show-options-window"
28
34
#define PREF_KEY_DOWNLOAD_DIR "download-dir"
29
35
#define PREF_KEY_OPEN_DIALOG_FOLDER "open-dialog-dir"
30
#define PREF_KEY_ALLOW_HIBERNATION "allow-hibernation-even-when-torrents-are-active"
36
#define PREF_KEY_INHIBIT_HIBERNATION "inhibit-desktop-hibernation"
31
37
#define PREF_KEY_DIR_WATCH "watch-dir"
32
38
#define PREF_KEY_DIR_WATCH_ENABLED "watch-dir-enabled"
33
#define PREF_KEY_SHOW_TRAY_ICON "show-tray-icon"
39
#define PREF_KEY_SHOW_TRAY_ICON "show-notification-area-icon"
34
40
#define PREF_KEY_START "start-added-torrents"
35
#define PREF_KEY_TRASH_ORIGINAL "trash-original-torrent-files"
41
#define PREF_KEY_TRASH_ORIGINAL "trash-original-torrent-files"
36
42
#define PREF_KEY_PEER_SOCKET_TOS "peer-socket-tos"
37
43
#define PREF_KEY_PORT "peer-port"
38
44
#define PREF_KEY_PORT_FORWARDING "port-forwarding-enabled"
40
46
#define PREF_KEY_ASKQUIT "prompt-before-exit"
41
47
#define PREF_KEY_ENCRYPTION "encryption"
42
48
#define PREF_KEY_MSGLEVEL "debug-message-level"
49
#define PREF_KEY_LAZY_BITFIELD "lazy-bitfield-enabled"
43
50
#define PREF_KEY_SORT_MODE "sort-mode"
44
51
#define PREF_KEY_SORT_REVERSED "sort-reversed"
45
52
#define PREF_KEY_MINIMAL_VIEW "minimal-view"
50
57
#define PREF_KEY_MAX_PEERS_GLOBAL "max-peers-global"
51
58
#define PREF_KEY_MAX_PEERS_PER_TORRENT "max-peers-per-torrent"
52
59
#define PREF_KEY_BLOCKLIST_ENABLED "blocklist-enabled"
60
#define PREF_KEY_BLOCKLIST_UPDATES_ENABLED "blocklist-updates-enabled"
53
61
#define PREF_KEY_MAIN_WINDOW_HEIGHT "main-window-height"
54
62
#define PREF_KEY_MAIN_WINDOW_WIDTH "main-window-width"
55
63
#define PREF_KEY_MAIN_WINDOW_X "main-window-x"
56
64
#define PREF_KEY_MAIN_WINDOW_Y "main-window-y"
57
65
#define PREF_KEY_RPC_PORT "rpc-port"
58
66
#define PREF_KEY_RPC_ENABLED "rpc-enabled"
59
#define PREF_KEY_RPC_ACL "rpc-access-control-list"
67
#define PREF_KEY_RPC_WHITELIST "rpc-whitelist"
68
#define PREF_KEY_RPC_WHITELIST_ENABLED "rpc-whitelist-enabled"
60
69
#define PREF_KEY_RPC_AUTH_ENABLED "rpc-authentication-required"
61
70
#define PREF_KEY_RPC_PASSWORD "rpc-password"
62
71
#define PREF_KEY_RPC_USERNAME "rpc-username"