header, schmeader
[adiumx.git] / Source / AINewContactWindowController.h
blob633f58299c974b6c36553218b2743dd8b595411a
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 #define PREF_GROUP_ADD_CONTACT @"Add Contact"
20 #define KEY_ADD_CONTACT_TO @"Add Contacts to account"
22 @class AIService, AILocalizationButton, AILocalizationTextField;
23 @protocol AIListObjectObserver;
25 @interface AINewContactWindowController : AIWindowController <AIListObjectObserver> {
26 IBOutlet NSPopUpButton *popUp_contactType;
27 IBOutlet NSPopUpButton *popUp_targetGroup;
28 IBOutlet NSTextField *textField_contactName;
29 IBOutlet NSTextField *textField_contactAlias;
30 IBOutlet NSTableView *tableView_accounts;
31 IBOutlet NSImageView *imageView_service;
33 IBOutlet AILocalizationButton *button_add;
34 IBOutlet AILocalizationButton *button_cancel;
36 IBOutlet AILocalizationTextField *textField_type;
37 IBOutlet AILocalizationTextField *textField_alias;
38 IBOutlet AILocalizationTextField *textField_inGroup;
39 IBOutlet AILocalizationTextField *textField_addToAccounts;
40 IBOutlet NSTextField *textField_contactNameLabel;
42 IBOutlet AILocalizationTextField *textField_searchInAB;
44 NSArray *accounts;
45 NSString *contactName;
46 AIService *service;
47 NSString *uniqueID;
50 + (void)promptForNewContactOnWindow:(NSWindow *)parentWindow name:(NSString *)contact service:(AIService *)inService;
51 - (IBAction)cancel:(id)sender;
52 - (IBAction)addContact:(id)sender;
53 - (IBAction)searchInAB:(id)sender;
55 @end