source: trunk/macosx/PrefsController.h @ 11369

Last change on this file since 11369 was 11369, checked in by livings124, 11 years ago

#3697 make blocklist URL configurable in the Mac UI

  • Property svn:keywords set to Date Rev Author Id
File size: 5.2 KB
Line 
1/******************************************************************************
2 * $Id: PrefsController.h 11369 2010-10-31 19:05:46Z livings124 $
3 *
4 * Copyright (c) 2005-2010 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, * fIdleStopField, * fQueueDownloadField, * fQueueSeedField, * fStalledField;
41
42    IBOutlet NSTextField * fUploadField, * fDownloadField,
43                        * fSpeedLimitUploadField, * fSpeedLimitDownloadField;
44    IBOutlet NSPopUpButton * fAutoSpeedDayTypePopUp;
45   
46    IBOutlet NSTextField * fPeersGlobalField, * fPeersTorrentField,
47                        * fBlocklistURLField, * fBlocklistMessageField, * fBlocklistDateField;
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 * fRPCPortField, * fRPCPasswordField;
58    IBOutlet NSTableView * fRPCWhitelistTable;
59    NSMutableArray * fRPCWhitelistArray;
60    IBOutlet NSSegmentedControl * fRPCAddRemoveControl;
61    NSString * fRPCPassword;
62}
63
64+ (void) setHandle: (tr_session *) handle;
65+ (tr_session *) handle;
66
67- (void) setAutoUpdateToBeta: (id) sender;
68
69- (void) setPort: (id) sender;
70- (void) randomPort: (id) sender;
71- (void) setRandomPortOnStart: (id) sender;
72- (void) setNat: (id) sender;
73- (void) updatePortStatus;
74- (void) portCheckerDidFinishProbing: (PortChecker *) portChecker;
75
76- (NSArray *) sounds;
77- (void) setSound: (id) sender;
78
79- (void) setPeersGlobal: (id) sender;
80- (void) setPeersTorrent: (id) sender;
81
82- (void) setPEX: (id) sender;
83- (void) setDHT: (id) sender;
84- (void) setLPD: (id) sender;
85
86- (void) setEncryptionMode: (id) sender;
87
88- (void) setBlocklistEnabled: (id) sender;
89- (void) setBlocklistURL: (id) sender;
90- (void) updateBlocklist: (id) sender;
91- (void) setBlocklistAutoUpdate: (id) sender;
92- (void) updateBlocklistFields;
93
94- (void) setAutoStartDownloads: (id) sender;
95
96- (void) setBadge: (id) sender;
97
98- (void) resetWarnings: (id) sender;
99
100- (void) setDefaultForMagnets: (id) sender;
101
102- (void) setQueue: (id) sender;
103- (void) setQueueNumber: (id) sender;
104
105- (void) setStalled: (id) sender;
106- (void) setStalledMinutes: (id) sender;
107
108- (void) setDownloadLocation: (id) sender;
109- (void) folderSheetShow: (id) sender;
110- (void) incompleteFolderSheetShow: (id) sender;
111- (void) setUseIncompleteFolder: (id) sender;
112
113- (void) setRenamePartialFiles: (id) sender;
114
115- (void) applyRatioSetting: (id) sender;
116- (void) setRatioStop: (id) sender;
117- (void) updateRatioStopField;
118
119- (void) applyIdleStopSetting: (id) sender;
120- (void) setIdleStop: (id) sender;
121
122- (void) applySpeedSettings: (id) sender;
123- (void) applyAltSpeedSettings;
124
125- (void) updateLimitFields;
126- (void) setGlobalLimit: (id) sender;
127
128- (void) setSpeedLimit: (id) sender;
129- (void) setAutoSpeedLimit: (id) sender;
130- (void) setAutoSpeedLimitTime: (id) sender;
131- (void) setAutoSpeedLimitDay: (id) sender;
132+ (NSInteger) dateToTimeSum: (NSDate *) date;
133+ (NSDate *) timeSumToDate: (NSInteger) sum;
134
135- (void) setAutoImport: (id) sender;
136- (void) importFolderSheetShow: (id) sender;
137
138- (void) setAutoSize: (id) sender;
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.