media: Updated media patches README
[siplcs.git] / src / adium / ESSIPEAccountViewController.m
blobbf722d227b1d9d2b2f2e16668d5408288fb356b3
1 //
2 //  ESSIPEAccountViewController.m
3 //  SIPEAdiumPlugin
4 //
5 //  Created by Matthew Duggan on 10/12/23.
6 //  Copyright 2010 Matthew Duggan. All rights reserved.
7 //
9 #import "ESSIPEAccountViewController.h"
11 #import <AdiumLibpurple/CBPurpleAccount.h>
13 #include "prpl.h"
14 #include "ESPurpleSIPEAccount.h"
16 @implementation ESSIPEAccountViewController
18 - (NSString *)nibName{
19     return @"ESSIPEAccountView";
22 - (void)awakeFromNib
24         [super awakeFromNib];
27 - (void)configureForAccount:(AIAccount *)inAccount
29     [super configureForAccount:inAccount];
30     
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];
48         //Resource
49         [account setPreference:[textField_windowsLogin stringValue]
50                                         forKey:KEY_SIPE_WINDOWS_LOGIN group:GROUP_ACCOUNT_STATUS];
51     
52     int ctype = [[popUp_conntype selectedItem] tag];
53         [account setPreference:[NSNumber numberWithInt:ctype]
54                                         forKey:KEY_SIPE_CONNECTION_TYPE group:GROUP_ACCOUNT_STATUS];
55     
56 }       
58 @end