20 #ifndef __AEINTERACTION__
21 #define __AEINTERACTION__
23 #ifndef __AEDATAMODEL__
27 #ifndef __NOTIFICATION__
48 #if PRAGMA_STRUCT_ALIGN
49 #pragma options align = mac68k
50 #elif PRAGMA_STRUCT_PACKPUSH
52 #elif PRAGMA_STRUCT_PACK
83 AESendPriority sendPriority,
long timeOutInTicks,
85 AEFilterUPP filterProc) ;
120 typedef SInt8 AEInteractAllowed;
123 kAEInteractWithSelf = 0,
124 kAEInteractWithLocal = 1,
125 kAEInteractWithAll = 2
250 kAEDoNotIgnoreHandler = 0x00000000,
251 kAEIgnoreAppPhacHandler =
253 kAEIgnoreAppEventHandler =
255 kAEIgnoreSysPhacHandler =
257 kAEIgnoreSysEventHandler =
259 kAEIngoreBuiltInEventHandler =
261 kAEDontDisposeOnResume =
270 kAEUseStandardDispatch =
285 AEEventHandlerUPP dispatcher,
368 #if !OPAQUE_UPP_TYPES
371 uppAEIdleProcInfo = 0x00000FD0
377 (ProcPtr)(userRoutine), uppAEIdleProcInfo, GetCurrentArchitecture());
380 #define NewAEIdleUPP(userRoutine) \
381 (AEIdleUPP) NewRoutineDescriptor((ProcPtr)(userRoutine), uppAEIdleProcInfo, \
382 GetCurrentArchitecture())
396 #if !OPAQUE_UPP_TYPES
399 uppAEFilterProcInfo = 0x00003FD0
405 (ProcPtr)(userRoutine), uppAEFilterProcInfo, GetCurrentArchitecture());
408 #define NewAEFilterUPP(userRoutine) \
409 (AEFilterUPP) NewRoutineDescriptor( \
410 (ProcPtr)(userRoutine), uppAEFilterProcInfo, GetCurrentArchitecture())
424 #if !OPAQUE_UPP_TYPES
431 #define DisposeAEIdleUPP(userUPP) DisposeRoutineDescriptor(userUPP)
445 #if !OPAQUE_UPP_TYPES
452 #define DisposeAEFilterUPP(userUPP) DisposeRoutineDescriptor(userUPP)
467 #if !OPAQUE_UPP_TYPES
472 return (
Boolean)CALL_THREE_PARAMETER_UPP(userUPP, uppAEIdleProcInfo,
theEvent,
473 sleepTime, mouseRgn);
476 #define InvokeAEIdleUPP(theEvent, sleepTime, mouseRgn, userUPP) \
477 (Boolean) CALL_THREE_PARAMETER_UPP((userUPP), uppAEIdleProcInfo, (theEvent), \
478 (sleepTime), (mouseRgn))
493 #if !OPAQUE_UPP_TYPES
500 return (
Boolean)CALL_FOUR_PARAMETER_UPP(
501 userUPP, uppAEFilterProcInfo,
theEvent, returnID, transactionID, sender);
504 #define InvokeAEFilterUPP(theEvent, returnID, transactionID, sender, userUPP) \
506 CALL_FOUR_PARAMETER_UPP((userUPP), uppAEFilterProcInfo, (theEvent), \
507 (returnID), (transactionID), (sender))
511 #if CALL_NOT_IN_CARBON || OLDROUTINENAMES
513 #define NewAEIdleProc(userRoutine) NewAEIdleUPP(userRoutine)
514 #define NewAEFilterProc(userRoutine) NewAEFilterUPP(userRoutine)
515 #define CallAEIdleProc(userRoutine, theEvent, sleepTime, mouseRgn) \
516 InvokeAEIdleUPP(theEvent, sleepTime, mouseRgn, userRoutine)
517 #define CallAEFilterProc(userRoutine, theEvent, returnID, transactionID, \
519 InvokeAEFilterUPP(theEvent, returnID, transactionID, sender, userRoutine)
522 #if PRAGMA_STRUCT_ALIGN
523 #pragma options align = reset
524 #elif PRAGMA_STRUCT_PACKPUSH
526 #elif PRAGMA_STRUCT_PACK
530 #ifdef PRAGMA_IMPORT_OFF
AppleEvent Data Model Interfaces.
void DisposeAEFilterUPP(AEFilterUPP userUPP)
Definition: AEInteraction.h:447
OSErr AEProcessAppleEvent(const EventRecord *theEventRecord)
void DisposeAEIdleUPP(AEIdleUPP userUPP)
Definition: AEInteraction.h:426
Boolean InvokeAEIdleUPP(EventRecord *theEvent, long *sleepTime, RgnHandle *mouseRgn, AEIdleUPP userUPP)
Definition: AEInteraction.h:469
AEFilterUPP NewAEFilterUPP(AEFilterProcPtr userRoutine)
Definition: AEInteraction.h:402
OSErr AESetTheCurrentEvent(const AppleEvent *theAppleEvent)
AESetTheCurrentEvent Specify Apple Event to be handled.
AEIdleUPP NewAEIdleUPP(AEIdleProcPtr userRoutine)
Definition: AEInteraction.h:374
Boolean InvokeAEFilterUPP(EventRecord *theEvent, long returnID, long transactionID, const AEAddressDesc *sender, AEFilterUPP userUPP)
Definition: AEInteraction.h:495
OSErr AESetInteractionAllowed(AEInteractAllowed level)
OSErr AEGetInteractionAllowed(AEInteractAllowed *level)
AEGetInteractionAllowed Get user interaction preferences.
OSErr AEGetTheCurrentEvent(AppleEvent *theAppleEvent)
AEGetTheCurrentEvent Return the Apple Event currently being handled.
OSErr AESuspendTheCurrentEvent(const AppleEvent *theAppleEvent)
AESuspendTheCurrentEvent Suspend Apple Event processing.
OSErr AEResumeTheCurrentEvent(const AppleEvent *theAppleEvent, const AppleEvent *reply, AEEventHandlerUPP dispatcher, long handlerRefcon)
OSErr AEInteractWithUser(long timeOutInTicks, NMRecPtr nmReqPtr, AEIdleUPP idleProc)
OSErr AEResetTimer(const AppleEvent *reply)
OSErr AESend(const AppleEvent *theAppleEvent, AppleEvent *reply, AESendMode sendMode, AESendPriority sendPriority, long timeOutInTicks, AEIdleUPP idleProc, AEFilterUPP filterProc)
Event Manager Interfaces.
unsigned char Boolean
Definition: MacTypes.h:318
void DisposeRoutineDescriptor(UniversalProcPtr theUPP)
#define STACK_UPP_TYPE(name)
Definition: MixedMode.h:734
UniversalProcPtr NewRoutineDescriptor(ProcPtr theProc, ProcInfoType theProcInfo, ISAType theISA)
Notification Manager interfaces.
Definition: AEDataModel.h:175
Definition: Quickdraw.h:306
Definition: Notification.h:56