dev.stuconnolly.com / svn / safaritabs

  1. /*
  2.  *  $Id: AppController.h 198 2010-01-06 23:05:30Z stuart $
  3.  *
  4.  *  SafariTabs
  5.  *  http://stuconnolly.com/projects/safaritabs/
  6.  *
  7.  *  Copyright (c) 2010 Stuart Connolly. All rights reserved.
  8.  *
  9.  *  This program is free software: you can redistribute it and/or modify
  10.  *  it under the terms of the GNU General Public License as published by
  11.  *  the Free Software Foundation, either version 3 of the License, or
  12.  *  (at your option) any later version.
  13.  *
  14.  *  This program is distributed in the hope that it will be useful,
  15.  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
  16.  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17.  *  GNU General Public License for more details.
  18.  *
  19.  *  You should have received a copy of the GNU General Public License
  20.  *  along with this program. If not, see <http://www.gnu.org/licenses/>.
  21.  */
  22.  
  23. @class BrowserSessionPersistentState, BrowserWindowPersistentState;
  24.  
  25. @interface AppController : NSObject <NSMenuDelegate, NSUserInterfaceValidations>
  26. {
  27.     NSMenu *historyMenu;
  28.     NSMenuItem *bookmarksMenuItem;
  29.     NSMenuItem *windowMenuItem;
  30.     NSMenuItem *selectNextTabMenuItem;
  31.     NSMenuItem *selectPreviousTabMenuItem;
  32.     NSMenuItem *goBackMenuItem;
  33.     NSMenuItem *goForwardMenuItem;
  34.     NSMenuItem *textEncodingMenuItem;
  35.     NSMenu *_dockMenu;
  36.     NSMenuItem *_shiftedCloseMenuItem;
  37.     NSMenuItem *_shiftedCloseAllMenuItem;
  38.     BrowserWindowPersistentState *_lastClosedWindowState;
  39.     BrowserSessionPersistentState *_lastSessionState;
  40.     NSTimer *_saveSessionStateTimer;
  41.     BOOL _closeKeyEquivalentClosesTab;
  42.     BOOL _textEncodingMenuLoaded;
  43.     BOOL _awaitingModalCloseAllConfirmation;
  44.     BOOL _isTerminating;
  45.     BOOL _lastSessionStateComputed;
  46.     BOOL _startingBonjourSearch;
  47.     BOOL _hasFinishedLaunching;
  48.     NSMutableArray *_deferredURLsToOpen;
  49.     NSMutableArray *_deferredURLsAsHTML;
  50.     NSInteger _bookmarksMenuItemIndex;
  51. }
  52.  
  53. + (BOOL)hasAppleIPAddress;
  54. + (void)initialize;
  55. + (void)muteAudio:(BOOL)arg1;
  56. + (id)sharedAppController;
  57. + (id)webWidgetIdentifier;
  58. - (void)_addDeferredURLToOpen:(id)arg1 forceHTML:(BOOL)arg2;
  59. - (BOOL)_event:(id)arg1 isKeyEquivalentForMenuItem:(id)arg2;
  60. - (BOOL)_eventIsOldSelectNextPreviousTabKeyEquivalent:(id)arg1 direction:(char *)arg2;
  61. - (void)addBookmarksForTabs:(id)arg1;
  62. - (BOOL)application:(id)arg1 openFile:(id)arg2;
  63. - (void)application:(id)arg1 runTest:(NSUInteger)arg2 duration:(double)arg3;
  64. - (void)applicationDidBecomeActive:(id)arg1;
  65. - (void)applicationDidFinishLaunching:(id)arg1;
  66. - (id)applicationDockMenu:(id)arg1;
  67. - (BOOL)applicationOpenUntitledFile:(id)arg1;
  68. - (BOOL)applicationShouldHandleReopen:(id)arg1 hasVisibleWindows:(BOOL)arg2;
  69. - (BOOL)applicationShouldOpenUntitledFile:(id)arg1;
  70. - (NSUInteger)applicationShouldTerminate:(id)arg1;
  71. - (void)applicationWillTerminate:(id)arg1;
  72. - (BOOL)authorizeParent;
  73. - (void)awakeFromNib;
  74. - (void)browserWindowWillClose:(id)arg1;
  75. - (id)cachesDirectoryPath;
  76. - (BOOL)confirmClosingAllWindows;
  77. - (void)confirmEmptyCache:(id)arg1;
  78. - (void)confirmResetSafari:(id)arg1;
  79. - (void)consolidateTabsAndWindows:(id)arg1;
  80. - (void)dealloc;
  81. - (id)displayNameForURL:(id)arg1 withTitle:(id)arg2;
  82. - (void)emptyCache;
  83. - (id)environmentForSafariProcesses;
  84. - (BOOL)eventIsGoBackKeyEquivalent:(id)arg1;
  85. - (BOOL)eventIsGoForwardKeyEquivalent:(id)arg1;
  86. - (BOOL)eventIsSelectNextTabKeyEquivalent:(id)arg1;
  87. - (BOOL)eventIsSelectPreviousTabKeyEquivalent:(id)arg1;
  88. - (void)exportBookmarks:(id)arg1;
  89. - (BOOL)handleOpenEvent:(id)arg1 forceHTML:(BOOL)arg2;
  90. - (BOOL)hasDeferredURLsToOpen;
  91. - (void)importBookmarks:(id)arg1;
  92. - (BOOL)isTerminating;
  93. - (id)localizedHelpBookName;
  94. - (BOOL)menuHasKeyEquivalent:(id)arg1 forEvent:(id)arg2 target:(id *)arg3 action:(SEL *)arg4;
  95. - (void)menuNeedsUpdate:(id)arg1;
  96. - (id)parentalControlsAuthorizationWithFlags:(unsigned long)arg1;
  97. - (void)reloadObeyingLocationField:(id)arg1;
  98. - (void)reopenLastSession:(id)arg1;
  99. - (void)reopenLastWindow:(id)arg1;
  100. - (void)resetTextEncodingMenu;
  101. - (void)sessionStateDidChange;
  102. - (BOOL)setParentalControlsEnabled:(BOOL)arg1;
  103. - (id)settingsDirectoryPath;
  104. - (void)showAcknowledgments:(id)arg1;
  105. - (void)showActivity:(id)arg1;
  106. - (void)showDownloads:(id)arg1;
  107. - (void)showPlugins:(id)arg1;
  108. - (void)showPreferences:(id)arg1;
  109. - (void)showShortcuts:(id)arg1;
  110. - (id)siteIconForURLString:(id)arg1;
  111. - (void)stopLoading:(id)arg1;
  112. - (void)toggleJavaScriptCanNotOpenWindows:(id)arg1;
  113. - (void)togglePrivateBrowsing:(id)arg1;
  114. - (void)togglePrivateBrowsingWithoutConfirmation:(id)arg1;
  115. - (void)toggleZoomTextOnly:(id)arg1;
  116. - (void)updateCloseKeyEquivalents;
  117. - (BOOL)validateUserInterfaceItem:(id)arg1;
  118. - (id)windowMenuItem;
  119.  
  120. @end
  121.