/*
* AppController.h
*
* SafariTabs
*
* Copyright (c) 2007 Stuart Connolly. All rights reserved.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
#import <Cocoa/Cocoa.h>
/* This file is the header for Safari's AppController class. It was produced by
* reverse engineering Safari's mach-o-file using class-dump, available from
* http://www.codethecode.com/Projects/class-dump/
*
* This file is not strictly necessary but it does supress many compiler warnings
* and is extremely useful as a reference for further development.
*/
@interface AppController : NSObject
{
NSMenu *historyMenu;
NSMenuItem *bookmarksMenuItem;
NSMenuItem *viewMenuItem;
NSMenuItem *textEncodingMenuItem;
NSMenuItem *oldViewMenuItem;
NSMenuItem *oldTextEncodingMenuItem;
NSMenu *_dockMenu;
NSArray *_tabbedBrowsingMenuItems;
BOOL _webWidgetExistenceTested;
BOOL _webWidgetExists;
BOOL _closeKeyEquivalentClosesTab;
BOOL _textEncodingMenuLoaded;
int _bookmarksMenuItemIndex;
}
+ (void)initialize;
+ (id)sharedAppController;
+ (id)_settingsDirectoryPath;
- (BOOL)webWidgetExists;
- (BOOL)_computeWebWidgetExists;
- (void)_updateWebWidgetExists;
- (void)awakeFromNib;
- (void)dealloc;
- (void)applicationDidBecomeActive:(id)fp8;
- (BOOL)applicationShouldOpenUntitledFile:(id)fp8;
- (BOOL)applicationOpenUntitledFile:(id)fp8;
- (void)startRendezvousSearchIfNecessary;
- (void)performDelayedLaunchOperations;
- (void)applicationDidFinishLaunching:(id)fp8;
- (void)_savePendingData:(id)fp8;
- (int)applicationShouldTerminate:(id)fp8;
- (void)applicationWillTerminate:(id)fp8;
- (BOOL)application:(id)fp8 openFile:(id)fp12;
- (BOOL)applicationShouldHandleReopen:(id)fp8 hasVisibleWindows:(BOOL)fp12;
- (id)applicationDockMenu:(id)fp8;
- (void)handleURLEvent:(id)fp8 withReplyEvent:(id)fp12;
- (id)settingsDirectoryPath;
- (id)localizedHelpBookName;
- (id)displayNameForURL:(id)fp8 withTitle:(id)fp12;
- (void)confirmSwitchDefaultBrowser;
- (void)showFindPanel:(id)fp8;
- (void)findNext:(id)fp8;
- (void)findPrevious:(id)fp8;
- (void)showActivity:(id)fp8;
- (void)showPreferences:(id)fp8;
- (void)_showResourceFileWithName:(id)fp8 extension:(id)fp12;
- (void)_showHTMLResourceFile:(id)fp8;
- (void)_showRTFResourceFile:(id)fp8;
- (void)showAcknowledgments:(id)fp8;
- (void)showLicense:(id)fp8;
- (void)showShortcuts:(id)fp8;
- (void)showReleaseNotes:(id)fp8;
- (void)showPlugins:(id)fp8;
- (void)showDownloads:(id)fp8;
- (void)removeAllCredentials;
- (void)deleteAllCookies;
- (void)confirmResetSafari:(id)fp8;
- (void)emptyCache;
- (void)confirmEmptyCache:(id)fp8;
- (void)confirmEnableStealthMode;
- (void)togglePrivateBrowsing:(id)fp8;
- (id)safariMenu;
- (id)fileMenu;
- (BOOL)validateUserInterfaceItem:(id)fp8;
- (void)_updateTextEncodingMenu;
- (void)menuNeedsUpdate:(id)fp8;
- (void)resetTextEncodingMenu;
- (void)toggleJavaScriptCanNotOpenWindows:(id)fp8;
- (void)setCloseKeyEquivalentClosesTab:(BOOL)fp8;
- (id)_parentalControlsAuthorizationWithFlags:(unsigned long)fp8;
- (BOOL)_authorizeParent;
- (BOOL)authorizeParent;
- (BOOL)setParentalControlsEnabled:(BOOL)fp8;
- (void)application:(id)fp8 runTest:(unsigned int)fp12 duration:(double)fp16;
@end