48 lines
1.5 KiB
Objective-C
48 lines
1.5 KiB
Objective-C
//
|
|
// Controller.h
|
|
// Twittia 2
|
|
//
|
|
// Created by Jeena on 15.04.10.
|
|
// Licence: BSD (see attached LICENCE.txt file).
|
|
//
|
|
|
|
#import <Cocoa/Cocoa.h>
|
|
#import <Webkit/Webkit.h>
|
|
#import "ViewDelegate.h"
|
|
#import <Carbon/Carbon.h>
|
|
#import "Constants.h"
|
|
#import "OAuth.h"
|
|
|
|
|
|
@interface Controller : NSObject {
|
|
IBOutlet WebView *timelineView;
|
|
IBOutlet NSWindow *timelineViewWindow;
|
|
IBOutlet WebView *mentionsView;
|
|
IBOutlet NSWindow *mentionsViewWindow;
|
|
IBOutlet NSMenuItem *globalHotkeyMenuItem;
|
|
IBOutlet NSImageView *logoLayer;
|
|
ViewDelegate *viewDelegate;
|
|
OAuth *oauth;
|
|
}
|
|
|
|
@property (retain, nonatomic) IBOutlet WebView *timelineView;
|
|
@property (retain, nonatomic) IBOutlet NSWindow *timelineViewWindow;
|
|
@property (retain, nonatomic) IBOutlet WebView *mentionsView;
|
|
@property (retain, nonatomic) IBOutlet NSWindow *mentionsViewWindow;
|
|
@property (retain, nonatomic) IBOutlet NSMenuItem *globalHotkeyMenuItem;
|
|
@property (retain, nonatomic) IBOutlet NSImageView *logoLayer;
|
|
@property (retain, nonatomic) IBOutlet ViewDelegate *viewDelegate;
|
|
@property (retain, nonatomic) IBOutlet OAuth *oauth;
|
|
|
|
- (void)authentificationSucceded:(id)sender;
|
|
- (void)initWebViews;
|
|
- (void)initHotKeys;
|
|
- (void)openNewTweetWindowInReplyTo:(NSString *)userName statusId:(NSString *)statusId;
|
|
- (NSString *)pluginURL;
|
|
- (void)handleGetURLEvent:(NSAppleEventDescriptor *)event withReplyEvent:(NSAppleEventDescriptor *)replyEvent;
|
|
- (void)unreadMentions:(NSInteger)count;
|
|
- (void)openURL:(NSString *)url;
|
|
|
|
OSStatus handler(EventHandlerCallRef nextHandler, EventRef theEvent, void* userData);
|
|
|
|
@end
|