-
Notifications
You must be signed in to change notification settings - Fork 2
/
XMFabDocument.h
81 lines (54 loc) · 1.75 KB
/
XMFabDocument.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
//
// CodexFab
//
// XMFabDocument.h
//
// Licensed under CC Attribution License 3.0 <http://creativecommons.org/licenses/by/3.0/>
//
// Based on CocoaFob by Gleb Dolgich
// <http://github.com/gbd/cocoafob/tree/master>
//
// Created by Alex Clarke on 10/06/09.
// Copyright 2009 MachineCodex Software Australia. All rights reserved.
// <http://www.machinecodex.com>
#import <Cocoa/Cocoa.h>
#import <WebKit/WebKit.h>
@interface XMFabDocument : NSPersistentDocument {
NSManagedObjectModel * managedObjectModel;
IBOutlet WebView * webView;
IBOutlet NSPanel * obfuscatorPanel;
NSString * userName;
NSString * code;
NSString * validationResult;
NSString * licenseURL;
NSString * obfuscatedPublicKey;
BOOL canGenerateDSA;
BOOL canGenerateReg;
BOOL canValidate;
}
@property (nonatomic, retain) NSString *licenseURL;
@property BOOL canValidate;
@property BOOL canGenerateReg;
@property BOOL canGenerateDSA;
@property (nonatomic, retain) NSString *validationResult;
@property (nonatomic, retain) NSString *code;
@property (nonatomic, retain) NSString *userName;
@property (nonatomic, retain) NSString *obfuscatedPublicKey;
- (NSManagedObjectModel *)managedObjectModel;
- (IBAction) generateDSA:(id)sender;
- (IBAction) generateRegCode:(id)sender;
- (IBAction) validateRegCode:(id)sender;
- (id) product;
- (id) pem;
@end
@interface XMFabDocument (PathUtilities)
- (NSString *)applicationSupportFolder;
- (NSString *) pathForProductNamed:(NSString *)name;
- (NSString *) productKeysPath;
@end
@interface XMFabDocument (PublicKeyObfuscation)
- (IBAction) showObfusactorPanel:(id)sender;
- (IBAction) closeObfusactorPanel:(id)sender;
- (void)generateObfuscatedCode:(id)sender;
- (NSString *)obfuscatedCocoaCodeForPublicKey:(NSString*)publicKeyString;
@end