AIHyperlinks universal building
[adiumx.git] / Source / AIEditAccountWindowController.h
blobd52f64b8d7c8a6a97f42e0dc6c48ffa8ac9a3f0c
1 /*
2 * Adium is the legal property of its developers, whose names are listed in the copyright file included
3 * with this source distribution.
4 *
5 * This program is free software; you can redistribute it and/or modify it under the terms of the GNU
6 * General Public License as published by the Free Software Foundation; either version 2 of the License,
7 * or (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even
10 * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
11 * Public License for more details.
13 * You should have received a copy of the GNU General Public License along with this program; if not,
14 * write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17 #import <Adium/AIWindowController.h>
19 @class AIAccountProxySettings, AIAccountViewController, ESImageViewWithImagePicker;
21 @interface AIEditAccountWindowController : AIWindowController {
22 //Account preferences
23 IBOutlet NSImageView *image_serviceIcon;
24 IBOutlet NSButton *button_chooseIcon;
25 IBOutlet NSTextField *textField_accountDescription;
26 IBOutlet NSTextField *textField_serviceName;
27 IBOutlet ESImageViewWithImagePicker *imageView_userIcon;
28 IBOutlet NSTabView *tabView_auxiliary;
29 IBOutlet NSButton *checkBox_autoConnect;
30 IBOutlet NSButton *button_cancel;
31 IBOutlet NSButton *button_OK;
33 //Replacable views
34 IBOutlet NSView *view_accountSetup;
35 IBOutlet NSView *view_accountProxy;
36 IBOutlet NSView *view_accountProfile;
37 IBOutlet NSView *view_accountOptions;
38 IBOutlet NSView *view_accountPrivacy;
40 //Current configuration
41 AIAccountViewController *accountViewController;
42 AIAccountProxySettings *accountProxyController;
43 AIAccount *account;
45 NSData *userIconData;
46 BOOL didDeleteUserIcon;
48 //Delete if the sheet is canceled (should be YES when called on a new account, NO otherwise)
49 BOOL isNewAccount;
52 + (void)editAccount:(AIAccount *)account onWindow:(id)parentWindow isNewAccount:(BOOL)inisNewAccount;
53 - (IBAction)cancel:(id)sender;
54 - (IBAction)okay:(id)sender;
56 @end