Welcome to mirror list, hosted at ThFree Co, Russian Federation.

PurpleSkypeAccountViewController.m - github.com/EionRobb/skype4pidgin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 96c87fb53dad39d397dac19fdcb332c6b1f25e12 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
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