/*
* $Id: AppController.h 198 2010-01-06 23:05:30Z stuart $
*
* SafariTabs
* http://stuconnolly.com/projects/safaritabs/
*
* Copyright (c) 2010 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 3 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, see <http://www.gnu.org/licenses/>.
*/
@class BrowserSessionPersistentState, BrowserWindowPersistentState;
@interface AppController : NSObject <NSMenuDelegate, NSUserInterfaceValidations>
{
NSMenu *historyMenu;
NSMenuItem *bookmarksMenuItem;
NSMenuItem *windowMenuItem;
NSMenuItem *selectNextTabMenuItem;
NSMenuItem *selectPreviousTabMenuItem;
NSMenuItem *goBackMenuItem;
NSMenuItem *goForwardMenuItem;
NSMenuItem *textEncodingMenuItem;
NSMenu *_dockMenu;
NSMenuItem *_shiftedCloseMenuItem;
NSMenuItem *_shiftedCloseAllMenuItem;
BrowserWindowPersistentState *_lastClosedWindowState;
BrowserSessionPersistentState *_lastSessionState;
NSTimer *_saveSessionStateTimer;
BOOL _closeKeyEquivalentClosesTab;
BOOL _textEncodingMenuLoaded;
BOOL _awaitingModalCloseAllConfirmation;
BOOL _isTerminating;
BOOL _lastSessionStateComputed;
BOOL _startingBonjourSearch;
BOOL _hasFinishedLaunching;
NSMutableArray *_deferredURLsToOpen;
NSMutableArray *_deferredURLsAsHTML;
NSInteger _bookmarksMenuItemIndex;
}
+ (BOOL)hasAppleIPAddress;
+ (void)initialize;
+ (void)muteAudio:(BOOL)arg1;
+ (id)sharedAppController;
+ (id)webWidgetIdentifier;
- (void)_addDeferredURLToOpen:(id)arg1 forceHTML:(BOOL)arg2;
- (BOOL)_event:(id)arg1 isKeyEquivalentForMenuItem:(id)arg2;
- (BOOL)_eventIsOldSelectNextPreviousTabKeyEquivalent:(id)arg1 direction:(char *)arg2;
- (void)addBookmarksForTabs:(id)arg1;
- (BOOL)application:(id)arg1 openFile:(id)arg2;
- (void)application:(id)arg1 runTest:(NSUInteger)arg2 duration:(double)arg3;
- (void)applicationDidBecomeActive:(id)arg1;
- (void)applicationDidFinishLaunching:(id)arg1;
- (id)applicationDockMenu:(id)arg1;
- (BOOL)applicationOpenUntitledFile:(id)arg1;
- (BOOL)applicationShouldHandleReopen:(id)arg1 hasVisibleWindows:(BOOL)arg2;
- (BOOL)applicationShouldOpenUntitledFile:(id)arg1;
- (NSUInteger)applicationShouldTerminate:(id)arg1;
- (void)applicationWillTerminate:(id)arg1;
- (BOOL)authorizeParent;
- (void)awakeFromNib;
- (void)browserWindowWillClose:(id)arg1;
- (id)cachesDirectoryPath;
- (BOOL)confirmClosingAllWindows;
- (void)confirmEmptyCache:(id)arg1;
- (void)confirmResetSafari:(id)arg1;
- (void)consolidateTabsAndWindows:(id)arg1;
- (void)dealloc;
- (id)displayNameForURL:(id)arg1 withTitle:(id)arg2;
- (void)emptyCache;
- (id)environmentForSafariProcesses;
- (BOOL)eventIsGoBackKeyEquivalent:(id)arg1;
- (BOOL)eventIsGoForwardKeyEquivalent:(id)arg1;
- (BOOL)eventIsSelectNextTabKeyEquivalent:(id)arg1;
- (BOOL)eventIsSelectPreviousTabKeyEquivalent:(id)arg1;
- (void)exportBookmarks:(id)arg1;
- (BOOL)handleOpenEvent:(id)arg1 forceHTML:(BOOL)arg2;
- (BOOL)hasDeferredURLsToOpen;
- (void)importBookmarks:(id)arg1;
- (BOOL)isTerminating;
- (id)localizedHelpBookName;
- (BOOL)menuHasKeyEquivalent:(id)arg1 forEvent:(id)arg2 target:(id *)arg3 action:(SEL *)arg4;
- (void)menuNeedsUpdate:(id)arg1;
- (id)parentalControlsAuthorizationWithFlags:(unsigned long)arg1;
- (void)reloadObeyingLocationField:(id)arg1;
- (void)reopenLastSession:(id)arg1;
- (void)reopenLastWindow:(id)arg1;
- (void)resetTextEncodingMenu;
- (void)sessionStateDidChange;
- (BOOL)setParentalControlsEnabled:(BOOL)arg1;
- (id)settingsDirectoryPath;
- (void)showAcknowledgments:(id)arg1;
- (void)showActivity:(id)arg1;
- (void)showDownloads:(id)arg1;
- (void)showPlugins:(id)arg1;
- (void)showPreferences:(id)arg1;
- (void)showShortcuts:(id)arg1;
- (id)siteIconForURLString:(id)arg1;
- (void)stopLoading:(id)arg1;
- (void)toggleJavaScriptCanNotOpenWindows:(id)arg1;
- (void)togglePrivateBrowsing:(id)arg1;
- (void)togglePrivateBrowsingWithoutConfirmation:(id)arg1;
- (void)toggleZoomTextOnly:(id)arg1;
- (void)updateCloseKeyEquivalents;
- (BOOL)validateUserInterfaceItem:(id)arg1;
- (id)windowMenuItem;
@end