source: trunk/macosx/PrefsController.h @ 8150

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

a bit more Mac rpc work

  • Property svn:keywords set to Date Rev Author Id
File size: 5.4 KB
Line 
1/******************************************************************************
2 * $Id: PrefsController.h 8150 2009-04-05 15:55:20Z 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    IBOutlet NSPopUpButton * fAutoSpeedDayTypePopUp;
45   
46    IBOutlet NSTextField * fPeersGlobalField, * fPeersTorrentField, * fBlocklistMessageField, * fBlocklistDateField;
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 * fRPCWhitelistTable;
62    NSMutableArray * fRPCWhitelistArray;
63    IBOutlet NSSegmentedControl * fRPCAddRemoveControl;
64    NSString * fRPCPassword;
65}
66
67+ (void) setHandle: (tr_session *) handle;
68+ (tr_session *) handle;
69
70- (void) setAutoUpdateToBeta: (id) sender;
71
72- (void) setPort: (id) sender;
73- (void) randomPort: (id) sender;
74- (void) setRandomPortOnStart: (id) sender;
75- (void) setNat: (id) sender;
76- (void) updatePortStatus;
77- (void) portCheckerDidFinishProbing: (PortChecker *) portChecker;
78
79- (NSArray *) sounds;
80- (void) setSound: (id) sender;
81
82- (void) setPeersGlobal: (id) sender;
83- (void) setPeersTorrent: (id) sender;
84
85- (void) setPEX: (id) sender;
86
87- (void) setEncryptionMode: (id) sender;
88
89- (void) setBlocklistEnabled: (id) sender;
90- (void) updateBlocklist: (id) sender;
91- (void) setBlocklistAutoUpdate: (id) sender;
92- (void) updateBlocklistFields;
93
94- (void) setBadge: (id) sender;
95- (void) resetWarnings: (id) sender;
96
97- (void) setQueue: (id) sender;
98- (void) setQueueNumber: (id) sender;
99
100- (void) setStalled: (id) sender;
101- (void) setStalledMinutes: (id) sender;
102
103- (void) setDownloadLocation: (id) sender;
104- (void) folderSheetShow: (id) sender;
105- (void) incompleteFolderSheetShow: (id) sender;
106
107- (void) applyRatioSetting: (id) sender;
108- (void) updateRatioStopField;
109- (void) setRatioStop: (id) sender;
110
111- (void) applySpeedSettings: (id) sender;
112- (void) applyAltSpeedSettings;
113
114- (void) updateLimitFields;
115- (void) setGlobalLimit: (id) sender;
116
117- (void) setSpeedLimit: (id) sender;
118- (void) setAutoSpeedLimit: (id) sender;
119- (void) setAutoSpeedLimitTime: (id) sender;
120- (void) setAutoSpeedLimitDay: (id) sender;
121- (void) updateAutoSpeedLimitDay;
122+ (NSInteger) dateToTimeSum: (NSDate *) date;
123+ (NSDate *) timeSumToDate: (NSInteger) sum;
124
125- (void) setAutoImport: (id) sender;
126- (void) importFolderSheetShow: (id) sender;
127
128- (void) setAutoSize: (id) sender;
129
130- (void) setProxyEnabled: (id) sender;
131- (void) setProxyAddress: (id) sender;
132- (void) setProxyPort: (id) sender;
133- (void) setProxyType: (id) sender;
134- (void) updateProxyType;
135- (void) setProxyAuthorize: (id) sender;
136- (void) setProxyUsername: (id) sender;
137- (void) setProxyPassword: (id) sender;
138- (void) updateProxyPassword;
139
140- (void) setRPCEnabled: (id) sender;
141- (void) linkWebUI: (id) sender;
142- (void) setRPCAuthorize: (id) sender;
143- (void) setRPCUsername: (id) sender;
144- (void) setRPCPassword: (id) sender;
145- (void) updateRPCPassword;
146- (void) setRPCPort: (id) sender;
147- (void) setRPCUseWhitelist: (id) sender;
148- (void) setRPCWebUIDiscovery: (id) sender;
149- (void) updateRPCWhitelist;
150- (void) addRemoveRPCIP: (id) sender;
151
152- (void) helpForPeers: (id) sender;
153- (void) helpForNetwork: (id) sender;
154- (void) helpForRemote: (id) sender;
155
156- (void) rpcUpdatePrefs;
157
158@end
Note: See TracBrowser for help on using the repository browser.