mirror of
https://github.com/sparkle-project/Sparkle.git
synced 2025-11-01 15:34:38 +00:00
36 lines
816 B
Objective-C
36 lines
816 B
Objective-C
//
|
|
// AgentConnection.h
|
|
// Sparkle
|
|
//
|
|
// Created by Mayur Pawashe on 7/17/16.
|
|
// Copyright © 2016 Sparkle Project. All rights reserved.
|
|
//
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
@protocol AgentConnectionDelegate <NSObject>
|
|
|
|
- (void)agentConnectionDidInitiate;
|
|
- (void)agentConnectionDidInvalidate;
|
|
|
|
@end
|
|
|
|
@protocol SPUInstallerAgentProtocol;
|
|
|
|
SPU_OBJC_DIRECT_MEMBERS @interface AgentConnection : NSObject
|
|
|
|
- (instancetype)initWithHostBundleIdentifier:(NSString *)bundleIdentifier delegate:(id<AgentConnectionDelegate>)delegate;
|
|
|
|
- (void)startListener;
|
|
- (void)invalidate;
|
|
|
|
@property (nonatomic, readonly, nullable) id<SPUInstallerAgentProtocol> agent;
|
|
@property (nonatomic, readonly) BOOL connected;
|
|
@property (nonatomic, nullable) NSError *invalidationError;
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|