|
Packit |
1fb8d4 |
/**
|
|
Packit |
1fb8d4 |
* FreeRDP: A Remote Desktop Protocol Implementation
|
|
Packit |
1fb8d4 |
* MacFreeRDP
|
|
Packit |
1fb8d4 |
*
|
|
Packit |
1fb8d4 |
* Copyright 2013 Christian Hofstaedtler
|
|
Packit |
1fb8d4 |
*
|
|
Packit |
1fb8d4 |
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
Packit |
1fb8d4 |
* you may not use this file except in compliance with the License.
|
|
Packit |
1fb8d4 |
* You may obtain a copy of the License at
|
|
Packit |
1fb8d4 |
*
|
|
Packit |
1fb8d4 |
* http://www.apache.org/licenses/LICENSE-2.0
|
|
Packit |
1fb8d4 |
*
|
|
Packit |
1fb8d4 |
* Unless required by applicable law or agreed to in writing, software
|
|
Packit |
1fb8d4 |
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
Packit |
1fb8d4 |
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
Packit |
1fb8d4 |
* See the License for the specific language governing permissions and
|
|
Packit |
1fb8d4 |
* limitations under the License.
|
|
Packit |
1fb8d4 |
*/
|
|
Packit |
1fb8d4 |
|
|
Packit |
1fb8d4 |
#import <Cocoa/Cocoa.h>
|
|
Packit |
1fb8d4 |
|
|
Packit |
1fb8d4 |
@interface PasswordDialog : NSWindowController
|
|
Packit |
1fb8d4 |
{
|
|
Packit Service |
5a9772 |
@public
|
|
Packit Service |
5a9772 |
NSTextField *usernameText;
|
|
Packit Service |
5a9772 |
NSTextField *passwordText;
|
|
Packit Service |
5a9772 |
NSTextField *messageLabel;
|
|
Packit Service |
5a9772 |
NSString *serverHostname;
|
|
Packit Service |
5a9772 |
NSString *username;
|
|
Packit Service |
5a9772 |
NSString *password;
|
|
Packit Service |
5a9772 |
NSString *domain;
|
|
Packit |
1fb8d4 |
BOOL modalCode;
|
|
Packit |
1fb8d4 |
}
|
|
Packit Service |
5a9772 |
@property(retain) IBOutlet NSTextField *usernameText;
|
|
Packit Service |
5a9772 |
@property(retain) IBOutlet NSTextField *passwordText;
|
|
Packit Service |
5a9772 |
@property(retain) IBOutlet NSTextField *messageLabel;
|
|
Packit |
1fb8d4 |
|
|
Packit Service |
5a9772 |
- (IBAction)onOK:(NSObject *)sender;
|
|
Packit Service |
5a9772 |
- (IBAction)onCancel:(NSObject *)sender;
|
|
Packit |
1fb8d4 |
|
|
Packit Service |
5a9772 |
@property(retain) NSString *serverHostname;
|
|
Packit Service |
5a9772 |
@property(retain) NSString *username;
|
|
Packit Service |
5a9772 |
@property(retain) NSString *password;
|
|
Packit Service |
5a9772 |
@property(retain) NSString *domain;
|
|
Packit |
1fb8d4 |
@property(readonly) BOOL modalCode;
|
|
Packit |
1fb8d4 |
|
|
Packit Service |
5a9772 |
- (BOOL)runModal:(NSWindow *)mainWindow;
|
|
Packit |
1fb8d4 |
|
|
Packit |
1fb8d4 |
@end
|