| author | Zachary West <zacw@adium.im> |
| Fri Oct 16 10:12:34 2009 -0400 (2009-10-16) | |
| changeset 2725 | 9c30ee53dcef |
| parent 1121 | 976b60e1f6f4 |
| child 2913 | 0c5b69d24ed3 |
| permissions | -rw-r--r-- |
| zacw@1033 | 1 |
/* |
| zacw@1033 | 2 |
* Adium is the legal property of its developers, whose names are listed in the copyright file included |
| zacw@1033 | 3 |
* with this source distribution. |
| zacw@1033 | 4 |
* |
| zacw@1033 | 5 |
* This program is free software; you can redistribute it and/or modify it under the terms of the GNU |
| zacw@1033 | 6 |
* General Public License as published by the Free Software Foundation; either version 2 of the License, |
| zacw@1033 | 7 |
* or (at your option) any later version. |
| zacw@1033 | 8 |
* |
| zacw@1033 | 9 |
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even |
| zacw@1033 | 10 |
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General |
| zacw@1033 | 11 |
* Public License for more details. |
| zacw@1033 | 12 |
* |
| zacw@1033 | 13 |
* You should have received a copy of the GNU General Public License along with this program; if not, |
| zacw@1033 | 14 |
* write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
| zacw@1033 | 15 |
*/ |
| zacw@1033 | 16 |
|
| zacw@1033 | 17 |
#import "AILaconicaAccountViewController.h" |
| zacw@1033 | 18 |
#import "AILaconicaAccount.h" |
| zacw@1033 | 19 |
|
| zacw@1033 | 20 |
@implementation AILaconicaAccountViewController |
| zacw@1033 | 21 |
|
| zacw@1033 | 22 |
/*! |
| zacw@1033 | 23 |
* @brief Configure the account view |
| zacw@1033 | 24 |
*/ |
| zacw@1033 | 25 |
- (void)configureForAccount:(AIAccount *)inAccount |
| zacw@1033 | 26 |
{ |
| zacw@1033 | 27 |
[super configureForAccount:inAccount]; |
| zacw@1033 | 28 |
|
| zacw@1121 | 29 |
[textField_connectHost setEnabled:YES]; |
| zacw@1033 | 30 |
|
| zacw@1041 | 31 |
textField_APIpath.stringValue = [account preferenceForKey:LACONICA_PREFERENCE_PATH group:LACONICA_PREF_GROUP] ?: @""; |
| zacw@1033 | 32 |
[textField_APIpath setEnabled:YES]; |
| zacw@2725 | 33 |
|
| zacw@2725 | 34 |
[checkBox_useSSL setEnabled:YES]; |
| zacw@2725 | 35 |
|
| zacw@2725 | 36 |
BOOL useSSL = [[account preferenceForKey:LACONICA_PREFERENCE_SSL group:LACONICA_PREF_GROUP] boolValue]; |
| zacw@2725 | 37 |
[checkBox_useSSL setState:useSSL]; |
| zacw@2725 | 38 |
|
| zacw@1033 | 39 |
} |
| zacw@1033 | 40 |
|
| zacw@1033 | 41 |
/*! |
| zacw@1033 | 42 |
* @brief The Update Interval combo box was changed. |
| zacw@1033 | 43 |
*/ |
| zacw@1033 | 44 |
- (void)saveConfiguration |
| zacw@1033 | 45 |
{ |
| zacw@1033 | 46 |
[super saveConfiguration]; |
| zacw@1033 | 47 |
|
| zacw@1033 | 48 |
[account setPreference:textField_APIpath.stringValue |
| zacw@1041 | 49 |
forKey:LACONICA_PREFERENCE_PATH |
| zacw@1033 | 50 |
group:LACONICA_PREF_GROUP]; |
| zacw@1033 | 51 |
|
| zacw@2725 | 52 |
[account setPreference:[NSNumber numberWithBool:[checkBox_useSSL state]] |
| zacw@2725 | 53 |
forKey:LACONICA_PREFERENCE_SSL |
| zacw@2725 | 54 |
group:LACONICA_PREF_GROUP]; |
| zacw@2725 | 55 |
|
| zacw@1033 | 56 |
} |
| zacw@1033 | 57 |
|
| zacw@1033 | 58 |
@end |