26 #import <AppKit/AppKit.h> 27 #import "jni.h" 28 29 @interface CClipboard : NSObject { 30 jobject fClipboardOwner; 31 32 // Track pasteboard changes. Initialized once at the start, and then updated 33 // on an application resume event. If it's different than the last time we claimed 34 // the clipboard that means we lost the clipboard to someone else. 35 NSInteger fChangeCount; 36 } 37 38 + (CClipboard *) sharedClipboard; 39 40 - (void) javaDeclareTypes:(NSArray *)inTypes withOwner:(jobject)inClipboard jniEnv:(JNIEnv *)inEnv; 41 - (void) javaSetData:(NSData *)inData forType:(NSString *) inFormat; 42 43 - (NSArray *) javaGetTypes; 44 - (NSData *) javaGetDataForType:(NSString *)inFormat; 45 46 - (void) pasteboardChangedOwner:(NSPasteboard *)sender; 47 48 @end | 26 #import <AppKit/AppKit.h> 27 #import "jni.h" 28 29 @interface CClipboard : NSObject { 30 jobject fClipboardOwner; 31 32 // Track pasteboard changes. Initialized once at the start, and then updated 33 // on an application resume event. If it's different than the last time we claimed 34 // the clipboard that means we lost the clipboard to someone else. 35 NSInteger fChangeCount; 36 } 37 38 + (CClipboard *) sharedClipboard; 39 40 - (void) javaDeclareTypes:(NSArray *)inTypes withOwner:(jobject)inClipboard jniEnv:(JNIEnv *)inEnv; 41 - (void) javaSetData:(NSData *)inData forType:(NSString *) inFormat; 42 43 - (NSArray *) javaGetTypes; 44 - (NSData *) javaGetDataForType:(NSString *)inFormat; 45 46 @end |