mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-09-23 14:53:52 +00:00
Lots of stuff
This commit is contained in:
50
PortabilityLayer/PLAppleEventsCommonTypes.h
Normal file
50
PortabilityLayer/PLAppleEventsCommonTypes.h
Normal file
@@ -0,0 +1,50 @@
|
||||
#pragma once
|
||||
#ifndef __PL_APPLE_EVENTS_COMMON_TYPES_H__
|
||||
#define __PL_APPLE_EVENTS_COMMON_TYPES_H__
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
struct AppleEvent;
|
||||
|
||||
enum AEError
|
||||
{
|
||||
errAEEventNotHandled = 1,
|
||||
errAEDescNotFound,
|
||||
errAEParamMissed,
|
||||
};
|
||||
|
||||
enum AEKeyword
|
||||
{
|
||||
keyDirectObject,
|
||||
keyMissedKeywordAttr,
|
||||
};
|
||||
|
||||
enum DescType
|
||||
{
|
||||
typeAEList,
|
||||
typeFSS,
|
||||
typeWildCard,
|
||||
};
|
||||
|
||||
enum AEEventID
|
||||
{
|
||||
kAEOpenApplication,
|
||||
kAEOpenDocuments,
|
||||
kAEPrintDocuments,
|
||||
kAEQuitApplication
|
||||
};
|
||||
|
||||
enum AEEventClass
|
||||
{
|
||||
kCoreEventClass
|
||||
};
|
||||
|
||||
enum AEInteractAllowed
|
||||
{
|
||||
kAEInteractUnknown,
|
||||
kAEInteractWithAll
|
||||
};
|
||||
|
||||
typedef int(*AEEventHandler)(const AppleEvent *theAE, AppleEvent *reply, uint32_t ref);
|
||||
|
||||
#endif
|
Reference in New Issue
Block a user