// // DNSCrypt.h // DNSCrypt // // Created by OpenDNS, Inc. on 8/11/11. // Copyright (c) 2011 OpenDNS, Inc. All rights reserved. // #import #import #define kDNSCRYPT_PACKAGE_VERSION @"0.12" #define kDNSCRYPT_PREFPANE_APP_PATH @"/Library/PreferencePanes/DNSCrypt.prefPane" #define kDNSCRYPT_USR_BASE_DIR kDNSCRYPT_PREFPANE_APP_PATH @"/Contents/Resources/usr" #define kDNSCRIPT_SCRIPTS_BASE_DIR kDNSCRYPT_USR_BASE_DIR @"/scripts" #define kDNSCRYPT_VAR_BASE_DIR @"/Library/Application Support/DNSCrypt" #define kDNSCRYPT_CONTROL_DIR kDNSCRYPT_VAR_BASE_DIR @"/control" #define kOPENDNS_URL @"http://www.opendns.com" #define kBUNDLE_IDENTIFIER @"com.opendns.osx.DNSCrypt" #define kCHECKBOXES_FREEZE_DELAY 4.0 typedef enum { kDNS_CONFIGURATION_UNKNOWN, kDNS_CONFIGURATION_VANILLA, kDNS_CONFIGURATION_LOCALHOST, kDNS_CONFIGURATION_OPENDNS } DNSConfigurationState; @interface DNSCrypt : NSPreferencePane { AuthorizationRef auth; } @property (weak) IBOutlet NSButton *dnscryptButton; @property (weak) IBOutlet NSButton *opendnsButton; @property (weak) IBOutlet NSButton *familyShieldButton; @property (weak) IBOutlet NSButton *fallbackButton; @property (weak) IBOutlet NSTextField *currentResolverTextField; @property (weak) IBOutlet NSImageView *statusImageView; @property (weak) IBOutlet NSTextField *statusText; @property (weak) IBOutlet WebView *previewNotesWebView; @property (weak) IBOutlet WebView *releaseNotesWebView; @property (weak) IBOutlet WebView *feedbackWebView; @property (weak) IBOutlet WebView *aboutWebView; - (void) mainViewDidLoad; - (IBAction)dnscryptButtonPressed:(NSButton *)sender; - (IBAction)opendnsButtonPressed:(NSButton *)sender; - (IBAction)familyShieldButtonPressed:(NSButton *)sender; - (IBAction)fallbackButtonPressed:(NSButton *)sender; - (IBAction)openDNSLinkPushed:(NSButton *)sender; @end