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