allow preferences to set encryption, commented out for now

This commit is contained in:
Mitchell Livingston 2007-09-20 11:46:30 +00:00
parent dd5817ac0a
commit 4932e8eb0e
5 changed files with 12 additions and 1 deletions

View File

@ -18,6 +18,7 @@
setBadge = id;
setCheckForUpdate = id;
setDownloadLocation = id;
setEncryptionRequired = id;
setGlobalLimit = id;
setNat = id;
setPort = id;

View File

@ -23,7 +23,7 @@
</array>
<key>IBOpenObjects</key>
<array>
<integer>41</integer>
<integer>66</integer>
</array>
<key>IBSystem Version</key>
<string>8R4031</string>

View File

@ -64,6 +64,8 @@
- (NSArray *) sounds;
- (void) setSound: (id) sender;
- (void) setEncryptionRequired: (id) sender;
- (void) setBadge: (id) sender;
- (void) resetWarnings: (id) sender;
- (void) setCheckForUpdate: (id) sender;

View File

@ -78,6 +78,9 @@
//set NAT
tr_natTraversalEnable(fHandle, [fDefaults boolForKey: @"NatTraversal"]);
//set encryption
//tr_setEncryptionMode(fHandle, [fDefaults boolForKey: @"EncryptionRequire"] ? TR_ENCRYPTION_REQUIRED : TR_ENCRYPTION_PREFERRED);
//actually set bandwidth limits
[self applySpeedSettings: nil];
}
@ -336,6 +339,11 @@
[sound play];
}
- (void) setEncryptionRequired: (id) sender
{
//tr_setEncryptionMode(fHandle, [fDefaults boolForKey: @"EncryptionRequire"] ? TR_ENCRYPTION_REQUIRED : TR_ENCRYPTION_PREFERRED);
}
- (void) applySpeedSettings: (id) sender
{
if ([fDefaults boolForKey: @"SpeedLimit"])