2 * Adium is the legal property of its developers, whose names are listed in the copyright file included
3 * with this source distribution.
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.
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 #define LOGIN_PREFERENCES_FILE_NAME @"Login Preferences" //Login preferences file name
18 #define LOGIN_SHOW_WINDOW @"Show Login Window" //Should hide the login window
19 #define LOGIN_LAST_USER @"Last Login Name" //Last logged in user
21 @
class AILoginWindowController
;
23 @interface AILoginController
: NSObject
{
24 IBOutlet AIAdium
*adium
;
26 NSString
*currentUser
; //The current logged in username
27 NSString
*userDirectory
; //The current user's Adium home directory
28 AILoginWindowController
*loginWindowController
; //The login select window
29 id target
; //Used to send our owner a 'login complete'
33 - (NSString
*)userDirectory
;
34 - (NSString
*)currentUser
;
38 - (void)initController
;
39 - (void)closeController
;
40 - (void)requestUserNotifyingTarget
:(id
)inTarget selector
:(SEL
)inSelector
;
41 - (NSArray
*)userArray
;
42 - (void)deleteUser
:(NSString
*)inUserName
;
43 - (void)addUser
:(NSString
*)inUserName
;
44 - (void)renameUser
:(NSString
*)oldName to
:(NSString
*)newName
;
45 - (void)loginAsUser
:(NSString
*)userName
;