1 | /* |
---|
2 | * This file Copyright (C) 2007-2008 Charles Kerr <charles@rebelbase.com> |
---|
3 | * |
---|
4 | * This file is licensed by the GPL version 2. Works owned by the |
---|
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. |
---|
7 | * This exemption does not extend to derived works not owned by |
---|
8 | * the Transmission project. |
---|
9 | * |
---|
10 | * $Id: tr-prefs.h 6166 2008-06-13 00:52:55Z charles $ |
---|
11 | */ |
---|
12 | |
---|
13 | #ifndef TR_PREFS_H |
---|
14 | #define TR_PREFS_H |
---|
15 | |
---|
16 | #include <gtk/gtk.h> |
---|
17 | |
---|
18 | GtkWidget * tr_prefs_dialog_new( GObject * core, GtkWindow * parent ); |
---|
19 | |
---|
20 | /* if you add a key here, you /must/ add its |
---|
21 | * default in tr_prefs_init_global( void ) */ |
---|
22 | |
---|
23 | #define PREF_KEY_DL_LIMIT_ENABLED "download-limit-enabled" |
---|
24 | #define PREF_KEY_DL_LIMIT "download-limit" |
---|
25 | #define PREF_KEY_UL_LIMIT_ENABLED "upload-limit-enabled" |
---|
26 | #define PREF_KEY_UL_LIMIT "upload-limit" |
---|
27 | #define PREF_KEY_OPTIONS_PROMPT "show-options-window" |
---|
28 | #define PREF_KEY_DOWNLOAD_DIR "download-dir" |
---|
29 | #define PREF_KEY_OPEN_DIALOG_FOLDER "open-dialog-dir" |
---|
30 | #define PREF_KEY_ALLOW_HIBERNATION "allow-hibernation" |
---|
31 | #define PREF_KEY_DIR_WATCH "watch-dir" |
---|
32 | #define PREF_KEY_DIR_WATCH_ENABLED "watch-dir-enabled" |
---|
33 | #define PREF_KEY_SHOW_TRAY_ICON "show-tray-icon" |
---|
34 | #define PREF_KEY_START "start-added-torrents" |
---|
35 | #define PREF_KEY_TRASH_ORIGINAL "trash-original-torrent-files" |
---|
36 | #define PREF_KEY_PEER_SOCKET_TOS "peer-socket-tos" |
---|
37 | #define PREF_KEY_PORT "peer-port" |
---|
38 | #define PREF_KEY_PORT_FORWARDING "port-forwarding-enabled" |
---|
39 | #define PREF_KEY_PEX "pex-enabled" |
---|
40 | #define PREF_KEY_ASKQUIT "prompt-before-exit" |
---|
41 | #define PREF_KEY_ENCRYPTION "encryption" |
---|
42 | #define PREF_KEY_MSGLEVEL "debug-message-level" |
---|
43 | #define PREF_KEY_SORT_MODE "sort-mode" |
---|
44 | #define PREF_KEY_SORT_REVERSED "sort-reversed" |
---|
45 | #define PREF_KEY_MINIMAL_VIEW "minimal-view" |
---|
46 | #define PREF_KEY_FILTERBAR "show-filterbar" |
---|
47 | #define PREF_KEY_STATUSBAR "show-statusbar" |
---|
48 | #define PREF_KEY_STATUSBAR_STATS "statusbar-stats" |
---|
49 | #define PREF_KEY_TOOLBAR "show-toolbar" |
---|
50 | #define PREF_KEY_MAX_PEERS_GLOBAL "max-peers-global" |
---|
51 | #define PREF_KEY_MAX_PEERS_PER_TORRENT "max-peers-per-torrent" |
---|
52 | #define PREF_KEY_BLOCKLIST_ENABLED "blocklist-enabled" |
---|
53 | #define PREF_KEY_MAIN_WINDOW_HEIGHT "main-window-height" |
---|
54 | #define PREF_KEY_MAIN_WINDOW_WIDTH "main-window-width" |
---|
55 | #define PREF_KEY_MAIN_WINDOW_X "main-window-x" |
---|
56 | #define PREF_KEY_MAIN_WINDOW_Y "main-window-y" |
---|
57 | #define PREF_KEY_RPC_PORT "rpc-port" |
---|
58 | #define PREF_KEY_RPC_ENABLED "rpc-enabled" |
---|
59 | #define PREF_KEY_RPC_ACL "rpc-access-control-list" |
---|
60 | #define PREF_KEY_RPC_AUTH_ENABLED "rpc-authentication-required" |
---|
61 | #define PREF_KEY_RPC_PASSWORD "rpc-password" |
---|
62 | #define PREF_KEY_RPC_USERNAME "rpc-username" |
---|
63 | #define PREF_KEY_PROXY_SERVER "proxy-server" |
---|
64 | #define PREF_KEY_PROXY_SERVER_ENABLED "proxy-server-enabled" |
---|
65 | #define PREF_KEY_PROXY_TYPE "proxy-type" |
---|
66 | #define PREF_KEY_PROXY_AUTH_ENABLED "proxy-authentication-required" |
---|
67 | #define PREF_KEY_PROXY_USERNAME "proxy-username" |
---|
68 | #define PREF_KEY_PROXY_PASSWORD "proxy-authentication" |
---|
69 | |
---|
70 | |
---|
71 | void tr_prefs_init_global( void ); |
---|
72 | |
---|
73 | #endif |
---|