1 /*
2 **  PasswordPanelController.h
3 **
4 **  Copyright (c) 2001, 2002, 2003 Ludovic Marcotte
5 **
6 **  Author: Ludovic Marcotte <ludovic@Sophos.ca>
7 **
8 **  This program is free software; you can redistribute it and/or modify
9 **  it under the terms of the GNU General Public License as published by
10 **  the Free Software Foundation; either version 2 of the License, or
11 **  (at your option) any later version.
12 **
13 **  This program is distributed in the hope that it will be useful,
14 **  but WITHOUT ANY WARRANTY; without even the implied warranty of
15 **  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 **  GNU General Public License for more details.
17 **
18 ** You should have received a copy of the GNU General Public License
19 ** along with this program.  If not, see <http://www.gnu.org/licenses/>.
20 */
21 
22 #ifndef _GNUMail_H_PasswordPanelController
23 #define _GNUMail_H_PasswordPanelController
24 
25 #import <AppKit/AppKit.h>
26 
27 @interface PasswordPanelController: NSWindowController
28 {
29   // Outlets
30   IBOutlet NSSecureTextField *passwordSecureField;
31 
32   // Other ivar
33   NSString *password;
34 }
35 
36 - (id) initWithWindowNibName: (NSString *) windowNibName;
37 - (void) dealloc;
38 
39 //
40 // action methods
41 //
42 
43 - (IBAction) okClicked: (id) sender;
44 - (IBAction) cancelClicked: (id) sender;
45 
46 //
47 // delegate methods
48 //
49 
50 - (void) windowWillClose: (NSNotification *) theNotification;
51 
52 //
53 // access/mutation methods
54 //
55 
56 - (NSString *) password;
57 - (void) setPassword: (NSString *) thePassword;
58 
59 @end
60 
61 #endif // _GNUMail_H_PasswordPanelController
62