Adding more TODO header files

This commit is contained in:
Lubos Dolezel 2017-02-22 21:28:47 +01:00
parent a92e23d19e
commit 9479987947
2 changed files with 126 additions and 0 deletions

View File

@ -0,0 +1,94 @@
#ifndef NSAPPLEEVENTDESCRIPTOR_H
#define NSAPPLEEVENTDESCRIPTOR_H
#include <Foundation/NSObject.h>
#include <Foundation/NSData.h>
#include <Foundation/NSString.h>
#include <CoreServices/MacTypes.h>
typedef int AEEventClass;
typedef int AEEventID;
typedef int AEReturnID;
typedef UInt32 AEKeyword;
typedef int AETransactionID;
typedef int DescType;
struct AEDesc;
@interface NSAppleEventDescriptor : NSObject
+ (NSAppleEventDescriptor *)appleEventWithEventClass:(AEEventClass)eventClass
eventID:(AEEventID)eventID
targetDescriptor:(NSAppleEventDescriptor *)addressDescriptor
returnID:(AEReturnID)returnID
transactionID:(AETransactionID)transactionID;
+ (NSAppleEventDescriptor *)descriptorWithBoolean:(Boolean)boolean;
+ (NSAppleEventDescriptor *)descriptorWithDescriptorType:(DescType)descriptorType
bytes:(const void *)bytes
length:(NSUInteger)byteCount;
+ (NSAppleEventDescriptor *)descriptorWithDescriptorType:(DescType)descriptorType
data:(NSData *)data;
+ (NSAppleEventDescriptor *)descriptorWithEnumCode:(OSType)enumerator;
+ (NSAppleEventDescriptor *)descriptorWithInt32:(SInt32)signedInt;
+ (NSAppleEventDescriptor *)descriptorWithString:(NSString *)string;
+ (NSAppleEventDescriptor *)descriptorWithTypeCode:(OSType)typeCode;
+ (NSAppleEventDescriptor *)listDescriptor;
+ (NSAppleEventDescriptor *)nullDescriptor;
+ (NSAppleEventDescriptor *)recordDescriptor;
- (id)initListDescriptor;
- (id)initRecordDescriptor;
- (id)initWithAEDescNoCopy:(const struct AEDesc *)aeDesc;
- (id)initWithDescriptorType:(DescType)descriptorType
bytes:(const void *)bytes
length:(NSUInteger)byteCount;
- (id)initWithDescriptorType:(DescType)descriptorType
data:(NSData *)data;
- (id)initWithEventClass:(AEEventClass)eventClass
eventID:(AEEventID)eventID
targetDescriptor:(NSAppleEventDescriptor *)addressDescriptor
returnID:(AEReturnID)returnID
transactionID:(AETransactionID)transactionID;
- (const struct AEDesc *)aeDesc;
- (NSAppleEventDescriptor *)attributeDescriptorForKeyword:(AEKeyword)keyword;
- (Boolean)booleanValue;
- (SInt32)int32Value;
- (NSString *)stringValue;
- (DescType)descriptorType;
- (OSType)enumCodeValue;
- (AEEventClass)eventClass;
- (AEEventID)eventID;
- (AETransactionID)transactionID;
- (OSType)typeCodeValue;
- (NSAppleEventDescriptor *)coerceToDescriptorType:(DescType)descriptorType;
- (NSData *)data;
- (NSAppleEventDescriptor *)descriptorAtIndex:(NSInteger)anIndex;
- (NSAppleEventDescriptor *)descriptorForKeyword:(AEKeyword)keyword;
- (void)insertDescriptor:(NSAppleEventDescriptor *)descriptor
atIndex:(NSInteger)anIndex;
- (void)removeDescriptorAtIndex:(NSInteger)anIndex;
- (void)removeDescriptorWithKeyword:(AEKeyword)keyword;
- (void)removeParamDescriptorWithKeyword:(AEKeyword)keyword;
- (AEKeyword)keywordForDescriptorAtIndex:(NSInteger)anIndex;
- (NSInteger)numberOfItems;
- (NSAppleEventDescriptor *)paramDescriptorForKeyword:(AEKeyword)keyword;
- (AEReturnID)returnID;
- (void)setAttributeDescriptor:(NSAppleEventDescriptor *)descriptor
forKeyword:(AEKeyword)keyword;
- (void)setDescriptor:(NSAppleEventDescriptor *)descriptor
forKeyword:(AEKeyword)keyword;
- (void)setParamDescriptor:(NSAppleEventDescriptor *)descriptor
forKeyword:(AEKeyword)keyword;
@end
#endif

View File

@ -0,0 +1,32 @@
#ifndef NSAPPLEEVENTMANAGER_H
#define NSAPPLEEVENTMANAGER_H
#include "NSAppleEventDescriptor.h"
typedef const struct __NSAppleEventManagerSuspension *NSAppleEventManagerSuspensionID;
struct AppleEvent;
@interface NSAppleEventManager : NSObject
+ (NSAppleEventManager *)sharedAppleEventManager;
- (NSAppleEventDescriptor *)appleEventForSuspensionID:(NSAppleEventManagerSuspensionID)suspensionID;
- (NSAppleEventDescriptor *)currentAppleEvent;
- (NSAppleEventDescriptor *)currentReplyAppleEvent;
- (OSErr)dispatchRawAppleEvent:(const struct AppleEvent *)theAppleEvent
withRawReply:(struct AppleEvent *)theReply
handlerRefCon:(UInt32)handlerRefcon;
- (void)removeEventHandlerForEventClass:(AEEventClass)eventClass
andEventID:(AEEventID)eventID;
- (NSAppleEventDescriptor *)replyAppleEventForSuspensionID:(NSAppleEventManagerSuspensionID)suspensionID;
- (void)resumeWithSuspensionID:(NSAppleEventManagerSuspensionID)suspensionID;
- (void)setCurrentAppleEventAndReplyEventWithSuspensionID:(NSAppleEventManagerSuspensionID)suspensionID;
- (void)setEventHandler:(id)handler
andSelector:(SEL)handleEventSelector
forEventClass:(AEEventClass)eventClass
andEventID:(AEEventID)eventID;
- (NSAppleEventManagerSuspensionID)suspendCurrentAppleEvent;
@end
#endif