QuietUnrar/QuietUnrarAppDelegate.h

48 lines
1.2 KiB
Objective-C

//
// QuietUnrarAppDelegate.h
// QuietUnrar
//
// Created by Robert McGovern on 2009/09/06.
// Copyright 2009 Tarasis. All rights reserved.
//
@import Cocoa;
@import Carbon;
enum
{
kVKC_Shift = 56,
kVKC_Option = 58,
kVKC_Control = 59,
kVKC_rShift = 60, /* Right-hand modifiers; not implemented */
kVKC_rOption = 61,
kVKC_rControl = 62,
kVKC_Command = 55,
};
#define KEYMAP_GET(m, index) ((((uint8_t*)(m))[(index) >> 3] & (1L << ((index) & 7))) ? 1 : 0)
#define BUF_LEN 64000
@class TDNPreferencesWindowController;
@interface QuietUnrarAppDelegate : NSObject <NSApplicationDelegate> {
NSWindow *__weak window;
NSView *__weak passwordView;
NSSecureTextField * __weak passwordField;
}
@property (weak) IBOutlet NSWindow *window;
@property (weak) IBOutlet NSView *passwordView;
@property (weak) IBOutlet NSSecureTextField * passwordField;
@property TDNPreferencesWindowController * preferencesWindowController;
// UI Based methods
- (BOOL) shouldFileBeReplaced:(NSString *) filename;
- (void) alertUserOfMissing:(const char *) volume;
- (void) hideDockIcon: (BOOL) hide;
@property (NS_NONATOMIC_IOSONLY, readonly, copy) NSString *requestArchivePassword;
@end