source: trunk/macosx/PrefsController.h @ 8098

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

the Mac build works with the new speed limit libT code - still a bit quirky

  • Property svn:keywords set to Date Rev Author Id
File size: 5.2 KB
Line 
1/******************************************************************************
2 * $Id: PrefsController.h 8098 2009-03-28 17:18:43Z livings124 $
3 *
4 * Copyright (c) 2005-2009 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
28@class PortChecker;
29
30@interface PrefsController : NSWindowController
31{
32    NSUserDefaults * fDefaults;
33    BOOL fHasLoaded;
34   
35    IBOutlet NSView * fGeneralView, * fTransfersView, * fBandwidthView, * fPeersView, * fNetworkView, * fRemoteView, * fGroupsView;
36   
37    NSString * fInitialString;
38   
39    IBOutlet NSPopUpButton * fFolderPopUp, * fIncompleteFolderPopUp, * fImportFolderPopUp;
40    IBOutlet NSTextField * fRatioStopField, * fQueueDownloadField, * fQueueSeedField, * fStalledField;
41
42    IBOutlet NSTextField * fUploadField, * fDownloadField,
43                        * fSpeedLimitUploadField, * fSpeedLimitDownloadField;
44   
45    IBOutlet NSTextField * fPeersGlobalField, * fPeersTorrentField, * fBlocklistMessageField, * fBlocklistDateField;
46    IBOutlet NSButton * fBlocklistEnableCheck;
47   
48    PortChecker * fPortChecker;
49    IBOutlet NSTextField * fPortField, * fPortStatusField;
50    IBOutlet NSButton * fNatCheck;
51    IBOutlet NSImageView * fPortStatusImage;
52    IBOutlet NSProgressIndicator * fPortStatusProgress;
53    NSTimer * fPortStatusTimer;
54    int fPeerPort, fNatStatus;
55   
56    IBOutlet NSTextField * fProxyAddressField, * fProxyPortField, * fProxyPasswordField;
57    IBOutlet NSPopUpButton * fProxyTypePopUp;
58   
59    IBOutlet NSTextField * fRPCPortField, * fRPCPasswordField;
60    IBOutlet NSTableView * fRPCWhitelistTable;
61    NSMutableArray * fRPCWhitelistArray;
62    IBOutlet NSSegmentedControl * fRPCAddRemoveControl;
63    NSString * fRPCPassword;
64}
65
66+ (void) setHandle: (tr_session *) handle;
67+ (tr_session *) handle;
68
69- (void) setAutoUpdateToBeta: (id) sender;
70
71- (void) setPort: (id) sender;
72- (void) randomPort: (id) sender;
73- (void) setNat: (id) sender;
74- (void) updatePortStatus;
75- (void) portCheckerDidFinishProbing: (PortChecker *) portChecker;
76
77- (NSArray *) sounds;
78- (void) setSound: (id) sender;
79
80- (void) setPeersGlobal: (id) sender;
81- (void) setPeersTorrent: (id) sender;
82
83- (void) setPEX: (id) sender;
84
85- (void) setEncryptionMode: (id) sender;
86
87- (void) setBlocklistEnabled: (id) sender;
88- (void) updateBlocklist: (id) sender;
89- (void) setBlocklistAutoUpdate: (id) sender;
90- (void) updateBlocklistFields;
91
92- (void) setBadge: (id) sender;
93- (void) resetWarnings: (id) sender;
94
95- (void) setQueue: (id) sender;
96- (void) setQueueNumber: (id) sender;
97
98- (void) setStalled: (id) sender;
99- (void) setStalledMinutes: (id) sender;
100
101- (void) setDownloadLocation: (id) sender;
102- (void) folderSheetShow: (id) sender;
103- (void) incompleteFolderSheetShow: (id) sender;
104
105- (void) applyRatioSetting: (id) sender;
106- (void) updateRatioStopField;
107- (void) setRatioStop: (id) sender;
108
109- (void) applySpeedSettings: (id) sender;
110- (void) applyAltSpeedSettings;
111
112- (void) updateLimitFields;
113- (void) setGlobalLimit: (id) sender;
114
115- (void) setSpeedLimit: (id) sender;
116- (void) setAutoSpeedLimit: (id) sender;
117- (void) setAutoSpeedLimitTime: (id) sender;
118+ (NSInteger) dateToTimeSum: (NSDate *) date;
119
120- (void) setAutoImport: (id) sender;
121- (void) importFolderSheetShow: (id) sender;
122
123- (void) setAutoSize: (id) sender;
124
125- (void) setProxyEnabled: (id) sender;
126- (void) setProxyAddress: (id) sender;
127- (void) setProxyPort: (id) sender;
128- (void) setProxyType: (id) sender;
129- (void) updateProxyType;
130- (void) setProxyAuthorize: (id) sender;
131- (void) setProxyUsername: (id) sender;
132- (void) setProxyPassword: (id) sender;
133- (void) updateProxyPassword;
134
135- (void) setRPCEnabled: (id) sender;
136- (void) linkWebUI: (id) sender;
137- (void) setRPCAuthorize: (id) sender;
138- (void) setRPCUsername: (id) sender;
139- (void) setRPCPassword: (id) sender;
140- (void) updateRPCPassword;
141- (void) setRPCPort: (id) sender;
142- (void) setRPCUseWhitelist: (id) sender;
143- (void) setRPCWebUIDiscovery: (id) sender;
144- (void) updateRPCWhitelist;
145- (void) addRemoveRPCIP: (id) sender;
146
147- (void) helpForPeers: (id) sender;
148- (void) helpForNetwork: (id) sender;
149- (void) helpForRemote: (id) sender;
150
151- (void) rpcUpdatePrefs;
152
153@end
Note: See TracBrowser for help on using the repository browser.