diff options
author | Eion Robb <eion@robbmob.com> | 2010-10-15 12:12:56 +0400 |
---|---|---|
committer | Eion Robb <eion@robbmob.com> | 2010-10-15 12:12:56 +0400 |
commit | ffb35ac8b1fbd37b6cc5167172d86e243c6675d7 (patch) | |
tree | aff9c4eb0fe01ebd550bc453081e5eb26d18ebc2 /PurpleSkypeAccountViewController.m | |
parent | c51d4edfe6cccff6c916ad7a9203b282fbb5461f (diff) |
Apparently I never commited the code needed to compile the plugin for Adium
Diffstat (limited to 'PurpleSkypeAccountViewController.m')
-rw-r--r-- | PurpleSkypeAccountViewController.m | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/PurpleSkypeAccountViewController.m b/PurpleSkypeAccountViewController.m new file mode 100644 index 0000000..96c87fb --- /dev/null +++ b/PurpleSkypeAccountViewController.m @@ -0,0 +1,53 @@ +// +// PurpleSkypeAccountViewController.m +// Adium +// +// Created by Eion Robb on 14/10/07. +// + +#import "PurpleSkypeAccountViewController.h" +#import "PurpleSkypeAccount.h" + +@implementation PurpleSkypeAccountViewController + +- (NSView *)privacyView{ + return nil; +} + +- (NSString *)nibName{ + return @"PurpleSkypeAccountView"; +} + +#ifndef SKYPENET +- (NSView *)setupView { + return nil; +} +#endif + +//Configure our controls +- (void)configureForAccount:(AIAccount *)inAccount +{ + [super configureForAccount:inAccount]; + + [checkBox_skypeOutOnline setState:[[account preferenceForKey:KEY_SKYPE_SHOW_SKYPEOUT group:GROUP_ACCOUNT_STATUS] boolValue]]; + [checkBox_skypeSyncOffline setState:[[account preferenceForKey:KEY_SKYPE_SYNC_OFFLINE group:GROUP_ACCOUNT_STATUS] boolValue]]; + //[checkBox_skypeCheckUpdates setState:[[account preferenceForKey:KEY_SKYPE_CHECK_FOR_UPDATES group:GROUP_ACCOUNG_STATUS] boolValue]]; + [checkBox_autoStartSkype setState:[[account preferenceForKey:KEY_SKYPE_AUTOSTART group:GROUP_ACCOUNT_STATUS] boolValue]]; +} + +//Save controls +- (void)saveConfiguration +{ + [super saveConfiguration]; + + [account setPreference:[NSNumber numberWithBool:[checkBox_skypeOutOnline state]] + forKey:KEY_SKYPE_SHOW_SKYPEOUT group:GROUP_ACCOUNT_STATUS]; + [account setPreference:[NSNumber numberWithBool:[checkBox_skypeSyncOffline state]] + forKey:KEY_SKYPE_SYNC_OFFLINE group:GROUP_ACCOUNT_STATUS]; + //[account setPreference:[NSNumber numberWithBool:[checkBox_skypeCheckUpdates state]] + // forKey:KEY_SKYPE_CHECK_FOR_UPDATES group:GROUP_ACCOUNT_STATUS]; + [account setPreference:[NSNumber numberWithBool:[checkBox_autoStartSkype state]] + forKey:KEY_SKYPE_AUTOSTART group:GROUP_ACCOUNT_STATUS]; +} + +@end |