source: trunk/macosx/PrefsController.h @ 6529

Last change on this file since 6529 was 6529, checked in by livings124, 13 years ago

initial Sparkle 1.5 b5 commit

  • Property svn:keywords set to Date Rev Author Id
File size: 4.8 KB
Line 
1/******************************************************************************
2 * $Id: PrefsController.h 6529 2008-08-15 01:44:46Z livings124 $
3 *
4 * Copyright (c) 2005-2008 Transmission authors and contributors
5 *
6 * Permission is hereby granted, free of charge, to any person obtaining a
7 * copy of this software and associated documentation files (the "Software"),
8 * to deal in the Software without restriction, including without limitation
9 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
10 * and/or sell copies of the Software, and to permit persons to whom the
11 * Software is furnished to do so, subject to the following conditions:
12 *
13 * The above copyright notice and this permission notice shall be included in
14 * all copies or substantial portions of the Software.
15 *
16 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
22 * DEALINGS IN THE SOFTWARE.
23 *****************************************************************************/
24
25#import <Cocoa/Cocoa.h>
26#import <transmission.h>
27#import "PortChecker.h"
28
29@interface PrefsController : NSWindowController
30{
31    tr_handle * fHandle;
32   
33    NSUserDefaults * fDefaults;
34    BOOL fHasLoaded;
35   
36    IBOutlet NSView * fGeneralView, * fTransfersView, * fBandwidthView, * fPeersView, * fNetworkView, * fRemoteView;
37   
38    NSString * fInitialString;
39   
40    IBOutlet NSPopUpButton * fFolderPopUp, * fIncompleteFolderPopUp, * fImportFolderPopUp;
41    IBOutlet NSTextField * fRatioStopField, * fQueueDownloadField, * fQueueSeedField, * fStalledField;
42
43    IBOutlet NSTextField * fUploadField, * fDownloadField,
44                        * fSpeedLimitUploadField, * fSpeedLimitDownloadField;
45   
46    IBOutlet NSTextField * fPeersGlobalField, * fPeersTorrentField, * fBlocklistMessageField;
47    IBOutlet NSButton * fBlocklistEnableCheck;
48   
49    PortChecker * fPortChecker;
50    IBOutlet NSTextField * fPortField, * fPortStatusField;
51    IBOutlet NSButton * fNatCheck;
52    IBOutlet NSImageView * fPortStatusImage;
53    IBOutlet NSProgressIndicator * fPortStatusProgress;
54    NSTimer * fPortStatusTimer;
55    int fPeerPort, fNatStatus;
56   
57    IBOutlet NSTextField * fProxyAddressField, * fProxyPortField, * fProxyPasswordField;
58    IBOutlet NSPopUpButton * fProxyTypePopUp;
59   
60    IBOutlet NSTextField * fRPCPortField, * fRPCPasswordField;
61    IBOutlet NSTableView * fRPCAccessTable;
62    IBOutlet NSSegmentedControl * fRPCAddRemoveControl;
63    NSMutableArray * fRPCAccessArray;
64}
65
66- (id) initWithHandle: (tr_handle *) handle;
67- (tr_handle *) handle;
68
69- (void) updatePortField;
70- (void) setPort: (id) sender;
71- (void) setNat: (id) sender;
72- (void) updatePortStatus;
73- (void) portCheckerDidFinishProbing: (PortChecker *) portChecker;
74
75- (NSArray *) sounds;
76- (void) setSound: (id) sender;
77
78- (void) setPeersGlobal: (id) sender;
79- (void) setPeersTorrent: (id) sender;
80
81- (void) setPEX: (id) sender;
82
83- (void) setEncryptionMode: (id) sender;
84
85- (void) setBlocklistEnabled: (id) sender;
86- (void) updateBlocklist: (id) sender;
87- (void) updateBlocklistFields;
88
89- (void) setBadge: (id) sender;
90- (void) resetWarnings: (id) sender;
91
92- (void) setQueue: (id) sender;
93- (void) setQueueNumber: (id) sender;
94
95- (void) setStalled: (id) sender;
96- (void) setStalledMinutes: (id) sender;
97
98- (void) setDownloadLocation: (id) sender;
99- (void) folderSheetShow: (id) sender;
100- (void) incompleteFolderSheetShow: (id) sender;
101
102- (void) applyRatioSetting: (id) sender;
103- (void) updateRatioStopField;
104- (void) setRatioStop: (id) sender;
105
106- (void) applySpeedSettings: (id) sender;
107
108- (void) updateLimitFields;
109- (void) setGlobalLimit: (id) sender;
110
111- (void) setSpeedLimit: (id) sender;
112- (void) setAutoSpeedLimit: (id) sender;
113
114- (void) setAutoImport: (id) sender;
115- (void) importFolderSheetShow: (id) sender;
116
117- (void) setAutoSize: (id) sender;
118
119- (void) setProxyEnabled: (id) sender;
120- (void) setProxyAddress: (id) sender;
121- (void) setProxyPort: (id) sender;
122- (void) setProxyType: (id) sender;
123- (void) updateProxyType;
124- (void) setProxyAuthorize: (id) sender;
125- (void) setProxyUsername: (id) sender;
126- (void) setProxyPassword: (id) sender;
127- (void) updateProxyPassword;
128
129- (void) setRPCEnabled: (id) sender;
130- (void) linkWebUI: (id) sender;
131- (void) setRPCAuthorize: (id) sender;
132- (void) setRPCUsername: (id) sender;
133- (void) setRPCPassword: (id) sender;
134- (void) updateRPCPassword;
135- (void) setRPCPort: (id) sender;
136- (void) updateRPCAccessList;
137- (void) addRemoveRPCIP: (id) sender;
138
139- (void) helpForPeers: (id) sender;
140- (void) helpForNetwork: (id) sender;
141- (void) helpForRemote: (id) sender;
142
143- (void) rpcUpdatePrefs;
144
145@end
Note: See TracBrowser for help on using the repository browser.