From ba310e8b58d686ee9897b26a7edab5b778a8d96f Mon Sep 17 00:00:00 2001 From: jnj Date: Thu, 13 Nov 2008 18:59:12 +0000 Subject: Add remaining plugins git-svn-id: https://blacktree-elements-public.googlecode.com/svn/trunk@41 57e2f9b5-c12c-0410-8e95-a1ee7272c91a --- .../PrivateHeaders/NDAppleScriptObject_Protocols.h | 49 ++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 QSFoundation.framework/Versions/A/PrivateHeaders/NDAppleScriptObject_Protocols.h (limited to 'QSFoundation.framework/Versions/A/PrivateHeaders/NDAppleScriptObject_Protocols.h') diff --git a/QSFoundation.framework/Versions/A/PrivateHeaders/NDAppleScriptObject_Protocols.h b/QSFoundation.framework/Versions/A/PrivateHeaders/NDAppleScriptObject_Protocols.h new file mode 100644 index 0000000..b0f8a2d --- /dev/null +++ b/QSFoundation.framework/Versions/A/PrivateHeaders/NDAppleScriptObject_Protocols.h @@ -0,0 +1,49 @@ +/*! + @header NDAppleScriptObject_Protocols + @abstract Header file for the protocols NDAppleScriptObjectSendEvent and NDAppleScriptObjectActive + @discussion The protocols NDAppleScriptObjectSendEvent and NDAppleScriptObjectActive are used by NDAppleScriptObject + + Created by Nathan Day on Sat Feb 16 2002. + Copyright © 2001 Nathan Day. All rights reserved. + */ + +#import +#import + +/*! + @protocol NDAppleScriptObjectSendEvent + @abstract Protocol used by NDAppleScriptObject + @discussion The protocol NDAppleScriptObjectSendEvent is implemented by any object that wishes to act as an AppleEvent send target as passed to the method setAppleEventSendTarget:. + */ +@protocol NDAppleScriptObjectSendEvent +/*! + @method sendAppleEvent:sendMode:sendPriority:timeOutInTicks:idleProc:filterProc: + @abstract Passes an event to be executed by a AppleScript to the receiver + @discussion Called every time the AppleScript is about to send an AppleEvent. The method sendAppleEvent:sendMode:sendPriority:timeOutInTicks:idleProc:filterProc: can be used to intercept every AppleEvent that the AppleScript would send so that it can be modified or redirected. For example AppleEvent for GUI interaction like “display dialog” need to be sent within the main run loop and thread. The class NDAppleScriptObject implements this protocol it’s self and so you can pass this message onto your NDAppleScriptObject object. + @param appleEventDescriptor An NSAppleEventDescriptor containing the event to be sent. + @param sendMode Specifies various options for how the server application should handle the Apple event. To obtain a value for this parameter, you add together constants to set bits that specify the reply mode, the interaction level, the application switch mode, the reconnection mode, and the return receipt mode. The constants are described in AESendMode . + @param sendPriority A value that specifies the priority for processing the Apple event. You can specify normal or high priority, using the constants described in AESendMode . + @param timeOutInTicks If the reply mode specified in the sendMode parameter is kAEWaitReply, or if a return receipt is requested, this parameter specifies the length of time (in ticks) that the client application is willing to wait for the reply or return receipt from the server application before timing out. Most applications should use the kAEDefaultTimeout constant, which tells the Apple Event Manager to provide an appropriate timeout duration. If the value of this parameter is kNoTimeOut, the Apple event never times out. These constants are described in “Timeout Constants” . + @param idleProc

A universal procedure pointer to a function that handles events (such as update, operating-system, activate, and null events) that your application receives while waiting for a reply. Your idle function can also perform other tasks (such as displaying a wristwatch or spinning beach ball cursor) while waiting for a reply or a return receipt.

+

If your application specifies the kAEWaitReply flag in the sendMode parameter then it must provide an idle function—otherwise, you can pass a value of NULL for this parameter. For more information on the idle function, see AEIdleProcPtr.

+ @param filterProc A universal procedure pointer to a function that determines which incoming Apple events should be received while the handler waits for a reply or a return receipt. If your application doesn’t need to filter Apple events, you can pass a value of NULL for this parameter. If you do so, no application-oriented Apple events are processed while waiting. For more information on the filter function, see AEFilterProcPtr. + @result A NSAppleEventDescriptor contain the result. + */ +- (NSAppleEventDescriptor *)sendAppleEvent:(NSAppleEventDescriptor *)appleEventDescriptor sendMode:(AESendMode)sendMode sendPriority:(AESendPriority)sendPriority timeOutInTicks:(long)timeOutInTicks idleProc:(AEIdleUPP)idleProc filterProc:(AEFilterUPP)filterProc; +@end + +/*! +@protocol NDAppleScriptObjectActive +@abstract Protocol used by NDAppleScriptObject +@discussion The protocol NDAppleScriptObjectActive is implemented by any object that wishes to. +*/ +@protocol NDAppleScriptObjectActive +/*! + @method appleScriptActive + @abstract Method called periodical during script execution. + @discussion Allows you to do some processing durring execution of a AppleScript with the same thread. + @result Returns NO to specify some error occurred. + */ +- (BOOL)appleScriptActive; +@end + -- cgit