source: trunk/gtk/tr_prefs.h @ 4272

Last change on this file since 4272 was 4272, checked in by charles, 15 years ago

(gtk) add options to set global & per-torrent peer connection limits

  • Property svn:keywords set to Date Rev Author Id
File size: 2.1 KB
Line 
1/*
2 * This file Copyright (C) 2007 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 4272 2007-12-22 00:06:38Z charles $
11 */
12
13#ifndef TR_PREFS_H
14#define TR_PREFS_H
15
16#include <gtk/gtk.h>
17
18GtkWidget * 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_DIR_ASK                "prompt-for-download-directory"
28#define PREF_KEY_DIR_DEFAULT            "default-download-directory"
29#define PREF_KEY_ADDSTD                 "add-behavior-standard"
30#define PREF_KEY_ADDIPC                 "add-behavior-ipc"
31#define PREF_KEY_PORT                   "listening-port"
32#define PREF_KEY_NAT                    "nat-traversal-enabled"
33#define PREF_KEY_PEX                    "pex-enabled"
34#define PREF_KEY_SYSTRAY                "system-tray-icon-enabled"
35#define PREF_KEY_ASKQUIT                "prompt-before-exit"
36#define PREF_KEY_ENCRYPTED_ONLY         "encrypted-connections-only"
37#define PREF_KEY_MSGLEVEL               "debug-message-level"
38#define PREF_KEY_SORT_MODE              "sort-mode"
39#define PREF_KEY_SORT_REVERSED          "sort-reversed"
40#define PREF_KEY_MINIMAL_VIEW           "minimal-view"
41#define PREF_KEY_STATUS_BAR             "show-status-bar"
42#define PREF_KEY_STATUS_BAR_STATS       "status-bar-stats"
43#define PREF_KEY_TOOLBAR                "show-toolbar"
44#define PREF_KEY_MAX_PEERS_GLOBAL       "max-peers-global"
45#define PREF_KEY_MAX_PEERS_PER_TORRENT  "max-peers-per-torrent"
46
47
48void tr_prefs_init_global( void );
49
50int  tr_prefs_get_action( const char * key );
51void tr_prefs_set_action( const char * key, int action );
52
53#endif
Note: See TracBrowser for help on using the repository browser.