dev.stuconnolly.com / svn / safaritabs

  1. /*
  2.  *  AppController.h
  3.  *
  4.  *  SafariTabs
  5.  *
  6.  *  Copyright (c) 2007 Stuart Connolly. All rights reserved.
  7.  *
  8.  *  This program is free software; you can redistribute it and/or
  9.  *  modify it under the terms of the GNU General Public License
  10.  *  as published by the Free Software Foundation; either version 2
  11.  *  of the License, or (at your option) any later version.
  12.  *
  13.  *  This program is distributed in the hope that it will be useful,
  14.  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
  15.  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16.  *  GNU General Public License for more details.
  17.  *
  18.  *  You should have received a copy of the GNU General Public License
  19.  *  along with this program; if not, write to the Free Software
  20.  *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  21.  */
  22.  
  23. #import <Cocoa/Cocoa.h>
  24.  
  25. /*  This file is the header for Safari's AppController class. It was produced by
  26.  *  reverse engineering Safari's mach-o-file using class-dump, available from
  27.  *  http://www.codethecode.com/Projects/class-dump/
  28.  *
  29.  *  This file is not strictly necessary but it does supress many compiler warnings
  30.  *  and is extremely useful as a reference for further development.
  31.  */
  32.  
  33. @interface AppController : NSObject
  34. {
  35.     NSMenu *historyMenu;
  36.     NSMenuItem *bookmarksMenuItem;
  37.     NSMenuItem *viewMenuItem;
  38.     NSMenuItem *textEncodingMenuItem;
  39.     NSMenuItem *oldViewMenuItem;
  40.     NSMenuItem *oldTextEncodingMenuItem;
  41.     NSMenu *_dockMenu;
  42.     NSArray *_tabbedBrowsingMenuItems;
  43.     BOOL _webWidgetExistenceTested;
  44.     BOOL _webWidgetExists;
  45.     BOOL _closeKeyEquivalentClosesTab;
  46.     BOOL _textEncodingMenuLoaded;
  47.     int _bookmarksMenuItemIndex;
  48. }
  49.  
  50. + (void)initialize;
  51. + (id)sharedAppController;
  52. + (id)_settingsDirectoryPath;
  53. - (BOOL)webWidgetExists;
  54. - (BOOL)_computeWebWidgetExists;
  55. - (void)_updateWebWidgetExists;
  56. - (void)awakeFromNib;
  57. - (void)dealloc;
  58. - (void)applicationDidBecomeActive:(id)fp8;
  59. - (BOOL)applicationShouldOpenUntitledFile:(id)fp8;
  60. - (BOOL)applicationOpenUntitledFile:(id)fp8;
  61. - (void)startRendezvousSearchIfNecessary;
  62. - (void)performDelayedLaunchOperations;
  63. - (void)applicationDidFinishLaunching:(id)fp8;
  64. - (void)_savePendingData:(id)fp8;
  65. - (int)applicationShouldTerminate:(id)fp8;
  66. - (void)applicationWillTerminate:(id)fp8;
  67. - (BOOL)application:(id)fp8 openFile:(id)fp12;
  68. - (BOOL)applicationShouldHandleReopen:(id)fp8 hasVisibleWindows:(BOOL)fp12;
  69. - (id)applicationDockMenu:(id)fp8;
  70. - (void)handleURLEvent:(id)fp8 withReplyEvent:(id)fp12;
  71. - (id)settingsDirectoryPath;
  72. - (id)localizedHelpBookName;
  73. - (id)displayNameForURL:(id)fp8 withTitle:(id)fp12;
  74. - (void)confirmSwitchDefaultBrowser;
  75. - (void)showFindPanel:(id)fp8;
  76. - (void)findNext:(id)fp8;
  77. - (void)findPrevious:(id)fp8;
  78. - (void)showActivity:(id)fp8;
  79. - (void)showPreferences:(id)fp8;
  80. - (void)_showResourceFileWithName:(id)fp8 extension:(id)fp12;
  81. - (void)_showHTMLResourceFile:(id)fp8;
  82. - (void)_showRTFResourceFile:(id)fp8;
  83. - (void)showAcknowledgments:(id)fp8;
  84. - (void)showLicense:(id)fp8;
  85. - (void)showShortcuts:(id)fp8;
  86. - (void)showReleaseNotes:(id)fp8;
  87. - (void)showPlugins:(id)fp8;
  88. - (void)showDownloads:(id)fp8;
  89. - (void)removeAllCredentials;
  90. - (void)deleteAllCookies;
  91. - (void)confirmResetSafari:(id)fp8;
  92. - (void)emptyCache;
  93. - (void)confirmEmptyCache:(id)fp8;
  94. - (void)confirmEnableStealthMode;
  95. - (void)togglePrivateBrowsing:(id)fp8;
  96. - (id)safariMenu;
  97. - (id)fileMenu;
  98. - (BOOL)validateUserInterfaceItem:(id)fp8;
  99. - (void)_updateTextEncodingMenu;
  100. - (void)menuNeedsUpdate:(id)fp8;
  101. - (void)resetTextEncodingMenu;
  102. - (void)toggleJavaScriptCanNotOpenWindows:(id)fp8;
  103. - (void)setCloseKeyEquivalentClosesTab:(BOOL)fp8;
  104. - (id)_parentalControlsAuthorizationWithFlags:(unsigned long)fp8;
  105. - (BOOL)_authorizeParent;
  106. - (BOOL)authorizeParent;
  107. - (BOOL)setParentalControlsEnabled:(BOOL)fp8;
  108. - (void)application:(id)fp8 runTest:(unsigned int)fp12 duration:(double)fp16;
  109.  
  110. @end