Inheritance diagram for CP_AE_AppleEvent:
Public Member Functions | |
operator AEDesc * () | |
operator const AEDesc * () const | |
operator AEDesc & () | |
operator const AEDesc & () const | |
void | swap (CP_AE_Descriptor &inOutDescriptor) throw () |
Constructor / Destructor | |
CP_AE_AppleEvent () | |
Constructor. | |
CP_AE_AppleEvent (AppleEvent *inAppleEvent) | |
virtual | ~CP_AE_AppleEvent () |
Destructor. | |
Getters | |
void | GetParams (const AEKeyword inKeyword, const DescType inDesiredType, AEDesc &inOutOptionalParams) const |
void | GetOptionalParams (const AEKeyword inKeyword, const DescType inDesiredType, AEDesc &inOutOptionalParams) const |
void | GetParamPtr (const AEKeyword inKeyword, const DescType inDesiredType, DescType *inTypeCode, void *inDataPtr, const Size inMaximumSize, Size *inOutActualSize) const |
AEDesc | GetAttribute (const AEKeyword inKey, const DescType inDesiredType) |
SInt32 | GetSInt32Attribute (const AEKeyword inKey) |
Event makers | |
void | MakeAppleEvent (const AEEventClass inEventClass, const AEEventID inEventID, const AEDesc &inTarget, const SInt16 inReturnID=kAutoGenerateReturnID, const SInt32 inTransactionID=kAnyTransactionID) |
void | MakeAppleEvent (const AEEventClass inEventClass, const AEEventID inEventID, const ProcessSerialNumber &inPSN, const SInt16 inReturnID=kAutoGenerateReturnID, const SInt32 inTransactionID=kAnyTransactionID) |
void | MakeEventSelf (const AEEventClass inEventClass, const AEEventID inEventID, const SInt16 inReturnID=kAutoGenerateReturnID, const SInt32 inTransactionID=kAnyTransactionID) |
void | MakeEventSystem (const AEEventClass inEventClass, const AEEventID inEventID, const SInt16 inReturnID=kAutoGenerateReturnID, const SInt32 inTransactionID=kAnyTransactionID) |
Senders | |
void | Send (AppleEvent *inOutReply, const AESendMode inSendMode, const AESendPriority inSendPriority=kAENormalPriority, const SInt32 inTimeOutInTicks=kAEDefaultTimeout, AEIdleUPP inIdleProc=NULL, AEFilterUPP inFilterProc=NULL) |
void | Send (AppleEvent *inFuture) |
void | Send_NoExecute () |
void | Send_NoReply () |
void | Suspend () |
void | Resume (AppleEvent *inReply, AEEventHandlerUPP inDispatcher, SInt32 inRefCon) |
void | SetCurrentEvent () |
Setters | |
void | PutDescriptor (const AEKeyword inKey, AEDesc &inData) |
void | PutReturnDescriptor (AEDesc &inData) |
void | PutOptionalDescriptor (const AEKeyword inKey, AEDesc &inData) |
void | PutPtr (const AEKeyword inKey, const DescType inTypeCode, const void *inDataPtr, Size inDataSize) |
void | PutAttribute (const AEKeyword inKey, AEDesc &inAttribute) |
void | CheckRequiredParams () const |
void | SpecifyThatParameterIsOptional (const AEKeyword inOptionalKeyword) |
Public Attributes | |
AEDesc | fAEDesc |
Protected Attributes | |
SInt16 | fCanUseSelfSend |
|
Constructor.
|
|
Constructor.
|
|
Destructor.
|
|
Get the parameters of the event. &fAEDesc method will fail (throw an OSErr exception) if there is an error. Use the GetOptionalParams if the parameter your getting is considered optional.
|
|
Get the optional parameters of the event. It is ok if the descriptor was not found, since we want optional params.
|
|
Return the desired param ptr from the Apple Event.
|
|
Return an attribute for the event.
|
|
Return an attribute for the event with the key passed in inKey.
|
|
Make a MacOS AppleEvent.
|
|
Make a MacOS AppleEvent.
|
|
Create an Apple Event of inEventClass and send the event to ourselves. NOTE: Some early version of the Apple Event Manager had a memory leak when sending events, so if we are running on that version of the Apple Event Manager, we will not send the event.
|
|
Create an Apple Event of inEventClass and send it to the MacOS operating system.
|
|
Send the Apple Event. The reply will be returned in the inOutReply parameter.
|
|
Send the Apple Event, placing the result in the passed in parameter.
|
|
Send the Apple Event, but don't execute it. &fAEDesc used for recording purposes.
|
|
Send the Apple Event, but don't wait for a reply.
|
|
Suspend the current event.
|
|
Resume the current event.
|
|
Sets the current event to ourselves.
|
|
Place the passed in descriptor into &fAEDesc event.
|
|
Place a return descriptor into &fAEDesc event.
|
|
Place an optional descriptor into &fAEDesc event.
|
|
Place the data pointer to by inDataPtr into &fAEDesc event.
|
|
Place the passed in attribute into &fAEDesc event.
|
|
Check if we have gotten all of the required parameters for &fAEDesc event.
|
|
Notify the Apple Event that the passed in AEKeyword is considered an optional.
|
|
Dispose of the memory allocated for &fAEDesc object.
|
|
Create a new descriptor ffrom the passed in data and data type code.
|
|
Make &fAEDesc descriptor into a NULL descriptor.
|
|
Try to coerce the type of the descriptor to something else. &fAEDesc method will NOT fail if the coercion could not be done. NOTE: &fAEDesc method does not throw an exception, but returns the error code, as it is ok for &fAEDesc routine to fail.
|
|
Require that &fAEDesc object be coerced to the specified data type. &fAEDesc method will fail if the coercion does not work.
|
|
Require that &fAEDesc object be coerced to the specified data type. &fAEDesc method will fail if the coercion does not work.
|
|
&fAEDesc method attempts to coerce its data into some form of standard type (e.g. typeChar or typeLongInteger). The following conversions are tried: From: typeAEText, typeIntlText or typeStyledText to typeChar, and typeLongInteger to typeLongInteger.
|
|
Duplicate the information from the passed in descriptor.
|
|
Return a DescType that describes the type of descriptor this is.
|
|
Return a Handle to our data. &fAEDesc handle is a copy of the data and must be deleted by the caller.
|
|
Get the descriptor from an event. If the desired type is not specified, it is assumed to be typeWildCard.
|
|
Get the descriptor from an event. If the desired type is not specified, it is assumed to be typeWildCard. NOTE: &fAEDesc method is used for retrieving optional descriptors, so we will just return the err code and let the called do with the result as it sees fit.
|
|
Retrurns a pointer to the nth item in &fAEDesc descriptor.
|
|
Get a block of data of the inDesiredType.
|
|
Return the data from &fAEDesc descriptor as a SInt16.
|
|
Return the data from &fAEDesc descriptor as a SInt32.
|
|
Return the data from &fAEDesc descriptor as a bool.
|
|
Return the type of information contained in &fAEDesc object as a DescType.
|
|
Return the type of information contained in &fAEDesc object as a AEKeyword.
|
|
Return the data from &fAEDesc descriptor as a DescType enumeration.
|
|
Return the data from &fAEDesc descriptor as a DescType typeAbsoluteOrdinal.
|
|
Return the data from &fAEDesc descriptor as a CP_Point object.
|
|
Return the data from &fAEDesc descriptor as a CP_Rect object.
|
|
Return the data from &fAEDesc descriptor as a Str255 object.
|
|
Return the data from &fAEDesc descriptor as a CP_String object.
|
|
Return the data from &fAEDesc descriptor as a CP_FileSystemSpec.
|
|
Return the number of items in &fAEDesc descriptor.
|
|
Return the nth item from &fAEDesc descriptor.
|
|
|
|
|
|
|
|
|
|
Make a new descriptor from the passed in data and data type code.
|
|
Make &fAEDesc into a Boolean descriptor from the passed in Boolean data.
|
|
Make &fAEDesc into a Boolean descriptor from the passed in bool data.
|
|
Make &fAEDesc into a SInt16 descriptor from the passed in data.
|
|
Make &fAEDesc into a SInt32 descriptor from the passed in data.
|
|
Make &fAEDesc into a UInt32 descriptor from the passed in data.
|
|
Make &fAEDesc into a point descriptor from the passed in data.
|
|
Make &fAEDesc into a rect descriptor from the passed in data.
|
|
Make &fAEDesc into a p-style string descriptor from the passed in data.
|
|
Make &fAEDesc into a string descriptor from the passed in data.
|
|
Make &fAEDesc into a file spec descriptor from the passed in data.
|
|
Make &fAEDesc into a file spec descriptor from the passed in data.
|
|
Takes the provided alias handle and uses it to set the data for &fAEDesc descriptor.
|
|
Make a descriptor for the passed in CP_FileSystemSpec inData as a MacOS Alias.
|
|
Make a descriptor for the passed in MacOS ProcessSerialNumber.
|
|
Make an object specifier from the passed in data.
|
|
Make an comp descriptor.
|
|
Make an enumeration for &fAEDesc descriptor.
|
|
Make a DescType descriptor.
|
|
Make an an AEKeyword for &fAEDesc descriptor.
|
|
Make an an ordinal for &fAEDesc descriptor.
|
|
Make &fAEDesc object either a type or an integer based upon inData. &fAEDesc is useful for debugging; it makes a 'type' if the data appears to consist of printable characters (e.g. 'ABCD'), but otherwise it makes an integer (e.g. -12).
|
|
Assign the inDataType and inHandle to &fAEDesc object.
|
|
Adopt the passed in CP_AE_Descriptor object.
|
|
Return true if this is a NULL descriptor, ie doesn't describe anything.
|
|
Return true if the data handle is NULL.
|
|
|
|
|
|
|