You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
1.3 KiB

  1. //
  2. // FLEXGlobalsTableViewController.h
  3. // Flipboard
  4. //
  5. // Created by Ryan Olson on 2014-05-03.
  6. // Copyright (c) 2014 Flipboard. All rights reserved.
  7. //
  8. #import "FLEXTableViewController.h"
  9. @protocol FLEXGlobalsTableViewControllerDelegate;
  10. typedef NS_ENUM(NSUInteger, FLEXGlobalsSection) {
  11. /// NSProcessInfo, Network history, system log,
  12. /// heap, address explorer, libraries, app classes
  13. FLEXGlobalsSectionProcessAndEvents,
  14. /// Browse container, browse bundle, NSBundle.main,
  15. /// NSUserDefaults.standard, UIApplication,
  16. /// app delegate, key window, root VC, cookies
  17. FLEXGlobalsSectionAppShortcuts,
  18. /// UIPasteBoard.general, UIScreen, UIDevice
  19. FLEXGlobalsSectionMisc,
  20. FLEXGlobalsSectionCustom,
  21. FLEXGlobalsSectionCount
  22. };
  23. @interface FLEXGlobalsTableViewController : FLEXTableViewController
  24. @property (nonatomic, weak) id <FLEXGlobalsTableViewControllerDelegate> delegate;
  25. /// We pretend that one of the app's windows is still the key window, even though the explorer window may have become key.
  26. /// We want to display debug state about the application, not about this tool.
  27. + (void)setApplicationWindow:(UIWindow *)applicationWindow;
  28. @end
  29. @protocol FLEXGlobalsTableViewControllerDelegate <NSObject>
  30. - (void)globalsViewControllerDidFinish:(FLEXGlobalsTableViewController *)globalsViewController;
  31. @end