diff --git a/DUREX Vendor Control/DUREX Vendor Control.xcodeproj/project.xcworkspace/xcuserdata/imanol.xcuserdatad/UserInterfaceState.xcuserstate b/DUREX Vendor Control/DUREX Vendor Control.xcodeproj/project.xcworkspace/xcuserdata/imanol.xcuserdatad/UserInterfaceState.xcuserstate index 5d646b0..f76115a 100644 --- a/DUREX Vendor Control/DUREX Vendor Control.xcodeproj/project.xcworkspace/xcuserdata/imanol.xcuserdatad/UserInterfaceState.xcuserstate +++ b/DUREX Vendor Control/DUREX Vendor Control.xcodeproj/project.xcworkspace/xcuserdata/imanol.xcuserdatad/UserInterfaceState.xcuserstate diff --git a/DUREX Vendor Control/FirstAppExample/MainStoryboard.storyboard b/DUREX Vendor Control/FirstAppExample/MainStoryboard.storyboard index f1f4917..0aba99e 100644 --- a/DUREX Vendor Control/FirstAppExample/MainStoryboard.storyboard +++ b/DUREX Vendor Control/FirstAppExample/MainStoryboard.storyboard @@ -78,6 +78,40 @@ + + + + + + + + + + + + + + + + + + + + + + diff --git a/DUREX Vendor Control/MenuTableViewController.h b/DUREX Vendor Control/MenuTableViewController.h index 462d419..c2f969c 100644 --- a/DUREX Vendor Control/MenuTableViewController.h +++ b/DUREX Vendor Control/MenuTableViewController.h @@ -14,15 +14,12 @@ #define MENU_ELEMENTS @"Maintenance",@"Basic Configuration",@"Sending a Report" #define MENU_CELLS_PER_SECTION num(3) -#define MENU_SECTIONS 1 #define MAINTENANCE_ELEMENTS @"General Status",@"Sensor Report" #define MAINTENANCE_CELLS_PER_SECTION num(2) -#define MAINTENANCE_SECTIONS 1 #define STATUS_ELEMENTS @"Time",@"20€ Notes",@"10€ Notes",@"5€ Notes",@"2€ Coins",@"1€ Coins",@"50c Coins",@"CPP_TABLE",@"1€ Change",@"50c Change" #define STATUS_CELLS_PER_SECTION num(10) -#define STATUS_SECTIONS 1 #define CELL_IDENTIFIERS @"MenuCell",@"MaintenanceCell",@"ConfigCell",@"ReportCell" @@ -31,6 +28,7 @@ enum { MENU = 0, MAINTENANCE, + STATUS, BASIC_CONFIGURATION, REPORT } navigationLevel; diff --git a/DUREX Vendor Control/MenuTableViewController.m b/DUREX Vendor Control/MenuTableViewController.m index b3d1271..1a08d23 100644 --- a/DUREX Vendor Control/MenuTableViewController.m +++ b/DUREX Vendor Control/MenuTableViewController.m @@ -19,6 +19,9 @@ @property (nonatomic,strong) const NSArray *maintenanceElements; @property (nonatomic,strong) const NSArray *maintenanceStructure; +@property (nonatomic,strong) const NSArray *statusElements; +@property (nonatomic,strong) const NSArray *statusStructure; + @property (nonatomic,strong) const NSArray *cellIdentifiers; @property (nonatomic,strong) CommunicationProtocol* protocol; @@ -49,6 +52,9 @@ [self setMaintenanceElements:[[NSArray alloc] initWithObjects:MAINTENANCE_ELEMENTS, nil]]; [self setMaintenanceStructure:[[NSArray alloc] initWithObjects:MAINTENANCE_CELLS_PER_SECTION, nil]]; + [self setStatusElements:[[NSArray alloc] initWithObjects:STATUS_ELEMENTS, nil]]; + [self setStatusStructure:[[NSArray alloc] initWithObjects:STATUS_CELLS_PER_SECTION, nil]]; + [self setCellIdentifiers:[[NSArray alloc] initWithObjects:CELL_IDENTIFIERS, nil]]; } @@ -61,12 +67,22 @@ [self setCurrentElements:[self maintenanceElements]]; [self setCurrentStructure:[self maintenanceStructure]]; } + else if([self currentNavLevel] == STATUS) + { + [self setCurrentElements:[self statusElements]]; + [self setCurrentStructure:[self statusStructure]]; + } //AND SO ON... else { [self setCurrentElements:[self menuElements]]; [self setCurrentStructure:[self menuStructure]]; } + + NSRange range = NSMakeRange(0, [self numberOfSectionsInTableView:self.tableView]); + NSIndexSet *sections = [NSIndexSet indexSetWithIndexesInRange:range]; + [self.tableView reloadSections:sections withRowAnimation:UITableViewRowAnimationAutomatic]; + } - (void)viewDidLoad @@ -155,7 +171,15 @@ - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { [tableView deselectRowAtIndexPath:indexPath animated:YES]; - NSLog(@"%d:%s",(int)[indexPath row],[[[[[self tableView] cellForRowAtIndexPath:indexPath]textLabel]text]cStringUsingEncoding:NSUTF8StringEncoding]); + NSString *cellName = [[[[self tableView] cellForRowAtIndexPath:indexPath]textLabel]text]; + if([cellName isEqualToString:@"Maintenance"]) + { + [self changeNavLevel:MAINTENANCE]; + } + else if([cellName isEqualToString:@"General Status"]) + { + [self changeNavLevel:STATUS]; + } } #pragma mark - Table view data source diff --git a/DUREX tests/CommunicationProtocol.h b/DUREX tests/CommunicationProtocol.h new file mode 100644 index 0000000..6bea226 --- /dev/null +++ b/DUREX tests/CommunicationProtocol.h @@ -0,0 +1,23 @@ +// +// CommunicationProtocol.h +// DUREX Vendor Control +// +// Created by Imanol Barba on 5/23/14. +// Copyright (c) 2014 Emmoco. All rights reserved. +// + +#import + +#define MAX_STRING_LENGTH ((int)227) +#define MAX_RETRIES ((int)3) + +@interface CommunicationProtocol : NSObject + +-(Boolean) waitForMessageAvailable: (Boolean) status; +-(Boolean) writeMessage: (NSString*) message; +-(NSString*) readMessage; +-(Boolean) establishConnection; ++(id) sharedProtocol; +@property Boolean messageAvailable; + +@end diff --git a/DUREX tests/CommunicationProtocol.m b/DUREX tests/CommunicationProtocol.m new file mode 100644 index 0000000..68e1333 --- /dev/null +++ b/DUREX tests/CommunicationProtocol.m @@ -0,0 +1,48 @@ +// +// CommunicationProtocol.m +// DUREX Vendor Control +// +// Created by Imanol Barba on 5/23/14. +// Copyright (c) 2014 Emmoco. All rights reserved. +// + +#import "CommunicationProtocol.h" + +@interface CommunicationProtocol () + +@end + +@implementation CommunicationProtocol + ++ (id)sharedProtocol { + static CommunicationProtocol *shared = nil; + static dispatch_once_t onceToken; + dispatch_once(&onceToken, ^{ + shared = [[self alloc] init]; + }); + return shared; +} + +-(Boolean) waitForMessageAvailable: (Boolean) status +{ + return TRUE; +} + +-(NSString*) readMessage +{ + __block NSMutableString *message; + [message setString:@""]; + return message; +} + +-(Boolean) writeMessage: (NSString*) message +{ + return TRUE; +} + +-(Boolean) establishConnection +{ + return TRUE; +} + +@end diff --git a/DUREX tests/DUREX test.xcodeproj/project.pbxproj b/DUREX tests/DUREX test.xcodeproj/project.pbxproj new file mode 100644 index 0000000..7a2f091 --- /dev/null +++ b/DUREX tests/DUREX test.xcodeproj/project.pbxproj @@ -0,0 +1,508 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 46; + objects = { + +/* Begin PBXBuildFile section */ + 3471866118070D9300FA0FB2 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3471866018070D9300FA0FB2 /* Foundation.framework */; }; + 3471866318070D9300FA0FB2 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3471866218070D9300FA0FB2 /* CoreGraphics.framework */; }; + 3471866518070D9300FA0FB2 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3471866418070D9300FA0FB2 /* UIKit.framework */; }; + 3471867A18070D9300FA0FB2 /* XCTest.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3471867918070D9300FA0FB2 /* XCTest.framework */; }; + 3471867B18070D9300FA0FB2 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3471866018070D9300FA0FB2 /* Foundation.framework */; }; + 3471867C18070D9300FA0FB2 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3471866418070D9300FA0FB2 /* UIKit.framework */; }; + 347186AC18070FAB00FA0FB2 /* CoreBluetooth.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 347186AB18070FAB00FA0FB2 /* CoreBluetooth.framework */; }; + 34AAB883189804FF0019860D /* DUREXAppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 34AAB877189804FF0019860D /* DUREXAppDelegate.m */; }; + 34AAB885189804FF0019860D /* EMDevicePickerViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 34AAB87A189804FF0019860D /* EMDevicePickerViewController.m */; }; + 34AAB889189804FF0019860D /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 34AAB880189804FF0019860D /* main.m */; }; + 34AAB88A189804FF0019860D /* MainStoryboard.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 34AAB881189804FF0019860D /* MainStoryboard.storyboard */; }; + 34AAB88D189805300019860D /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 34AAB88C189805300019860D /* Images.xcassets */; }; + F962A233192FCA8A00E4324A /* Stack.m in Sources */ = {isa = PBXBuildFile; fileRef = F962A232192FCA8A00E4324A /* Stack.m */; }; + F98356D6192E835F00EA6821 /* InitialViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = F98356D5192E835F00EA6821 /* InitialViewController.m */; }; + F98356D8192E906600EA6821 /* bluetooth.png in Resources */ = {isa = PBXBuildFile; fileRef = F98356D7192E906600EA6821 /* bluetooth.png */; }; + F98356DB192EAFD400EA6821 /* CommunicationProtocol.m in Sources */ = {isa = PBXBuildFile; fileRef = F98356DA192EAFD400EA6821 /* CommunicationProtocol.m */; }; + F98356E1192EC84700EA6821 /* MenuTableViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = F98356E0192EC84700EA6821 /* MenuTableViewController.m */; }; + F9C77F4E192CDE18002DBE8A /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = F9C77F4C192CDE18002DBE8A /* InfoPlist.strings */; }; + F9C77F50192CDE30002DBE8A /* durex.json in Resources */ = {isa = PBXBuildFile; fileRef = F9C77F4F192CDE30002DBE8A /* durex.json */; }; +/* End PBXBuildFile section */ + +/* Begin PBXContainerItemProxy section */ + 3471867D18070D9300FA0FB2 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 3471865518070D9300FA0FB2 /* Project object */; + proxyType = 1; + remoteGlobalIDString = 3471865C18070D9300FA0FB2; + remoteInfo = TestAppExample; + }; +/* End PBXContainerItemProxy section */ + +/* Begin PBXFileReference section */ + 3471865D18070D9300FA0FB2 /* DUREX test.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "DUREX test.app"; sourceTree = BUILT_PRODUCTS_DIR; }; + 3471866018070D9300FA0FB2 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; }; + 3471866218070D9300FA0FB2 /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; }; + 3471866418070D9300FA0FB2 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; }; + 3471867818070D9300FA0FB2 /* DUREX testTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "DUREX testTests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; }; + 3471867918070D9300FA0FB2 /* XCTest.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = XCTest.framework; path = Library/Frameworks/XCTest.framework; sourceTree = DEVELOPER_DIR; }; + 347186AB18070FAB00FA0FB2 /* CoreBluetooth.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreBluetooth.framework; path = System/Library/Frameworks/CoreBluetooth.framework; sourceTree = SDKROOT; }; + 34AAB876189804FF0019860D /* DUREXAppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = DUREXAppDelegate.h; path = FirstAppExample/DUREXAppDelegate.h; sourceTree = SOURCE_ROOT; }; + 34AAB877189804FF0019860D /* DUREXAppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = DUREXAppDelegate.m; path = FirstAppExample/DUREXAppDelegate.m; sourceTree = SOURCE_ROOT; }; + 34AAB879189804FF0019860D /* EMDevicePickerViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = EMDevicePickerViewController.h; path = FirstAppExample/EMDevicePickerViewController.h; sourceTree = SOURCE_ROOT; }; + 34AAB87A189804FF0019860D /* EMDevicePickerViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = EMDevicePickerViewController.m; path = FirstAppExample/EMDevicePickerViewController.m; sourceTree = SOURCE_ROOT; }; + 34AAB87E189804FF0019860D /* DUREX test-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = "DUREX test-Info.plist"; path = "FirstAppExample/DUREX test-Info.plist"; sourceTree = SOURCE_ROOT; }; + 34AAB87F189804FF0019860D /* DUREX test-Prefix.pch */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = "DUREX test-Prefix.pch"; path = "FirstAppExample/DUREX test-Prefix.pch"; sourceTree = SOURCE_ROOT; }; + 34AAB880189804FF0019860D /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = FirstAppExample/main.m; sourceTree = SOURCE_ROOT; }; + 34AAB881189804FF0019860D /* MainStoryboard.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; name = MainStoryboard.storyboard; path = FirstAppExample/MainStoryboard.storyboard; sourceTree = SOURCE_ROOT; }; + 34AAB88C189805300019860D /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = FirstAppExample/Images.xcassets; sourceTree = SOURCE_ROOT; }; + F962A231192FCA8A00E4324A /* Stack.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Stack.h; sourceTree = SOURCE_ROOT; }; + F962A232192FCA8A00E4324A /* Stack.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = Stack.m; sourceTree = SOURCE_ROOT; }; + F98356D4192E835F00EA6821 /* InitialViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = InitialViewController.h; sourceTree = SOURCE_ROOT; }; + F98356D5192E835F00EA6821 /* InitialViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = InitialViewController.m; sourceTree = SOURCE_ROOT; }; + F98356D7192E906600EA6821 /* bluetooth.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = bluetooth.png; sourceTree = SOURCE_ROOT; }; + F98356D9192EAFD400EA6821 /* CommunicationProtocol.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CommunicationProtocol.h; sourceTree = SOURCE_ROOT; }; + F98356DA192EAFD400EA6821 /* CommunicationProtocol.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = CommunicationProtocol.m; sourceTree = SOURCE_ROOT; }; + F98356DF192EC84700EA6821 /* MenuTableViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MenuTableViewController.h; sourceTree = SOURCE_ROOT; }; + F98356E0192EC84700EA6821 /* MenuTableViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MenuTableViewController.m; sourceTree = SOURCE_ROOT; }; + F9C77F4D192CDE18002DBE8A /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = FirstAppExample/en.lproj/InfoPlist.strings; sourceTree = SOURCE_ROOT; }; + F9C77F4F192CDE30002DBE8A /* durex.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = durex.json; sourceTree = SOURCE_ROOT; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 3471865A18070D9300FA0FB2 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 347186AC18070FAB00FA0FB2 /* CoreBluetooth.framework in Frameworks */, + 3471866318070D9300FA0FB2 /* CoreGraphics.framework in Frameworks */, + 3471866518070D9300FA0FB2 /* UIKit.framework in Frameworks */, + 3471866118070D9300FA0FB2 /* Foundation.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 3471867518070D9300FA0FB2 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 3471867A18070D9300FA0FB2 /* XCTest.framework in Frameworks */, + 3471867C18070D9300FA0FB2 /* UIKit.framework in Frameworks */, + 3471867B18070D9300FA0FB2 /* Foundation.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 3471865418070D9300FA0FB2 = { + isa = PBXGroup; + children = ( + 3471866618070D9300FA0FB2 /* FirstApp */, + 3471865F18070D9300FA0FB2 /* Frameworks */, + 3471865E18070D9300FA0FB2 /* Products */, + ); + sourceTree = ""; + }; + 3471865E18070D9300FA0FB2 /* Products */ = { + isa = PBXGroup; + children = ( + 3471865D18070D9300FA0FB2 /* DUREX test.app */, + 3471867818070D9300FA0FB2 /* DUREX testTests.xctest */, + ); + name = Products; + sourceTree = ""; + }; + 3471865F18070D9300FA0FB2 /* Frameworks */ = { + isa = PBXGroup; + children = ( + 347186AB18070FAB00FA0FB2 /* CoreBluetooth.framework */, + 3471866018070D9300FA0FB2 /* Foundation.framework */, + 3471866218070D9300FA0FB2 /* CoreGraphics.framework */, + 3471866418070D9300FA0FB2 /* UIKit.framework */, + 3471867918070D9300FA0FB2 /* XCTest.framework */, + ); + name = Frameworks; + sourceTree = ""; + }; + 3471866618070D9300FA0FB2 /* FirstApp */ = { + isa = PBXGroup; + children = ( + 34AAB881189804FF0019860D /* MainStoryboard.storyboard */, + 34AAB876189804FF0019860D /* DUREXAppDelegate.h */, + 34AAB877189804FF0019860D /* DUREXAppDelegate.m */, + F98356D4192E835F00EA6821 /* InitialViewController.h */, + F98356D5192E835F00EA6821 /* InitialViewController.m */, + F98356DF192EC84700EA6821 /* MenuTableViewController.h */, + F98356E0192EC84700EA6821 /* MenuTableViewController.m */, + F98356D9192EAFD400EA6821 /* CommunicationProtocol.h */, + F98356DA192EAFD400EA6821 /* CommunicationProtocol.m */, + 34AAB88C189805300019860D /* Images.xcassets */, + 347186B91807290E00FA0FB2 /* Schemas */, + 347186A718070F7F00FA0FB2 /* Device Picker */, + 3471868F18070E4300FA0FB2 /* Framework */, + 3471866718070D9300FA0FB2 /* Supporting Files */, + F962A231192FCA8A00E4324A /* Stack.h */, + F962A232192FCA8A00E4324A /* Stack.m */, + ); + name = FirstApp; + path = TestAppExample; + sourceTree = ""; + }; + 3471866718070D9300FA0FB2 /* Supporting Files */ = { + isa = PBXGroup; + children = ( + F98356D7192E906600EA6821 /* bluetooth.png */, + 34AAB87E189804FF0019860D /* DUREX test-Info.plist */, + 34AAB87F189804FF0019860D /* DUREX test-Prefix.pch */, + 34AAB880189804FF0019860D /* main.m */, + F9C77F4C192CDE18002DBE8A /* InfoPlist.strings */, + ); + name = "Supporting Files"; + sourceTree = ""; + }; + 3471868F18070E4300FA0FB2 /* Framework */ = { + isa = PBXGroup; + children = ( + ); + name = Framework; + sourceTree = ""; + }; + 347186A718070F7F00FA0FB2 /* Device Picker */ = { + isa = PBXGroup; + children = ( + 34AAB879189804FF0019860D /* EMDevicePickerViewController.h */, + 34AAB87A189804FF0019860D /* EMDevicePickerViewController.m */, + ); + name = "Device Picker"; + sourceTree = ""; + }; + 347186B91807290E00FA0FB2 /* Schemas */ = { + isa = PBXGroup; + children = ( + F9C77F4F192CDE30002DBE8A /* durex.json */, + ); + name = Schemas; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 3471865C18070D9300FA0FB2 /* DUREX test */ = { + isa = PBXNativeTarget; + buildConfigurationList = 3471868918070D9300FA0FB2 /* Build configuration list for PBXNativeTarget "DUREX test" */; + buildPhases = ( + 3471865918070D9300FA0FB2 /* Sources */, + 3471865A18070D9300FA0FB2 /* Frameworks */, + 3471865B18070D9300FA0FB2 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = "DUREX test"; + productName = TestAppExample; + productReference = 3471865D18070D9300FA0FB2 /* DUREX test.app */; + productType = "com.apple.product-type.application"; + }; + 3471867718070D9300FA0FB2 /* DUREX testTests */ = { + isa = PBXNativeTarget; + buildConfigurationList = 3471868C18070D9300FA0FB2 /* Build configuration list for PBXNativeTarget "DUREX testTests" */; + buildPhases = ( + 3471867418070D9300FA0FB2 /* Sources */, + 3471867518070D9300FA0FB2 /* Frameworks */, + 3471867618070D9300FA0FB2 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + 3471867E18070D9300FA0FB2 /* PBXTargetDependency */, + ); + name = "DUREX testTests"; + productName = TestAppExampleTests; + productReference = 3471867818070D9300FA0FB2 /* DUREX testTests.xctest */; + productType = "com.apple.product-type.bundle.unit-test"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 3471865518070D9300FA0FB2 /* Project object */ = { + isa = PBXProject; + attributes = { + CLASSPREFIX = EM; + LastUpgradeCheck = 0500; + ORGANIZATIONNAME = Emmoco; + TargetAttributes = { + 3471867718070D9300FA0FB2 = { + TestTargetID = 3471865C18070D9300FA0FB2; + }; + }; + }; + buildConfigurationList = 3471865818070D9300FA0FB2 /* Build configuration list for PBXProject "DUREX test" */; + compatibilityVersion = "Xcode 3.2"; + developmentRegion = English; + hasScannedForEncodings = 0; + knownRegions = ( + en, + ); + mainGroup = 3471865418070D9300FA0FB2; + productRefGroup = 3471865E18070D9300FA0FB2 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 3471865C18070D9300FA0FB2 /* DUREX test */, + 3471867718070D9300FA0FB2 /* DUREX testTests */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 3471865B18070D9300FA0FB2 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + F98356D8192E906600EA6821 /* bluetooth.png in Resources */, + F9C77F50192CDE30002DBE8A /* durex.json in Resources */, + F9C77F4E192CDE18002DBE8A /* InfoPlist.strings in Resources */, + 34AAB88D189805300019860D /* Images.xcassets in Resources */, + 34AAB88A189804FF0019860D /* MainStoryboard.storyboard in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 3471867618070D9300FA0FB2 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 3471865918070D9300FA0FB2 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + F98356D6192E835F00EA6821 /* InitialViewController.m in Sources */, + F962A233192FCA8A00E4324A /* Stack.m in Sources */, + 34AAB885189804FF0019860D /* EMDevicePickerViewController.m in Sources */, + 34AAB883189804FF0019860D /* DUREXAppDelegate.m in Sources */, + F98356DB192EAFD400EA6821 /* CommunicationProtocol.m in Sources */, + F98356E1192EC84700EA6821 /* MenuTableViewController.m in Sources */, + 34AAB889189804FF0019860D /* main.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 3471867418070D9300FA0FB2 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXTargetDependency section */ + 3471867E18070D9300FA0FB2 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 3471865C18070D9300FA0FB2 /* DUREX test */; + targetProxy = 3471867D18070D9300FA0FB2 /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + +/* Begin PBXVariantGroup section */ + F9C77F4C192CDE18002DBE8A /* InfoPlist.strings */ = { + isa = PBXVariantGroup; + children = ( + F9C77F4D192CDE18002DBE8A /* en */, + ); + name = InfoPlist.strings; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + 3471868718070D9300FA0FB2 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)"; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_DYNAMIC_NO_PIC = NO; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_SYMBOLS_PRIVATE_EXTERN = NO; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 7.0; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + }; + name = Debug; + }; + 3471868818070D9300FA0FB2 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)"; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = YES; + ENABLE_NS_ASSERTIONS = NO; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 7.0; + SDKROOT = iphoneos; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + 3471868A18070D9300FA0FB2 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ARCHS = "$(ARCHS_STANDARD)"; + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = "FirstAppExample/DUREX test-Prefix.pch"; + INFOPLIST_FILE = "FirstAppExample/DUREX test-Info.plist"; + LIBRARY_SEARCH_PATHS = ( + "$(inherited)", + EmmocoMobileFramework/Framework, + ); + OTHER_LDFLAGS = "-all_load"; + PRODUCT_NAME = "DUREX test"; + WRAPPER_EXTENSION = app; + }; + name = Debug; + }; + 3471868B18070D9300FA0FB2 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ARCHS = "$(ARCHS_STANDARD)"; + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = "FirstAppExample/DUREX test-Prefix.pch"; + INFOPLIST_FILE = "FirstAppExample/DUREX test-Info.plist"; + LIBRARY_SEARCH_PATHS = ( + "$(inherited)", + EmmocoMobileFramework/Framework, + ); + OTHER_LDFLAGS = "-all_load"; + PRODUCT_NAME = "DUREX test"; + WRAPPER_EXTENSION = app; + }; + name = Release; + }; + 3471868D18070D9300FA0FB2 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)"; + BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/TestAppExample.app/TestAppExample"; + FRAMEWORK_SEARCH_PATHS = ( + "$(SDKROOT)/Developer/Library/Frameworks", + "$(inherited)", + "$(DEVELOPER_FRAMEWORKS_DIR)", + ); + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = "TestAppExample/TestAppExample-Prefix.pch"; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + INFOPLIST_FILE = "TestAppExampleTests/FirstAppTests-Info.plist"; + PRODUCT_NAME = "DUREX testTests"; + TEST_HOST = "$(BUNDLE_LOADER)"; + WRAPPER_EXTENSION = xctest; + }; + name = Debug; + }; + 3471868E18070D9300FA0FB2 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)"; + BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/TestAppExample.app/TestAppExample"; + FRAMEWORK_SEARCH_PATHS = ( + "$(SDKROOT)/Developer/Library/Frameworks", + "$(inherited)", + "$(DEVELOPER_FRAMEWORKS_DIR)", + ); + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = "TestAppExample/TestAppExample-Prefix.pch"; + INFOPLIST_FILE = "TestAppExampleTests/FirstAppTests-Info.plist"; + PRODUCT_NAME = "DUREX testTests"; + TEST_HOST = "$(BUNDLE_LOADER)"; + WRAPPER_EXTENSION = xctest; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 3471865818070D9300FA0FB2 /* Build configuration list for PBXProject "DUREX test" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 3471868718070D9300FA0FB2 /* Debug */, + 3471868818070D9300FA0FB2 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 3471868918070D9300FA0FB2 /* Build configuration list for PBXNativeTarget "DUREX test" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 3471868A18070D9300FA0FB2 /* Debug */, + 3471868B18070D9300FA0FB2 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 3471868C18070D9300FA0FB2 /* Build configuration list for PBXNativeTarget "DUREX testTests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 3471868D18070D9300FA0FB2 /* Debug */, + 3471868E18070D9300FA0FB2 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 3471865518070D9300FA0FB2 /* Project object */; +} diff --git a/DUREX tests/DUREX test.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/DUREX tests/DUREX test.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..279d594 --- /dev/null +++ b/DUREX tests/DUREX test.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/DUREX tests/DUREX test.xcodeproj/project.xcworkspace/xcshareddata/FirstApp.xccheckout b/DUREX tests/DUREX test.xcodeproj/project.xcworkspace/xcshareddata/FirstApp.xccheckout new file mode 100644 index 0000000..ad60022 --- /dev/null +++ b/DUREX tests/DUREX test.xcodeproj/project.xcworkspace/xcshareddata/FirstApp.xccheckout @@ -0,0 +1,46 @@ + + + + + IDESourceControlProjectFavoriteDictionaryKey + + IDESourceControlProjectIdentifier + F3823CA7-4E1F-42C9-83E6-7F9A3B0B4380 + IDESourceControlProjectName + FirstApp + IDESourceControlProjectOriginsDictionary + + C52D274C-DEEC-4CDB-BD77-3B4747652588 + svn://imanolbarba.net/durex + + IDESourceControlProjectPath + ios-examples-13.4.9/FirstApp/FirstApp.xcodeproj/project.xcworkspace + IDESourceControlProjectRelativeInstallPathDictionary + + C52D274C-DEEC-4CDB-BD77-3B4747652588 + ../../../.. + + IDESourceControlProjectRepositoryRootDictionary + + C52D274C-DEEC-4CDB-BD77-3B4747652588 + svn://imanolbarba.net/durex + + IDESourceControlProjectURL + svn://imanolbarba.net/durex/ios-examples-13.4.9/FirstApp/FirstApp.xcodeproj + IDESourceControlProjectVersion + 110 + IDESourceControlProjectWCCIdentifier + C52D274C-DEEC-4CDB-BD77-3B4747652588 + IDESourceControlProjectWCConfigurations + + + IDESourceControlRepositoryExtensionIdentifierKey + public.vcs.subversion + IDESourceControlWCCIdentifierKey + C52D274C-DEEC-4CDB-BD77-3B4747652588 + IDESourceControlWCCName + durex + + + + diff --git a/DUREX tests/DUREX test.xcodeproj/project.xcworkspace/xcuserdata/imanol.xcuserdatad/UserInterfaceState.xcuserstate b/DUREX tests/DUREX test.xcodeproj/project.xcworkspace/xcuserdata/imanol.xcuserdatad/UserInterfaceState.xcuserstate new file mode 100644 index 0000000..a28132b --- /dev/null +++ b/DUREX tests/DUREX test.xcodeproj/project.xcworkspace/xcuserdata/imanol.xcuserdatad/UserInterfaceState.xcuserstate diff --git a/DUREX tests/DUREX test.xcodeproj/project.xcworkspace/xcuserdata/imanol.xcuserdatad/WorkspaceSettings.xcsettings b/DUREX tests/DUREX test.xcodeproj/project.xcworkspace/xcuserdata/imanol.xcuserdatad/WorkspaceSettings.xcsettings new file mode 100644 index 0000000..659c876 --- /dev/null +++ b/DUREX tests/DUREX test.xcodeproj/project.xcworkspace/xcuserdata/imanol.xcuserdatad/WorkspaceSettings.xcsettings @@ -0,0 +1,10 @@ + + + + + HasAskedToTakeAutomaticSnapshotBeforeSignificantChanges + + SnapshotAutomaticallyBeforeSignificantChanges + + + diff --git a/DUREX tests/DUREX test.xcodeproj/xcuserdata/imanol.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist b/DUREX tests/DUREX test.xcodeproj/xcuserdata/imanol.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist new file mode 100644 index 0000000..fe2b454 --- /dev/null +++ b/DUREX tests/DUREX test.xcodeproj/xcuserdata/imanol.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist @@ -0,0 +1,5 @@ + + + diff --git a/DUREX tests/DUREX test.xcodeproj/xcuserdata/imanol.xcuserdatad/xcschemes/DUREX Vendor Control.xcscheme b/DUREX tests/DUREX test.xcodeproj/xcuserdata/imanol.xcuserdatad/xcschemes/DUREX Vendor Control.xcscheme new file mode 100644 index 0000000..8439a25 --- /dev/null +++ b/DUREX tests/DUREX test.xcodeproj/xcuserdata/imanol.xcuserdatad/xcschemes/DUREX Vendor Control.xcscheme @@ -0,0 +1,96 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/DUREX tests/DUREX test.xcodeproj/xcuserdata/imanol.xcuserdatad/xcschemes/xcschememanagement.plist b/DUREX tests/DUREX test.xcodeproj/xcuserdata/imanol.xcuserdatad/xcschemes/xcschememanagement.plist new file mode 100644 index 0000000..4351a92 --- /dev/null +++ b/DUREX tests/DUREX test.xcodeproj/xcuserdata/imanol.xcuserdatad/xcschemes/xcschememanagement.plist @@ -0,0 +1,27 @@ + + + + + SchemeUserState + + DUREX Vendor Control.xcscheme + + orderHint + 0 + + + SuppressBuildableAutocreation + + 3471865C18070D9300FA0FB2 + + primary + + + 3471867718070D9300FA0FB2 + + primary + + + + + diff --git a/DUREX tests/EmmocoMobileFramework/Assets/system.json b/DUREX tests/EmmocoMobileFramework/Assets/system.json new file mode 100644 index 0000000..7a27c17 --- /dev/null +++ b/DUREX tests/EmmocoMobileFramework/Assets/system.json @@ -0,0 +1,196 @@ +{ + "resources": { + "$activeParameterGroup": { + "id": -10, + "align": 1, + "pack": 1, + "attributes": {"readwrite": true}, + "type": "E:system@emmoco.com.System/ParameterGroup", + "access": "rw", + "size": 1 + }, + "$schemaHash": { + "dim": 20, + "id": -6, + "align": 1, + "attributes": {"readonly": true}, + "type": "A20:u1", + "access": "r", + "size": 20 + }, + "$eapProtocolLevel": { + "id": -3, + "align": 2, + "attributes": {"readonly": true}, + "type": "u2", + "access": "r", + "size": 2 + }, + "$mcmProtocolLevel": { + "id": -2, + "align": 2, + "attributes": {"readonly": true}, + "type": "u2", + "access": "r", + "size": 2 + }, + "$mobileRssi": { + "id": -8, + "align": 1, + "attributes": {"readonly": true}, + "type": "i1", + "access": "r", + "size": 1 + }, + "$mcmDisconnect": { + "id": -9, + "align": 1, + "attributes": {"writeonly": true}, + "type": "u1", + "access": "w", + "size": 1 + }, + "$eapBuildDate": { + "dim": 8, + "id": -4, + "align": 1, + "attributes": {"readonly": true}, + "type": "A8:u1", + "access": "r", + "size": 8 + }, + "$resourceCount": { + "id": -7, + "align": 1, + "attributes": {"readonly": true}, + "type": "S:system@emmoco.com.System/ResourceCount", + "access": "r", + "size": 2 + }, + "$fileIndexReset": { + "id": -5, + "align": 2, + "attributes": {"writeonly": true}, + "type": "i2", + "access": "w", + "size": 2 + } + }, + "resourceNamesSys": [ + "$activeParameterGroup", + "$eapBuildDate", + "$eapProtocolLevel", + "$fileIndexReset", + "$mcmDisconnect", + "$mcmProtocolLevel", + "$mobileRssi", + "$resourceCount", + "$schemaHash" + ], + "manifest": { + "protocolLevel": 13, + "hash": [ + 108, + 31, + 53, + 92, + 46, + 47, + 48, + 241, + 201, + 5, + 236, + 253, + 10, + 254, + 240, + 187 + ], + "toolVersion": "13.3.0.201307022239", + "name": "System", + "$$md5": "6c1f355c2e2f30f1c905ecfd0afef0bb", + "build": [ + 99, + 80, + 140, + 161, + 63, + 1, + 0, + 0 + ], + "date": "2013-07-02T17:41:34", + "idFormat": "BINARY4", + "maxAlign": 2, + "maxSize": 20, + "version": "13.3.0" + }, + "resourceNames": [ + "$mcmProtocolLevel", + "$eapProtocolLevel", + "$eapBuildDate", + "$fileIndexReset", + "$schemaHash", + "$resourceCount", + "$mobileRssi", + "$mcmDisconnect", + "$activeParameterGroup" + ], + "attributes": { + "description": "System resources schema", + "version": "13.3.0" + }, + "types": { + "system@emmoco.com.System/ResourceCount": { + "packed": false, + "align": 1, + "type": "S:system@emmoco.com.System/ResourceCount", + "size": 2, + "fields": [ + { + "pad": 0, + "align": 1, + "name": "app", + "type": "u1", + "size": 1 + }, + { + "pad": 0, + "align": 1, + "name": "sys", + "type": "u1", + "size": 1 + } + ] + }, + "std:i2": { + "align": 2, + "size": 2 + }, + "std:i1": { + "align": 1, + "size": 1 + }, + "std:u1": { + "align": 1, + "size": 1 + }, + "system@emmoco.com.System/ParameterGroup": { + "values": [ + "GROUP_A", + "GROUP_B" + ], + "align": 1, + "pack": 1, + "type": "E:system@emmoco.com.System/ParameterGroup", + "size": 1 + }, + "std:u2": { + "align": 2, + "size": 2 + } + }, + "resourceNamesApp": [], + "imports": {"@emmoco.com.System": true} +} \ No newline at end of file diff --git a/DUREX tests/EmmocoMobileFramework/Docs/Classes/ArrayValue.html b/DUREX tests/EmmocoMobileFramework/Docs/Classes/ArrayValue.html new file mode 100644 index 0000000..875bda7 --- /dev/null +++ b/DUREX tests/EmmocoMobileFramework/Docs/Classes/ArrayValue.html @@ -0,0 +1,1231 @@ + + + + + ArrayValue Class Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + + + + +
Inherits fromEMResourceValue : NSObject
Conforms toEMResourceValueProtocol
Declared inEMResourceValue.m
+ + + + + + +
+ +

Tasks

+ + + + + + + +
+ + + + + + + + + +
+ +

Instance Methods

+ +
+ +

copyFromResource:

+ + + + +
- (void)copyFromResource:(EMResourceValue *)source
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

doubleValue

+ + + + +
- (double)doubleValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

enumValues

+ + + + +
- (NSArray *)enumValues
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fieldNames

+ + + + +
- (NSArray *)fieldNames
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileEof

+ + + + +
- (BOOL)fileEof
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileFetch

+ + + + +
- (void)fileFetch
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileStore

+ + + + +
- (void)fileStore
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

getDataOfSize:fromBuffer:

+ + + + +
- (void)getDataOfSize:(int)size fromBuffer:(EMSerialPacket *)buffer
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

index:

+ + + + +
- (EMResourceValue *)index:(int)index
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

initWithName:type:schema:

+ + + + +
- (id)initWithName:(NSString *)theName type:(NSString *)theType schema:(EMSchema *)theResourceSchema
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

length

+ + + + +
- (long)length
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

longValue

+ + + + +
- (long long)longValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

max

+ + + + +
- (double)max
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

min

+ + + + +
- (double)min
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

putData:

+ + + + +
- (void)putData:(EMSerialPacket *)buffer
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

reset

+ + + + +
- (void)reset
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

select:

+ + + + +
- (EMResourceValue *)select:(NSString *)fieldName
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setDoubleValue:

+ + + + +
- (void)setDoubleValue:(double)value
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setLongValue:

+ + + + +
- (void)setLongValue:(long long)value
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setStringValue:

+ + + + +
- (void)setStringValue:(NSString *)value
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

step

+ + + + +
- (double)step
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

stringValue

+ + + + +
- (NSString *)stringValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ + +
+ + +
+
+ + + \ No newline at end of file diff --git a/DUREX tests/EmmocoMobileFramework/Docs/Classes/EMBluetoothLowEnergyConnectionType.html b/DUREX tests/EmmocoMobileFramework/Docs/Classes/EMBluetoothLowEnergyConnectionType.html new file mode 100644 index 0000000..67de2aa --- /dev/null +++ b/DUREX tests/EmmocoMobileFramework/Docs/Classes/EMBluetoothLowEnergyConnectionType.html @@ -0,0 +1,1030 @@ + + + + + EMBluetoothLowEnergyConnectionType Class Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + + + + +
Inherits fromNSObject
Conforms toCBCentralManagerDelegate
CBPeripheralDelegate
EMConnectionType
Declared inEMBluetoothLowEnergyConnectionType.h
EMBluetoothLowEnergyConnectionType.m
+ + + + +
+ +

Overview

+

EMBluethoothLowEnergyConnectionType is a concrete EMConnectionType for Bluetooth Low Energy.

+ +

If you want the framework to interact with Bluetooth Low Energy devices, add an instance of this class to EMConnectionListManager via the -addConnectionTypeToUpdates: method.

+
+ + + + + +
+ +

Tasks

+ + + +

Other Methods

+ +
    +
  • + +   discoversAllEmmocoBLEDevices +

    By default, EMBluetoothLowEnergyConnectionType will ‘discover’ devices that have a schema hash matching a schema in your application bundle. +Set this flag to ‘YES’ for an instance of this class to discover all Emmoco BLE devices. +NOTE: Most applications should not have this enabled.

    +
    + property + +
  • +
+ + + +

Other Methods

+ + + + + +

Extension Methods

+ +
    +
  • + +   connected +

    A boolean indicating whether or not there is a connection with a device.

    +
    + property + +
  • +
+ +
+ + + + + +
+ +

Properties

+ +
+ +

connected

+ + + +
+

A boolean indicating whether or not there is a connection with a device.

+
+ + +
@property (nonatomic, getter=isConnected) BOOL connected
+ + + + + + + + +
+

Discussion

+

A boolean indicating whether or not there is a connection with a device.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

discoversAllEmmocoBLEDevices

+ + + +
+

By default, EMBluetoothLowEnergyConnectionType will ‘discover’ devices that have a schema hash matching a schema in your application bundle. +Set this flag to ‘YES’ for an instance of this class to discover all Emmoco BLE devices. +NOTE: Most applications should not have this enabled.

+
+ + +
@property (nonatomic) BOOL discoversAllEmmocoBLEDevices
+ + + + + + + + +
+

Discussion

+

By default, EMBluetoothLowEnergyConnectionType will ‘discover’ devices that have a schema hash matching a schema in your application bundle. +Set this flag to ‘YES’ for an instance of this class to discover all Emmoco BLE devices. +NOTE: Most applications should not have this enabled.

+
+ + + + + + + +
+

Declared In

+ EMBluetoothLowEnergyConnectionType.h
+
+ + +
+ +
+ + + + + +
+ +

Instance Methods

+ +
+ +

connectToDevice:connectionDelegate:

+ + + +
+

Establishes a connection with a device

+
+ + +
- (void)connectToDevice:(EMDeviceBasicDescription *)device connectionDelegate:(id<EMDeviceDelegate>)connDelegate
+ + + + + + + + +
+

Discussion

+

Establishes a connection with a device

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

deviceType

+ + + +
+

The type of device - this can be set to anything and retreived for printing or examining.

+
+ + +
- (NSString *)deviceType
+ + + + + + + + +
+

Discussion

+

The type of device - this can be set to anything and retreived for printing or examining.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

disconnect

+ + + +
+

disconnects the current device.

+
+ + +
- (void)disconnect
+ + + + + + + + +
+

Discussion

+

disconnects the current device.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

fetch:

+ + + +
+

Fetches a resource. Can be retrieved in “lastReadValue”

+
+ + +
- (void)fetch:(EMResourceValue *)value
+ + + + + + + + +
+

Discussion

+

Fetches a resource. Can be retrieved in “lastReadValue”

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

fetchSystemResource:

+ + + +
+

Fetches a system resource. Can be retrieved in “lastReadValue”.

+
+ + +
- (void)fetchSystemResource:(EMResourceValue *)value
+ + + + + + + + +
+

Discussion

+

Fetches a system resource. Can be retrieved in “lastReadValue”.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

isAvailable

+ + + +
+

YES if available on the current device, NO if unavailable.

+
+ + +
- (BOOL)isAvailable
+ + + + + + + + +
+

Discussion

+

YES if available on the current device, NO if unavailable.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

lastReadValue

+ + + +
+

The last read resource value from the device

+
+ + +
- (EMResourceValue *)lastReadValue
+ + + + + + + + +
+

Discussion

+

The last read resource value from the device

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

setConnectionDelegate:

+ + + +
+

The delegate for connection communication

+
+ + +
- (void)setConnectionDelegate:(id<EMDeviceDelegate>)connectionDelegate
+ + + + + + + + +
+

Discussion

+

The delegate for connection communication

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

startUpdating

+ + + +
+

Tells the connection to start looking for devices of its type.

+
+ + +
- (void)startUpdating
+ + + + + + + + +
+

Discussion

+

Tells the connection to start looking for devices of its type.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

stopUpdating

+ + + +
+

Tells the connection to stop looking for devices of its type.

+
+ + +
- (void)stopUpdating
+ + + + + + + + +
+

Discussion

+

Tells the connection to stop looking for devices of its type.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

store:

+ + + +
+

writes a value to a device.

+
+ + +
- (void)store:(EMResourceValue *)value
+ + + + + + + + +
+

Discussion

+

writes a value to a device.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ + +
+ + +
+
+ + + \ No newline at end of file diff --git a/DUREX tests/EmmocoMobileFramework/Docs/Classes/EMBluetoothLowEnergyConnectionType_v12.html b/DUREX tests/EmmocoMobileFramework/Docs/Classes/EMBluetoothLowEnergyConnectionType_v12.html new file mode 100644 index 0000000..2f3d888 --- /dev/null +++ b/DUREX tests/EmmocoMobileFramework/Docs/Classes/EMBluetoothLowEnergyConnectionType_v12.html @@ -0,0 +1,866 @@ + + + + + EMBluetoothLowEnergyConnectionType_v12 Class Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + + + + +
Inherits fromNSObject
Conforms toCBCentralManagerDelegate
CBPeripheralDelegate
EMConnectionType
Declared inEMBluetoothLowEnergyConnectionType_v12.h
EMBluetoothLowEnergyConnectionType_v12.m
+ + + + +
+ +

Overview

+

EMBluethoothLowEnergyConnectionType is a concrete EMConnectionType for Bluetooth Low Energy.

+ +

If you want the framework to interact with Bluetooth Low Energy devices, add an instance of this class to EMConnectionListManager via the -addConnectionTypeToUpdates: method.

+
+ + + + + +
+ +

Tasks

+ + + +

Other Methods

+ + + + + +

Extension Methods

+ +
    +
  • + +   connected +

    A boolean indicating whether or not there is a connection with a device.

    +
    + property + +
  • +
+ +
+ + + + + +
+ +

Properties

+ +
+ +

connected

+ + + +
+

A boolean indicating whether or not there is a connection with a device.

+
+ + +
@property (nonatomic, getter=isConnected) BOOL connected
+ + + + + + + + +
+

Discussion

+

A boolean indicating whether or not there is a connection with a device.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ + + + + +
+ +

Instance Methods

+ +
+ +

connectToDevice:connectionDelegate:

+ + + +
+

Establishes a connection with a device

+
+ + +
- (void)connectToDevice:(EMDeviceBasicDescription *)device connectionDelegate:(id<EMDeviceDelegate>)connDelegate
+ + + + + + + + +
+

Discussion

+

Establishes a connection with a device

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

deviceType

+ + + +
+

The type of device - this can be set to anything and retreived for printing or examining.

+
+ + +
- (NSString *)deviceType
+ + + + + + + + +
+

Discussion

+

The type of device - this can be set to anything and retreived for printing or examining.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

disconnect

+ + + +
+

disconnects the current device.

+
+ + +
- (void)disconnect
+ + + + + + + + +
+

Discussion

+

disconnects the current device.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

fetch:

+ + + +
+

Fetches a resource. Can be retrieved in “lastReadValue”

+
+ + +
- (void)fetch:(EMResourceValue *)value
+ + + + + + + + +
+

Discussion

+

Fetches a resource. Can be retrieved in “lastReadValue”

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

fetchSystemResource:

+ + + +
+

Fetches a system resource. Can be retrieved in “lastReadValue”.

+
+ + +
- (void)fetchSystemResource:(EMResourceValue *)value
+ + + + + + + + +
+

Discussion

+

Fetches a system resource. Can be retrieved in “lastReadValue”.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

isAvailable

+ + + +
+

YES if available on the current device, NO if unavailable.

+
+ + +
- (BOOL)isAvailable
+ + + + + + + + +
+

Discussion

+

YES if available on the current device, NO if unavailable.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

startUpdating

+ + + +
+

Tells the connection to start looking for devices of its type.

+
+ + +
- (void)startUpdating
+ + + + + + + + +
+

Discussion

+

Tells the connection to start looking for devices of its type.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

stopUpdating

+ + + +
+

Tells the connection to stop looking for devices of its type.

+
+ + +
- (void)stopUpdating
+ + + + + + + + +
+

Discussion

+

Tells the connection to stop looking for devices of its type.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

store:

+ + + +
+

writes a value to a device.

+
+ + +
- (void)store:(EMResourceValue *)value
+ + + + + + + + +
+

Discussion

+

writes a value to a device.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ + +
+ + +
+
+ + + \ No newline at end of file diff --git a/DUREX tests/EmmocoMobileFramework/Docs/Classes/EMBluetoothLowEnergyConnectionType_v13.html b/DUREX tests/EmmocoMobileFramework/Docs/Classes/EMBluetoothLowEnergyConnectionType_v13.html new file mode 100644 index 0000000..125b2cd --- /dev/null +++ b/DUREX tests/EmmocoMobileFramework/Docs/Classes/EMBluetoothLowEnergyConnectionType_v13.html @@ -0,0 +1,866 @@ + + + + + EMBluetoothLowEnergyConnectionType_v13 Class Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + + + + +
Inherits fromNSObject
Conforms toCBCentralManagerDelegate
CBPeripheralDelegate
EMConnectionType
Declared inEMBluetoothLowEnergyConnectionType_v13.h
EMBluetoothLowEnergyConnectionType_v13.m
+ + + + +
+ +

Overview

+

EMBluethoothLowEnergyConnectionType is a concrete EMConnectionType for Bluetooth Low Energy.

+ +

If you want the framework to interact with Bluetooth Low Energy devices, add an instance of this class to EMConnectionListManager via the -addConnectionTypeToUpdates: method.

+
+ + + + + +
+ +

Tasks

+ + + +

Other Methods

+ + + + + +

Extension Methods

+ +
    +
  • + +   connected +

    A boolean indicating whether or not there is a connection with a device.

    +
    + property + +
  • +
+ +
+ + + + + +
+ +

Properties

+ +
+ +

connected

+ + + +
+

A boolean indicating whether or not there is a connection with a device.

+
+ + +
@property (nonatomic, getter=isConnected) BOOL connected
+ + + + + + + + +
+

Discussion

+

A boolean indicating whether or not there is a connection with a device.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ + + + + +
+ +

Instance Methods

+ +
+ +

connectToDevice:connectionDelegate:

+ + + +
+

Establishes a connection with a device

+
+ + +
- (void)connectToDevice:(EMDeviceBasicDescription *)device connectionDelegate:(id<EMDeviceDelegate>)connDelegate
+ + + + + + + + +
+

Discussion

+

Establishes a connection with a device

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

deviceType

+ + + +
+

The type of device - this can be set to anything and retreived for printing or examining.

+
+ + +
- (NSString *)deviceType
+ + + + + + + + +
+

Discussion

+

The type of device - this can be set to anything and retreived for printing or examining.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

disconnect

+ + + +
+

disconnects the current device.

+
+ + +
- (void)disconnect
+ + + + + + + + +
+

Discussion

+

disconnects the current device.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

fetch:

+ + + +
+

Fetches a resource. Can be retrieved in “lastReadValue”

+
+ + +
- (void)fetch:(EMResourceValue *)value
+ + + + + + + + +
+

Discussion

+

Fetches a resource. Can be retrieved in “lastReadValue”

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

fetchSystemResource:

+ + + +
+

Fetches a system resource. Can be retrieved in “lastReadValue”.

+
+ + +
- (void)fetchSystemResource:(EMResourceValue *)value
+ + + + + + + + +
+

Discussion

+

Fetches a system resource. Can be retrieved in “lastReadValue”.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

isAvailable

+ + + +
+

YES if available on the current device, NO if unavailable.

+
+ + +
- (BOOL)isAvailable
+ + + + + + + + +
+

Discussion

+

YES if available on the current device, NO if unavailable.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

startUpdating

+ + + +
+

Tells the connection to start looking for devices of its type.

+
+ + +
- (void)startUpdating
+ + + + + + + + +
+

Discussion

+

Tells the connection to start looking for devices of its type.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

stopUpdating

+ + + +
+

Tells the connection to stop looking for devices of its type.

+
+ + +
- (void)stopUpdating
+ + + + + + + + +
+

Discussion

+

Tells the connection to stop looking for devices of its type.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

store:

+ + + +
+

writes a value to a device.

+
+ + +
- (void)store:(EMResourceValue *)value
+ + + + + + + + +
+

Discussion

+

writes a value to a device.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ + +
+ + +
+
+ + + \ No newline at end of file diff --git a/DUREX tests/EmmocoMobileFramework/Docs/Classes/EMConnection.html b/DUREX tests/EmmocoMobileFramework/Docs/Classes/EMConnection.html new file mode 100644 index 0000000..2edb0eb --- /dev/null +++ b/DUREX tests/EmmocoMobileFramework/Docs/Classes/EMConnection.html @@ -0,0 +1,1105 @@ + + + + + EMConnection Class Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + + + + +
Inherits fromNSObject
Conforms toEMDeviceDelegate
Declared inEMConnection.h
EMConnection.m
+ + + + +
+ +

Overview

+

The state of the current connection. Use KVO to receive updates on this property and react to changes.

+
+ + + + + +
+ +

Tasks

+ + + + + + + +
+ + + + + +
+ +

Properties

+ +
+ +

connectionAttemptTimeout

+ + + +
+

The timeout interval for a pending connection

+
+ + +
@property (atomic) NSTimeInterval connectionAttemptTimeout
+ + + + + + + + +
+

Discussion

+

The timeout interval for a pending connection

+
+ + + + + + + +
+

Declared In

+ EMConnection.h
+
+ + +
+ +
+ +

connectionClosedBlock

+ + + +
+

This block will be called when an open connection is closed for any reason

+
+ + +
@property (atomic, strong) EMResourceBlock connectionClosedBlock
+ + + + + + + + +
+

Discussion

+

This block will be called when an open connection is closed for any reason

+
+ + + + + + + +
+

Declared In

+ EMConnection.h
+
+ + +
+ +
+ +

connectionDelegate

+ + + +
+

The connection delegate. EMConnectionManager will post connect and disconnect delegate messages to this object if it is set.

+
+ + +
@property (nonatomic, unsafe_unretained) id<EMConnectionDelegate> connectionDelegate
+ + + + + + + + +
+

Discussion

+

The connection delegate. EMConnectionManager will post connect and disconnect delegate messages to this object if it is set.

+
+ + + + + + + +
+

Declared In

+ EMConnection.h
+
+ + +
+ +
+ +

device

+ + + +
+

The EMDeviceBasicDescription used for conenction

+
+ + +
@property (nonatomic, strong) EMDeviceBasicDescription *device
+ + + + + + + + +
+

Discussion

+

The EMDeviceBasicDescription used for conenction

+
+ + + + + + + +
+

Declared In

+ EMConnection.h
+
+ + +
+ +
+ +

schema

+ + + +
+

The schema for connection

+
+ + +
@property (nonatomic, strong) EMSchema *schema
+ + + + + + + + +
+

Discussion

+

The schema for connection

+
+ + + + + + + +
+

Declared In

+ EMConnection.h
+
+ + +
+ +
+ + + + + +
+ +

Instance Methods

+ +
+ +

cancelOpen

+ + + +
+

Cancels the attempt to open this EMTargetConnection, posting the open block with a failed status.

+
+ + +
- (void)cancelOpen
+ + + + + + + + +
+

Discussion

+

Cancels the attempt to open this EMTargetConnection, posting the open block with a failed status.

+
+ + + + + + + +
+

Declared In

+ EMConnection.h
+
+ + +
+ +
+ +

closeConnectionWithSuccess:onFail:

+ + + +
+

Closes the connection

+
+ + +
- (void)closeConnectionWithSuccess:(EMResourceBlock)successBlock onFail:(EMFailBlock)failBlock
+ + +
+

Parameters

+ +
+
successBlock
+

A block to call on a successful disconnect

+
+ +
+
failBlock
+

A block to call on a failed disconnect

+
+ +
+ + + + + + + +
+

Discussion

+

Closes the connection

+
+ + + + + + + +
+

Declared In

+ EMConnection.h
+
+ + +
+ +
+ +

initWithDevice:

+ + + +
+

Creates a new EMConnection object. +Actual connection and disconnection to the named target occurs through calls to open and close on this object.

+
+ + +
- (id)initWithDevice:(EMDeviceBasicDescription *)device
+ + +
+

Parameters

+ +
+
device
+

The basic description of a device

+
+ +
+ + + + + + + +
+

Discussion

+

Creates a new EMConnection object. +Actual connection and disconnection to the named target occurs through calls to open and close on this object.

+
+ + + + + + + +
+

Declared In

+ EMConnection.h
+
+ + +
+ +
+ +

initWithDevice:schema:

+ + + +
+

Creates a new EMTargetConnection object. +Actual connection and disconnection to the named target occurs through calls to open and close on this object.

+
+ + +
- (id)initWithDevice:(EMDeviceBasicDescription *)device schema:(EMSchema *)resourceSchema
+ + +
+

Parameters

+ +
+
device
+

the name of the target device, including one of the pre-defined prefixes

+
+ +
+
resourceSchema
+

the schema describing the resources available in this connection

+
+ +
+ + + + + + + +
+

Discussion

+

Creates a new EMTargetConnection object. +Actual connection and disconnection to the named target occurs through calls to open and close on this object.

+
+ + + + + + + +
+

Declared In

+ EMConnection.h
+
+ + +
+ +
+ +

isConnected

+ + + +
+

Returns true if connected and false otherwise.

+
+ + +
- (BOOL)isConnected
+ + + + + + + + +
+

Discussion

+

Returns true if connected and false otherwise.

+
+ + + + + + + +
+

Declared In

+ EMConnection.h
+
+ + +
+ +
+ +

openConnectionWithSuccess:onFail:

+ + + +
+

Opens a connection to the @device device property

+
+ + +
- (void)openConnectionWithSuccess:(EMResourceBlock)successBlock onFail:(EMFailBlock)failBlock
+ + +
+

Parameters

+ +
+
successBlock
+

A block to call on a successful connect

+
+ +
+
failBlock
+

A block to call on a failed connect

+
+ +
+ + + + + + + +
+

Discussion

+

Opens a connection to the @device device property

+
+ + + + + + + +
+

Declared In

+ EMConnection.h
+
+ + +
+ +
+ +

readValueNamed:onSuccess:onFail:

+ + + +
+

Reads a value

+
+ + +
- (void)readValueNamed:(NSString *)resourceName onSuccess:(EMResourceBlock)successBlock onFail:(EMFailBlock)failBlock
+ + +
+

Parameters

+ +
+
resourceName
+

The name of the resource to read

+
+ +
+
successBlock
+

A block to call on a successful read

+
+ +
+
failBlock
+

A block to call on a failed read

+
+ +
+ + + + + + + +
+

Discussion

+

Reads a value

+
+ + + + + + + +
+

Declared In

+ EMConnection.h
+
+ + +
+ +
+ +

writeResource:onSuccess:onFail:

+ + + +
+

Writes a resource to the device

+
+ + +
- (void)writeResource:(EMResourceValue *)resourceValue onSuccess:(EMResourceBlock)successBlock onFail:(EMFailBlock)failBlock
+ + +
+

Parameters

+ +
+
resourceValue
+

The resource value

+
+ +
+
successBlock
+

A block to call on a successful write

+
+ +
+
failBlock
+

A block to call on a failed write

+
+ +
+ + + + + + + +
+

Discussion

+

Writes a resource to the device

+
+ + + + + + + +
+

Declared In

+ EMConnection.h
+
+ + +
+ +
+ + +
+ + +
+
+ + + \ No newline at end of file diff --git a/DUREX tests/EmmocoMobileFramework/Docs/Classes/EMConnectionListManager.html b/DUREX tests/EmmocoMobileFramework/Docs/Classes/EMConnectionListManager.html new file mode 100644 index 0000000..9351c68 --- /dev/null +++ b/DUREX tests/EmmocoMobileFramework/Docs/Classes/EMConnectionListManager.html @@ -0,0 +1,1200 @@ + + + + + EMConnectionListManager Class Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + + + + +
Inherits fromNSObject
Conforms toEMConnectionTypeScannerDelegate
Declared inEMConnectionListManager.h
EMConnectionListManager.m
+ + + + +
+ +

Overview

+

EMConnectionListManager is a singleton class used for viewing a list of devices available for interaction.

+
+ + + + + +
+ +

Tasks

+ + + +

Other Methods

+ +
    +
  • + +   devices +

    @property devices +A list of devices that has been discovered as available by the connection list manager

    +
    + property + +
  • + +   filterPredicate +

    @property filterPredicate +A filter that allows only devices conforming to the predicate to be visible

    +
    + property + +
  • + +   updating +

    @property updating +A boolean value indicating whether or not the connection list manager is actively updating the devices list

    +
    + property + +
  • + +   updateRate +

    @property updateRate +updateRate determines the scan frequency for discovering devices

    +
    + property + +
  • + +   automaticallyConnectsToLastDevice +

    @param automaticallyConnectsToLastDevice +A boolean value indicating whether or not the connection list manager should automatically connect to the last device it was connected to if it encounters it in a scan.

    +
    + property + +
  • + + + sharedManager +

    Use the +sharedManager to get the singleton, shared instance of EMConnectionListManager

    +
    + + +
  • + + – deviceBasicDescriptionForDeviceNamed: +

    Retrieve a device description for a given unique identifier

    +
    + + +
  • + + – startUpdating +

    Tells the connection list manager to begin actively looking for devices to interact with.

    +
    + + +
  • + + – stopUpdating +

    Tells the connection list manager to stop looking for devices to interact with.

    +
    + + +
  • + + – reset +

    Manually clears out all devices on the connection list manager.

    +
    + + +
  • + + – isBluetoothAvailable +

    Detect if Bluetooth is available

    +
    + + +
  • + + – addConnectionTypeToUpdates: +

    Add your own connection type outside of bluetooth low energy

    +
    + + +
  • + + – removeConnectionToFromUpdates: +

    Remove your own connection type outside of bluetooth low energy

    +
    + + +
  • +
+ + + +

Other Methods

+ + + +
+ + + + + +
+ +

Properties

+ +
+ +

automaticallyConnectsToLastDevice

+ + + +
+

@param automaticallyConnectsToLastDevice +A boolean value indicating whether or not the connection list manager should automatically connect to the last device it was connected to if it encounters it in a scan.

+
+ + +
@property (nonatomic) BOOL automaticallyConnectsToLastDevice
+ + + + + + + + +
+

Discussion

+

@param automaticallyConnectsToLastDevice +A boolean value indicating whether or not the connection list manager should automatically connect to the last device it was connected to if it encounters it in a scan.

+
+ + + + + + + +
+

Declared In

+ EMConnectionListManager.h
+
+ + +
+ +
+ +

devices

+ + + +
+

@property devices +A list of devices that has been discovered as available by the connection list manager

+
+ + +
@property (nonatomic, strong, readonly) NSArray *devices
+ + + + + + + + +
+

Discussion

+

@property devices +A list of devices that has been discovered as available by the connection list manager

+
+ + + + + + + +
+

Declared In

+ EMConnectionListManager.h
+
+ + +
+ +
+ +

filterPredicate

+ + + +
+

@property filterPredicate +A filter that allows only devices conforming to the predicate to be visible

+
+ + +
@property (nonatomic, strong) NSPredicate *filterPredicate
+ + + + + + + + +
+

Discussion

+

@property filterPredicate +A filter that allows only devices conforming to the predicate to be visible

+
+ + + + + + + +
+

Declared In

+ EMConnectionListManager.h
+
+ + +
+ +
+ +

updateRate

+ + + +
+

@property updateRate +updateRate determines the scan frequency for discovering devices

+
+ + +
@property (nonatomic) NSTimeInterval updateRate
+ + + + + + + + +
+

Discussion

+

@property updateRate +updateRate determines the scan frequency for discovering devices

+
+ + + + + + + +
+

Declared In

+ EMConnectionListManager.h
+
+ + +
+ +
+ +

updating

+ + + +
+

@property updating +A boolean value indicating whether or not the connection list manager is actively updating the devices list

+
+ + +
@property (nonatomic, getter=isUpdating, readonly) BOOL updating
+ + + + + + + + +
+

Discussion

+

@property updating +A boolean value indicating whether or not the connection list manager is actively updating the devices list

+
+ + + + + + + +
+

Declared In

+ EMConnectionListManager.h
+
+ + +
+ +
+ + + +
+ +

Class Methods

+ +
+ +

sharedManager

+ + + +
+

Use the +sharedManager to get the singleton, shared instance of EMConnectionListManager

+
+ + +
+ (EMConnectionListManager *)sharedManager
+ + + + + + + + +
+

Discussion

+

Use the +sharedManager to get the singleton, shared instance of EMConnectionListManager

+
+ + + + + + + +
+

Declared In

+ EMConnectionListManager.h
+
+ + +
+ +
+ + + +
+ +

Instance Methods

+ +
+ +

addConnectionTypeToUpdates:

+ + + +
+

Add your own connection type outside of bluetooth low energy

+
+ + +
- (void)addConnectionTypeToUpdates:(id<EMConnectionType>)connectionType
+ + + + + + + + +
+

Discussion

+

Add your own connection type outside of bluetooth low energy

+
+ + + + + + + +
+

Declared In

+ EMConnectionListManager.h
+
+ + +
+ +
+ +

deviceBasicDescriptionForDeviceNamed:

+ + + +
+

Retrieve a device description for a given unique identifier

+
+ + +
- (EMDeviceBasicDescription *)deviceBasicDescriptionForDeviceNamed:(NSString *)name
+ + +
+

Parameters

+ +
+
name
+

The name of the device

+
+ +
+ + + + + + + +
+

Discussion

+

Retrieve a device description for a given unique identifier

+
+ + + + + + + +
+

Declared In

+ EMConnectionListManager.h
+
+ + +
+ +
+ +

deviceScanner:didFindDevice:

+ + + +
+

Tells the delegate a device was found.

+
+ + +
- (void)deviceScanner:(id<EMConnectionType>)scanner didFindDevice:(EMDeviceBasicDescription *)device
+ + + + + + + + +
+

Discussion

+

Tells the delegate a device was found.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

deviceScanner:didLoseDevice:

+ + + +
+

Tells the delegate a device was lost.

+
+ + +
- (void)deviceScanner:(id)scanner didLoseDevice:(EMDeviceBasicDescription *)device
+ + + + + + + + +
+

Discussion

+

Tells the delegate a device was lost.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

deviceScanner:didUpdateDevice:

+ + + +
+

Updates the data for a device description

+
+ + +
- (void)deviceScanner:(id)scanner didUpdateDevice:(EMDeviceBasicDescription *)device
+ + + + + + + + +
+

Discussion

+

Updates the data for a device description

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

isBluetoothAvailable

+ + + +
+

Detect if Bluetooth is available

+
+ + +
- (BOOL)isBluetoothAvailable
+ + + + + + + + +
+

Discussion

+

Detect if Bluetooth is available

+
+ + + + + + + +
+

Declared In

+ EMConnectionListManager.h
+
+ + +
+ +
+ +

removeConnectionToFromUpdates:

+ + + +
+

Remove your own connection type outside of bluetooth low energy

+
+ + +
- (void)removeConnectionToFromUpdates:(id<EMConnectionType>)connectionType
+ + + + + + + + +
+

Discussion

+

Remove your own connection type outside of bluetooth low energy

+
+ + + + + + + +
+

Declared In

+ EMConnectionListManager.h
+
+ + +
+ +
+ +

reset

+ + + +
+

Manually clears out all devices on the connection list manager.

+
+ + +
- (void)reset
+ + + + + + + + +
+

Discussion

+

Manually clears out all devices on the connection list manager.

+
+ + + + + + + +
+

Declared In

+ EMConnectionListManager.h
+
+ + +
+ +
+ +

startUpdating

+ + + +
+

Tells the connection list manager to begin actively looking for devices to interact with.

+
+ + +
- (void)startUpdating
+ + + + + + + + +
+

Discussion

+

Tells the connection list manager to begin actively looking for devices to interact with.

+
+ + + + + + + +
+

Declared In

+ EMConnectionListManager.h
+
+ + +
+ +
+ +

stopUpdating

+ + + +
+

Tells the connection list manager to stop looking for devices to interact with.

+
+ + +
- (void)stopUpdating
+ + + + + + + + +
+

Discussion

+

Tells the connection list manager to stop looking for devices to interact with.

+
+ + + + + + + +
+

Declared In

+ EMConnectionListManager.h
+
+ + +
+ +
+ + +
+ + +
+
+ + + \ No newline at end of file diff --git a/DUREX tests/EmmocoMobileFramework/Docs/Classes/EMConnectionManager.html b/DUREX tests/EmmocoMobileFramework/Docs/Classes/EMConnectionManager.html new file mode 100644 index 0000000..7d585ad --- /dev/null +++ b/DUREX tests/EmmocoMobileFramework/Docs/Classes/EMConnectionManager.html @@ -0,0 +1,1333 @@ + + + + + EMConnectionManager Class Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + + + + +
Inherits fromNSObject
Conforms toEMConnectionDelegate
Declared inEMConnectionManager.h
EMConnectionManager.m
+ + + + +
+ +

Overview

+

EMConnectionManager is a singleton class for managing a connection with a physical or mock device.

+
+ + + + + +
+ +

Tasks

+ + + + + + + +
+ + + + + +
+ +

Properties

+ +
+ +

backgroundUpdatesEnabled

+ + + +
+

@property backgroundUpdatesEnabled +@description If you set this flag to “YES”, the connection manager has the ability to persist while running in the background. By default, the connection manager severs connections when entering the background.

+
+ + +
@property (nonatomic) BOOL backgroundUpdatesEnabled
+ + + + + + + + +
+

Discussion

+

@property backgroundUpdatesEnabled +@description If you set this flag to “YES”, the connection manager has the ability to persist while running in the background. By default, the connection manager severs connections when entering the background.

+
+ + + + + + + +
+

Declared In

+ EMConnectionManager.h
+
+ + +
+ +
+ + + +
+ +

Class Methods

+ +
+ +

sharedManager

+ + + +
+

Use the +sharedManager class method to access the application-wide singleton instance of EMConnectionManager. +Note: Accessing the connection manager in any way other is not recommended.

+
+ + +
+ (EMConnectionManager *)sharedManager
+ + + + + + + + +
+

Discussion

+

Use the +sharedManager class method to access the application-wide singleton instance of EMConnectionManager. +Note: Accessing the connection manager in any way other is not recommended.

+
+ + + + + + + +
+

Declared In

+ EMConnectionManager.h
+
+ + +
+ +
+ + + +
+ +

Instance Methods

+ +
+ +

addSchemaSearchForFilesInDirectory:

+ + + +
+

Tells the connection manager where it should look for schemas other than the NSBundle’s mainBundle

+
+ + +
- (void)addSchemaSearchForFilesInDirectory:(NSString *)path
+ + +
+

Parameters

+ +
+
path
+

The path for the directory in which to search

+
+ +
+ + + + + + + +
+

Discussion

+

Tells the connection manager where it should look for schemas other than the NSBundle’s mainBundle

+
+ + + + + + + +
+

Declared In

+ EMConnectionManager.h
+
+ + +
+ +
+ +

connectDevice:onSuccess:onFail:

+ + + +
+

Tells the connection manager to connect to a specific device.

+
+ + +
- (void)connectDevice:(EMDeviceBasicDescription *)device onSuccess:(void ( ^ ) ( void ))successBlock onFail:(void ( ^ ) ( NSError *error ))failBlock
+ + +
+

Parameters

+ +
+
device
+

An instance of EMDeviceBasicDescription the connection manager should connect to

+
+ +
+
successBlock
+

The block to run after a successful connection

+
+ +
+
failBlock
+

The block to run if the connectino fails +@description The implementation of this method calls connectDevice:timeoutInterval:onSuccess:onFail: with a default time interval of 10 seconds

+
+ +
+ + + + + + + +
+

Discussion

+

Tells the connection manager to connect to a specific device.

+
+ + + + + + + +
+

Declared In

+ EMConnectionManager.h
+
+ + +
+ +
+ +

connectDevice:timeoutInterval:onSuccess:onFail:

+ + + +
+

Tells the connection manager to connect to a specific device.

+
+ + +
- (void)connectDevice:(EMDeviceBasicDescription *)device timeoutInterval:(NSTimeInterval)timeout onSuccess:(void ( ^ ) ( void ))successBlock onFail:(void ( ^ ) ( NSError *error ))failBlock
+ + +
+

Parameters

+ +
+
device
+

An instance of EMDeviceBasicDescription the connection manager should connect to

+
+ +
+
timeout
+

The time the connection manager should allow for a successful connection. After the specified time interval passes, the fail block will be called.

+
+ +
+
successBlock
+

The block to run after a successful connection

+
+ +
+
failBlock
+

The block to run if the connection fails +@description The implementation of this method calls connectDevice:timeoutInterval:onSuccess:onFail: with a default time interval of 10 seconds

+
+ +
+ + + + + + + +
+

Discussion

+

Tells the connection manager to connect to a specific device.

+
+ + + + + + + +
+

Declared In

+ EMConnectionManager.h
+
+ + +
+ +
+ +

connectedDevice

+ + + +
+

Returns an array of EMDeviceBasicDescription’s for the device that is actively connected

+
+ + +
- (EMDeviceBasicDescription *)connectedDevice
+ + + + + + + + +
+

Discussion

+

Returns an array of EMDeviceBasicDescription’s for the device that is actively connected

+
+ + + + + + + +
+

Declared In

+ EMConnectionManager.h
+
+ + +
+ +
+ +

disconnectWithSuccess:onFail:

+ + + +
+

Tells the connection manager to disconnect from a specific device

+
+ + +
- (void)disconnectWithSuccess:(void ( ^ ) ( void ))successBlock onFail:(void ( ^ ) ( NSError *error ))failBlock
+ + +
+

Parameters

+ +
+
successBlock
+

The block to run after a successful disconnection

+
+ +
+
failBlock
+

The block to run if the disconnection fails.

+
+ +
+ + + + + + + +
+

Discussion

+

Tells the connection manager to disconnect from a specific device

+
+ + + + + + + +
+

Declared In

+ EMConnectionManager.h
+
+ + +
+ +
+ +

embeddedSystemProtocolLevel

+ + + +
+

Gets the embedded system protocol level from the schema used to connect to the device +@description This call does not send a message down to the board - the protocol level is pulled directly from the schema that was used to connect to the device.

+
+ + +
- (NSNumber *)embeddedSystemProtocolLevel
+ + + + + + + + +
+

Discussion

+

Gets the embedded system protocol level from the schema used to connect to the device +@description This call does not send a message down to the board - the protocol level is pulled directly from the schema that was used to connect to the device.

+
+ + + + + + + +
+

Declared In

+ EMConnectionManager.h
+
+ + +
+ +
+ +

forceConnectionWithDefaultSchema:

+ + + +
+

Forces the connection manager to connect to a device with the default schema

+
+ + +
- (void)forceConnectionWithDefaultSchema:(EMDeviceBasicDescription *)device
+ + +
+

Parameters

+ +
+
device
+

The device for the forced connection +@description Use this method with extreme caution. Many undefined behaviors can come from using this method with a schema that isn’t an exact match for the specified device. EMConnectionManager uses this method internally. It is very rare that you will need to call this method directly.

+
+ +
+ + + + + + + +
+

Discussion

+

Forces the connection manager to connect to a device with the default schema

+
+ + + + + + + +
+

Declared In

+ EMConnectionManager.h
+
+ + +
+ +
+ +

readResource:onSuccess:onFail:

+ + + +
+

Reads a resource from a connected device

+
+ + +
- (void)readResource:(NSString *)resourceName onSuccess:(void ( ^ ) ( id readValue ))successBlock onFail:(void ( ^ ) ( NSError *error ))failBlock
+ + +
+

Parameters

+ +
+
resourceName
+

The name of the resource to read. This is the name of the resource in the device’s schema.

+
+ +
+
successBlock
+

The block to call when a read occurs successfully. Connection manager will call this block with the value read.

+
+ +
+
failBlock
+

The block to call when a read fails.

+
+ +
+ + + + + + + +
+

Discussion

+

Reads a resource from a connected device

+
+ + + + + + + +
+

Declared In

+ EMConnectionManager.h
+
+ + +
+ +
+ +

removeSchemaSearchForFilesInDirectory:

+ + + +
+

Tells the connection manager to no longer look in the specified path for schemas

+
+ + +
- (void)removeSchemaSearchForFilesInDirectory:(NSString *)path
+ + +
+

Parameters

+ +
+
path
+

The path to no longer search +@description Note: This method will never ignore the current bundle’s mainBundle

+
+ +
+ + + + + + + +
+

Discussion

+

Tells the connection manager to no longer look in the specified path for schemas

+
+ + + + + + + +
+

Declared In

+ EMConnectionManager.h
+
+ + +
+ +
+ +

schemaFileNameForHashString:

+ + + +
+

Gives the schema name in the application bundle for a given hash string

+
+ + +
- (NSString *)schemaFileNameForHashString:(NSString *)hashString
+ + +
+

Parameters

+ +
+
hashString
+

A full or partial schema hash string +@description This method takes either a full hash or partial hash. If any schema begins with ‘hash string’, the file name in the bundle is returned. Returns nil if no matching schema was found in the bundle. +If one or more schemas share ‘hashString’ at the beginning of their hash, the first path will be returned.

+
+ +
+ + + + + + + +
+

Discussion

+

Gives the schema name in the application bundle for a given hash string

+
+ + + + + + + +
+

Declared In

+ EMConnectionManager.h
+
+ + +
+ +
+ +

schemaForConnectedDevice

+ + + +
+

Gets the schema for the connected device. +@description Returns nil if no device is connected.

+
+ + +
- (EMSchema *)schemaForConnectedDevice
+ + + + + + + + +
+

Discussion

+

Gets the schema for the connected device. +@description Returns nil if no device is connected.

+
+ + + + + + + +
+

Declared In

+ EMConnectionManager.h
+
+ + +
+ +
+ +

schemaHashForConnectedDevice

+ + + +
+

Returns a version of the the schema hash from a connected device’s firmware as it appears on em-hub

+
+ + +
- (NSString *)schemaHashForConnectedDevice
+ + + + + + + + +
+

Discussion

+

Returns a version of the the schema hash from a connected device’s firmware as it appears on em-hub

+
+ + + + + + + +
+

Declared In

+ EMConnectionManager.h
+
+ + +
+ +
+ +

updateInternalSchemaCache

+ + + +
+

Tells EMConnectionManager to update its internal cache of schemas used for connection. +@description EMConnectionManager uses this method internally. It is very rare taht you will need to call this method directly.

+
+ + +
- (void)updateInternalSchemaCache
+ + + + + + + + +
+

Discussion

+

Tells EMConnectionManager to update its internal cache of schemas used for connection. +@description EMConnectionManager uses this method internally. It is very rare taht you will need to call this method directly.

+
+ + + + + + + +
+

Declared In

+ EMConnectionManager.h
+
+ + +
+ +
+ +

writeValue:toResource:onSuccess:onFail:

+ + + +
+

Writes a value to a resource on a connected device

+
+ + +
- (void)writeValue:(id)resourceValue toResource:(NSString *)resource onSuccess:(void ( ^ ) ( void ))successBlock onFail:(void ( ^ ) ( NSError *error ))failBlock
+ + +
+

Parameters

+ +
+
resourceValue
+

The value to write to the resource. This should be an instance of NSString, NSData, NSArray, NSNumber, or NSDictionary

+
+ +
+
resource
+

The name of the resource for writing. This is the name of the resource in the schema.

+
+ +
+
successBlock
+

The block to call when the write occurs successfully.

+
+ +
+
failBlock
+

The block to call when the write fails.

+
+ +
+ + + + + + + +
+

Discussion

+

Writes a value to a resource on a connected device

+
+ + + + + + + +
+

Declared In

+ EMConnectionManager.h
+
+ + +
+ +
+ + +
+ + +
+
+ + + \ No newline at end of file diff --git a/DUREX tests/EmmocoMobileFramework/Docs/Classes/EMDeviceBasicDescription.html b/DUREX tests/EmmocoMobileFramework/Docs/Classes/EMDeviceBasicDescription.html new file mode 100644 index 0000000..ae519b0 --- /dev/null +++ b/DUREX tests/EmmocoMobileFramework/Docs/Classes/EMDeviceBasicDescription.html @@ -0,0 +1,753 @@ + + + + + EMDeviceBasicDescription Class Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + +
Inherits fromNSObject
Declared inEMDeviceBasicDescription.h
EMDeviceBasicDescription.m
+ + + + +
+ +

Overview

+

EMDeviceBasicDescription is a class used to describe basic device characteristics throughout the entire framework. +All devices, regardless of connection type, will have these properties.

+ +

All classes implementing the EMConnectionType protocol will receive and deliver device information in the form of an EMDeviceBasicDescription.

+
+ + + + + +
+ +

Tasks

+ + + + + +
    +
  • + +   name +

    The name of the device used thoughout the framework. +Like the unique_identifier, this property needs to be unique.

    +
    + property + +
  • + +   connectionType +

    A concrete EMConnectionType instance that will be used to send messages to the device.

    +
    + property + +
  • + +   signalStrength +

    A value between -100 and 0 used to describe signal strength.

    +
    + property + +
  • + +   signalStrengthFilter +

    The signal strength filter for smoothing

    +
    + property + +
  • + +   advertiseData +

    Data that was discovered along with the device. +Ex: When dealing with bluetooth, this is the advertising packet data

    +
    + property + +
  • + +   advertiseObject +

    An object taken from the advertise data based on the advertise resource in the device’s schema +Possible classes: NSString, NSNumber, NSDictionary, NSArray, NSData

    +
    + property + +
  • + +   shortSchemaHash +

    The first six characters of the device’s schema

    +
    + property + +
  • + +   schemaFilePath +

    The name of the schema file in your bundle that relates to this device. +NOTE: Many devices do not broadcast this information. In this case, this property will not be set

    +
    + property + +
  • +
+ +
+ + + + + +
+ +

Properties

+ +
+ +

advertiseData

+ + + +
+

Data that was discovered along with the device. +Ex: When dealing with bluetooth, this is the advertising packet data

+
+ + +
@property (nonatomic, strong) NSData *advertiseData
+ + + + + + + + +
+

Discussion

+

Data that was discovered along with the device. +Ex: When dealing with bluetooth, this is the advertising packet data

+
+ + + + + + + +
+

Declared In

+ EMDeviceBasicDescription.h
+
+ + +
+ +
+ +

advertiseObject

+ + + +
+

An object taken from the advertise data based on the advertise resource in the device’s schema +Possible classes: NSString, NSNumber, NSDictionary, NSArray, NSData

+
+ + +
@property (nonatomic, strong) id advertiseObject
+ + + + + + + + +
+

Discussion

+

An object taken from the advertise data based on the advertise resource in the device’s schema +Possible classes: NSString, NSNumber, NSDictionary, NSArray, NSData

+
+ + + + + + + +
+

Declared In

+ EMDeviceBasicDescription.h
+
+ + +
+ +
+ +

connectionType

+ + + +
+

A concrete EMConnectionType instance that will be used to send messages to the device.

+
+ + +
@property (nonatomic, strong) id<EMConnectionType> connectionType
+ + + + + + + + +
+

Discussion

+

A concrete EMConnectionType instance that will be used to send messages to the device.

+
+ + + + + + + +
+

Declared In

+ EMDeviceBasicDescription.h
+
+ + +
+ +
+ +

name

+ + + +
+

The name of the device used thoughout the framework. +Like the unique_identifier, this property needs to be unique.

+
+ + +
@property (nonatomic, strong) NSString *name
+ + + + + + + + +
+

Discussion

+

The name of the device used thoughout the framework. +Like the unique_identifier, this property needs to be unique.

+
+ + + + + + + +
+

Declared In

+ EMDeviceBasicDescription.h
+
+ + +
+ +
+ +

schemaFilePath

+ + + +
+

The name of the schema file in your bundle that relates to this device. +NOTE: Many devices do not broadcast this information. In this case, this property will not be set

+
+ + +
@property (nonatomic, strong) NSString *schemaFilePath
+ + + + + + + + +
+

Discussion

+

The name of the schema file in your bundle that relates to this device. +NOTE: Many devices do not broadcast this information. In this case, this property will not be set

+
+ + + + + + + +
+

Declared In

+ EMDeviceBasicDescription.h
+
+ + +
+ +
+ +

shortSchemaHash

+ + + +
+

The first six characters of the device’s schema

+
+ + +
@property (nonatomic, strong) NSString *shortSchemaHash
+ + + + + + + + +
+

Discussion

+

The first six characters of the device’s schema

+
+ + + + + + + +
+

Declared In

+ EMDeviceBasicDescription.h
+
+ + +
+ +
+ +

signalStrength

+ + + +
+

A value between -100 and 0 used to describe signal strength.

+
+ + +
@property (nonatomic) float signalStrength
+ + + + + + + + +
+

Discussion

+

A value between -100 and 0 used to describe signal strength.

+
+ + + + + + + +
+

Declared In

+ EMDeviceBasicDescription.h
+
+ + +
+ +
+ +

signalStrengthFilter

+ + + +
+

The signal strength filter for smoothing

+
+ + +
@property (nonatomic, strong) id<EMSignalStrengthFilter> signalStrengthFilter
+ + + + + + + + +
+

Discussion

+

The signal strength filter for smoothing

+
+ + + + + + + +
+

Declared In

+ EMDeviceBasicDescription.h
+
+ + +
+ +
+ + + + + + +
+ + +
+
+ + + \ No newline at end of file diff --git a/DUREX tests/EmmocoMobileFramework/Docs/Classes/EMResourceValue.html b/DUREX tests/EmmocoMobileFramework/Docs/Classes/EMResourceValue.html new file mode 100644 index 0000000..48bf736 --- /dev/null +++ b/DUREX tests/EmmocoMobileFramework/Docs/Classes/EMResourceValue.html @@ -0,0 +1,1963 @@ + + + + + EMResourceValue Class Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + + + + +
Inherits fromNSObject
Conforms toEMResourceValueProtocol
Declared inEMResourceValue.h
EMResourceValue.m
+ + + + +
+ +

Overview

+

A container for different types of resource values. +Instances of this class are used to hold values for resources whose types is +either Void, Int, Enum, Num, String, Struct, Array, or File.

+ +

See also:

+ + + + +

Written by Bob Frankel and Carolyn Vaughan

+
+ + + + + +
+ +

Tasks

+ + + +

Other Methods

+ + + + + +

Other Methods

+ + + +
+ + + + + +
+ +

Properties

+ +
+ +

name

+ + + +
+

The name of the resource.

+
+ + +
@property (readonly) NSString *name
+ + + + + + + + +
+

Discussion

+

The name of the resource.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

resourceSchema

+ + + +
+

The resource schema associated with the resource.

+
+ + +
@property (readonly) EMSchema *resourceSchema
+ + + + + + + + +
+

Discussion

+

The resource schema associated with the resource.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

type

+ + + +
+

The type of the resource.

+
+ + +
@property (readonly) NSString *type
+ + + + + + + + +
+

Discussion

+

The type of the resource.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ + + +
+ +

Class Methods

+ +
+ +

resourceWithName:ofType:fromSchema:

+ + + +
+

Create a EMResourceValue. This method is used internally by the framework.

+
+ + +
+ (EMResourceValue *)resourceWithName:(NSString *)name ofType:(NSString *)type fromSchema:(EMSchema *)resourceSchema
+ + +
+

Parameters

+ +
+
name
+

the name given to the newly-created value

+
+ +
+
type
+

the type of the newly-created value

+
+ +
+
resourceSchema
+

an EMSchema instance

+
+ +
+ + + +
+

Return Value

+

a new EMResourceValue instance

+
+ + + + + +
+

Discussion

+

Create a EMResourceValue. This method is used internally by the framework.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ + + +
+ +

Instance Methods

+ +
+ +

copyFromResource:

+ + + + +
- (void)copyFromResource:(EMResourceValue *)source
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

doubleValue

+ + + + +
- (double)doubleValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

enumValues

+ + + + +
- (NSArray *)enumValues
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fieldNames

+ + + + +
- (NSArray *)fieldNames
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileEof

+ + + + +
- (BOOL)fileEof
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileFetch

+ + + + +
- (void)fileFetch
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileStore

+ + + + +
- (void)fileStore
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

getDataOfSize:fromBuffer:

+ + + + +
- (void)getDataOfSize:(int)size fromBuffer:(EMSerialPacket *)buffer
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

index:

+ + + + +
- (EMResourceValue *)index:(int)index
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

initWithName:type:schema:

+ + + + +
- (id)initWithName:(NSString *)theName type:(NSString *)theType schema:(EMSchema *)theResourceSchema
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

isArray

+ + + +
+

Returns true if the type of this value is an Array, and false otherwise.

+
+ + +
- (BOOL)isArray
+ + + + + + + + +
+

Discussion

+

Returns true if the type of this value is an Array, and false otherwise.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

isEnum

+ + + +
+

Returns true if the type of this value is an Enum, and false otherwise.

+
+ + +
- (BOOL)isEnum
+ + + + + + + + +
+

Discussion

+

Returns true if the type of this value is an Enum, and false otherwise.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

isFile

+ + + +
+

Returns true if the type of this value is a File, and false otherwise.

+
+ + +
- (BOOL)isFile
+ + + + + + + + +
+

Discussion

+

Returns true if the type of this value is a File, and false otherwise.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

isInt

+ + + +
+

Returns true if the type of this value is an Int, and false otherwise.

+
+ + +
- (BOOL)isInt
+ + + + + + + + +
+

Discussion

+

Returns true if the type of this value is an Int, and false otherwise.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

isNum

+ + + +
+

Returns true if the type of this value is a Num, and false otherwise.

+
+ + +
- (BOOL)isNum
+ + + + + + + + +
+

Discussion

+

Returns true if the type of this value is a Num, and false otherwise.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

isScalar

+ + + +
+

Returns true if the type of this value is scalar (Num, Enum, Int, String), and false otherwise.

+
+ + +
- (BOOL)isScalar
+ + + + + + + + +
+

Discussion

+

Returns true if the type of this value is scalar (Num, Enum, Int, String), and false otherwise.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

isString

+ + + +
+

Returns true if the type of this value is a String, and false otherwise.

+
+ + +
- (BOOL)isString
+ + + + + + + + +
+

Discussion

+

Returns true if the type of this value is a String, and false otherwise.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

isStruct

+ + + +
+

Return true if the type of this value is a Struct, and false otherwise.

+
+ + +
- (BOOL)isStruct
+ + + + + + + + +
+

Discussion

+

Return true if the type of this value is a Struct, and false otherwise.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

isVoid

+ + + +
+

Return true if the type of this value is a Void, and false otherwise.

+
+ + +
- (BOOL)isVoid
+ + + + + + + + +
+

Discussion

+

Return true if the type of this value is a Void, and false otherwise.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

length

+ + + + +
- (long)length
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

longValue

+ + + + +
- (long long)longValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

max

+ + + + +
- (double)max
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

min

+ + + + +
- (double)min
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

putData:

+ + + + +
- (void)putData:(EMSerialPacket *)buffer
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

reset

+ + + + +
- (void)reset
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

select:

+ + + + +
- (EMResourceValue *)select:(NSString *)fieldName
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setDoubleValue:

+ + + + +
- (void)setDoubleValue:(double)value
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setLongValue:

+ + + + +
- (void)setLongValue:(long long)value
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setStringValue:

+ + + + +
- (void)setStringValue:(NSString *)value
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

step

+ + + + +
- (double)step
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

stringValue

+ + + + +
- (NSString *)stringValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ + +
+ + +
+
+ + + \ No newline at end of file diff --git a/DUREX tests/EmmocoMobileFramework/Docs/Classes/EMSchema.html b/DUREX tests/EmmocoMobileFramework/Docs/Classes/EMSchema.html new file mode 100644 index 0000000..f6f0914 --- /dev/null +++ b/DUREX tests/EmmocoMobileFramework/Docs/Classes/EMSchema.html @@ -0,0 +1,2251 @@ + + + + + EMSchema Class Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + +
Inherits fromNSObject
Declared inEMSchema.h
EMSchema.m
+ + + + +
+ +

Overview

+

A set of meta-data describing a set of resources. +Written by Bob Frankel and Carolyn Vaughan

+
+ + + + + +
+ +

Tasks

+ + + + + + + +
+ + + + + + + +
+ +

Class Methods

+ +
+ +

schemaFromFile:

+ + + +
+

Creates a EMResourceSchema instance from the contents of a file.

+
+ + +
+ (EMSchema *)schemaFromFile:(NSString *)fileName
+ + +
+

Parameters

+ +
+
fileName
+

a file containing JSON content

+
+ +
+ + + +
+

Return Value

+

a newly created EMResourceSchema instance

+
+ + + + + +
+

Discussion

+

Creates a EMResourceSchema instance from the contents of a file.

+
+ + + + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ + + +
+ +

Instance Methods

+ +
+ +

UUID

+ + + +
+

Returns the UUID associated with this schema.

+
+ + +
- (NSString *)UUID
+ + + + + + + + +
+

Discussion

+

Returns the UUID associated with this schema.

+
+ + + + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

accessForResource:

+ + + +
+

Get the read/write/indicator access capabilities of a named resource

+
+ + +
- (EMResourceAccessType)accessForResource:(NSString *)resourceName
+ + +
+

Parameters

+ +
+
resourceName
+

a valid resource name in this schema

+
+ +
+ + + +
+

Return Value

+

an NSString containing the characters ‘r’, ‘w’, and ‘i’ as appropriate

+
+ + + + + +
+

Discussion

+

Get the read/write/indicator access capabilities of a named resource

+
+ + + +
+

Exceptions

+ +
+
UsageError
+

the resource name is invalid

+
+ +
+ + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

alignmentForStandardType:

+ + + +
+

Get the alignment of a standard scalar type

+
+ + +
- (int)alignmentForStandardType:(NSString *)type
+ + +
+

Parameters

+ +
+
type
+

a scalar type code

+
+ +
+ + + +
+

Return Value

+

the alignment in bytes of this standard type

+
+ + + + + +
+

Discussion

+

Get the alignment of a standard scalar type

+
+ + + +
+

Exceptions

+ +
+
UsageError
+

the type code is invalid

+
+ +
+ + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

applicationResources

+ + + +
+

Returns a sorted NSArray containing all application resource names in this schema

+
+ + +
- (NSArray *)applicationResources
+ + + + + + + + +
+

Discussion

+

Returns a sorted NSArray containing all application resource names in this schema

+
+ + + + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

broadcastResourceName

+ + + +
+

Returns the name of the resource that is being broadcast in the advertising packets. Returns nil if none.

+
+ + +
- (NSString *)broadcastResourceName
+ + + + + + + + +
+

Discussion

+

Returns the name of the resource that is being broadcast in the advertising packets. Returns nil if none.

+
+ + + + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

buildDate

+ + + +
+

Returns the build number associated with this schema as an array of numbers.

+
+ + +
- (NSArray *)buildDate
+ + + + + + + + +
+

Discussion

+

Returns the build number associated with this schema as an array of numbers.

+
+ + + + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

byteAlignmentForResource:

+ + + +
+

Get the alignment of a named resource

+
+ + +
- (int)byteAlignmentForResource:(NSString *)resourceName
+ + +
+

Parameters

+ +
+
resourceName
+

a named resource in this schema

+
+ +
+ + + +
+

Return Value

+

the alignment in bytes of this resource

+
+ + + + + +
+

Discussion

+

Get the alignment of a named resource

+
+ + + +
+

Exceptions

+ +
+
UsageError
+

the resource name is invalid

+
+ +
+ + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

enumValuesForType:

+ + + +
+

Get the values associated with an enum type.

+
+ + +
- (NSDictionary *)enumValuesForType:(NSString *)type
+ + +
+

Parameters

+ +
+
type
+

a valid enum type name in this schema

+
+ +
+ + + +
+

Return Value

+

a NSDictionary containing enum value names and their corresponding ordinal

+
+ + + + + +
+

Discussion

+

Get the values associated with an enum type.

+
+ + + +
+

Exceptions

+ +
+
UsageError
+

the enum type name is invalid

+
+ +
+ + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

fieldNamesForType:

+ + + +
+

Get the names of the fields associated with a struct type.

+
+ + +
- (NSArray *)fieldNamesForType:(NSString *)type
+ + +
+

Parameters

+ +
+
type
+

a valid struct type name in this schema

+
+ +
+ + + +
+

Return Value

+

a NSArray containing field names

+
+ + + + + +
+

Discussion

+

Get the names of the fields associated with a struct type.

+
+ + + +
+

Exceptions

+ +
+
UsageError
+

the struct type name is invalid

+
+ +
+ + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

fieldsForType:

+ + + +
+

Get the fields associated with a struct type.

+
+ + +
- (NSDictionary *)fieldsForType:(NSString *)type
+ + +
+

Parameters

+ +
+
type
+

a valid struct type name in this schema

+
+ +
+ + + +
+

Return Value

+

a NSDictionary containing field names and their corresponding type code

+
+ + + + + +
+

Discussion

+

Get the fields associated with a struct type.

+
+ + + +
+

Exceptions

+ +
+
UsageError
+

the struct type name is invalid

+
+ +
+ + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

idForResource:

+ + + +
+

Get the unique id associated with a named resource

+
+ + +
- (int)idForResource:(NSString *)resourceName
+ + +
+

Parameters

+ +
+
resourceName
+

a named resource in this schema

+
+ +
+ + + +
+

Return Value

+

the corresponding resource id

+
+ + + + + +
+

Discussion

+

Get the unique id associated with a named resource

+
+ + + +
+

Exceptions

+ +
+
UsageError
+

the resource name is invalid

+
+ +
+ + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

maxResourceSize

+ + + +
+

Returns the maximum size in bytes amongst all resource types in this schema.

+
+ + +
- (int)maxResourceSize
+ + + + + + + + +
+

Discussion

+

Returns the maximum size in bytes amongst all resource types in this schema.

+
+ + + + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

name

+ + + +
+

Returns the fully-qualified name of this schema.

+
+ + +
- (NSString *)name
+ + + + + + + + +
+

Discussion

+

Returns the fully-qualified name of this schema.

+
+ + + + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

nameForResourceWithID:

+ + + +
+

Get the resource name associated with this resource id

+
+ + +
- (NSString *)nameForResourceWithID:(NSInteger)resourceId
+ + +
+

Parameters

+ +
+
resourceId
+

a resource id

+
+ +
+ + + +
+

Return Value

+

the corresponding resource name

+
+ + + + + +
+

Discussion

+

Get the resource name associated with this resource id

+
+ + + +
+

Exceptions

+ +
+
UsageError
+

the resource id is invalid

+
+ +
+ + + +
+

See Also

+ +
+ + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

newResourceValueForResourceNamed:

+ + + +
+

Create a new ResourceValue instance for a named resource.

+
+ + +
- (EMResourceValue *)newResourceValueForResourceNamed:(NSString *)resourceName
+ + +
+

Parameters

+ +
+
resourceName
+

a named resource in this schema

+
+ +
+ + + +
+

Return Value

+

a newly created EMResourceValue to a value for this resource

+
+ + + + + +
+

Discussion

+

Create a new ResourceValue instance for a named resource.

+
+ + + +
+

Exceptions

+ +
+
UsageError
+

the resource name is invalid

+
+ +
+ + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

numberParametersForType:

+ + + +
+

Get the parameters associated with a number type.

+
+ + +
- (NSArray *)numberParametersForType:(NSString *)type
+ + +
+

Parameters

+ +
+
type
+

a valid number type name in this schema

+
+ +
+ + + +
+

Return Value

+

a four-element NSArray holding the min, max, step, and prec parameters of this type

+
+ + + + + +
+

Discussion

+

Get the parameters associated with a number type.

+
+ + + +
+

Exceptions

+ +
+
UsageError
+

the number type name is invalid

+
+ +
+ + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

numericRepresentationForType:

+ + + +
+

Get the representation type associated with a number type.

+
+ + +
- (NSString *)numericRepresentationForType:(NSString *)type
+ + +
+

Parameters

+ +
+
type
+

a valid number type name in this schema

+
+ +
+ + + +
+

Return Value

+

an integral representation type

+
+ + + + + +
+

Discussion

+

Get the representation type associated with a number type.

+
+ + + +
+

Exceptions

+ +
+
UsageError
+

the number type name is invalid

+
+ +
+ + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

numericalUUID

+ + + +
+

Returns the UUID associated with this schema as an array of numbers.

+
+ + +
- (NSArray *)numericalUUID
+ + + + + + + + +
+

Discussion

+

Returns the UUID associated with this schema as an array of numbers.

+
+ + + + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

owner

+ + + +
+

Returns the owner of the schema definition this schema was created from.

+
+ + +
- (NSString *)owner
+ + + + + + + + +
+

Discussion

+

Returns the owner of the schema definition this schema was created from.

+
+ + + + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

protocolLevel

+ + + +
+

Returns the protocol level of this schema

+
+ + +
- (int)protocolLevel
+ + + + + + + + +
+

Discussion

+

Returns the protocol level of this schema

+
+ + + + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

resources

+ + + +
+

Returns an NSDictionary containing all resource names in this schema and their corresponding type code.

+
+ + +
- (NSDictionary *)resources
+ + + + + + + + +
+

Discussion

+

Returns an NSDictionary containing all resource names in this schema and their corresponding type code.

+
+ + + + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

schemaDescription

+ + + +
+

Returns the description associated with this schema.

+
+ + +
- (NSString *)schemaDescription
+ + + + + + + + +
+

Discussion

+

Returns the description associated with this schema.

+
+ + + + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

schemaHash

+ + + +
+

Returns the schema hash associated with this schema as an array of numbers.

+
+ + +
- (NSArray *)schemaHash
+ + + + + + + + +
+

Discussion

+

Returns the schema hash associated with this schema as an array of numbers.

+
+ + + + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

sizeForResourceNamed:

+ + + +
+

Get the size of a named resource

+
+ + +
- (int)sizeForResourceNamed:(NSString *)resourceName
+ + +
+

Parameters

+ +
+
resourceName
+

a named resource in this schema

+
+ +
+ + + +
+

Return Value

+

the size in bytes of this resource

+
+ + + + + +
+

Discussion

+

Get the size of a named resource

+
+ + + +
+

Exceptions

+ +
+
UsageError
+

the resource name is invalid

+
+ +
+ + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

sizeForStandardType:

+ + + +
+

Get the size of a standard scalar type

+
+ + +
- (int)sizeForStandardType:(NSString *)type
+ + +
+

Parameters

+ +
+
type
+

a scalar type code

+
+ +
+ + + +
+

Return Value

+

the size in bytes of this standard type

+
+ + + + + +
+

Discussion

+

Get the size of a standard scalar type

+
+ + + +
+

Exceptions

+ +
+
UsageError
+

the type code is invalid

+
+ +
+ + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

stringLengthForType:

+ + + +
+

Get the length of this string type.

+
+ + +
- (int)stringLengthForType:(NSString *)type
+ + +
+

Parameters

+ +
+
type
+

a valid string type name in this schema

+
+ +
+ + + +
+

Return Value

+

the length of this string type

+
+ + + + + +
+

Discussion

+

Get the length of this string type.

+
+ + + +
+

Exceptions

+ +
+
UsageError
+

the string type name is invalid

+
+ +
+ + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

systemResources

+ + + +
+

Returns a sorted NSArray containing all system resource names in this schema

+
+ + +
- (NSArray *)systemResources
+ + + + + + + + +
+

Discussion

+

Returns a sorted NSArray containing all system resource names in this schema

+
+ + + + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

typeOfResourceNamed:

+ + + +
+

Get the type of a named resource

+
+ + +
- (NSString *)typeOfResourceNamed:(NSString *)resourceName
+ + +
+

Parameters

+ +
+
resourceName
+

the name of a resource in this schema

+
+ +
+ + + +
+

Return Value

+

the type code associated with this resource

+
+ + + + + +
+

Discussion

+

Get the type of a named resource

+
+ + + +
+

Exceptions

+ +
+
UsageError
+

the resource name is invalid

+
+ +
+ + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

version

+ + + +
+

Returns the version of the schema definition this schema was created from.

+
+ + +
- (NSString *)version
+ + + + + + + + +
+

Discussion

+

Returns the version of the schema definition this schema was created from.

+
+ + + + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ + +
+ + +
+
+ + + \ No newline at end of file diff --git a/DUREX tests/EmmocoMobileFramework/Docs/Classes/EMUIKit.html b/DUREX tests/EmmocoMobileFramework/Docs/Classes/EMUIKit.html new file mode 100644 index 0000000..cf63910 --- /dev/null +++ b/DUREX tests/EmmocoMobileFramework/Docs/Classes/EMUIKit.html @@ -0,0 +1,299 @@ + + + + + EMUIKit Class Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + +
Inherits fromNSObject
Declared inEMUIKit.h
+ + + + + + + + + + + + + + + + + +
+ + +
+
+ + + \ No newline at end of file diff --git a/DUREX tests/EmmocoMobileFramework/Docs/Classes/EnumValue.html b/DUREX tests/EmmocoMobileFramework/Docs/Classes/EnumValue.html new file mode 100644 index 0000000..d89f813 --- /dev/null +++ b/DUREX tests/EmmocoMobileFramework/Docs/Classes/EnumValue.html @@ -0,0 +1,1231 @@ + + + + + EnumValue Class Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + + + + +
Inherits fromEMResourceValue : NSObject
Conforms toEMResourceValueProtocol
Declared inEMResourceValue.m
+ + + + + + +
+ +

Tasks

+ + + + + + + +
+ + + + + + + + + +
+ +

Instance Methods

+ +
+ +

copyFromResource:

+ + + + +
- (void)copyFromResource:(EMResourceValue *)source
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

doubleValue

+ + + + +
- (double)doubleValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

enumValues

+ + + + +
- (NSArray *)enumValues
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fieldNames

+ + + + +
- (NSArray *)fieldNames
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileEof

+ + + + +
- (BOOL)fileEof
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileFetch

+ + + + +
- (void)fileFetch
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileStore

+ + + + +
- (void)fileStore
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

getDataOfSize:fromBuffer:

+ + + + +
- (void)getDataOfSize:(int)size fromBuffer:(EMSerialPacket *)buffer
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

index:

+ + + + +
- (EMResourceValue *)index:(int)index
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

initWithName:type:schema:

+ + + + +
- (id)initWithName:(NSString *)theName type:(NSString *)theType schema:(EMSchema *)theResourceSchema
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

length

+ + + + +
- (long)length
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

longValue

+ + + + +
- (long long)longValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

max

+ + + + +
- (double)max
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

min

+ + + + +
- (double)min
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

putData:

+ + + + +
- (void)putData:(EMSerialPacket *)buffer
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

reset

+ + + + +
- (void)reset
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

select:

+ + + + +
- (EMResourceValue *)select:(NSString *)fieldName
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setDoubleValue:

+ + + + +
- (void)setDoubleValue:(double)newValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setLongValue:

+ + + + +
- (void)setLongValue:(long long)newValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setStringValue:

+ + + + +
- (void)setStringValue:(NSString *)newValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

step

+ + + + +
- (double)step
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

stringValue

+ + + + +
- (NSString *)stringValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ + +
+ + +
+
+ + + \ No newline at end of file diff --git a/DUREX tests/EmmocoMobileFramework/Docs/Classes/FileValue.html b/DUREX tests/EmmocoMobileFramework/Docs/Classes/FileValue.html new file mode 100644 index 0000000..9867a75 --- /dev/null +++ b/DUREX tests/EmmocoMobileFramework/Docs/Classes/FileValue.html @@ -0,0 +1,1231 @@ + + + + + FileValue Class Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + + + + +
Inherits fromEMResourceValue : NSObject
Conforms toEMResourceValueProtocol
Declared inEMResourceValue.m
+ + + + + + +
+ +

Tasks

+ + + + + + + +
+ + + + + + + + + +
+ +

Instance Methods

+ +
+ +

copyFromResource:

+ + + + +
- (void)copyFromResource:(EMResourceValue *)source
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

doubleValue

+ + + + +
- (double)doubleValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

enumValues

+ + + + +
- (NSArray *)enumValues
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fieldNames

+ + + + +
- (NSArray *)fieldNames
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileEof

+ + + + +
- (BOOL)fileEof
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileFetch

+ + + + +
- (void)fileFetch
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileStore

+ + + + +
- (void)fileStore
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

getDataOfSize:fromBuffer:

+ + + + +
- (void)getDataOfSize:(int)size fromBuffer:(EMSerialPacket *)buffer
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

index:

+ + + + +
- (EMResourceValue *)index:(int)index
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

initWithName:type:schema:

+ + + + +
- (id)initWithName:(NSString *)theName type:(NSString *)theType schema:(EMSchema *)theResourceSchema
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

length

+ + + + +
- (long)length
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

longValue

+ + + + +
- (long long)longValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

max

+ + + + +
- (double)max
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

min

+ + + + +
- (double)min
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

putData:

+ + + + +
- (void)putData:(EMSerialPacket *)buffer
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

reset

+ + + + +
- (void)reset
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

select:

+ + + + +
- (EMResourceValue *)select:(NSString *)fieldName
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setDoubleValue:

+ + + + +
- (void)setDoubleValue:(double)value
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setLongValue:

+ + + + +
- (void)setLongValue:(long long)value
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setStringValue:

+ + + + +
- (void)setStringValue:(NSString *)filePath
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

step

+ + + + +
- (double)step
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

stringValue

+ + + + +
- (NSString *)stringValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ + +
+ + +
+
+ + + \ No newline at end of file diff --git a/DUREX tests/EmmocoMobileFramework/Docs/Classes/IntValue.html b/DUREX tests/EmmocoMobileFramework/Docs/Classes/IntValue.html new file mode 100644 index 0000000..f14140b --- /dev/null +++ b/DUREX tests/EmmocoMobileFramework/Docs/Classes/IntValue.html @@ -0,0 +1,1231 @@ + + + + + IntValue Class Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + + + + +
Inherits fromEMResourceValue : NSObject
Conforms toEMResourceValueProtocol
Declared inEMResourceValue.m
+ + + + + + +
+ +

Tasks

+ + + + + + + +
+ + + + + + + + + +
+ +

Instance Methods

+ +
+ +

copyFromResource:

+ + + + +
- (void)copyFromResource:(EMResourceValue *)source
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

doubleValue

+ + + + +
- (double)doubleValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

enumValues

+ + + + +
- (NSArray *)enumValues
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fieldNames

+ + + + +
- (NSArray *)fieldNames
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileEof

+ + + + +
- (BOOL)fileEof
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileFetch

+ + + + +
- (void)fileFetch
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileStore

+ + + + +
- (void)fileStore
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

getDataOfSize:fromBuffer:

+ + + + +
- (void)getDataOfSize:(int)dataSize fromBuffer:(EMSerialPacket *)buffer
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

index:

+ + + + +
- (EMResourceValue *)index:(int)index
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

initWithName:type:schema:

+ + + + +
- (id)initWithName:(NSString *)theName type:(NSString *)theType schema:(EMSchema *)theResourceSchema
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

length

+ + + + +
- (long)length
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

longValue

+ + + + +
- (long long)longValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

max

+ + + + +
- (double)max
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

min

+ + + + +
- (double)min
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

putData:

+ + + + +
- (void)putData:(EMSerialPacket *)buffer
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

reset

+ + + + +
- (void)reset
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

select:

+ + + + +
- (EMResourceValue *)select:(NSString *)fieldName
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setDoubleValue:

+ + + + +
- (void)setDoubleValue:(double)newValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setLongValue:

+ + + + +
- (void)setLongValue:(long long)newValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setStringValue:

+ + + + +
- (void)setStringValue:(NSString *)newValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

step

+ + + + +
- (double)step
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

stringValue

+ + + + +
- (NSString *)stringValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ + +
+ + +
+
+ + + \ No newline at end of file diff --git a/DUREX tests/EmmocoMobileFramework/Docs/Classes/NumberValue.html b/DUREX tests/EmmocoMobileFramework/Docs/Classes/NumberValue.html new file mode 100644 index 0000000..d0bdc5a --- /dev/null +++ b/DUREX tests/EmmocoMobileFramework/Docs/Classes/NumberValue.html @@ -0,0 +1,1231 @@ + + + + + NumberValue Class Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + + + + +
Inherits fromEMResourceValue : NSObject
Conforms toEMResourceValueProtocol
Declared inEMResourceValue.m
+ + + + + + +
+ +

Tasks

+ + + + + + + +
+ + + + + + + + + +
+ +

Instance Methods

+ +
+ +

copyFromResource:

+ + + + +
- (void)copyFromResource:(EMResourceValue *)source
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

doubleValue

+ + + + +
- (double)doubleValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

enumValues

+ + + + +
- (NSArray *)enumValues
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fieldNames

+ + + + +
- (NSArray *)fieldNames
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileEof

+ + + + +
- (BOOL)fileEof
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileFetch

+ + + + +
- (void)fileFetch
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileStore

+ + + + +
- (void)fileStore
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

getDataOfSize:fromBuffer:

+ + + + +
- (void)getDataOfSize:(int)dataSize fromBuffer:(EMSerialPacket *)buffer
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

index:

+ + + + +
- (EMResourceValue *)index:(int)index
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

initWithName:type:schema:

+ + + + +
- (id)initWithName:(NSString *)theName type:(NSString *)theType schema:(EMSchema *)theResourceSchema
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

length

+ + + + +
- (long)length
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

longValue

+ + + + +
- (long long)longValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

max

+ + + + +
- (double)max
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

min

+ + + + +
- (double)min
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

putData:

+ + + + +
- (void)putData:(EMSerialPacket *)buffer
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

reset

+ + + + +
- (void)reset
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

select:

+ + + + +
- (EMResourceValue *)select:(NSString *)fieldName
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setDoubleValue:

+ + + + +
- (void)setDoubleValue:(double)newValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setLongValue:

+ + + + +
- (void)setLongValue:(long long)newValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setStringValue:

+ + + + +
- (void)setStringValue:(NSString *)newValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

step

+ + + + +
- (double)step
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

stringValue

+ + + + +
- (NSString *)stringValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ + +
+ + +
+
+ + + \ No newline at end of file diff --git a/DUREX tests/EmmocoMobileFramework/Docs/Classes/StringValue.html b/DUREX tests/EmmocoMobileFramework/Docs/Classes/StringValue.html new file mode 100644 index 0000000..3325a2b --- /dev/null +++ b/DUREX tests/EmmocoMobileFramework/Docs/Classes/StringValue.html @@ -0,0 +1,1231 @@ + + + + + StringValue Class Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + + + + +
Inherits fromEMResourceValue : NSObject
Conforms toEMResourceValueProtocol
Declared inEMResourceValue.m
+ + + + + + +
+ +

Tasks

+ + + + + + + +
+ + + + + + + + + +
+ +

Instance Methods

+ +
+ +

copyFromResource:

+ + + + +
- (void)copyFromResource:(EMResourceValue *)source
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

doubleValue

+ + + + +
- (double)doubleValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

enumValues

+ + + + +
- (NSArray *)enumValues
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fieldNames

+ + + + +
- (NSArray *)fieldNames
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileEof

+ + + + +
- (BOOL)fileEof
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileFetch

+ + + + +
- (void)fileFetch
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileStore

+ + + + +
- (void)fileStore
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

getDataOfSize:fromBuffer:

+ + + + +
- (void)getDataOfSize:(int)size fromBuffer:(EMSerialPacket *)buffer
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

index:

+ + + + +
- (EMResourceValue *)index:(int)index
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

initWithName:type:schema:

+ + + + +
- (id)initWithName:(NSString *)theName type:(NSString *)theType schema:(EMSchema *)theResourceSchema
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

length

+ + + + +
- (long)length
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

longValue

+ + + + +
- (long long)longValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

max

+ + + + +
- (double)max
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

min

+ + + + +
- (double)min
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

putData:

+ + + + +
- (void)putData:(EMSerialPacket *)buffer
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

reset

+ + + + +
- (void)reset
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

select:

+ + + + +
- (EMResourceValue *)select:(NSString *)fieldName
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setDoubleValue:

+ + + + +
- (void)setDoubleValue:(double)newValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setLongValue:

+ + + + +
- (void)setLongValue:(long long)newValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setStringValue:

+ + + + +
- (void)setStringValue:(NSString *)newValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

step

+ + + + +
- (double)step
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

stringValue

+ + + + +
- (NSString *)stringValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ + +
+ + +
+
+ + + \ No newline at end of file diff --git a/DUREX tests/EmmocoMobileFramework/Docs/Classes/StructValue.html b/DUREX tests/EmmocoMobileFramework/Docs/Classes/StructValue.html new file mode 100644 index 0000000..c1f0feb --- /dev/null +++ b/DUREX tests/EmmocoMobileFramework/Docs/Classes/StructValue.html @@ -0,0 +1,1231 @@ + + + + + StructValue Class Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + + + + +
Inherits fromEMResourceValue : NSObject
Conforms toEMResourceValueProtocol
Declared inEMResourceValue.m
+ + + + + + +
+ +

Tasks

+ + + + + + + +
+ + + + + + + + + +
+ +

Instance Methods

+ +
+ +

copyFromResource:

+ + + + +
- (void)copyFromResource:(EMResourceValue *)source
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

doubleValue

+ + + + +
- (double)doubleValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

enumValues

+ + + + +
- (NSArray *)enumValues
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fieldNames

+ + + + +
- (NSArray *)fieldNames
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileEof

+ + + + +
- (BOOL)fileEof
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileFetch

+ + + + +
- (void)fileFetch
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileStore

+ + + + +
- (void)fileStore
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

getDataOfSize:fromBuffer:

+ + + + +
- (void)getDataOfSize:(int)size fromBuffer:(EMSerialPacket *)buffer
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

index:

+ + + + +
- (EMResourceValue *)index:(int)index
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

initWithName:type:schema:

+ + + + +
- (id)initWithName:(NSString *)theName type:(NSString *)theType schema:(EMSchema *)theResourceSchema
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

length

+ + + + +
- (long)length
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

longValue

+ + + + +
- (long long)longValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

max

+ + + + +
- (double)max
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

min

+ + + + +
- (double)min
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

putData:

+ + + + +
- (void)putData:(EMSerialPacket *)buffer
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

reset

+ + + + +
- (void)reset
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

select:

+ + + + +
- (EMResourceValue *)select:(NSString *)fieldName
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setDoubleValue:

+ + + + +
- (void)setDoubleValue:(double)value
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setLongValue:

+ + + + +
- (void)setLongValue:(long long)value
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setStringValue:

+ + + + +
- (void)setStringValue:(NSString *)value
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

step

+ + + + +
- (double)step
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

stringValue

+ + + + +
- (NSString *)stringValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ + +
+ + +
+
+ + + \ No newline at end of file diff --git a/DUREX tests/EmmocoMobileFramework/Docs/Classes/VoidValue.html b/DUREX tests/EmmocoMobileFramework/Docs/Classes/VoidValue.html new file mode 100644 index 0000000..6abbc7c --- /dev/null +++ b/DUREX tests/EmmocoMobileFramework/Docs/Classes/VoidValue.html @@ -0,0 +1,1231 @@ + + + + + VoidValue Class Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + + + + +
Inherits fromEMResourceValue : NSObject
Conforms toEMResourceValueProtocol
Declared inEMResourceValue.m
+ + + + + + +
+ +

Tasks

+ + + + + + + +
+ + + + + + + + + +
+ +

Instance Methods

+ +
+ +

copyFromResource:

+ + + + +
- (void)copyFromResource:(EMResourceValue *)source
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

doubleValue

+ + + + +
- (double)doubleValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

enumValues

+ + + + +
- (NSArray *)enumValues
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fieldNames

+ + + + +
- (NSArray *)fieldNames
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileEof

+ + + + +
- (BOOL)fileEof
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileFetch

+ + + + +
- (void)fileFetch
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileStore

+ + + + +
- (void)fileStore
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

getDataOfSize:fromBuffer:

+ + + + +
- (void)getDataOfSize:(int)size fromBuffer:(EMSerialPacket *)buffer
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

index:

+ + + + +
- (EMResourceValue *)index:(int)index
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

initWithName:type:schema:

+ + + + +
- (id)initWithName:(NSString *)theName type:(NSString *)theType schema:(EMSchema *)theResourceSchema
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

length

+ + + + +
- (long)length
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

longValue

+ + + + +
- (long long)longValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

max

+ + + + +
- (double)max
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

min

+ + + + +
- (double)min
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

putData:

+ + + + +
- (void)putData:(EMSerialPacket *)buffer
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

reset

+ + + + +
- (void)reset
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

select:

+ + + + +
- (EMResourceValue *)select:(NSString *)fieldName
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setDoubleValue:

+ + + + +
- (void)setDoubleValue:(double)value
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setLongValue:

+ + + + +
- (void)setLongValue:(long long)value
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setStringValue:

+ + + + +
- (void)setStringValue:(NSString *)value
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

step

+ + + + +
- (double)step
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

stringValue

+ + + + +
- (NSString *)stringValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ + +
+ + +
+
+ + + \ No newline at end of file diff --git a/DUREX tests/EmmocoMobileFramework/Docs/Protocols/EMConnectionDelegate.html b/DUREX tests/EmmocoMobileFramework/Docs/Protocols/EMConnectionDelegate.html new file mode 100644 index 0000000..717e7ce --- /dev/null +++ b/DUREX tests/EmmocoMobileFramework/Docs/Protocols/EMConnectionDelegate.html @@ -0,0 +1,305 @@ + + + + + EMConnectionDelegate Protocol Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + +
Conforms toNSObject
Declared inEMConnection.h
+ + + + +
+ +

Overview

+

@file

+
+ + + + + + + + + + + + + + +
+ + +
+
+ + + \ No newline at end of file diff --git a/DUREX tests/EmmocoMobileFramework/Docs/Protocols/EMConnectionType.html b/DUREX tests/EmmocoMobileFramework/Docs/Protocols/EMConnectionType.html new file mode 100644 index 0000000..86b4b8d --- /dev/null +++ b/DUREX tests/EmmocoMobileFramework/Docs/Protocols/EMConnectionType.html @@ -0,0 +1,1151 @@ + + + + + EMConnectionType Protocol Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + +
Conforms toNSObject
Declared inEMConnectionType.h
+ + + + +
+ +

Overview

+

Abstracts a given protocol for connecting to devices.

+
+ + + + + +
+ +

Tasks

+ + + + + +
    +
  • + +   scanDelegate +

    The delegate for scanning

    +
    + property + required method +
  • + +   connectionDelegate +

    The delegate for connection communication

    +
    + property + required method +
  • + +   schema +

    The schema for connection

    +
    + property + required method +
  • + +   lastReadValue +

    The last read resource value from the device

    +
    + property + required method +
  • + +   connected +

    A boolean indicating whether or not there is a connection with a device.

    +
    + property + required method +
  • + +   signalStrengthFilterClass +

    The class to use for filtering, or smoothin, signal strength values

    +
    + property + required method +
  • + + – deviceType +

    The type of device - this can be set to anything and retreived for printing or examining.

    +
    + + required method +
  • + + – startUpdating +

    Tells the connection to start looking for devices of its type.

    +
    + + required method +
  • + + – stopUpdating +

    Tells the connection to stop looking for devices of its type.

    +
    + + required method +
  • + + – isConnected +

    Returns whether or not there is a connection with a device.

    +
    + + required method +
  • + + – disconnect +

    disconnects the current device.

    +
    + + required method +
  • + + – connectToDevice:connectionDelegate: +

    Establishes a connection with a device

    +
    + + required method +
  • + + – isAvailable +

    YES if available on the current device, NO if unavailable.

    +
    + + required method +
  • + + – fetch: +

    Fetches a resource. Can be retrieved in “lastReadValue”

    +
    + + required method +
  • + + – fetchSystemResource: +

    Fetches a system resource. Can be retrieved in “lastReadValue”.

    +
    + + required method +
  • + + – store: +

    writes a value to a device.

    +
    + + required method +
  • +
+ +
+ + + + + +
+ +

Properties

+ +
+ +

connected

+ + + +
+

A boolean indicating whether or not there is a connection with a device.

+
+ + +
@property (nonatomic, readonly, getter=isConnected) BOOL connected
+ + + + + + + + +
+

Discussion

+

A boolean indicating whether or not there is a connection with a device.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

connectionDelegate

+ + + +
+

The delegate for connection communication

+
+ + +
@property (nonatomic, unsafe_unretained) id<EMDeviceDelegate> connectionDelegate
+ + + + + + + + +
+

Discussion

+

The delegate for connection communication

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

lastReadValue

+ + + +
+

The last read resource value from the device

+
+ + +
@property (nonatomic, strong) EMResourceValue *lastReadValue
+ + + + + + + + +
+

Discussion

+

The last read resource value from the device

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

scanDelegate

+ + + +
+

The delegate for scanning

+
+ + +
@property (nonatomic, unsafe_unretained) id<EMConnectionTypeScannerDelegate> scanDelegate
+ + + + + + + + +
+

Discussion

+

The delegate for scanning

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

schema

+ + + +
+

The schema for connection

+
+ + +
@property (nonatomic, unsafe_unretained) EMSchema *schema
+ + + + + + + + +
+

Discussion

+

The schema for connection

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

signalStrengthFilterClass

+ + + +
+

The class to use for filtering, or smoothin, signal strength values

+
+ + +
@property (nonatomic, strong) Class<EMSignalStrengthFilter> signalStrengthFilterClass
+ + + + + + + + +
+

Discussion

+

The class to use for filtering, or smoothin, signal strength values

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ + + + + +
+ +

Instance Methods

+ +
+ +

connectToDevice:connectionDelegate:

+ + + +
+

Establishes a connection with a device

+
+ + +
- (void)connectToDevice:(EMDeviceBasicDescription *)device connectionDelegate:(id<EMDeviceDelegate>)connDelegate
+ + + + + + + + +
+

Discussion

+

Establishes a connection with a device

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

deviceType

+ + + +
+

The type of device - this can be set to anything and retreived for printing or examining.

+
+ + +
- (NSString *)deviceType
+ + + + + + + + +
+

Discussion

+

The type of device - this can be set to anything and retreived for printing or examining.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

disconnect

+ + + +
+

disconnects the current device.

+
+ + +
- (void)disconnect
+ + + + + + + + +
+

Discussion

+

disconnects the current device.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

fetch:

+ + + +
+

Fetches a resource. Can be retrieved in “lastReadValue”

+
+ + +
- (void)fetch:(id)resourceValue
+ + + + + + + + +
+

Discussion

+

Fetches a resource. Can be retrieved in “lastReadValue”

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

fetchSystemResource:

+ + + +
+

Fetches a system resource. Can be retrieved in “lastReadValue”.

+
+ + +
- (void)fetchSystemResource:(id)resourceValue
+ + + + + + + + +
+

Discussion

+

Fetches a system resource. Can be retrieved in “lastReadValue”.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

isAvailable

+ + + +
+

YES if available on the current device, NO if unavailable.

+
+ + +
- (BOOL)isAvailable
+ + + + + + + + +
+

Discussion

+

YES if available on the current device, NO if unavailable.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

isConnected

+ + + +
+

Returns whether or not there is a connection with a device.

+
+ + +
- (BOOL)isConnected
+ + + + + + + + +
+

Discussion

+

Returns whether or not there is a connection with a device.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

startUpdating

+ + + +
+

Tells the connection to start looking for devices of its type.

+
+ + +
- (void)startUpdating
+ + + + + + + + +
+

Discussion

+

Tells the connection to start looking for devices of its type.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

stopUpdating

+ + + +
+

Tells the connection to stop looking for devices of its type.

+
+ + +
- (void)stopUpdating
+ + + + + + + + +
+

Discussion

+

Tells the connection to stop looking for devices of its type.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

store:

+ + + +
+

writes a value to a device.

+
+ + +
- (void)store:(id)resourceValue
+ + + + + + + + +
+

Discussion

+

writes a value to a device.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ + +
+ + +
+
+ + + \ No newline at end of file diff --git a/DUREX tests/EmmocoMobileFramework/Docs/Protocols/EMConnectionTypeScannerDelegate.html b/DUREX tests/EmmocoMobileFramework/Docs/Protocols/EMConnectionTypeScannerDelegate.html new file mode 100644 index 0000000..85abb49 --- /dev/null +++ b/DUREX tests/EmmocoMobileFramework/Docs/Protocols/EMConnectionTypeScannerDelegate.html @@ -0,0 +1,488 @@ + + + + + EMConnectionTypeScannerDelegate Protocol Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + +
Conforms toNSObject
Declared inEMConnectionType.h
+ + + + +
+ +

Overview

+

These methods are sen tto the connection delegate to inform it of devices that come available or go offline.

+
+ + + + + +
+ +

Tasks

+ + + + + + + +
+ + + + + + + + + +
+ +

Instance Methods

+ +
+ +

deviceScanner:didFindDevice:

+ + + +
+

Tells the delegate a device was found.

+
+ + +
- (void)deviceScanner:(id)scanner didFindDevice:(EMDeviceBasicDescription *)device
+ + + + + + + + +
+

Discussion

+

Tells the delegate a device was found.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

deviceScanner:didLoseDevice:

+ + + +
+

Tells the delegate a device was lost.

+
+ + +
- (void)deviceScanner:(id)scanner didLoseDevice:(EMDeviceBasicDescription *)device
+ + + + + + + + +
+

Discussion

+

Tells the delegate a device was lost.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

deviceScanner:didUpdateDevice:

+ + + +
+

Updates the data for a device description

+
+ + +
- (void)deviceScanner:(id)scanner didUpdateDevice:(EMDeviceBasicDescription *)device
+ + + + + + + + +
+

Discussion

+

Updates the data for a device description

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ + +
+ + +
+
+ + + \ No newline at end of file diff --git a/DUREX tests/EmmocoMobileFramework/Docs/Protocols/EMDeviceDelegate.html b/DUREX tests/EmmocoMobileFramework/Docs/Protocols/EMDeviceDelegate.html new file mode 100644 index 0000000..95bc4bc --- /dev/null +++ b/DUREX tests/EmmocoMobileFramework/Docs/Protocols/EMDeviceDelegate.html @@ -0,0 +1,305 @@ + + + + + EMDeviceDelegate Protocol Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + +
Conforms toNSObject
Declared inEMConnectionType.h
+ + + + +
+ +

Overview

+

EMTargetDeviceHandler is implemented by classes interested in manageing connections to devices. By default, this will be the shared instance of EMConnectionManager.

+
+ + + + + + + + + + + + + + +
+ + +
+
+ + + \ No newline at end of file diff --git a/DUREX tests/EmmocoMobileFramework/Docs/Protocols/EMResourceValueProtocol.html b/DUREX tests/EmmocoMobileFramework/Docs/Protocols/EMResourceValueProtocol.html new file mode 100644 index 0000000..b4ce878 --- /dev/null +++ b/DUREX tests/EmmocoMobileFramework/Docs/Protocols/EMResourceValueProtocol.html @@ -0,0 +1,1689 @@ + + + + + EMResourceValueProtocol Protocol Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + +
Declared inEMResourceValue.h
+ + + + +
+ +

Overview

+

A protocol to define the methods that all EMResourceValue subclasses must define.

+ +

Written by Carolyn Vaughan

+
+ + + + + +
+ +

Tasks

+ + + + + + + +
+ + + + + + + + + +
+ +

Instance Methods

+ +
+ +

copyFromResource:

+ + + + +
- (void)copyFromResource:(EMResourceValue *)source
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

doubleValue

+ + + + +
- (double)doubleValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

enumValues

+ + + + +
- (NSArray *)enumValues
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fieldNames

+ + + + +
- (NSArray *)fieldNames
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileEof

+ + + + +
- (BOOL)fileEof
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileFetch

+ + + + +
- (void)fileFetch
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileStore

+ + + + +
- (void)fileStore
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

getDataOfSize:fromBuffer:

+ + + + +
- (void)getDataOfSize:(int)size fromBuffer:(EMSerialPacket *)buffer
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

index:

+ + + + +
- (EMResourceValue *)index:(int)index
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

initWithName:type:schema:

+ + + + +
- (id)initWithName:(NSString *)theName type:(NSString *)theType schema:(EMSchema *)theResourceSchema
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

isArray

+ + + +
+

Returns true if the type of this value is an Array, and false otherwise.

+
+ + +
- (BOOL)isArray
+ + + + + + + + +
+

Discussion

+

Returns true if the type of this value is an Array, and false otherwise.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

isEnum

+ + + +
+

Returns true if the type of this value is an Enum, and false otherwise.

+
+ + +
- (BOOL)isEnum
+ + + + + + + + +
+

Discussion

+

Returns true if the type of this value is an Enum, and false otherwise.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

isFile

+ + + +
+

Returns true if the type of this value is a File, and false otherwise.

+
+ + +
- (BOOL)isFile
+ + + + + + + + +
+

Discussion

+

Returns true if the type of this value is a File, and false otherwise.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

isInt

+ + + +
+

Returns true if the type of this value is an Int, and false otherwise.

+
+ + +
- (BOOL)isInt
+ + + + + + + + +
+

Discussion

+

Returns true if the type of this value is an Int, and false otherwise.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

isNum

+ + + +
+

Returns true if the type of this value is a Num, and false otherwise.

+
+ + +
- (BOOL)isNum
+ + + + + + + + +
+

Discussion

+

Returns true if the type of this value is a Num, and false otherwise.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

isScalar

+ + + +
+

Returns true if the type of this value is scalar (Num, Enum, Int, String), and false otherwise.

+
+ + +
- (BOOL)isScalar
+ + + + + + + + +
+

Discussion

+

Returns true if the type of this value is scalar (Num, Enum, Int, String), and false otherwise.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

isString

+ + + +
+

Returns true if the type of this value is a String, and false otherwise.

+
+ + +
- (BOOL)isString
+ + + + + + + + +
+

Discussion

+

Returns true if the type of this value is a String, and false otherwise.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

isStruct

+ + + +
+

Return true if the type of this value is a Struct, and false otherwise.

+
+ + +
- (BOOL)isStruct
+ + + + + + + + +
+

Discussion

+

Return true if the type of this value is a Struct, and false otherwise.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

isVoid

+ + + +
+

Return true if the type of this value is a Void, and false otherwise.

+
+ + +
- (BOOL)isVoid
+ + + + + + + + +
+

Discussion

+

Return true if the type of this value is a Void, and false otherwise.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

length

+ + + + +
- (long)length
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

longValue

+ + + + +
- (long long)longValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

max

+ + + + +
- (double)max
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

min

+ + + + +
- (double)min
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

putData:

+ + + + +
- (void)putData:(EMSerialPacket *)buffer
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

reset

+ + + + +
- (void)reset
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

select:

+ + + + +
- (EMResourceValue *)select:(NSString *)fieldName
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setDoubleValue:

+ + + + +
- (void)setDoubleValue:(double)value
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setLongValue:

+ + + + +
- (void)setLongValue:(long long)value
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setStringValue:

+ + + + +
- (void)setStringValue:(NSString *)value
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

step

+ + + + +
- (double)step
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

stringValue

+ + + + +
- (NSString *)stringValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ + +
+ + +
+
+ + + \ No newline at end of file diff --git a/DUREX tests/EmmocoMobileFramework/Docs/css/styles.css b/DUREX tests/EmmocoMobileFramework/Docs/css/styles.css new file mode 100755 index 0000000..7de7ea2 --- /dev/null +++ b/DUREX tests/EmmocoMobileFramework/Docs/css/styles.css @@ -0,0 +1,585 @@ + + +body { + font-family: 'Lucida Grande',Geneva,Helvetica,Arial,sans-serif; + font-size: 13px; + background: #fff url(http://www.emmoco.com/images/bg_page_gradient.jpg) repeat-x 0 0; +} + +#em-wrapper { + width:960px; + margin:0 auto; + background-color: #fff; + overflow: hidden; +} + +article +{ + background-color:#fff; +} + + +code { + font-family: Courier, Consolas, monospace; + font-size: 13px; + color: #666; +} + +pre { + font-family: Courier, Consolas, monospace; + font-size: 13px; + line-height: 18px; + tab-interval: 0.5em; + border: 1px solid #C7CFD5; + background-color: #F1F5F9; + color: #666; + padding: 0.3em 1em; +} + +ul { + list-style-type: square; +} + +li { + margin-bottom: 10px; +} + +a { + text-decoration: none; + color: #36C; +} + +a:hover { + text-decoration: underline; + color: #36C; +} + +h2 { + border-bottom: 1px solid #8391A8; + color: #3C4C6C; + font-size: 187%; + font-weight: normal; + margin-top: 1.75em; + padding-bottom: 2px; +} + +/* @group Common page elements */ + +#top_header { + height: 91px; + left: 0; + min-width: 598px; + + right: 0; + top: 50px; + z-index: 900; + width: 960px; + margin: auto; + clear: both; + margin-bottom: 15px; +} + +#footer { + clear: both; + padding-top: 20px; + text-align: center; +} + +#ccontents, #overview_contents { + border-top: 1px solid #2B334F; + position: absolute; + position:relative; + top: 91px; + left: 0; + right: 0; + bottom: 0; + top: 0; + overflow-x: hidden; + overflow-y: auto; + padding-left: 2em; + padding-right: 2em; + padding-top: 1em; + min-width: 550px; + width: 950px; + margin-left: auto; + margin-right: auto; + left: auto; + clear: both; + padding-left: 10px; + padding-right: 0; +} + +#contents.isShowingTOC { + left: 230px; + left: 130px; + min-width: 320px; + width: 730px; + margin-left: auto; + margin-right: auto; + position:absolute; + position:relative; +} + +.copyright { + font-size: 12px; +} + +.generator { + font-size: 11px; +} + +.main-navigation ul li { + display: inline; + margin-left: 15px; + list-style: none; +} + +.main-navigation { + margin-right: 20px; +} + +.navigation-top { + clear: both; + float: right; + margin-right: 20px; +} + +.navigation-bottom { + clear: both; + float: right; + margin-top: 20px; + margin-bottom: -10px; + margin-right: 20px; +} + +.open > .disclosure { + background-image: url("../img/disclosure_open.png"); +} + +.disclosure { + background: url("../img/disclosure.png") no-repeat scroll 0 0; +} + +.disclosure, .nodisclosure { + display: inline-block; + height: 8px; + margin-right: 5px; + position: relative; + width: 9px; +} + +/* @end */ + +/* @group Header */ + +#top_header #library { + background: url("../img/library_background.png") repeat-x 0 0 #485E78; + background-color: #ccc; + height: 35px; + font-size: 115%; + position:relative; +} + +#top_header #library #libraryTitle { + color: #FFFFFF; + margin-left: 15px; + text-shadow: 0 -1px 0 #485E78; + top: 8px; + position: absolute; +} + +#top_header #library #developerHome { + color: #92979E; + right: 15px; + top: 8px; + position: absolute; +} + +#top_header #library a:hover { + text-decoration: none; +} + +#top_header #title { + background: url("../img/title_background.png") repeat-x 0 0 #8A98A9; + border-bottom: 1px solid #B6B6B6; + height: 25px; + overflow: hidden; + text-align: left; + padding-left: 15px; +} + +#top_header h1 { + font-size: 115%; + font-weight: normal; + margin: 0; + padding: 3px 0 2px; + text-align: center; + text-align: left; + text-shadow: 0 1px 0 #D5D5D5; + white-space: nowrap; +} + +#headerButtons { + background-color: #D8D8D8; + background-image: url("../img/button_bar_background.png"); + border-bottom: 1px solid #EDEDED; + border-top: 1px solid #2B334F; + font-size: 8pt; + height: 28px; + left: 0; + list-style: none outside none; + margin: 0; + overflow: hidden; + padding: 0; + position: absolute; + position: relative; + right: 0; + top: 61px; + top: 0; +} + +#headerButtons li { + background-repeat: no-repeat; + display: inline; + margin-top: 0; + margin-bottom: 0; + padding: 0; +} + +#toc_button button { + border-color: #ACACAC; + border-style: none solid none none; + border-width: 0 1px 0 0; + height: 28px; + margin: 0; + padding-left: 30px; + text-align: left; + width: 230px; +} + +li#jumpto_button { + left: 230px; + margin-left: 0; + position: absolute; + +} + +li#jumpto_button select { + height: 22px; + margin: 5px 2px 0 10px; + max-width: 300px; +} + +/* @end */ + +/* @group Table of contents */ + +#tocContainer.isShowingTOC { + border-right: 1px solid #ACACAC; + display: block; + overflow-x: hidden; + overflow-y: auto; + padding: 0; +} + +#tocContainer { + background-color: #E4EBF7; + border-top: 1px solid #2B334F; + bottom: 0; + display: none; + left: 0; + left: auto; + overflow: hidden; + position: absolute; + top: 91px; + top: 150px; + width: 229px; +} + +#tocContainer > ul#toc { + font-size: 11px; + margin: 0; + padding: 12px 0 18px; + width: 209px; + -moz-user-select: none; + -webkit-user-select: none; + user-select: none; +} + +#tocContainer > ul#toc > li { + margin: 0; + padding: 0 0 7px 30px; + text-indent: -15px; +} + +#tocContainer > ul#toc > li > .sectionName a { + color: #000000; + font-weight: bold; +} + +#tocContainer > ul#toc > li > .sectionName a:hover { + text-decoration: none; +} + +#tocContainer > ul#toc li.children > ul { + display: none; + height: 0; +} + +#tocContainer > ul#toc > li > ul { + margin: 0; + padding: 0; +} + +#tocContainer > ul#toc > li > ul, ul#toc > li > ul > li { + margin-left: 0; + margin-bottom: 0; + padding-left: 15px; +} + +#tocContainer > ul#toc > li ul { + list-style: none; + margin-right: 0; + padding-right: 0; +} + +#tocContainer > ul#toc li.children.open > ul { + display: block; + height: auto; + margin-left: -15px; + padding-left: 0; +} + +#tocContainer > ul#toc > li > ul, ul#toc > li > ul > li { + margin-left: 0; + padding-left: 15px; +} + +#tocContainer li ul li { + margin-top: 0.583em; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; +} + +#tocContainer li ul li span.sectionName { + white-space: normal; +} + +#tocContainer > ul#toc > li > ul > li > .sectionName a { + font-weight: bold; +} + +#tocContainer > ul#toc > li > ul a { + color: #4F4F4F; +} + +/* @end */ + +/* @group Index formatting */ + +.index-title { + font-size: 13px; + font-weight: normal; +} + +.index-column { + float: left; + width: 30%; + min-width: 200px; + font-size: 11px; +} + +.index-column ul { + margin: 8px 0 0 0; + padding: 0; + list-style: none; +} + +.index-column ul li { + margin: 0 0 3px 0; + padding: 0; +} + +.hierarchy-column { + min-width: 400px; +} + +.hierarchy-column ul { + margin: 3px 0 0 15px; +} + +.hierarchy-column ul li { + list-style-type: square; +} + +/* @end */ + +/* @group Common formatting elements */ + +.title { + font-weight: normal; + font-size: 215%; + margin-top:0; +} + +.subtitle { + font-weight: normal; + font-size: 180%; + color: #3C4C6C; + border-bottom: 1px solid #5088C5; +} + +.subsubtitle { + font-weight: normal; + font-size: 145%; + height: 0.7em; +} + +.warning { + border: 1px solid #5088C5; + background-color: #F0F3F7; + margin-bottom: 0.5em; + padding: 0.3em 0.8em; +} + +.bug { + border: 1px solid #000; + background-color: #ffffcc; + margin-bottom: 0.5em; + padding: 0.3em 0.8em; +} + +.deprecated { + color: #F60425; +} + +/* @end */ + +/* @group Common layout */ + +.section { + margin-top: 3em; +} + +/* @end */ + +/* @group Object specification section */ + +.section-specification { + margin-left: 2.5em; + margin-right: 2.5em; + font-size: 12px; +} + +.section-specification table { + border-top: 1px solid #d6e0e5; +} + +.section-specification td { + vertical-align: top; + border-bottom: 1px solid #d6e0e5; + padding: .6em; +} + +.section-specification .specification-title { + font-weight: bold; +} + +/* @end */ + +/* @group Tasks section */ + +.task-list { + list-style-type: none; + padding-left: 0px; +} + +.task-list li { + margin-bottom: 3px; +} + +.task-item-suffix { + color: #996; + font-size: 12px; + font-style: italic; + margin-left: 0.5em; +} + +span.tooltip span.tooltip { + font-size: 1.0em; + display: none; + padding: 0.3em; + border: 1px solid #aaa; + background-color: #fdfec8; + color: #000; + text-align: left; +} + +span.tooltip:hover span.tooltip { + display: block; + position: absolute; + margin-left: 2em; +} + +/* @end */ + +/* @group Method section */ + +.section-method { + margin-top: 2.3em; +} + +.method-title { + margin-bottom: 1.5em; +} + +.method-subtitle { + margin-top: 0.7em; + margin-bottom: 0.2em; +} + +.method-subsection p { + margin-top: 0.4em; + margin-bottom: 0.8em; +} + +.method-declaration { + margin-top:1.182em; + margin-bottom:.909em; +} + +.method-declaration code { + font:14px Courier, Consolas, monospace; + color:#000; +} + +.declaration { + color: #000; +} + +.argument-def { + margin-top: 0.3em; + margin-bottom: 0.3em; +} + +.argument-def dd { + margin-left: 1.25em; +} + +.see-also-section ul { + list-style-type: none; + padding-left: 0px; + margin-top: 0; +} + +.see-also-section li { + margin-bottom: 3px; +} + +.declared-in-ref { + color: #666; +} + +/* @end */ + diff --git a/DUREX tests/EmmocoMobileFramework/Docs/css/stylesPrint.css b/DUREX tests/EmmocoMobileFramework/Docs/css/stylesPrint.css new file mode 100755 index 0000000..dc54cd2 --- /dev/null +++ b/DUREX tests/EmmocoMobileFramework/Docs/css/stylesPrint.css @@ -0,0 +1,22 @@ + +header { + display: none; +} + +div.main-navigation, div.navigation-top { + display: none; +} + +div#overview_contents, div#contents.isShowingTOC, div#contents { + overflow: visible; + position: relative; + top: 0px; + border: none; + left: 0; +} +#tocContainer.isShowingTOC { + display: none; +} +nav { + display: none; +} \ No newline at end of file diff --git a/DUREX tests/EmmocoMobileFramework/Docs/hierarchy.html b/DUREX tests/EmmocoMobileFramework/Docs/hierarchy.html new file mode 100644 index 0000000..999e36e --- /dev/null +++ b/DUREX tests/EmmocoMobileFramework/Docs/hierarchy.html @@ -0,0 +1,216 @@ + + + + + iOS Framework Hierarchy + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+
+
+ + + + + +
+
+ + \ No newline at end of file diff --git a/DUREX tests/EmmocoMobileFramework/Docs/img/button_bar_background.png b/DUREX tests/EmmocoMobileFramework/Docs/img/button_bar_background.png new file mode 100755 index 0000000..d2cd0d8 --- /dev/null +++ b/DUREX tests/EmmocoMobileFramework/Docs/img/button_bar_background.png diff --git a/DUREX tests/EmmocoMobileFramework/Docs/img/disclosure.png b/DUREX tests/EmmocoMobileFramework/Docs/img/disclosure.png new file mode 100755 index 0000000..147198f --- /dev/null +++ b/DUREX tests/EmmocoMobileFramework/Docs/img/disclosure.png diff --git a/DUREX tests/EmmocoMobileFramework/Docs/img/disclosure_open.png b/DUREX tests/EmmocoMobileFramework/Docs/img/disclosure_open.png new file mode 100755 index 0000000..ea3842b --- /dev/null +++ b/DUREX tests/EmmocoMobileFramework/Docs/img/disclosure_open.png diff --git a/DUREX tests/EmmocoMobileFramework/Docs/img/library_background.png b/DUREX tests/EmmocoMobileFramework/Docs/img/library_background.png new file mode 100755 index 0000000..8fa6d45 --- /dev/null +++ b/DUREX tests/EmmocoMobileFramework/Docs/img/library_background.png diff --git a/DUREX tests/EmmocoMobileFramework/Docs/img/title_background.png b/DUREX tests/EmmocoMobileFramework/Docs/img/title_background.png new file mode 100755 index 0000000..9001dac --- /dev/null +++ b/DUREX tests/EmmocoMobileFramework/Docs/img/title_background.png diff --git a/DUREX tests/EmmocoMobileFramework/Docs/index.html b/DUREX tests/EmmocoMobileFramework/Docs/index.html new file mode 100644 index 0000000..60f7122 --- /dev/null +++ b/DUREX tests/EmmocoMobileFramework/Docs/index.html @@ -0,0 +1,209 @@ + + + + + iOS Framework Reference + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + + + + + +
+
+
+ + + + + +
+
+
+ + \ No newline at end of file diff --git a/DUREX tests/EmmocoMobileFramework/Headers/EMRSSIFilter.h b/DUREX tests/EmmocoMobileFramework/Headers/EMRSSIFilter.h new file mode 100644 index 0000000..847cd9c --- /dev/null +++ b/DUREX tests/EmmocoMobileFramework/Headers/EMRSSIFilter.h @@ -0,0 +1,19 @@ +// +// EMRSSIFilter.h +// EMFramework +// +// Created by Dexter Weiss on 8/9/13. +// Copyright (c) 2013 Emmoco. All rights reserved. +// + +#import +#import "EMSignalStrengthFilter.h" + +@interface EMRSSIFilter : NSObject + ++(EMRSSIFilter *)filterWithInitialRSSI:(float)rssi; + +-(id)initWithInitialSignalStrengthValue:(float)signalStrengthValue; +-(float)addSignalStrengthValue:(float)signalStrengthValue; + +@end diff --git a/DUREX tests/EmmocoMobileFramework/README.md b/DUREX tests/EmmocoMobileFramework/README.md new file mode 100644 index 0000000..a2ec505 --- /dev/null +++ b/DUREX tests/EmmocoMobileFramework/README.md @@ -0,0 +1,18 @@ +# Adding EMFramework to your project +================== +### Library dependencies +1) libEMFramework.a +2) CoreBluetooth.framework + +================== + +### Add the headers to your project + +All headers found in the `EmmocoMobileFramework/Headers` folder should be included. + +================== + +### Add Schemas to your project + +Add the system.json file from the Assets/ directory into your application bundle. + diff --git a/DUREX tests/FirstAppExample/DUREX test-Info.plist b/DUREX tests/FirstAppExample/DUREX test-Info.plist new file mode 100644 index 0000000..c189583 --- /dev/null +++ b/DUREX tests/FirstAppExample/DUREX test-Info.plist @@ -0,0 +1,38 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleDisplayName + ${PRODUCT_NAME} + CFBundleExecutable + ${EXECUTABLE_NAME} + CFBundleIdentifier + com.emmoco.${PRODUCT_NAME:rfc1034identifier} + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + ${PRODUCT_NAME} + CFBundlePackageType + APPL + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 1.0 + LSRequiresIPhoneOS + + UIMainStoryboardFile + MainStoryboard + UIRequiredDeviceCapabilities + + armv7 + + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + + + diff --git a/DUREX tests/FirstAppExample/DUREX test-Prefix.pch b/DUREX tests/FirstAppExample/DUREX test-Prefix.pch new file mode 100644 index 0000000..743435c --- /dev/null +++ b/DUREX tests/FirstAppExample/DUREX test-Prefix.pch @@ -0,0 +1,16 @@ +// +// Prefix header +// +// The contents of this file are implicitly included at the beginning of every source file. +// + +#import + +#ifndef __IPHONE_3_0 +#warning "This project uses features only available in iOS SDK 3.0 and later." +#endif + +#ifdef __OBJC__ + #import + #import +#endif diff --git a/DUREX tests/FirstAppExample/DUREXAppDelegate.h b/DUREX tests/FirstAppExample/DUREXAppDelegate.h new file mode 100644 index 0000000..dfdd593 --- /dev/null +++ b/DUREX tests/FirstAppExample/DUREXAppDelegate.h @@ -0,0 +1,18 @@ +// +// DUREXAppDelegate.h +// TestAppExample +// +// Created by Dexter Weiss on 10/10/13. +// Copyright (c) 2013 Emmoco. All rights reserved. +// + +#import + +@interface DUREXAppDelegate : UIResponder + +@property (strong, nonatomic) UIWindow *window; +@property (nonatomic, strong) IBOutlet UINavigationController *navController; + + + +@end diff --git a/DUREX tests/FirstAppExample/DUREXAppDelegate.m b/DUREX tests/FirstAppExample/DUREXAppDelegate.m new file mode 100644 index 0000000..afe5bba --- /dev/null +++ b/DUREX tests/FirstAppExample/DUREXAppDelegate.m @@ -0,0 +1,66 @@ +// +// DUREXAppDelegate.m +// TestAppExample +// +// Created by Dexter Weiss on 10/10/13. +// Copyright (c) 2013 Emmoco. All rights reserved. +// + +#import "DUREXAppDelegate.h" +#import "EMDevicePickerViewController.h" + +@interface DUREXAppDelegate () +{ + +} + +@end + +@implementation DUREXAppDelegate + +- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions +{ + UINavigationController *navController = (UINavigationController *)[[self window] rootViewController]; + [self setNavController:navController]; + [[self navController] setDelegate:self]; + + return YES; +} + +- (void)applicationWillResignActive:(UIApplication *)application +{ + // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. + // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. +} + +- (void)applicationDidEnterBackground:(UIApplication *)application +{ + // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. + // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. +} + +- (void)applicationWillEnterForeground:(UIApplication *)application +{ +} + +- (void)applicationDidBecomeActive:(UIApplication *)application +{ + // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. +} + +- (void)applicationWillTerminate:(UIApplication *)application +{ + // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. +} + +#pragma mark - Navigation Controller + +- (void)navigationController:(UINavigationController *)navigationController didShowViewController:(UIViewController *)viewController animated:(BOOL)animated +{ + if ([viewController isKindOfClass:[EMDevicePickerViewController class]]) + { + + } +} + +@end diff --git a/DUREX tests/FirstAppExample/DUREXAppViewController.h b/DUREX tests/FirstAppExample/DUREXAppViewController.h new file mode 100644 index 0000000..a729ea2 --- /dev/null +++ b/DUREX tests/FirstAppExample/DUREXAppViewController.h @@ -0,0 +1,8 @@ +#import + + +@interface DUREXAppViewController : UITableViewController + + + +@end diff --git a/DUREX tests/FirstAppExample/DUREXAppViewController.m b/DUREX tests/FirstAppExample/DUREXAppViewController.m new file mode 100644 index 0000000..05c3af0 --- /dev/null +++ b/DUREX tests/FirstAppExample/DUREXAppViewController.m @@ -0,0 +1,80 @@ +#import "DUREXAppViewController.h" +#import "EMFramework.h" +#import "CommunicationProtocol.h" + +@interface DUREXAppViewController () +{ + IBOutlet UIActivityIndicatorView *_activityIndicator; + NSTimer *_writeTimer; +} +@property (nonatomic,strong) CommunicationProtocol* protocol; + +@end + +@implementation DUREXAppViewController + +- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil +{ + self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]; + if (self) + { + // Custom initialization + } + return self; +} + +- (void)viewDidLoad +{ + [super viewDidLoad]; + [_activityIndicator setHidden:YES]; + [self setTitle:@"DUREX Vendor Control"]; + _protocol = [CommunicationProtocol sharedProtocol]; + [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(didReceiveNotification:) name:kEMConnectionDidReceiveIndicatorNotificationName object:nil]; + [[EMConnectionManager sharedManager] addObserver:self forKeyPath:@"connectionState" options:0 context:NULL]; + [_protocol setMessageAvailable:false]; +} + +-(void)didReceiveNotification:(NSNotification*) notification +{ + id notificationValue = [[notification userInfo] objectForKey:kEMIndicatorResourceValueKey]; + NSString *resourceName = [[notification userInfo] objectForKey:kEMIndicatorNameKey]; + if([resourceName isEqualToString:@"messageAvailable"]) + { + NSString *resourceValue = [notificationValue stringValue]; + if([resourceValue isEqualToString:@"TRUE"]) + { + [_protocol setMessageAvailable:TRUE]; + } + else + { + [_protocol setMessageAvailable:FALSE]; + } + } +} + +-(void)dealloc +{ + [[EMConnectionManager sharedManager] removeObserver:self forKeyPath:@"connectionState"]; + [[NSNotificationCenter defaultCenter] removeObserver:self]; +} + +-(void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary *)change context:(void *)context +{ + if (object == [EMConnectionManager sharedManager]) + { + if ([keyPath isEqualToString:@"connectionState"]) + { + if ([[EMConnectionManager sharedManager] connectionState] == EMConnectionStateDisrupted) + { + [[self navigationController] popToRootViewControllerAnimated:YES]; + } + } + } +} + +#pragma mark - Interface actions + + + + +@end \ No newline at end of file diff --git a/DUREX tests/FirstAppExample/EMConnectingView.xib b/DUREX tests/FirstAppExample/EMConnectingView.xib new file mode 100644 index 0000000..7e84038 --- /dev/null +++ b/DUREX tests/FirstAppExample/EMConnectingView.xib @@ -0,0 +1,42 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/DUREX tests/FirstAppExample/EMDevicePickerViewController.h b/DUREX tests/FirstAppExample/EMDevicePickerViewController.h new file mode 100644 index 0000000..6caaba7 --- /dev/null +++ b/DUREX tests/FirstAppExample/EMDevicePickerViewController.h @@ -0,0 +1,13 @@ +// +// EMDevicePickerViewController.h +// TestAppExample +// +// Created by Dexter Weiss on 10/10/13. +// Copyright (c) 2013 Emmoco. All rights reserved. +// + +#import + +@interface EMDevicePickerViewController : UITableViewController + +@end diff --git a/DUREX tests/FirstAppExample/EMDevicePickerViewController.m b/DUREX tests/FirstAppExample/EMDevicePickerViewController.m new file mode 100644 index 0000000..8cdb75d --- /dev/null +++ b/DUREX tests/FirstAppExample/EMDevicePickerViewController.m @@ -0,0 +1,91 @@ +// +// EMDevicePickerViewController.m +// TestAppExample +// +// Created by Dexter Weiss on 10/10/13. +// Copyright (c) 2013 Emmoco. All rights reserved. +// + +#import "EMDevicePickerViewController.h" +#import + +@interface EMDevicePickerViewController () + +@property (nonatomic, strong) IBOutlet UIView *connectingView; +@property (nonatomic, strong) IBOutlet UIActivityIndicatorView *activityIndicator; +@property (nonatomic, strong) IBOutlet UIView *popoverView; + +@end + +@implementation EMDevicePickerViewController + +- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil +{ + self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]; + if (self) + { + // Custom initialization + } + return self; +} + +- (void)viewDidLoad +{ + [super viewDidLoad]; + //[[NSBundle mainBundle] loadNibNamed:@"EMConnectingView" owner:self options:nil]; + [[[self popoverView] layer] setCornerRadius:10.0f]; + [[self connectingView] setHidden:YES]; + [[self connectingView] setFrame:[[self view] bounds]]; + [[self view] addSubview:[self connectingView]]; + +} + +-(void)_showConnectingView +{ + [[self activityIndicator] startAnimating]; + [[self connectingView] setHidden:NO]; +} + +-(void)_hideConnectingView +{ + [[self activityIndicator] stopAnimating]; + [[self connectingView] setHidden:YES]; +} + +-(void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary *)change context:(void *)context +{ + +} + +#pragma mark - Table View Methods + +-(NSInteger)numberOfSectionsInTableView:(UITableView *)tableView +{ + return 1; +} + +-(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section +{ + return 1; +} + +-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath +{ + UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"DeviceCell"]; + + if (cell == nil) + { + cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:@"DeviceCell"]; + } + + [[cell textLabel] setText:@"FUCKING PIECE OF CRAP 2000 PRO ULTRA"]; + [[cell detailTextLabel] setText:@"FUCKING ONLINE"]; + return cell; +} + +-(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath +{ + [self performSegueWithIdentifier:@"ConnectionSegue" sender:self]; +} + +@end diff --git a/DUREX tests/FirstAppExample/Images.xcassets/AppIcon.appiconset/120 - App Icon@2x.png b/DUREX tests/FirstAppExample/Images.xcassets/AppIcon.appiconset/120 - App Icon@2x.png new file mode 100644 index 0000000..db853cc --- /dev/null +++ b/DUREX tests/FirstAppExample/Images.xcassets/AppIcon.appiconset/120 - App Icon@2x.png diff --git a/DUREX tests/FirstAppExample/Images.xcassets/AppIcon.appiconset/29 - App Icon@2x.png b/DUREX tests/FirstAppExample/Images.xcassets/AppIcon.appiconset/29 - App Icon@2x.png new file mode 100644 index 0000000..3165ab3 --- /dev/null +++ b/DUREX tests/FirstAppExample/Images.xcassets/AppIcon.appiconset/29 - App Icon@2x.png diff --git a/DUREX tests/FirstAppExample/Images.xcassets/AppIcon.appiconset/40 - App Icon@2x.png b/DUREX tests/FirstAppExample/Images.xcassets/AppIcon.appiconset/40 - App Icon@2x.png new file mode 100644 index 0000000..6444f2f --- /dev/null +++ b/DUREX tests/FirstAppExample/Images.xcassets/AppIcon.appiconset/40 - App Icon@2x.png diff --git a/DUREX tests/FirstAppExample/Images.xcassets/AppIcon.appiconset/Contents.json b/DUREX tests/FirstAppExample/Images.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000..837c342 --- /dev/null +++ b/DUREX tests/FirstAppExample/Images.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,26 @@ +{ + "images" : [ + { + "size" : "29x29", + "idiom" : "iphone", + "filename" : "29 - App Icon@2x.png", + "scale" : "2x" + }, + { + "size" : "40x40", + "idiom" : "iphone", + "filename" : "40 - App Icon@2x.png", + "scale" : "2x" + }, + { + "size" : "60x60", + "idiom" : "iphone", + "filename" : "120 - App Icon@2x.png", + "scale" : "2x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/DUREX tests/FirstAppExample/Images.xcassets/LaunchImage.launchimage/Contents.json b/DUREX tests/FirstAppExample/Images.xcassets/LaunchImage.launchimage/Contents.json new file mode 100644 index 0000000..c79ebd3 --- /dev/null +++ b/DUREX tests/FirstAppExample/Images.xcassets/LaunchImage.launchimage/Contents.json @@ -0,0 +1,23 @@ +{ + "images" : [ + { + "orientation" : "portrait", + "idiom" : "iphone", + "extent" : "full-screen", + "minimum-system-version" : "7.0", + "scale" : "2x" + }, + { + "orientation" : "portrait", + "idiom" : "iphone", + "subtype" : "retina4", + "extent" : "full-screen", + "minimum-system-version" : "7.0", + "scale" : "2x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/DUREX tests/FirstAppExample/MainStoryboard.storyboard b/DUREX tests/FirstAppExample/MainStoryboard.storyboard new file mode 100644 index 0000000..b241ecc --- /dev/null +++ b/DUREX tests/FirstAppExample/MainStoryboard.storyboard @@ -0,0 +1,194 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/DUREX tests/FirstAppExample/en.lproj/InfoPlist.strings b/DUREX tests/FirstAppExample/en.lproj/InfoPlist.strings new file mode 100644 index 0000000..477b28f --- /dev/null +++ b/DUREX tests/FirstAppExample/en.lproj/InfoPlist.strings @@ -0,0 +1,2 @@ +/* Localized versions of Info.plist keys */ + diff --git a/DUREX tests/FirstAppExample/main.m b/DUREX tests/FirstAppExample/main.m new file mode 100644 index 0000000..007b9c3 --- /dev/null +++ b/DUREX tests/FirstAppExample/main.m @@ -0,0 +1,17 @@ +// +// main.m +// TestAppExample +// +// Created by Dexter Weiss on 10/10/13. +// Copyright (c) 2013 Emmoco. All rights reserved. +// + +#import +#import "DUREXAppDelegate.h" + +int main(int argc, char * argv[]) +{ + @autoreleasepool { + return UIApplicationMain(argc, argv, nil, NSStringFromClass([DUREXAppDelegate class])); + } +} diff --git a/DUREX tests/FirstAppExampleTests/FirstAppTests-Info.plist b/DUREX tests/FirstAppExampleTests/FirstAppTests-Info.plist new file mode 100644 index 0000000..b906695 --- /dev/null +++ b/DUREX tests/FirstAppExampleTests/FirstAppTests-Info.plist @@ -0,0 +1,22 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + ${EXECUTABLE_NAME} + CFBundleIdentifier + com.emmoco.${PRODUCT_NAME:rfc1034identifier} + CFBundleInfoDictionaryVersion + 6.0 + CFBundlePackageType + BNDL + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 1 + + diff --git a/DUREX tests/FirstAppExampleTests/TestAppExampleTests.m b/DUREX tests/FirstAppExampleTests/TestAppExampleTests.m new file mode 100644 index 0000000..334ae3f --- /dev/null +++ b/DUREX tests/FirstAppExampleTests/TestAppExampleTests.m @@ -0,0 +1,34 @@ +// +// TestAppExampleTests.m +// TestAppExampleTests +// +// Created by Dexter Weiss on 10/10/13. +// Copyright (c) 2013 Emmoco. All rights reserved. +// + +#import + +@interface TestAppExampleTests : XCTestCase + +@end + +@implementation TestAppExampleTests + +- (void)setUp +{ + [super setUp]; + // Put setup code here. This method is called before the invocation of each test method in the class. +} + +- (void)tearDown +{ + // Put teardown code here. This method is called after the invocation of each test method in the class. + [super tearDown]; +} + +- (void)testExample +{ + XCTFail(@"No implementation for \"%s\"", __PRETTY_FUNCTION__); +} + +@end diff --git a/DUREX tests/FirstAppExampleTests/en.lproj/InfoPlist.strings b/DUREX tests/FirstAppExampleTests/en.lproj/InfoPlist.strings new file mode 100644 index 0000000..477b28f --- /dev/null +++ b/DUREX tests/FirstAppExampleTests/en.lproj/InfoPlist.strings @@ -0,0 +1,2 @@ +/* Localized versions of Info.plist keys */ + diff --git a/DUREX tests/InitialViewController.h b/DUREX tests/InitialViewController.h new file mode 100644 index 0000000..2078d07 --- /dev/null +++ b/DUREX tests/InitialViewController.h @@ -0,0 +1,17 @@ +// +// InitialViewController.h +// DUREX Vendor Control +// +// Created by Imanol Barba on 5/22/14. +// Copyright (c) 2014 Emmoco. All rights reserved. +// + +#import + +@interface InitialViewController : UIViewController + +@property (nonatomic,strong) IBOutlet UIButton *connectButton; + +- (IBAction) connectPressed:(UIButton*)button; + +@end diff --git a/DUREX tests/InitialViewController.m b/DUREX tests/InitialViewController.m new file mode 100644 index 0000000..eb24e0a --- /dev/null +++ b/DUREX tests/InitialViewController.m @@ -0,0 +1,54 @@ +// +// InitialViewController.m +// DUREX Vendor Control +// +// Created by Imanol Barba on 5/22/14. +// Copyright (c) 2014 Emmoco. All rights reserved. +// + +#import "InitialViewController.h" + +@interface InitialViewController () + +@end + +@implementation InitialViewController + +- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil +{ + self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]; + if (self) { + // Custom initialization + } + return self; +} + +- (void)viewDidLoad +{ + [super viewDidLoad]; + // Do any additional setup after loading the view. +} + +- (void)didReceiveMemoryWarning +{ + [super didReceiveMemoryWarning]; + // Dispose of any resources that can be recreated. +} + +- (IBAction) connectPressed:(UIButton*)button +{ + [self performSegueWithIdentifier:@"ShowDevices" sender:self]; +} + +/* +#pragma mark - Navigation + +// In a storyboard-based application, you will often want to do a little preparation before navigation +- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender +{ + // Get the new view controller using [segue destinationViewController]. + // Pass the selected object to the new view controller. +} +*/ + +@end diff --git a/DUREX tests/MenuTableViewController.h b/DUREX tests/MenuTableViewController.h new file mode 100644 index 0000000..aaa44ba --- /dev/null +++ b/DUREX tests/MenuTableViewController.h @@ -0,0 +1,39 @@ +// +// MenuTableViewController.h +// DUREX Vendor Control +// +// Created by Imanol Barba on 5/23/14. +// Copyright (c) 2014 Emmoco. All rights reserved. +// + +#import +#import "CommunicationProtocol.h" + +#define num(x) [NSNumber numberWithUnsignedInt:x] + +#define MENU_ELEMENTS @"Maintenance",@"Basic Configuration",@"Sending a Report" +#define MENU_CELLS_PER_SECTION num(3) + +#define MAINTENANCE_ELEMENTS @"General Status",@"Sensor Report" +#define MAINTENANCE_CELLS_PER_SECTION num(2) + +#define STATUS_ELEMENTS @"Time",@"20€ Notes",@"10€ Notes",@"5€ Notes",@"2€ Coins",@"1€ Coins",@"50c Coins",@"CPP_TABLE",@"1€ Change",@"50c Change" +#define STATUS_CELLS_PER_SECTION num(10) + +#define CELL_IDENTIFIERS @"MenuCell",@"MaintenanceCell",@"StatusCell",@"ConfigCell",@"ReportCell" + +#define NUM_CHANNELS 8 + +enum { + MENU = 0, + MAINTENANCE, + STATUS, + BASIC_CONFIGURATION, + REPORT, +} navigationLevel; + +@interface MenuTableViewController : UITableViewController + +@property (strong,nonatomic) Stack parentLayout; + +@end diff --git a/DUREX tests/MenuTableViewController.m b/DUREX tests/MenuTableViewController.m new file mode 100644 index 0000000..b64baf3 --- /dev/null +++ b/DUREX tests/MenuTableViewController.m @@ -0,0 +1,229 @@ +// +// MenuTableViewController.m +// DUREX Vendor Control +// +// Created by Imanol Barba on 5/23/14. +// Copyright (c) 2014 Emmoco. All rights reserved. +// + +#import "MenuTableViewController.h" + +@interface MenuTableViewController () +{ + IBOutlet UIActivityIndicatorView *_activityIndicator; + NSTimer *_writeTimer; +} +@property (nonatomic,strong) const NSArray *menuElements; +@property (nonatomic,strong) const NSArray *menuStructure; + +@property (nonatomic,strong) const NSArray *maintenanceElements; +@property (nonatomic,strong) const NSArray *maintenanceStructure; + +@property (nonatomic,strong) const NSArray *statusElements; +@property (nonatomic,strong) const NSArray *statusStructure; + +@property (nonatomic,strong) const NSArray *cellIdentifiers; + +@property (nonatomic,strong) CommunicationProtocol* protocol; +@property uint8_t currentNavLevel; +@property NSString *currentCellIdentifier; +@property const NSArray *currentElements; +@property const NSArray *currentStructure; + +@end + +@implementation MenuTableViewController + +- (id)initWithStyle:(UITableViewStyle)style +{ + self = [super initWithStyle:style]; + if (self) + { + // Custom initialization + } + return self; +} + +- (void) initializeMenuEntries +{ + [self setMenuElements:[[NSArray alloc] initWithObjects:MENU_ELEMENTS, nil]]; + [self setMenuStructure:[[NSArray alloc] initWithObjects:MENU_CELLS_PER_SECTION, nil]]; + + [self setMaintenanceElements:[[NSArray alloc] initWithObjects:MAINTENANCE_ELEMENTS, nil]]; + [self setMaintenanceStructure:[[NSArray alloc] initWithObjects:MAINTENANCE_CELLS_PER_SECTION, nil]]; + + [self setStatusElements:[[NSArray alloc] initWithObjects:STATUS_ELEMENTS, nil]]; + [self setStatusStructure:[[NSArray alloc] initWithObjects:STATUS_CELLS_PER_SECTION, nil]]; + + [self setCellIdentifiers:[[NSArray alloc] initWithObjects:CELL_IDENTIFIERS, nil]]; +} + +- (void) changeNavLevel: (uint8_t) level +{ + [self setCurrentNavLevel:level]; + [self setCurrentCellIdentifier:[[self cellIdentifiers] objectAtIndex:[self currentNavLevel]]]; + if([self currentNavLevel] == MAINTENANCE) + { + [self setCurrentElements:[self maintenanceElements]]; + [self setCurrentStructure:[self maintenanceStructure]]; + } + else if([self currentNavLevel] == STATUS) + { + [self setCurrentElements:[self statusElements]]; + [self setCurrentStructure:[self statusStructure]]; + } + //AND SO ON... + else + { + [self setCurrentElements:[self menuElements]]; + [self setCurrentStructure:[self menuStructure]]; + } + NSRange range = NSMakeRange(0, [self numberOfSectionsInTableView:[self tableView]]); + NSIndexSet *sections = [NSIndexSet indexSetWithIndexesInRange:range]; + [[self tableView] reloadSections:sections withRowAnimation:UITableViewRowAnimationAutomatic]; +} + +- (void)viewDidLoad +{ + [super viewDidLoad]; + [_activityIndicator setHidden:YES]; + + //Emmoco protocol initialization + _protocol = [CommunicationProtocol sharedProtocol]; + + //DUREX protocol initialization + [_protocol setMessageAvailable:false]; + if(![_protocol establishConnection]) + { + UIAlertView* alert = [[UIAlertView alloc] initWithTitle:@"Communication error" message:@"Error while trying to connect to the device." delegate:nil cancelButtonTitle:@"OK" otherButtonTitles:nil]; + [alert show]; + UIViewController *previous = [[[self navigationController] viewControllers] objectAtIndex:[[[self navigationController] viewControllers] count]-2]; + [[self navigationController] popToViewController:previous animated:YES]; + } + + //Set navigation level + [self initializeMenuEntries]; + [self changeNavLevel:MENU]; + + // Uncomment the following line to preserve selection between presentations. + // self.clearsSelectionOnViewWillAppear = NO; + + // Uncomment the following line to display an Edit button in the navigation bar for this view controller. + // self.navigationItem.rightBarButtonItem = self.editButtonItem; +} + +-(void)didReceiveNotification:(NSNotification*) notification +{ + +} + +-(void)dealloc +{ + [[NSNotificationCenter defaultCenter] removeObserver:self]; +} + +- (void)didReceiveMemoryWarning +{ + [super didReceiveMemoryWarning]; + // Dispose of any resources that can be recreated. +} + +-(void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary *)change context:(void *)context +{ + +} + +#pragma mark - Table view delegate + +- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath +{ + [tableView deselectRowAtIndexPath:indexPath animated:YES]; + NSString *cellName = [[[[self tableView] cellForRowAtIndexPath:indexPath]textLabel]text]; + if([cellName isEqualToString:@"Maintenance"]) + { + [self changeNavLevel:MAINTENANCE]; + } + else if([cellName isEqualToString:@"General Status"]) + { + [self changeNavLevel:STATUS]; + } + + +} + +#pragma mark - Table view data source + +- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView +{ + return [[self currentStructure] count]; +} + +- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section +{ + return [[[self currentStructure]objectAtIndex:section] integerValue]; +} + +- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath +{ + UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:[self currentCellIdentifier] forIndexPath:indexPath]; + + if (cell == nil) + { + cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:[self currentCellIdentifier]]; + } + + [[cell textLabel] setText:[[self currentElements] objectAtIndex:indexPath.row]]; + return cell; +} + + +/* +// Override to support conditional editing of the table view. +- (BOOL)tableView:(UITableView *)tableView canEditRowAtIndexPath:(NSIndexPath *)indexPath +{ + // Return NO if you do not want the specified item to be editable. + return YES; +} +*/ + +/* +// Override to support editing the table view. +- (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath +{ + if (editingStyle == UITableViewCellEditingStyleDelete) { + // Delete the row from the data source + [tableView deleteRowsAtIndexPaths:@[indexPath] withRowAnimation:UITableViewRowAnimationFade]; + } else if (editingStyle == UITableViewCellEditingStyleInsert) { + // Create a new instance of the appropriate class, insert it into the array, and add a new row to the table view + } +} +*/ + +/* +// Override to support rearranging the table view. +- (void)tableView:(UITableView *)tableView moveRowAtIndexPath:(NSIndexPath *)fromIndexPath toIndexPath:(NSIndexPath *)toIndexPath +{ +} +*/ + +/* +// Override to support conditional rearranging of the table view. +- (BOOL)tableView:(UITableView *)tableView canMoveRowAtIndexPath:(NSIndexPath *)indexPath +{ + // Return NO if you do not want the item to be re-orderable. + return YES; +} +*/ + +/* +#pragma mark - Navigation + +// In a storyboard-based application, you will often want to do a little preparation before navigation +- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender +{ + // Get the new view controller using [segue destinationViewController]. + // Pass the selected object to the new view controller. +} +*/ + +@end diff --git a/DUREX tests/Stack.h b/DUREX tests/Stack.h new file mode 100644 index 0000000..79f038c --- /dev/null +++ b/DUREX tests/Stack.h @@ -0,0 +1,18 @@ +// +// Stack.h +// DUREX test +// +// Created by Imanol Barba on 5/23/14. +// Copyright (c) 2014 Emmoco. All rights reserved. +// + +#import + +@interface Stack : NSObject + +- (void) push: (id) element; +- (id) pop; +- (NSInteger) count; +- (void) clear; + +@end diff --git a/DUREX tests/Stack.m b/DUREX tests/Stack.m new file mode 100644 index 0000000..c4e3bd3 --- /dev/null +++ b/DUREX tests/Stack.m @@ -0,0 +1,37 @@ +// +// Stack.m +// DUREX test +// +// Created by Imanol Barba on 5/23/14. +// Copyright (c) 2014 Emmoco. All rights reserved.retur +// + +#import "Stack.h" + +@interface Stack () + +@property (strong,nonatomic) NSMutableArray *dataArray; +@property (strong,nonatomic) NSIndex *lastPosition; +@end + +@implementation Stack + +- (void) push: (id) element +{ + [[self dataArray] addObject:element]; +} +- (id) pop +{ + [[self dataArray] obj] + [[self dataArray] removeLastObject]; +} +- (NSInteger) count +{ + return [[self dataArray] count]; +} +- (void) clear +{ + +} + +@end diff --git a/DUREX tests/bluetooth.png b/DUREX tests/bluetooth.png new file mode 100644 index 0000000..7befaba --- /dev/null +++ b/DUREX tests/bluetooth.png diff --git a/DUREX tests/durex.json b/DUREX tests/durex.json new file mode 100644 index 0000000..5bd3423 --- /dev/null +++ b/DUREX tests/durex.json @@ -0,0 +1,221 @@ +{ + "resources": { + "$schemaHash": { + "id": -6, + "align": 1, + "attributes": {"readonly": true}, + "type": "A20:u1", + "access": "r", + "size": 20 + }, + "$eapProtocolLevel": { + "id": -3, + "align": 2, + "attributes": {"readonly": true}, + "type": "u2", + "access": "r", + "size": 2 + }, + "$mcmProtocolLevel": { + "id": -2, + "align": 2, + "attributes": {"readonly": true}, + "type": "u2", + "access": "r", + "size": 2 + }, + "messageAvailable": { + "id": 4, + "align": 1, + "attributes": {"indicator": true}, + "type": "E:@emmoco.com.DUREX/BOOLEAN", + "access": "irw", + "size": 1 + }, + "numBytes": { + "id": 1, + "align": 1, + "attributes": {}, + "type": "u1", + "access": "rw", + "size": 1 + }, + "$mobileRssi": { + "id": -8, + "align": 1, + "attributes": {"readonly": true}, + "type": "i1", + "access": "r", + "size": 1 + }, + "data": { + "id": 2, + "align": 1, + "attributes": {}, + "type": "C:229", + "access": "rw", + "size": 229 + }, + "$mcmDisconnect": { + "id": -9, + "align": 1, + "attributes": {"writeonly": true}, + "type": "u1", + "access": "w", + "size": 1 + }, + "$eapBuildDate": { + "id": -4, + "align": 1, + "attributes": {"readonly": true}, + "type": "A8:u1", + "access": "r", + "size": 8 + }, + "$resourceCount": { + "id": -7, + "align": 1, + "attributes": {"readonly": true}, + "type": "S:system@emmoco.com.System/ResourceCount", + "access": "r", + "size": 2 + }, + "numPackets": { + "id": 3, + "align": 1, + "attributes": {}, + "type": "u1", + "access": "rw", + "size": 1 + }, + "$fileIndexReset": { + "id": -5, + "align": 2, + "attributes": {"writeonly": true}, + "type": "i2", + "access": "w", + "size": 2 + } + }, + "resourceNamesSys": [ + "$eapBuildDate", + "$eapProtocolLevel", + "$fileIndexReset", + "$mcmDisconnect", + "$mcmProtocolLevel", + "$mobileRssi", + "$resourceCount", + "$schemaHash" + ], + "manifest": { + "protocolLevel": 12, + "hash": [ + 245, + 13, + 216, + 92, + 22, + 189, + 34, + 32, + 16, + 124, + 194, + 50, + 87, + 152, + 227, + 110 + ], + "toolVersion": "12.0.0.201211010336", + "name": "DUREX", + "$$md5": "f316f8e8839db2a2939bf3e0120a1fdf", + "build": [ + 61, + 15, + 116, + 250, + 69, + 1, + 0, + 0 + ], + "date": "2014-05-14T13:18:01T", + "maxAlign": 2, + "maxSize": 229, + "version": "1.0.0" + }, + "resourceNames": [ + "numBytes", + "data", + "numPackets", + "messageAvailable", + "$mcmProtocolLevel", + "$eapProtocolLevel", + "$eapBuildDate", + "$fileIndexReset", + "$schemaHash", + "$resourceCount", + "$mobileRssi", + "$mcmDisconnect" + ], + "attributes": { + "description": "", + "version": "1.0.0" + }, + "types": { + "system@emmoco.com.System/ResourceCount": { + "align": 1, + "type": "S:system@emmoco.com.System/ResourceCount", + "size": 2, + "fields": [ + { + "pad": 0, + "align": 1, + "name": "app", + "type": "u1", + "size": 1 + }, + { + "pad": 0, + "align": 1, + "name": "sys", + "type": "u1", + "size": 1 + } + ] + }, + "std:i2": { + "align": 2, + "size": 2 + }, + "std:i1": { + "align": 1, + "size": 1 + }, + "@emmoco.com.DUREX/BOOLEAN": { + "values": [ + "TRUE", + "FALSE" + ], + "align": 1, + "type": "E:@emmoco.com.DUREX/BOOLEAN", + "size": 1 + }, + "std:u1": { + "align": 1, + "size": 1 + }, + "std:u2": { + "align": 2, + "size": 2 + } + }, + "resourceNamesApp": [ + "data", + "messageAvailable", + "numBytes", + "numPackets" + ], + "imports": {"@emmoco.com.DUREX": true} +} \ No newline at end of file