2007-09-27 20:57:58 +00:00
|
|
|
/*
|
2008-01-01 17:20:20 +00:00
|
|
|
* This file Copyright (C) 2007-2008 Charles Kerr <charles@rebelbase.com>
|
2007-02-19 22:09:05 +00:00
|
|
|
*
|
2007-09-27 20:57:58 +00:00
|
|
|
* This file is licensed by the GPL version 2. Works owned by the
|
|
|
|
* Transmission project are granted a special exemption to clause 2(b)
|
2008-09-23 19:11:04 +00:00
|
|
|
* so that the bulk of its code can remain under the MIT license.
|
2007-09-27 20:57:58 +00:00
|
|
|
* This exemption does not extend to derived works not owned by
|
|
|
|
* the Transmission project.
|
2008-09-23 19:11:04 +00:00
|
|
|
*
|
2007-09-28 00:46:22 +00:00
|
|
|
* $Id$
|
2007-09-27 20:57:58 +00:00
|
|
|
*/
|
2007-02-19 22:09:05 +00:00
|
|
|
|
|
|
|
#ifndef TR_PREFS_H
|
|
|
|
#define TR_PREFS_H
|
|
|
|
|
|
|
|
#include <gtk/gtk.h>
|
|
|
|
|
2008-09-23 19:11:04 +00:00
|
|
|
GtkWidget * tr_prefs_dialog_new( GObject * core,
|
|
|
|
GtkWindow * parent );
|
2007-09-27 20:57:58 +00:00
|
|
|
|
2007-09-28 00:46:22 +00:00
|
|
|
/* if you add a key here, you /must/ add its
|
|
|
|
* default in tr_prefs_init_global( void ) */
|
|
|
|
|
2007-12-22 00:06:38 +00:00
|
|
|
#define PREF_KEY_DL_LIMIT_ENABLED "download-limit-enabled"
|
|
|
|
#define PREF_KEY_DL_LIMIT "download-limit"
|
|
|
|
#define PREF_KEY_UL_LIMIT_ENABLED "upload-limit-enabled"
|
|
|
|
#define PREF_KEY_UL_LIMIT "upload-limit"
|
2008-09-01 04:47:02 +00:00
|
|
|
#define PREF_KEY_SCHED_LIMIT_ENABLED "sched-limit-enabled"
|
2008-09-02 18:22:23 +00:00
|
|
|
#define PREF_KEY_SCHED_BEGIN "sched-begin"
|
|
|
|
#define PREF_KEY_SCHED_END "sched-end"
|
2008-09-01 04:47:02 +00:00
|
|
|
#define PREF_KEY_SCHED_DL_LIMIT "sched-download-limit"
|
|
|
|
#define PREF_KEY_SCHED_UL_LIMIT "sched-upload-limit"
|
2008-02-13 03:00:21 +00:00
|
|
|
#define PREF_KEY_OPTIONS_PROMPT "show-options-window"
|
2008-06-12 16:25:36 +00:00
|
|
|
#define PREF_KEY_DOWNLOAD_DIR "download-dir"
|
2008-06-13 00:52:55 +00:00
|
|
|
#define PREF_KEY_OPEN_DIALOG_FOLDER "open-dialog-dir"
|
2008-09-23 19:11:04 +00:00
|
|
|
#define PREF_KEY_ALLOW_HIBERNATION\
|
|
|
|
"allow-hibernation-even-when-torrents-are-active"
|
2008-06-13 00:52:55 +00:00
|
|
|
#define PREF_KEY_DIR_WATCH "watch-dir"
|
|
|
|
#define PREF_KEY_DIR_WATCH_ENABLED "watch-dir-enabled"
|
2008-06-06 20:03:19 +00:00
|
|
|
#define PREF_KEY_SHOW_TRAY_ICON "show-tray-icon"
|
2008-02-13 03:00:21 +00:00
|
|
|
#define PREF_KEY_START "start-added-torrents"
|
2008-09-23 19:11:04 +00:00
|
|
|
#define PREF_KEY_TRASH_ORIGINAL "trash-original-torrent-files"
|
2008-04-12 00:29:49 +00:00
|
|
|
#define PREF_KEY_PEER_SOCKET_TOS "peer-socket-tos"
|
2008-06-12 16:25:36 +00:00
|
|
|
#define PREF_KEY_PORT "peer-port"
|
|
|
|
#define PREF_KEY_PORT_FORWARDING "port-forwarding-enabled"
|
2007-12-22 00:06:38 +00:00
|
|
|
#define PREF_KEY_PEX "pex-enabled"
|
|
|
|
#define PREF_KEY_ASKQUIT "prompt-before-exit"
|
2008-06-12 16:25:36 +00:00
|
|
|
#define PREF_KEY_ENCRYPTION "encryption"
|
2007-12-22 00:06:38 +00:00
|
|
|
#define PREF_KEY_MSGLEVEL "debug-message-level"
|
2008-08-16 21:06:57 +00:00
|
|
|
#define PREF_KEY_LAZY_BITFIELD "lazy-bitfield-enabled"
|
2007-12-22 00:06:38 +00:00
|
|
|
#define PREF_KEY_SORT_MODE "sort-mode"
|
|
|
|
#define PREF_KEY_SORT_REVERSED "sort-reversed"
|
|
|
|
#define PREF_KEY_MINIMAL_VIEW "minimal-view"
|
2008-03-19 19:30:03 +00:00
|
|
|
#define PREF_KEY_FILTERBAR "show-filterbar"
|
|
|
|
#define PREF_KEY_STATUSBAR "show-statusbar"
|
|
|
|
#define PREF_KEY_STATUSBAR_STATS "statusbar-stats"
|
2007-12-22 00:06:38 +00:00
|
|
|
#define PREF_KEY_TOOLBAR "show-toolbar"
|
|
|
|
#define PREF_KEY_MAX_PEERS_GLOBAL "max-peers-global"
|
|
|
|
#define PREF_KEY_MAX_PEERS_PER_TORRENT "max-peers-per-torrent"
|
2008-03-30 00:21:46 +00:00
|
|
|
#define PREF_KEY_BLOCKLIST_ENABLED "blocklist-enabled"
|
2008-09-02 20:59:00 +00:00
|
|
|
#define PREF_KEY_BLOCKLIST_UPDATES_ENABLED "blocklist-updates-enabled"
|
2008-04-21 20:58:39 +00:00
|
|
|
#define PREF_KEY_MAIN_WINDOW_HEIGHT "main-window-height"
|
|
|
|
#define PREF_KEY_MAIN_WINDOW_WIDTH "main-window-width"
|
|
|
|
#define PREF_KEY_MAIN_WINDOW_X "main-window-x"
|
|
|
|
#define PREF_KEY_MAIN_WINDOW_Y "main-window-y"
|
2008-05-18 16:44:30 +00:00
|
|
|
#define PREF_KEY_RPC_PORT "rpc-port"
|
|
|
|
#define PREF_KEY_RPC_ENABLED "rpc-enabled"
|
2008-10-01 20:23:57 +00:00
|
|
|
#define PREF_KEY_RPC_WHITELIST "rpc-whitelist"
|
2008-06-06 20:03:19 +00:00
|
|
|
#define PREF_KEY_RPC_AUTH_ENABLED "rpc-authentication-required"
|
2008-06-02 21:02:38 +00:00
|
|
|
#define PREF_KEY_RPC_PASSWORD "rpc-password"
|
2008-06-05 16:23:03 +00:00
|
|
|
#define PREF_KEY_RPC_USERNAME "rpc-username"
|
2008-06-06 20:03:19 +00:00
|
|
|
#define PREF_KEY_PROXY_SERVER "proxy-server"
|
2008-07-15 01:03:03 +00:00
|
|
|
#define PREF_KEY_PROXY_PORT "proxy-port"
|
2008-06-06 20:03:19 +00:00
|
|
|
#define PREF_KEY_PROXY_SERVER_ENABLED "proxy-server-enabled"
|
2008-06-11 20:45:53 +00:00
|
|
|
#define PREF_KEY_PROXY_TYPE "proxy-type"
|
2008-06-06 20:03:19 +00:00
|
|
|
#define PREF_KEY_PROXY_AUTH_ENABLED "proxy-authentication-required"
|
|
|
|
#define PREF_KEY_PROXY_USERNAME "proxy-username"
|
|
|
|
#define PREF_KEY_PROXY_PASSWORD "proxy-authentication"
|
2007-12-22 00:06:38 +00:00
|
|
|
|
2007-09-27 20:57:58 +00:00
|
|
|
|
|
|
|
void tr_prefs_init_global( void );
|
|
|
|
|
2007-02-19 22:09:05 +00:00
|
|
|
#endif
|