- Disabled MM_RESEND_LAST_FAILURE as it doesn't seem to work
[MacVim/jjgod.git] / MMVimController.h
blob6bf7bb8f9e433840f732df9058eb89541477fcce
1 /* vi:set ts=8 sts=4 sw=4 ft=objc:
3 * VIM - Vi IMproved by Bram Moolenaar
4 * MacVim GUI port by Bjorn Winckler
6 * Do ":help uganda" in Vim to read copying and usage conditions.
7 * Do ":help credits" in Vim to see a list of people who contributed.
8 * See README.txt for an overview of the Vim source code.
9 */
11 #import <Cocoa/Cocoa.h>
12 #import "MacVim.h"
15 // If sendMessage: fails, store the message and resend after a delay.
16 #define MM_RESEND_LAST_FAILURE 0
19 @class MMWindowController;
23 @interface MMVimController : NSObject <MMFrontendProtocol>
25 BOOL isInitialized;
26 MMWindowController *windowController;
27 id backendProxy;
28 BOOL inProcessCommandQueue;
29 NSMutableArray *sendQueue;
30 NSMutableArray *mainMenuItems;
31 NSMutableArray *popupMenuItems;
32 BOOL shouldUpdateMainMenu;
33 NSToolbar *toolbar;
34 NSMutableDictionary *toolbarItemDict;
35 int pid;
36 NSString *serverName;
37 #ifdef MM_RESEND_LAST_FAILURE
38 NSTimer *resendTimer;
39 int resendMsgid;
40 NSData *resendData;
41 #endif
44 - (id)initWithBackend:(id)backend pid:(int)processIdentifier;
45 - (id)backendProxy;
46 - (int)pid;
47 - (void)setServerName:(NSString *)name;
48 - (NSString *)serverName;
49 - (MMWindowController *)windowController;
50 - (void)cleanup;
51 - (void)dropFiles:(NSArray *)filenames;
52 - (void)dropString:(NSString *)string;
53 - (void)sendMessage:(int)msgid data:(NSData *)data;
55 @end
57 // vim: set ft=objc: