HID APPROVE SDK  5.10
HID Approve SDK for iOS
 All Classes Files Functions Variables Enumerations Enumerator Properties Pages
HIDDevice.h
Go to the documentation of this file.
1 /* ---------------------------------------------------------------------------
2  (c) 2015-2023, HID Global Corporation, part of ASSA ABLOY.
3  All rights reserved.
4 
5  Redistribution and use in source and binary forms, with or without modification,
6  are permitted provided that the following conditions are met:
7  - Redistributions of source code must retain the above copyright notice,
8  this list of conditions and the following disclaimer.
9  - Redistributions in binary form must reproduce the above copyright notice,
10  this list of conditions and the following disclaimer in the documentation
11  and/or other materials provided with the distribution.
12 
13  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
14  AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
15  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
16  ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
17  FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
18  (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
19  LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
20  ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
21  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
22  THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
23 --------------------------------------------------------------------------- */
24 
25 #import <Foundation/Foundation.h>
26 #import "HIDTransactionInfo.h"
27 #import "HIDTransaction.h"
28 #import "HIDServerActionInfo.h"
29 #import "HIDServerAction.h"
31 #import "HIDProgressListener.h"
32 
42 @protocol HIDDevice
43 
58 - (id<HIDTransactionInfo>)retrieveTransactionInfo:(NSString*)transactionId error:(NSError**)error ;
59 
74 - (id<HIDServerActionInfo>)retrieveActionInfo:(NSString*)actionId error:(NSError**)error;
75 
113 - (BOOL)updateDeviceInfo:(NSString*)propertyId withValue:(NSString*)propertyValue withPassword:(NSString*)sessionPassword withParams:(NSArray*)parameters error:(NSError**)error ;
114 
144 - (NSString*)getDeviceInfo:(NSString*)propertyId error:(NSError**)error;
145 
150 - (NSString*)getVersion:(NSError**)error;
151 
172 - (NSArray*)findContainers:(NSArray*)filter error:(NSError**)error;
173 
197 - (id<HIDContainer>)createContainer:(HIDContainerInitialization*)config withSessionPassword:(NSString*)sessionPassword withListener:(NSObject<HIDProgressListener>*)listener error:(NSError**)error;
198 
217 - (BOOL)deleteContainer:(NSInteger)containerId withSessionPassword:(NSString*)sessionPassword withParams:(NSArray*)parameters error:(NSError**)error;
218 
232 - (BOOL)setConnectionConfiguration:(HIDConnectionConfiguration*)config error:(NSError**)error;
233 @end
234 
247 @interface HIDDeviceFactory : NSObject
248 
252 + (id)factory;
253 
268 - (id<HIDDevice>)newInstance:(HIDConnectionConfiguration*)config error:(NSError**)error;
269 
286 - (id<HIDDevice>)newInstance:(HIDConnectionConfiguration*)config withSessionPassword:(NSString*)sessionPassword error:(NSError**)error ;
287 
299 +(BOOL)reset:(NSError**)error;
300 @end
Transaction details.
Definition: HIDTransactionInfo.h:41
Factory for creating a new device instance.
Definition: HIDDevice.h:247
Transaction details.
Parent device object used to query device information and discover any active containers.
Definition: HIDDevice.h:42
Listener delegate to report status information or receive password request events.
Action details from server.
Definition: HIDServerActionInfo.h:39
This interface provides an integration point for receiving status information sent from the server du...
Definition: HIDProgressListener.h:144
Encapsulates an active service container instance.
Definition: HIDContainer.h:42
Configuration for creation of a Container.
Definition: HIDContainerInitialization.h:62
id factory()
Instantiate the device factory.
Transaction object.
ServerAction object.
Connection configuration.
Configuration of server connections.
Definition: HIDConnectionConfiguration.h:44
Action details.