Go to the documentation of this file.00001
00002
00003
00004
00005 #pragma once
00006
00007 #import <Foundation/Foundation.h>
00008 #import <AppKit/AppKit.h>
00009 #import "GDAppResultCode.h"
00010 #import "GDPortability.h"
00011 #import "GDState.h"
00012 #import "GDAppConfig.h"
00013 #import "GDVersion.h"
00014
00015 @class GDServiceProvider;
00016
00022 typedef NS_ENUM(NSInteger, GDServiceProviderType)
00023 {
00025 GDServiceProviderApplication=0,
00027 GDServiceProviderServer,
00028 };
00029
00030 GD_NS_ASSUME_NONNULL_BEGIN
00031
00036 @interface GDAppEvent : NSObject
00037 {
00038 NSString* message;
00045 GDAppResultCode code;
00052 GDAppEventType type;
00058 }
00059
00060 @property (nonatomic, copy) NSString* message;
00061
00062 @property (nonatomic, assign) GDAppResultCode code;
00063
00064 @property (nonatomic, assign) GDAppEventType type;
00065
00066 @end
00067
00073 @protocol GDMacDelegate <NSObject>
00074 @required
00075
00076 - (void)handleEvent:(GDAppEvent*)anEvent;
00085 @end
00086
00564 @interface GDMac : NSObject
00565
00566 @property(nonatomic, assign) id<GDMacDelegate> delegate;
00577 + (GDMac*)sharedInstance;
00601 @property (nonatomic, strong, readonly) GDState *state;
00602
00603 - (void)authorize:(id<GDMacDelegate>)aDelegate;
00728 - (NSDictionary*)getApplicationConfig;
00954 - (NSDictionary*)getApplicationPolicy;
01009 - (NSString*)getApplicationPolicyString;
01039 - (GD_NSArray(GDServiceProvider *) *)getServiceProviders;
01128 - (GD_NSArray(GDServiceProvider *) *)getServiceProvidersFor:(NSString*)serviceId andVersion:(GD_NSNULLABLE NSString*)version andType:(GDServiceProviderType)serviceProviderType;
01164 typedef void (^GDGetEntitlementVersionsForBlock) (GD_NSArray(GDVersion *)* GD_NSNULLABLE_POINTER entitlementVersions, NSError* error);
01180 - (void)getEntitlementVersionsFor:(NSString*)identifier callbackBlock:(GDGetEntitlementVersionsForBlock)block;
01248 - (NSString*)getVersion;
01255 - (BOOL)changeApplicationPassword;
01266 @end
01267
01268 GD_NS_ASSUME_NONNULL_END