1234567891011121314151617181920212223242526272829303132333435363738394041 |
- //
- // AppDelegate.h
- // RedditBar
- //
- // Created by Thomas Buck on 30.11.13.
- // Copyright (c) 2013 xythobuz. All rights reserved.
- //
-
- #import <Cocoa/Cocoa.h>
- #import "PrefController.h"
- #import "StateModel.h"
- #import "Reddit.h"
-
- @interface AppDelegate : NSObject <NSApplicationDelegate>
-
- @property (atomic, retain) IBOutlet NSMenu *statusMenu;
- @property (atomic, retain) IBOutlet NSApplication *application;
- @property (weak) IBOutlet NSMenuItem *firstMenuItem;
-
- @property (atomic, retain) NSStatusItem *statusItem;
- @property (atomic, retain) NSImage *statusImage;
- @property (atomic, retain) NSImage *statusHighlightImage;
- @property (atomic, retain) PrefController *prefWindow;
- @property (atomic, retain) StateModel *currentState;
- @property (atomic, retain) Reddit *api;
- @property (atomic, retain) NSArray *menuItems;
- @property (atomic, retain) NSArray *redditItems;
-
- -(IBAction)showPreferences:(id)sender;
- -(IBAction)showAbout:(id)sender;
- -(IBAction)linkToOpen:(id)sender;
-
- -(void)reloadListWithOptions;
- -(void)reloadListIsAuthenticatedCallback;
- -(void)reloadListNotAuthenticatedCallback;
- -(void)reloadListHasSubredditsCallback:(NSArray *)items;
- -(void)reloadListHasFrontpageCallback:(NSArray *)items;
-
- -(void)prefReturnName:(NSString *)name Modhash:(NSString *)modhash subscriptions:(Boolean)subscriptions subreddits:(NSString *)subreddits length:(NSInteger)length;
-
- @end
|