2 // ESSIPEAccountViewController.m
5 // Created by Matthew Duggan on 10/12/23.
6 // Copyright 2010 Matthew Duggan. All rights reserved.
9 #import "ESSIPEAccountViewController.h"
11 #import <AdiumLibpurple/CBPurpleAccount.h>
14 #include "ESPurpleSIPEAccount.h"
16 @implementation ESSIPEAccountViewController
18 - (NSString *)nibName{
19 return @"ESSIPEAccountView";
27 - (void)configureForAccount:(AIAccount *)inAccount
29 [super configureForAccount:inAccount];
31 NSString *windowsLogin = [account preferenceForKey:KEY_SIPE_WINDOWS_LOGIN group:GROUP_ACCOUNT_STATUS];
32 [textField_windowsLogin setStringValue:(windowsLogin ? windowsLogin : @"")];
34 int ctype = [[account preferenceForKey:KEY_SIPE_CONNECTION_TYPE group:GROUP_ACCOUNT_STATUS] intValue];
35 [popUp_conntype selectItemWithTag:ctype];
37 //NSString *email = [account preferenceForKey:KEY_SIPE_EMAIL group:GROUP_ACCOUNT_STATUS];
38 //[textField_email setStringValue:(email ? email : @"")];
40 //NSString *emailurl = [account preferenceForKey:KEY_SIPE_EMAIL_URL group:GROUP_ACCOUNT_STATUS];
41 //[textField_emailURL setStringValue:(emailurl ? emailurl : @"")];
44 - (void)saveConfiguration
46 [super saveConfiguration];
49 [account setPreference:[textField_windowsLogin stringValue]
50 forKey:KEY_SIPE_WINDOWS_LOGIN group:GROUP_ACCOUNT_STATUS];
52 int ctype = [[popUp_conntype selectedItem] tag];
53 [account setPreference:[NSNumber numberWithInt:ctype]
54 forKey:KEY_SIPE_CONNECTION_TYPE group:GROUP_ACCOUNT_STATUS];