[3206] | 1 | /* |
---|
| 2 | * This file Copyright (C) 2007 Charles Kerr <charles@rebelbase.com> |
---|
[1484] | 3 | * |
---|
[3206] | 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 | * |
---|
[3209] | 10 | * $Id: tr_prefs.h 4304 2007-12-24 00:14:39Z charles $ |
---|
[3206] | 11 | */ |
---|
[1484] | 12 | |
---|
| 13 | #ifndef TR_PREFS_H |
---|
| 14 | #define TR_PREFS_H |
---|
| 15 | |
---|
| 16 | #include <gtk/gtk.h> |
---|
| 17 | |
---|
[3206] | 18 | GtkWidget * tr_prefs_dialog_new( GObject * core, GtkWindow * parent ); |
---|
[1484] | 19 | |
---|
[3209] | 20 | /* if you add a key here, you /must/ add its |
---|
| 21 | * default in tr_prefs_init_global( void ) */ |
---|
| 22 | |
---|
[4272] | 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" |
---|
[4304] | 41 | #define PREF_KEY_FILTER_BAR "show-filter-bar" |
---|
[4272] | 42 | #define PREF_KEY_STATUS_BAR "show-status-bar" |
---|
| 43 | #define PREF_KEY_STATUS_BAR_STATS "status-bar-stats" |
---|
| 44 | #define PREF_KEY_TOOLBAR "show-toolbar" |
---|
| 45 | #define PREF_KEY_MAX_PEERS_GLOBAL "max-peers-global" |
---|
| 46 | #define PREF_KEY_MAX_PEERS_PER_TORRENT "max-peers-per-torrent" |
---|
[1484] | 47 | |
---|
[4272] | 48 | |
---|
[3206] | 49 | void tr_prefs_init_global( void ); |
---|
[1484] | 50 | |
---|
[3206] | 51 | int tr_prefs_get_action( const char * key ); |
---|
| 52 | void tr_prefs_set_action( const char * key, int action ); |
---|
[1484] | 53 | |
---|
| 54 | #endif |
---|