├── .gitignore ├── Client ├── Classes │ ├── AppDelegate │ │ ├── ClientAppDelegate.h │ │ └── ClientAppDelegate.m │ ├── Controllers │ │ ├── BenchmarkController.h │ │ ├── BenchmarkController.m │ │ ├── RootViewController.h │ │ ├── RootViewController.m │ │ ├── SettingsController.h │ │ └── SettingsController.m │ └── Helpers │ │ ├── Categories │ │ ├── NSArray+Extensions.h │ │ ├── NSArray+Extensions.m │ │ ├── NSDictionary+Extensions.h │ │ ├── NSDictionary+Extensions.m │ │ ├── NSUserDefaults+Extensions.h │ │ └── NSUserDefaults+Extensions.m │ │ ├── DataLoaders │ │ ├── AFNetworkingDataLoader.h │ │ ├── AFNetworkingDataLoader.m │ │ ├── ASIHTTPRequestDataLoader.h │ │ ├── ASIHTTPRequestDataLoader.m │ │ ├── BaseDataLoader.h │ │ ├── BaseDataLoader.m │ │ ├── DataLoader.h │ │ ├── DataLoaderDelegate.h │ │ ├── NSURLConnectionDataLoader.h │ │ ├── NSURLConnectionDataLoader.m │ │ ├── SOAPDataLoader.h │ │ └── SOAPDataLoader.m │ │ ├── DeserializerType.h │ │ ├── Deserializers │ │ ├── APXMLDeserializer.h │ │ ├── APXMLDeserializer.m │ │ ├── AQXMLParserDeserializer.h │ │ ├── AQXMLParserDeserializer.m │ │ ├── BSJSONDeserializer.h │ │ ├── BSJSONDeserializer.m │ │ ├── BaseDeserializer.h │ │ ├── BaseDeserializer.m │ │ ├── BaseJSONDeserializer.h │ │ ├── BaseJSONDeserializer.m │ │ ├── BaseXMLDeserializer.h │ │ ├── BaseXMLDeserializer.m │ │ ├── BinaryPlistDeserializer.h │ │ ├── BinaryPlistDeserializer.m │ │ ├── CSVDeserializer.h │ │ ├── CSVDeserializer.m │ │ ├── Deserializer.h │ │ ├── DeserializerDelegate.h │ │ ├── GoogleXMLDeserializer.h │ │ ├── GoogleXMLDeserializer.m │ │ ├── JSONKitDeserializer.h │ │ ├── JSONKitDeserializer.m │ │ ├── KissXMLDeserializer.h │ │ ├── KissXMLDeserializer.m │ │ ├── LibXMLDomDeserializer.h │ │ ├── LibXMLDomDeserializer.m │ │ ├── LibXMLSAXDeserializer.h │ │ ├── LibXMLSAXDeserializer.m │ │ ├── NSJSONSerializationDeserializer.h │ │ ├── NSJSONSerializationDeserializer.m │ │ ├── NSXMLParserDeserializer.h │ │ ├── NSXMLParserDeserializer.m │ │ ├── NextiveJsonDeserializer.h │ │ ├── NextiveJsonDeserializer.m │ │ ├── Person.pb.h │ │ ├── Person.pb.m │ │ ├── PlistDeserializer.h │ │ ├── PlistDeserializer.m │ │ ├── ProtocolBufferDeserializer.h │ │ ├── ProtocolBufferDeserializer.m │ │ ├── SBJSONDeserializer.h │ │ ├── SBJSONDeserializer.m │ │ ├── SOAPDeserializer.h │ │ ├── SOAPDeserializer.m │ │ ├── TBXMLDeserializer.h │ │ ├── TBXMLDeserializer.m │ │ ├── TinyXMLDeserializer.h │ │ ├── TinyXMLDeserializer.mm │ │ ├── TouchJSONDeserializer.h │ │ ├── TouchJSONDeserializer.m │ │ ├── TouchXMLDeserializer.h │ │ ├── TouchXMLDeserializer.m │ │ ├── XMLFormattedPlistDeserializer.h │ │ ├── XMLFormattedPlistDeserializer.m │ │ ├── XMLPlistDeserializer.h │ │ ├── XMLPlistDeserializer.m │ │ ├── YAJLDeserializer.h │ │ ├── YAJLDeserializer.m │ │ ├── YAMLDeserializer.h │ │ └── YAMLDeserializer.m │ │ ├── LoaderMechanism.h │ │ ├── SOAP │ │ ├── NSDate+ISO8601Parsing.h │ │ ├── NSDate+ISO8601Parsing.m │ │ ├── NSDate+ISO8601Unparsing.h │ │ ├── NSDate+ISO8601Unparsing.m │ │ ├── USAdditions.h │ │ ├── USAdditions.m │ │ ├── USGlobals.h │ │ ├── USGlobals.m │ │ ├── datawsdl.h │ │ ├── datawsdl.m │ │ ├── ns1.h │ │ ├── ns1.m │ │ ├── xsd.h │ │ └── xsd.m │ │ ├── UIDeviceHardware.h │ │ └── UIDeviceHardware.m ├── Client-Info.plist ├── Client.xcodeproj │ └── project.pbxproj ├── Client_Prefix.pch ├── Externals │ ├── AFNetworking │ │ ├── AFHTTPClient.h │ │ ├── AFHTTPClient.m │ │ ├── AFHTTPRequestOperation.h │ │ ├── AFHTTPRequestOperation.m │ │ ├── AFImageCache.h │ │ ├── AFImageCache.m │ │ ├── AFImageRequestOperation.h │ │ ├── AFImageRequestOperation.m │ │ ├── AFJSONRequestOperation.h │ │ ├── AFJSONRequestOperation.m │ │ ├── AFNetworkActivityIndicatorManager.h │ │ ├── AFNetworkActivityIndicatorManager.m │ │ ├── AFNetworking.h │ │ ├── AFPropertyListRequestOperation.h │ │ ├── AFPropertyListRequestOperation.m │ │ ├── AFURLConnectionOperation.h │ │ ├── AFURLConnectionOperation.m │ │ ├── AFXMLRequestOperation.h │ │ ├── AFXMLRequestOperation.m │ │ ├── UIImageView+AFNetworking.h │ │ └── UIImageView+AFNetworking.m │ ├── ASIHTTPRequest │ │ ├── ASIAuthenticationDialog.h │ │ ├── ASIAuthenticationDialog.m │ │ ├── ASICacheDelegate.h │ │ ├── ASIDataCompressor.h │ │ ├── ASIDataCompressor.m │ │ ├── ASIDataDecompressor.h │ │ ├── ASIDataDecompressor.m │ │ ├── ASIHTTPRequest.h │ │ ├── ASIHTTPRequest.m │ │ ├── ASIHTTPRequestConfig.h │ │ ├── ASIHTTPRequestDelegate.h │ │ ├── ASIInputStream.h │ │ ├── ASIInputStream.m │ │ └── ASIProgressDelegate.h │ ├── InAppSettingsKit │ │ ├── Controllers │ │ │ ├── IASKAppSettingsViewController.h │ │ │ ├── IASKAppSettingsViewController.m │ │ │ ├── IASKAppSettingsWebViewController.h │ │ │ ├── IASKAppSettingsWebViewController.m │ │ │ ├── IASKSpecifierValuesViewController.h │ │ │ └── IASKSpecifierValuesViewController.m │ │ ├── Models │ │ │ ├── IASKSettingsReader.h │ │ │ ├── IASKSettingsReader.m │ │ │ ├── IASKSettingsStore.h │ │ │ ├── IASKSettingsStore.m │ │ │ ├── IASKSettingsStoreFile.h │ │ │ ├── IASKSettingsStoreFile.m │ │ │ ├── IASKSettingsStoreUserDefaults.h │ │ │ ├── IASKSettingsStoreUserDefaults.m │ │ │ ├── IASKSpecifier.h │ │ │ └── IASKSpecifier.m │ │ ├── Views │ │ │ ├── IASKPSSliderSpecifierViewCell.h │ │ │ ├── IASKPSSliderSpecifierViewCell.m │ │ │ ├── IASKPSTextFieldSpecifierViewCell.h │ │ │ ├── IASKPSTextFieldSpecifierViewCell.m │ │ │ ├── IASKPSTitleValueSpecifierViewCell.h │ │ │ ├── IASKPSTitleValueSpecifierViewCell.m │ │ │ ├── IASKPSToggleSwitchSpecifierViewCell.h │ │ │ ├── IASKPSToggleSwitchSpecifierViewCell.m │ │ │ ├── IASKSlider.h │ │ │ ├── IASKSlider.m │ │ │ ├── IASKSwitch.h │ │ │ ├── IASKSwitch.m │ │ │ ├── IASKTextField.h │ │ │ └── IASKTextField.m │ │ └── Xibs │ │ │ ├── IASKAppSettingsView.xib │ │ │ ├── IASKAppSettingsWebView.xib │ │ │ ├── IASKPSSliderSpecifierViewCell.xib │ │ │ ├── IASKPSTextFieldSpecifierViewCell.xib │ │ │ ├── IASKPSToggleSwitchSpecifierViewCell.xib │ │ │ └── IASKSpecifierValuesView.xib │ ├── JSON │ │ ├── JSON.h │ │ ├── NSObject+SBJSON.h │ │ ├── NSObject+SBJSON.m │ │ ├── NSString+SBJSON.h │ │ ├── NSString+SBJSON.m │ │ ├── SBJSON.h │ │ ├── SBJSON.m │ │ ├── SBJsonBase.h │ │ ├── SBJsonBase.m │ │ ├── SBJsonParser.h │ │ ├── SBJsonParser.m │ │ ├── SBJsonWriter.h │ │ └── SBJsonWriter.m │ ├── JSONKit │ │ ├── JSONKit.h │ │ └── JSONKit.m │ ├── KissXML │ │ ├── DDXML.h │ │ ├── DDXMLDocument.h │ │ ├── DDXMLDocument.m │ │ ├── DDXMLElement.h │ │ ├── DDXMLElement.m │ │ ├── DDXMLElementAdditions.h │ │ ├── DDXMLElementAdditions.m │ │ ├── DDXMLNode.h │ │ ├── DDXMLNode.m │ │ ├── DDXMLPrivate.h │ │ ├── NSStringAdditions.h │ │ └── NSStringAdditions.m │ ├── NextiveJson │ │ ├── NSError+Extensions.h │ │ ├── NSError+Extensions.m │ │ ├── NXDebug.h │ │ ├── NXDebug.m │ │ ├── NXJsonParser.h │ │ ├── NXJsonParser.m │ │ ├── NXJsonSerializer.h │ │ ├── NXJsonSerializer.m │ │ └── NXSerializable.h │ ├── ProtocolBuffers │ │ ├── Classes │ │ │ ├── AbstractMessage.h │ │ │ ├── AbstractMessage.m │ │ │ ├── AbstractMessage_Builder.h │ │ │ ├── AbstractMessage_Builder.m │ │ │ ├── Bootstrap.h │ │ │ ├── CodedInputStream.h │ │ │ ├── CodedInputStream.m │ │ │ ├── CodedOutputStream.h │ │ │ ├── CodedOutputStream.m │ │ │ ├── ConcreteExtensionField.h │ │ │ ├── ConcreteExtensionField.m │ │ │ ├── ExtendableMessage.h │ │ │ ├── ExtendableMessage.m │ │ │ ├── ExtendableMessage_Builder.h │ │ │ ├── ExtendableMessage_Builder.m │ │ │ ├── ExtensionField.h │ │ │ ├── ExtensionRegistry.h │ │ │ ├── ExtensionRegistry.m │ │ │ ├── Field.h │ │ │ ├── Field.m │ │ │ ├── ForwardDeclarations.h │ │ │ ├── GeneratedMessage.h │ │ │ ├── GeneratedMessage.m │ │ │ ├── GeneratedMessage_Builder.h │ │ │ ├── GeneratedMessage_Builder.m │ │ │ ├── Main.m │ │ │ ├── Message.h │ │ │ ├── Message_Builder.h │ │ │ ├── MutableExtensionRegistry.h │ │ │ ├── MutableExtensionRegistry.m │ │ │ ├── MutableField.h │ │ │ ├── MutableField.m │ │ │ ├── ProtocolBuffers.h │ │ │ ├── TextFormat.h │ │ │ ├── TextFormat.m │ │ │ ├── UnknownFieldSet.h │ │ │ ├── UnknownFieldSet.m │ │ │ ├── UnknownFieldSet_Builder.h │ │ │ ├── UnknownFieldSet_Builder.m │ │ │ ├── Utilities.h │ │ │ ├── Utilities.m │ │ │ ├── WireFormat.h │ │ │ └── WireFormat.m │ │ ├── ProtocolBuffers-Info.plist │ │ ├── ProtocolBuffers.xcodeproj │ │ │ └── project.pbxproj │ │ ├── ProtocolBuffers_Prefix.pch │ │ ├── Tests │ │ │ ├── CodedInputStreamTests.h │ │ │ ├── CodedInputStreamTests.m │ │ │ ├── CodedOuputStreamTests.h │ │ │ ├── CodedOuputStreamTests.m │ │ │ ├── CoreTests.h │ │ │ ├── CoreTests.m │ │ │ ├── GeneratedMessageTests.h │ │ │ ├── GeneratedMessageTests.m │ │ │ ├── MessageTests.h │ │ │ ├── MessageTests.m │ │ │ ├── MicroTest.h │ │ │ ├── MicroTest.m │ │ │ ├── SmallBlockInputStream.h │ │ │ ├── SmallBlockInputStream.m │ │ │ ├── TestUtilities.h │ │ │ ├── TestUtilities.m │ │ │ ├── Unittest.pb.h │ │ │ ├── Unittest.pb.m │ │ │ ├── UnittestCustomOptions.pb.h │ │ │ ├── UnittestCustomOptions.pb.m │ │ │ ├── UnittestEmbedOptimizeFor.pb.h │ │ │ ├── UnittestEmbedOptimizeFor.pb.m │ │ │ ├── UnittestImport.pb.h │ │ │ ├── UnittestImport.pb.m │ │ │ ├── UnittestMset.pb.h │ │ │ ├── UnittestMset.pb.m │ │ │ ├── UnittestOptimizeFor.pb.h │ │ │ ├── UnittestOptimizeFor.pb.m │ │ │ ├── UnknownFieldSetTest.h │ │ │ ├── UnknownFieldSetTest.m │ │ │ ├── UtilitiesTests.h │ │ │ ├── UtilitiesTests.m │ │ │ ├── WireFormatTests.h │ │ │ └── WireFormatTests.m │ │ ├── UnitTests-Info.plist │ │ ├── golden_message │ │ └── golden_packed_fields_message │ ├── Reachability2.0 │ │ ├── Reachability.h │ │ └── Reachability.m │ ├── StreamingXMLParser │ │ ├── AQXMLParser.h │ │ ├── AQXMLParser.m │ │ ├── AQXMLParserDelegate.h │ │ ├── AQXMLParserDelegate.m │ │ └── iPhoneNonatomic.h │ ├── TBXML │ │ ├── NSDataAdditions.h │ │ ├── NSDataAdditions.m │ │ ├── TBXML.h │ │ └── TBXML.m │ ├── TinyXML │ │ ├── tinystr.cpp │ │ ├── tinystr.h │ │ ├── tinyxml.cpp │ │ ├── tinyxml.h │ │ ├── tinyxmlerror.cpp │ │ └── tinyxmlparser.cpp │ ├── TouchJSON │ │ ├── CDataScanner.h │ │ ├── CDataScanner.m │ │ ├── Extensions │ │ │ ├── CDataScanner_Extensions.h │ │ │ ├── CDataScanner_Extensions.m │ │ │ ├── NSCharacterSet_Extensions.h │ │ │ ├── NSCharacterSet_Extensions.m │ │ │ ├── NSDictionary_JSONExtensions.h │ │ │ ├── NSDictionary_JSONExtensions.m │ │ │ ├── NSScanner_Extensions.h │ │ │ └── NSScanner_Extensions.m │ │ └── JSON │ │ │ ├── CJSONDataSerializer.h │ │ │ ├── CJSONDataSerializer.m │ │ │ ├── CJSONDeserializer.h │ │ │ ├── CJSONDeserializer.m │ │ │ ├── CJSONScanner.h │ │ │ ├── CJSONScanner.m │ │ │ ├── CJSONSerializer.h │ │ │ ├── CJSONSerializer.m │ │ │ ├── CSerializedJSONData.h │ │ │ └── CSerializedJSONData.m │ ├── TouchXML │ │ ├── CXMLDocument.h │ │ ├── CXMLDocument.m │ │ ├── CXMLDocument_PrivateExtensions.h │ │ ├── CXMLDocument_PrivateExtensions.m │ │ ├── CXMLElement.h │ │ ├── CXMLElement.m │ │ ├── CXMLElement_CreationExtensions.h │ │ ├── CXMLElement_CreationExtensions.m │ │ ├── CXMLElement_ElementTreeExtensions.h │ │ ├── CXMLElement_ElementTreeExtensions.m │ │ ├── CXMLNode.h │ │ ├── CXMLNode.m │ │ ├── CXMLNode_PrivateExtensions.h │ │ ├── CXMLNode_PrivateExtensions.m │ │ ├── CXMLNode_XPathExtensions.h │ │ ├── CXMLNode_XPathExtensions.m │ │ ├── Creation │ │ │ ├── CXMLDocument_CreationExtensions.h │ │ │ ├── CXMLDocument_CreationExtensions.m │ │ │ ├── CXMLNode_CreationExtensions.h │ │ │ └── CXMLNode_CreationExtensions.m │ │ ├── Tidy │ │ │ ├── CTidy.h │ │ │ └── CTidy.m │ │ └── TouchXML.h │ ├── YAJLiOS │ │ └── YAJLiOS.framework │ │ │ ├── Headers │ │ │ ├── Resources │ │ │ ├── Versions │ │ │ ├── A │ │ │ │ ├── Headers │ │ │ │ │ ├── NSBundle+YAJL.h │ │ │ │ │ ├── NSObject+YAJL.h │ │ │ │ │ ├── YAJL.h │ │ │ │ │ ├── YAJLDocument.h │ │ │ │ │ ├── YAJLGen.h │ │ │ │ │ ├── YAJLParser.h │ │ │ │ │ ├── yajl_common.h │ │ │ │ │ ├── yajl_gen.h │ │ │ │ │ ├── yajl_parse.h │ │ │ │ │ └── yajl_version.h │ │ │ │ ├── Resources │ │ │ │ │ └── Info.plist │ │ │ │ └── YAJLiOS │ │ │ └── Current │ │ │ └── YAJLiOS │ ├── YAML2 │ │ ├── GSNSDataExtensions.h │ │ ├── GSNSDataExtensions.m │ │ ├── SyckInput.m │ │ ├── YAML.h │ │ ├── YAMLCategories.h │ │ ├── YAMLCategories.m │ │ ├── YAMLCocoaCategories.h │ │ └── YAMLCocoaCategories.m │ ├── arashpayan-apxml │ │ ├── APAttribute.h │ │ ├── APAttribute.m │ │ ├── APDocument.h │ │ ├── APDocument.m │ │ ├── APElement.h │ │ ├── APElement.m │ │ └── APXML.h │ ├── bsjsonadditions │ │ ├── BSJSONEncoder.h │ │ ├── BSJSONEncoder.m │ │ ├── NSArray+BSJSONAdditions.h │ │ ├── NSArray+BSJSONAdditions.m │ │ ├── NSDictionary+BSJSONAdditions.h │ │ ├── NSDictionary+BSJSONAdditions.m │ │ ├── NSScanner+BSJSONAdditions.h │ │ ├── NSScanner+BSJSONAdditions.m │ │ ├── NSString+BSJSONAdditions.h │ │ └── NSString+BSJSONAdditions.m │ ├── cCSVParse │ │ ├── parseCSV.h │ │ └── parseCSV.m │ ├── gdata-objectivec-client │ │ ├── GDataXMLNode.h │ │ └── GDataXMLNode.m │ └── syck │ │ ├── config.h │ │ ├── syck.h │ │ └── syck_st.h ├── Resources │ ├── Entitlements.plist │ ├── Images │ │ ├── Default.png │ │ └── Icon.png │ ├── NIBs │ │ ├── BenchmarkController.xib │ │ ├── MainWindow.xib │ │ └── RootViewController.xib │ └── Settings.bundle │ │ ├── Root.plist │ │ └── en.lproj │ │ └── Root.strings └── main.m ├── Command Line ├── bin.plist ├── curl.sh ├── data.csv ├── data.html ├── data.json ├── data.pbuf ├── data.xml ├── data.yaml ├── output.txt ├── soap.xml ├── wsdl.xml ├── xml.plist └── xml2.plist ├── LICENSE ├── Libraries ├── AlanQuatermain-aqtoolkit-6d25552.tar.gz ├── CFPropertyList-1.0.5.tgz ├── JSON_2.2.2.dmg ├── KissXML.zip ├── ProtocolBuffers-2.2.0-Source.tar.gz ├── TBXML-V1.3.zip ├── TouchJSON_1.0.7_Release.tar.bz2 ├── TouchXML_1.0.7_Release.tar.bz2 ├── WSDL2ObjC-0.6.zip ├── YAJLiOS-0.2.26.zip ├── YAML2.zip ├── arashpayan-apxml-bd72496.tar.gz ├── blakeseely-bsjsonadditions.tar.gz ├── cCSVParse-1.2.tar.gz ├── data_generator2_1.zip ├── futuretap-InAppSettingsKit-434d5b6.tar.gz ├── gdata-objectivec-client-1.9.1.zip ├── johnezang-JSONKit-v1.3.zip ├── libsyck │ ├── arm_configure.sh │ ├── libsyck.a │ └── syck-0.45.tar.gz ├── nusoap-0.7.3.zip ├── pokeb-asi-http-request-cde0e3f.tar.gz ├── protocolbuf_025.zip ├── spyc-0.4.5.zip └── tinyxml_2_5_3.zip ├── README.textile ├── Results ├── iPad 1 3G (iOS 4.3.1) │ ├── result_20110401_2104_iPad 1 3G_wifi.csv │ └── result_20110401_2108_iPad 1 3G_3G.csv ├── iPad 1 wifi (iOS 3.2.1) │ └── result_20110401_2116_iPad 1 wifi_wifi.csv ├── iPhone 3G (iOS 3.1.3) │ └── result_20110401_2113_iPhone 3G_wifi.csv ├── iPhone 4 (iOS 4.3.1) │ ├── result_20110401_2110_iPhone 4_wifi.csv │ ├── result_20110401_2119_iPhone 4_3G.csv │ └── result_20110401_2124_iPhone 4_GPRS.csv ├── iPod touch 2nd Gen (iOS 4.2.1) │ └── result_20110401_2106_iPod Touch 2G_wifi.csv └── stats.xlsx └── Server ├── conf └── phpinfo.php ├── data ├── database.php └── schema.sql ├── formatters ├── binaryplistformatter.php ├── csvformatter.php ├── formatter.php ├── formatterfactory.php ├── htmlformatter.php ├── jsonformatter.php ├── pb_proto_person.php ├── person.proto ├── plistformatter.php ├── protocolbufferformatter.php ├── soapformatter.php ├── soaprequest.xml ├── xmlformatter.php ├── xmlplistformatter.php └── yamlformatter.php ├── index.php ├── libs ├── cfpropertylist │ ├── CFBinaryPropertyList.php │ ├── CFPropertyList.php │ ├── CFType.php │ ├── CFTypeDetector.php │ ├── IOException.php │ ├── LICENSE │ ├── PListException.php │ ├── docs │ │ ├── __examplesource │ │ │ ├── exsource_ckruse_cfpropertylist_examples_example-read-01.php_96d730a24494aee5a1c7beeca3a8b569.html │ │ │ ├── exsource_ckruse_cfpropertylist_examples_example-read-02.php_d393d89dfe4fd6b813bc8b74c9c896e4.html │ │ │ ├── exsource_ckruse_cfpropertylist_examples_example-read-03.php_554e87d0886e6e15c1893067e340debe.html │ │ │ ├── exsource_ruse_cfpropertylist_examples_example-create-01.php_e281702c52e88263f0efac457b151606.html │ │ │ ├── exsource_ruse_cfpropertylist_examples_example-create-02.php_bb3b64080407fc9bbe155653d3d6af03.html │ │ │ ├── exsource_ruse_cfpropertylist_examples_example-create-03.php_89bde81d386cd26bc3efe953dc356b67.html │ │ │ └── exsource_ruse_cfpropertylist_examples_example-create-04.php_74cd82c290a88bf355f1ce76613af409.html │ │ ├── blank.html │ │ ├── classtrees_plist.html │ │ ├── elementindex.html │ │ ├── elementindex_plist.html │ │ ├── errors.html │ │ ├── index.html │ │ ├── li_plist.html │ │ ├── media │ │ │ ├── banner.css │ │ │ └── stylesheet.css │ │ ├── packages.html │ │ └── plist │ │ │ ├── CFBinaryPropertyList.html │ │ │ ├── CFPropertyList.html │ │ │ ├── IOException.html │ │ │ ├── PListException.html │ │ │ ├── _CFBinaryPropertyList.php.html │ │ │ ├── _CFPropertyList.php.html │ │ │ ├── _IOException.php.html │ │ │ ├── _PListException.php.html │ │ │ └── plist-types │ │ │ ├── CFArray.html │ │ │ ├── CFBoolean.html │ │ │ ├── CFData.html │ │ │ ├── CFDate.html │ │ │ ├── CFDictionary.html │ │ │ ├── CFNumber.html │ │ │ ├── CFString.html │ │ │ ├── CFType.html │ │ │ ├── CFTypeDetector.html │ │ │ ├── _CFType.php.html │ │ │ └── _CFTypeDetector.php.html │ └── examples │ │ ├── example-create-01.php │ │ ├── example-create-02.php │ │ ├── example-create-03.php │ │ ├── example-create-04.php │ │ ├── example-read-01.php │ │ ├── example-read-02.php │ │ ├── example-read-03.php │ │ ├── sample.binary.plist │ │ └── sample.xml.plist ├── nusoap │ ├── lib │ │ ├── changelog │ │ ├── class.nusoap_base.php │ │ ├── class.soap_fault.php │ │ ├── class.soap_parser.php │ │ ├── class.soap_server.php │ │ ├── class.soap_transport_http.php │ │ ├── class.soap_val.php │ │ ├── class.soapclient.php │ │ ├── class.wsdl.php │ │ ├── class.wsdlcache.php │ │ ├── class.xmlschema.php │ │ ├── nusoap.php │ │ └── nusoapmime.php │ └── samples │ │ ├── client1.php │ │ ├── client2.php │ │ ├── client3.php │ │ ├── getfile1client.php │ │ ├── getfile2client.php │ │ ├── index.html │ │ ├── mimeclient.php │ │ ├── sslclient.php │ │ ├── wsdlclient1.php │ │ ├── wsdlclient10.php │ │ ├── wsdlclient11.php │ │ ├── wsdlclient12.php │ │ ├── wsdlclient13.php │ │ ├── wsdlclient14.php │ │ ├── wsdlclient2.php │ │ ├── wsdlclient3.php │ │ ├── wsdlclient3b.php │ │ ├── wsdlclient3c.php │ │ ├── wsdlclient4.php │ │ ├── wsdlclient5.php │ │ ├── wsdlclient6.php │ │ ├── wsdlclient7.php │ │ ├── wsdlclient8.php │ │ └── wsdlclient9.php ├── protocolbuf │ ├── example │ │ ├── nested_mess │ │ │ ├── nested.pb │ │ │ ├── nested.php │ │ │ ├── nested.proto │ │ │ ├── pb_proto_nested.php │ │ │ └── protoc.php │ │ ├── pb_proto_test.php │ │ ├── pb_proto_test_new.php │ │ ├── pb_proto_test_with_new_field.php │ │ ├── primitive_rep │ │ │ ├── pb_proto_primitive.php │ │ │ ├── primitive.php │ │ │ ├── primitive.proto │ │ │ └── protoc.php │ │ ├── protoc.php │ │ ├── test.pb │ │ ├── test.php │ │ ├── test.proto │ │ ├── test_new.php │ │ └── test_new.proto │ ├── message │ │ ├── encoding │ │ │ └── pb_base128.php │ │ ├── pb_message.php │ │ ├── reader │ │ │ ├── pb_input_reader.php │ │ │ └── pb_input_string_reader.php │ │ └── type │ │ │ ├── pb_bool.php │ │ │ ├── pb_bytes.php │ │ │ ├── pb_enum.php │ │ │ ├── pb_int.php │ │ │ ├── pb_scalar.php │ │ │ ├── pb_signed_int.php │ │ │ └── pb_string.php │ └── parser │ │ └── pb_parser.php └── spyc │ ├── README │ ├── examples │ ├── yaml-dump.php │ └── yaml-load.php │ ├── php4 │ ├── 5to4.php │ ├── spyc.php4 │ └── test.php4 │ ├── spyc.php │ ├── spyc.yaml │ └── tests │ ├── DumpTest.php │ ├── IndentTest.php │ ├── ParseTest.php │ ├── failing1.yaml │ ├── indent_1.yaml │ └── quotes.yaml └── soap ├── client.php └── server.php /.gitignore: -------------------------------------------------------------------------------- 1 | build 2 | *.mode2v3 3 | *.mode1v3 4 | *.pbxuser 5 | 6 | *.perspectivev3 7 | xcuserdata 8 | project.xcworkspace 9 | 10 | -------------------------------------------------------------------------------- /Client/Classes/Helpers/SOAP/NSDate+ISO8601Unparsing.h: -------------------------------------------------------------------------------- 1 | /*NSDate+ISO8601Unparsing.h 2 | * 3 | *Created by Peter Hosey on 2006-05-29. 4 | *Copyright 2006 Peter Hosey. All rights reserved. 5 | *Modified by Matthew Faupel on 2009-05-06 to use NSDate instead of NSCalendarDate (for iPhone compatibility). 6 | *Modifications copyright 2009 Micropraxis Ltd. 7 | */ 8 | 9 | #import 10 | 11 | /*This addition unparses dates to ISO 8601 strings. A good introduction to ISO 8601: 12 | */ 13 | 14 | //The default separator for time values. Currently, this is ':'. 15 | extern unichar ISO8601UnparserDefaultTimeSeparatorCharacter; 16 | 17 | @interface NSDate(ISO8601Unparsing) 18 | 19 | - (NSString *)ISO8601DateStringWithTime:(BOOL)includeTime timeSeparator:(unichar)timeSep; 20 | - (NSString *)ISO8601WeekDateStringWithTime:(BOOL)includeTime timeSeparator:(unichar)timeSep; 21 | - (NSString *)ISO8601OrdinalDateStringWithTime:(BOOL)includeTime timeSeparator:(unichar)timeSep; 22 | 23 | - (NSString *)ISO8601DateStringWithTime:(BOOL)includeTime; 24 | - (NSString *)ISO8601WeekDateStringWithTime:(BOOL)includeTime; 25 | - (NSString *)ISO8601OrdinalDateStringWithTime:(BOOL)includeTime; 26 | 27 | //includeTime: YES. 28 | - (NSString *)ISO8601DateStringWithTimeSeparator:(unichar)timeSep; 29 | - (NSString *)ISO8601WeekDateStringWithTimeSeparator:(unichar)timeSep; 30 | - (NSString *)ISO8601OrdinalDateStringWithTimeSeparator:(unichar)timeSep; 31 | 32 | //includeTime: YES. 33 | - (NSString *)ISO8601DateString; 34 | - (NSString *)ISO8601WeekDateString; 35 | - (NSString *)ISO8601OrdinalDateString; 36 | 37 | @end 38 | 39 | -------------------------------------------------------------------------------- /Client/Classes/Helpers/SOAP/USGlobals.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @interface USGlobals : NSObject { 4 | NSMutableDictionary *wsdlStandardNamespaces; 5 | } 6 | 7 | @property (retain) NSMutableDictionary *wsdlStandardNamespaces; 8 | 9 | + (USGlobals *)sharedInstance; 10 | 11 | @end -------------------------------------------------------------------------------- /Client/Classes/Helpers/SOAP/USGlobals.m: -------------------------------------------------------------------------------- 1 | #import "USGlobals.h" 2 | 3 | USGlobals *sharedInstance = nil; 4 | 5 | @implementation USGlobals 6 | 7 | @synthesize wsdlStandardNamespaces; 8 | 9 | + (USGlobals *)sharedInstance 10 | { 11 | if(sharedInstance == nil) { 12 | sharedInstance = [[USGlobals alloc] init]; 13 | } 14 | 15 | return sharedInstance; 16 | } 17 | 18 | - (id)init 19 | { 20 | if((self = [super init])) { 21 | wsdlStandardNamespaces = [[NSMutableDictionary alloc] init]; 22 | } 23 | 24 | return self; 25 | } 26 | 27 | @end 28 | -------------------------------------------------------------------------------- /Client/Classes/Helpers/SOAP/ns1.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import "USAdditions.h" 3 | #import 4 | #import "USGlobals.h" 5 | @interface ns1_Array : NSMutableArray 6 | @end 7 | -------------------------------------------------------------------------------- /Client/Classes/Helpers/SOAP/ns1.m: -------------------------------------------------------------------------------- 1 | #import "ns1.h" 2 | #import 3 | #if TARGET_OS_IPHONE 4 | #import 5 | #endif 6 | 7 | @implementation ns1_Array 8 | 9 | @end 10 | 11 | -------------------------------------------------------------------------------- /Client/Classes/Helpers/SOAP/xsd.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import "USAdditions.h" 3 | #import 4 | #import "USGlobals.h" 5 | @class USBoolean ; 6 | @class NSNumber ; 7 | @class NSNumber ; 8 | @class NSNumber ; 9 | @class NSNumber ; 10 | @class NSNumber ; 11 | @class NSNumber ; 12 | @class NSNumber ; 13 | @class NSNumber ; 14 | @class NSString ; 15 | @class NSDate ; 16 | @class NSDate ; 17 | @class NSData ; 18 | @class NSNumber ; 19 | @class NSString ; 20 | @class NSString ; 21 | @class NSString ; 22 | @class NSString ; 23 | @class NSString ; 24 | -------------------------------------------------------------------------------- /Client/Classes/Helpers/SOAP/xsd.m: -------------------------------------------------------------------------------- 1 | #import "xsd.h" 2 | #import 3 | #if TARGET_OS_IPHONE 4 | #import 5 | #endif 6 | -------------------------------------------------------------------------------- /Client/Client-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleDisplayName 8 | ${PRODUCT_NAME} 9 | CFBundleDocumentTypes 10 | 11 | CFBundleExecutable 12 | ${EXECUTABLE_NAME} 13 | CFBundleIconFile 14 | 15 | CFBundleIdentifier 16 | com.akosma.WebServiceClient 17 | CFBundleInfoDictionaryVersion 18 | 6.0 19 | CFBundleName 20 | ${PRODUCT_NAME} 21 | CFBundlePackageType 22 | APPL 23 | CFBundleSignature 24 | ???? 25 | CFBundleURLTypes 26 | 27 | CFBundleVersion 28 | 1.1 29 | LSRequiresIPhoneOS 30 | 31 | NSMainNibFile 32 | MainWindow 33 | UIFileSharingEnabled 34 | 35 | UIPrerenderedIcon 36 | 37 | UIRequiresPersistentWiFi 38 | 39 | UIStatusBarHidden 40 | 41 | UTExportedTypeDeclarations 42 | 43 | UTImportedTypeDeclarations 44 | 45 | 46 | 47 | -------------------------------------------------------------------------------- /Client/Client_Prefix.pch: -------------------------------------------------------------------------------- 1 | // 2 | // Prefix header for all source files of the 'Client' target in the 'Client' project 3 | // 4 | #import 5 | 6 | #ifndef __IPHONE_3_0 7 | #warning "This project uses features only available in iPhone SDK 3.0 and later." 8 | #endif 9 | 10 | 11 | #ifdef __OBJC__ 12 | #import 13 | #import 14 | #import "ProtocolBuffers.h" 15 | #endif 16 | -------------------------------------------------------------------------------- /Client/Externals/AFNetworking/AFNetworking.h: -------------------------------------------------------------------------------- 1 | // AFNetworking.h 2 | // 3 | // Copyright (c) 2011 Gowalla (http://gowalla.com/) 4 | // 5 | // Permission is hereby granted, free of charge, to any person obtaining a copy 6 | // of this software and associated documentation files (the "Software"), to deal 7 | // in the Software without restriction, including without limitation the rights 8 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | // copies of the Software, and to permit persons to whom the Software is 10 | // furnished to do so, subject to the following conditions: 11 | // 12 | // The above copyright notice and this permission notice shall be included in 13 | // all copies or substantial portions of the Software. 14 | // 15 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | // THE SOFTWARE. 22 | 23 | #import 24 | #import 25 | 26 | #ifndef _AFNETWORKING_ 27 | #define _AFNETWORKING_ 28 | 29 | #import "AFURLConnectionOperation.h" 30 | 31 | #import "AFHTTPRequestOperation.h" 32 | #import "AFJSONRequestOperation.h" 33 | #import "AFXMLRequestOperation.h" 34 | #import "AFPropertyListRequestOperation.h" 35 | #import "AFHTTPClient.h" 36 | 37 | #import "AFImageRequestOperation.h" 38 | #import "AFImagecache.h" 39 | 40 | #if __IPHONE_OS_VERSION_MIN_REQUIRED 41 | #import "AFNetworkActivityIndicatorManager.h" 42 | #import "UIImageView+AFNetworking.h" 43 | #endif 44 | 45 | #endif /* _AFNETWORKING_ */ -------------------------------------------------------------------------------- /Client/Externals/ASIHTTPRequest/ASIAuthenticationDialog.h: -------------------------------------------------------------------------------- 1 | // 2 | // ASIAuthenticationDialog.h 3 | // Part of ASIHTTPRequest -> http://allseeing-i.com/ASIHTTPRequest 4 | // 5 | // Created by Ben Copsey on 21/08/2009. 6 | // Copyright 2009 All-Seeing Interactive. All rights reserved. 7 | // 8 | 9 | #import 10 | #import 11 | @class ASIHTTPRequest; 12 | 13 | typedef enum _ASIAuthenticationType { 14 | ASIStandardAuthenticationType = 0, 15 | ASIProxyAuthenticationType = 1 16 | } ASIAuthenticationType; 17 | 18 | @interface ASIAutorotatingViewController : UIViewController 19 | @end 20 | 21 | @interface ASIAuthenticationDialog : ASIAutorotatingViewController { 22 | ASIHTTPRequest *request; 23 | ASIAuthenticationType type; 24 | UITableView *tableView; 25 | UIViewController *presentingController; 26 | BOOL didEnableRotationNotifications; 27 | } 28 | + (void)presentAuthenticationDialogForRequest:(ASIHTTPRequest *)request; 29 | + (void)dismiss; 30 | 31 | @property (retain) ASIHTTPRequest *request; 32 | @property (assign) ASIAuthenticationType type; 33 | @property (assign) BOOL didEnableRotationNotifications; 34 | @property (retain, nonatomic) UIViewController *presentingController; 35 | @end 36 | -------------------------------------------------------------------------------- /Client/Externals/ASIHTTPRequest/ASIDataCompressor.h: -------------------------------------------------------------------------------- 1 | // 2 | // ASIDataCompressor.h 3 | // Part of ASIHTTPRequest -> http://allseeing-i.com/ASIHTTPRequest 4 | // 5 | // Created by Ben Copsey on 17/08/2010. 6 | // Copyright 2010 All-Seeing Interactive. All rights reserved. 7 | // 8 | 9 | // This is a helper class used by ASIHTTPRequest to handle deflating (compressing) data in memory and on disk 10 | // You may also find it helpful if you need to deflate data and files yourself - see the class methods below 11 | // Most of the zlib stuff is based on the sample code by Mark Adler available at http://zlib.net 12 | 13 | #import 14 | #import 15 | 16 | @interface ASIDataCompressor : NSObject { 17 | BOOL streamReady; 18 | z_stream zStream; 19 | } 20 | 21 | // Convenience constructor will call setupStream for you 22 | + (id)compressor; 23 | 24 | // Compress the passed chunk of data 25 | - (NSData *)compressBytes:(Bytef *)bytes length:(NSUInteger)length error:(NSError **)err; 26 | 27 | // Convenience method - pass it some data, and you'll get deflated data back 28 | + (NSData *)compressData:(NSData*)uncompressedData error:(NSError **)err; 29 | 30 | // Convenience method - pass it a file containing the data to compress in sourcePath, and it will write deflated data to destinationPath 31 | + (BOOL)compressDataFromFile:(NSString *)sourcePath toFile:(NSString *)destinationPath error:(NSError **)err; 32 | 33 | // Sets up zlib to handle the inflating. You only need to call this yourself if you aren't using the convenience constructor 'compressor' 34 | - (NSError *)setupStream; 35 | 36 | // Tells zlib to clean up. You need to call this if you need to cancel deflating part way through 37 | // If deflating finishes or fails, this method will be called automatically 38 | - (NSError *)closeStream; 39 | 40 | @property (assign, readonly) BOOL streamReady; 41 | @end 42 | -------------------------------------------------------------------------------- /Client/Externals/ASIHTTPRequest/ASIDataDecompressor.h: -------------------------------------------------------------------------------- 1 | // 2 | // ASIDataDecompressor.h 3 | // Part of ASIHTTPRequest -> http://allseeing-i.com/ASIHTTPRequest 4 | // 5 | // Created by Ben Copsey on 17/08/2010. 6 | // Copyright 2010 All-Seeing Interactive. All rights reserved. 7 | // 8 | 9 | // This is a helper class used by ASIHTTPRequest to handle inflating (decompressing) data in memory and on disk 10 | // You may also find it helpful if you need to inflate data and files yourself - see the class methods below 11 | // Most of the zlib stuff is based on the sample code by Mark Adler available at http://zlib.net 12 | 13 | #import 14 | #import 15 | 16 | @interface ASIDataDecompressor : NSObject { 17 | BOOL streamReady; 18 | z_stream zStream; 19 | } 20 | 21 | // Convenience constructor will call setupStream for you 22 | + (id)decompressor; 23 | 24 | // Uncompress the passed chunk of data 25 | - (NSData *)uncompressBytes:(Bytef *)bytes length:(NSUInteger)length error:(NSError **)err; 26 | 27 | // Convenience method - pass it some deflated data, and you'll get inflated data back 28 | + (NSData *)uncompressData:(NSData*)compressedData error:(NSError **)err; 29 | 30 | // Convenience method - pass it a file containing deflated data in sourcePath, and it will write inflated data to destinationPath 31 | + (BOOL)uncompressDataFromFile:(NSString *)sourcePath toFile:(NSString *)destinationPath error:(NSError **)err; 32 | 33 | // Sets up zlib to handle the inflating. You only need to call this yourself if you aren't using the convenience constructor 'decompressor' 34 | - (NSError *)setupStream; 35 | 36 | // Tells zlib to clean up. You need to call this if you need to cancel inflating part way through 37 | // If inflating finishes or fails, this method will be called automatically 38 | - (NSError *)closeStream; 39 | 40 | @property (assign, readonly) BOOL streamReady; 41 | @end 42 | -------------------------------------------------------------------------------- /Client/Externals/ASIHTTPRequest/ASIHTTPRequestConfig.h: -------------------------------------------------------------------------------- 1 | // 2 | // ASIHTTPRequestConfig.h 3 | // Part of ASIHTTPRequest -> http://allseeing-i.com/ASIHTTPRequest 4 | // 5 | // Created by Ben Copsey on 14/12/2009. 6 | // Copyright 2009 All-Seeing Interactive. All rights reserved. 7 | // 8 | 9 | 10 | // ====== 11 | // Debug output configuration options 12 | // ====== 13 | 14 | // When set to 1 ASIHTTPRequests will print information about what a request is doing 15 | #ifndef DEBUG_REQUEST_STATUS 16 | #define DEBUG_REQUEST_STATUS 0 17 | #endif 18 | 19 | // When set to 1, ASIFormDataRequests will print information about the request body to the console 20 | #ifndef DEBUG_FORM_DATA_REQUEST 21 | #define DEBUG_FORM_DATA_REQUEST 0 22 | #endif 23 | 24 | // When set to 1, ASIHTTPRequests will print information about bandwidth throttling to the console 25 | #ifndef DEBUG_THROTTLING 26 | #define DEBUG_THROTTLING 0 27 | #endif 28 | 29 | // When set to 1, ASIHTTPRequests will print information about persistent connections to the console 30 | #ifndef DEBUG_PERSISTENT_CONNECTIONS 31 | #define DEBUG_PERSISTENT_CONNECTIONS 0 32 | #endif 33 | -------------------------------------------------------------------------------- /Client/Externals/ASIHTTPRequest/ASIHTTPRequestDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // ASIHTTPRequestDelegate.h 3 | // Part of ASIHTTPRequest -> http://allseeing-i.com/ASIHTTPRequest 4 | // 5 | // Created by Ben Copsey on 13/04/2010. 6 | // Copyright 2010 All-Seeing Interactive. All rights reserved. 7 | // 8 | 9 | @class ASIHTTPRequest; 10 | 11 | @protocol ASIHTTPRequestDelegate 12 | 13 | @optional 14 | 15 | // These are the default delegate methods for request status 16 | // You can use different ones by setting didStartSelector / didFinishSelector / didFailSelector 17 | - (void)requestStarted:(ASIHTTPRequest *)request; 18 | - (void)request:(ASIHTTPRequest *)request didReceiveResponseHeaders:(NSDictionary *)responseHeaders; 19 | - (void)request:(ASIHTTPRequest *)request willRedirectToURL:(NSURL *)newURL; 20 | - (void)requestFinished:(ASIHTTPRequest *)request; 21 | - (void)requestFailed:(ASIHTTPRequest *)request; 22 | - (void)requestRedirected:(ASIHTTPRequest *)request; 23 | 24 | // When a delegate implements this method, it is expected to process all incoming data itself 25 | // This means that responseData / responseString / downloadDestinationPath etc are ignored 26 | // You can have the request call a different method by setting didReceiveDataSelector 27 | - (void)request:(ASIHTTPRequest *)request didReceiveData:(NSData *)data; 28 | 29 | // If a delegate implements one of these, it will be asked to supply credentials when none are available 30 | // The delegate can then either restart the request ([request retryUsingSuppliedCredentials]) once credentials have been set 31 | // or cancel it ([request cancelAuthentication]) 32 | - (void)authenticationNeededForRequest:(ASIHTTPRequest *)request; 33 | - (void)proxyAuthenticationNeededForRequest:(ASIHTTPRequest *)request; 34 | 35 | @end 36 | -------------------------------------------------------------------------------- /Client/Externals/ASIHTTPRequest/ASIInputStream.h: -------------------------------------------------------------------------------- 1 | // 2 | // ASIInputStream.h 3 | // Part of ASIHTTPRequest -> http://allseeing-i.com/ASIHTTPRequest 4 | // 5 | // Created by Ben Copsey on 10/08/2009. 6 | // Copyright 2009 All-Seeing Interactive. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @class ASIHTTPRequest; 12 | 13 | // This is a wrapper for NSInputStream that pretends to be an NSInputStream itself 14 | // Subclassing NSInputStream seems to be tricky, and may involve overriding undocumented methods, so we'll cheat instead. 15 | // It is used by ASIHTTPRequest whenever we have a request body, and handles measuring and throttling the bandwidth used for uploading 16 | 17 | @interface ASIInputStream : NSObject { 18 | NSInputStream *stream; 19 | ASIHTTPRequest *request; 20 | } 21 | + (id)inputStreamWithFileAtPath:(NSString *)path request:(ASIHTTPRequest *)request; 22 | + (id)inputStreamWithData:(NSData *)data request:(ASIHTTPRequest *)request; 23 | 24 | @property (retain, nonatomic) NSInputStream *stream; 25 | @property (assign, nonatomic) ASIHTTPRequest *request; 26 | @end 27 | -------------------------------------------------------------------------------- /Client/Externals/ASIHTTPRequest/ASIProgressDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // ASIProgressDelegate.h 3 | // Part of ASIHTTPRequest -> http://allseeing-i.com/ASIHTTPRequest 4 | // 5 | // Created by Ben Copsey on 13/04/2010. 6 | // Copyright 2010 All-Seeing Interactive. All rights reserved. 7 | // 8 | 9 | @class ASIHTTPRequest; 10 | 11 | @protocol ASIProgressDelegate 12 | 13 | @optional 14 | 15 | // These methods are used to update UIProgressViews (iPhone OS) or NSProgressIndicators (Mac OS X) 16 | // If you are using a custom progress delegate, you may find it easier to implement didReceiveBytes / didSendBytes instead 17 | #if TARGET_OS_IPHONE 18 | - (void)setProgress:(float)newProgress; 19 | #else 20 | - (void)setDoubleValue:(double)newProgress; 21 | - (void)setMaxValue:(double)newMax; 22 | #endif 23 | 24 | // Called when the request receives some data - bytes is the length of that data 25 | - (void)request:(ASIHTTPRequest *)request didReceiveBytes:(long long)bytes; 26 | 27 | // Called when the request sends some data 28 | // The first 32KB (128KB on older platforms) of data sent is not included in this amount because of limitations with the CFNetwork API 29 | // bytes may be less than zero if a request needs to remove upload progress (probably because the request needs to run again) 30 | - (void)request:(ASIHTTPRequest *)request didSendBytes:(long long)bytes; 31 | 32 | // Called when a request needs to change the length of the content to download 33 | - (void)request:(ASIHTTPRequest *)request incrementDownloadSizeBy:(long long)newLength; 34 | 35 | // Called when a request needs to change the length of the content to upload 36 | // newLength may be less than zero when a request needs to remove the size of the internal buffer from progress tracking 37 | - (void)request:(ASIHTTPRequest *)request incrementUploadSizeBy:(long long)newLength; 38 | @end 39 | -------------------------------------------------------------------------------- /Client/Externals/InAppSettingsKit/Controllers/IASKAppSettingsWebViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // IASKAppSettingsWebViewController.h 3 | // http://www.inappsettingskit.com 4 | // 5 | // Copyright (c) 2009: 6 | // Luc Vandal, Edovia Inc., http://www.edovia.com 7 | // Ortwin Gentz, FutureTap GmbH, http://www.futuretap.com 8 | // All rights reserved. 9 | // 10 | // It is appreciated but not required that you give credit to Luc Vandal and Ortwin Gentz, 11 | // as the original authors of this code. You can give credit in a blog post, a tweet or on 12 | // a info page of your app. Also, the original authors appreciate letting them know if you use this code. 13 | // 14 | // This code is licensed under the BSD license that is available at: http://www.opensource.org/licenses/bsd-license.php 15 | // 16 | 17 | #import 18 | #import 19 | 20 | @interface IASKAppSettingsWebViewController : UIViewController { 21 | UIWebView *webView; 22 | NSURL *url; 23 | } 24 | 25 | - (id)initWithFile:(NSString*)htmlFileName key:(NSString*)key; 26 | 27 | @property (nonatomic, retain) IBOutlet UIWebView *webView; 28 | @property (nonatomic, retain) NSURL *url; 29 | 30 | @end 31 | -------------------------------------------------------------------------------- /Client/Externals/InAppSettingsKit/Controllers/IASKSpecifierValuesViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // IASKSpecifierValuesViewController.h 3 | // http://www.inappsettingskit.com 4 | // 5 | // Copyright (c) 2009: 6 | // Luc Vandal, Edovia Inc., http://www.edovia.com 7 | // Ortwin Gentz, FutureTap GmbH, http://www.futuretap.com 8 | // All rights reserved. 9 | // 10 | // It is appreciated but not required that you give credit to Luc Vandal and Ortwin Gentz, 11 | // as the original authors of this code. You can give credit in a blog post, a tweet or on 12 | // a info page of your app. Also, the original authors appreciate letting them know if you use this code. 13 | // 14 | // This code is licensed under the BSD license that is available at: http://www.opensource.org/licenses/bsd-license.php 15 | // 16 | 17 | #import 18 | #import "IASKSettingsStore.h" 19 | 20 | @class IASKSpecifier; 21 | @class IASKSettingsReader; 22 | 23 | @interface IASKSpecifierValuesViewController : UIViewController { 24 | IBOutlet UITableView *_tableView; 25 | 26 | IASKSpecifier *_currentSpecifier; 27 | NSIndexPath *_checkedItem; 28 | IASKSettingsReader *_settingsReader; 29 | id _settingsStore; 30 | } 31 | 32 | @property (nonatomic, retain) NSIndexPath *checkedItem; 33 | @property (nonatomic, retain) IASKSpecifier *currentSpecifier; 34 | @property (nonatomic, retain) IASKSettingsReader *settingsReader; 35 | @property (nonatomic, retain) id settingsStore; 36 | 37 | @end 38 | -------------------------------------------------------------------------------- /Client/Externals/InAppSettingsKit/Models/IASKSettingsStore.h: -------------------------------------------------------------------------------- 1 | // 2 | // IASKSettingsStore.h 3 | // http://www.inappsettingskit.com 4 | // 5 | // Copyright (c) 2010: 6 | // Luc Vandal, Edovia Inc., http://www.edovia.com 7 | // Ortwin Gentz, FutureTap GmbH, http://www.futuretap.com 8 | // Marc-Etienne M.Léveillé, Edovia Inc., http://www.edovia.com 9 | // All rights reserved. 10 | // 11 | // It is appreciated but not required that you give credit to Luc Vandal and Ortwin Gentz, 12 | // as the original authors of this code. You can give credit in a blog post, a tweet or on 13 | // a info page of your app. Also, the original authors appreciate letting them know if you use this code. 14 | // 15 | // This code is licensed under the BSD license that is available at: http://www.opensource.org/licenses/bsd-license.php 16 | // 17 | 18 | #import 19 | 20 | @protocol IASKSettingsStore 21 | @required 22 | - (void)setBool:(BOOL)value forKey:(NSString*)key; 23 | - (void)setFloat:(float)value forKey:(NSString*)key; 24 | - (void)setDouble:(double)value forKey:(NSString*)key; 25 | - (void)setInteger:(int)value forKey:(NSString*)key; 26 | - (void)setObject:(id)value forKey:(NSString*)key; 27 | - (BOOL)boolForKey:(NSString*)key; 28 | - (float)floatForKey:(NSString*)key; 29 | - (double)doubleForKey:(NSString*)key; 30 | - (int)integerForKey:(NSString*)key; 31 | - (id)objectForKey:(NSString*)key; 32 | - (BOOL)synchronize; 33 | @end 34 | 35 | 36 | @interface IASKAbstractSettingsStore : NSObject { 37 | } 38 | 39 | @end 40 | -------------------------------------------------------------------------------- /Client/Externals/InAppSettingsKit/Models/IASKSettingsStoreFile.h: -------------------------------------------------------------------------------- 1 | // 2 | // IASKSettingsStoreFile.h 3 | // http://www.inappsettingskit.com 4 | // 5 | // Copyright (c) 2010: 6 | // Luc Vandal, Edovia Inc., http://www.edovia.com 7 | // Ortwin Gentz, FutureTap GmbH, http://www.futuretap.com 8 | // Marc-Etienne M.Léveillé, Edovia Inc., http://www.edovia.com 9 | // All rights reserved. 10 | // 11 | // It is appreciated but not required that you give credit to Luc Vandal and Ortwin Gentz, 12 | // as the original authors of this code. You can give credit in a blog post, a tweet or on 13 | // a info page of your app. Also, the original authors appreciate letting them know if you use this code. 14 | // 15 | // This code is licensed under the BSD license that is available at: http://www.opensource.org/licenses/bsd-license.php 16 | // 17 | 18 | #import 19 | #import "IASKSettingsStore.h" 20 | 21 | @interface IASKSettingsStoreFile : IASKAbstractSettingsStore { 22 | NSString * _filePath; 23 | NSMutableDictionary * _dict; 24 | } 25 | 26 | - (id)initWithPath:(NSString*)path; 27 | 28 | @end 29 | -------------------------------------------------------------------------------- /Client/Externals/InAppSettingsKit/Models/IASKSettingsStoreFile.m: -------------------------------------------------------------------------------- 1 | // 2 | // IASKSettingsStoreFile.m 3 | // http://www.inappsettingskit.com 4 | // 5 | // Copyright (c) 2010: 6 | // Luc Vandal, Edovia Inc., http://www.edovia.com 7 | // Ortwin Gentz, FutureTap GmbH, http://www.futuretap.com 8 | // Marc-Etienne M.Léveillé, Edovia Inc., http://www.edovia.com 9 | // All rights reserved. 10 | // 11 | // It is appreciated but not required that you give credit to Luc Vandal and Ortwin Gentz, 12 | // as the original authors of this code. You can give credit in a blog post, a tweet or on 13 | // a info page of your app. Also, the original authors appreciate letting them know if you use this code. 14 | // 15 | // This code is licensed under the BSD license that is available at: http://www.opensource.org/licenses/bsd-license.php 16 | // 17 | 18 | #import "IASKSettingsStoreFile.h" 19 | 20 | 21 | @implementation IASKSettingsStoreFile 22 | 23 | - (id)initWithPath:(NSString*)path { 24 | if([super init]) { 25 | _filePath = [path retain]; 26 | _dict = [[NSMutableDictionary alloc] initWithContentsOfFile:path]; 27 | if(_dict == nil) { 28 | _dict = [[NSMutableDictionary alloc] init]; 29 | } 30 | } 31 | return self; 32 | } 33 | 34 | - (void)dealloc { 35 | [_dict release]; 36 | [_filePath release]; 37 | [super dealloc]; 38 | } 39 | 40 | 41 | - (void)setObject:(id)value forKey:(NSString *)key { 42 | [_dict setObject:value forKey:key]; 43 | } 44 | 45 | - (id)objectForKey:(NSString *)key { 46 | return [_dict objectForKey:key]; 47 | } 48 | 49 | - (BOOL)synchronize { 50 | return [_dict writeToFile:_filePath atomically:YES]; 51 | } 52 | 53 | @end 54 | -------------------------------------------------------------------------------- /Client/Externals/InAppSettingsKit/Models/IASKSettingsStoreUserDefaults.h: -------------------------------------------------------------------------------- 1 | // 2 | // IASKSettingsStoreUserDefaults.h 3 | // http://www.inappsettingskit.com 4 | // 5 | // Copyright (c) 2010: 6 | // Luc Vandal, Edovia Inc., http://www.edovia.com 7 | // Ortwin Gentz, FutureTap GmbH, http://www.futuretap.com 8 | // Marc-Etienne M.Léveillé, Edovia Inc., http://www.edovia.com 9 | // All rights reserved. 10 | // 11 | // It is appreciated but not required that you give credit to Luc Vandal and Ortwin Gentz, 12 | // as the original authors of this code. You can give credit in a blog post, a tweet or on 13 | // a info page of your app. Also, the original authors appreciate letting them know if you use this code. 14 | // 15 | // This code is licensed under the BSD license that is available at: http://www.opensource.org/licenses/bsd-license.php 16 | // 17 | 18 | #import 19 | #import "IASKSettingsStore.h" 20 | 21 | @interface IASKSettingsStoreUserDefaults : IASKAbstractSettingsStore { 22 | 23 | } 24 | 25 | @end 26 | -------------------------------------------------------------------------------- /Client/Externals/InAppSettingsKit/Views/IASKPSSliderSpecifierViewCell.h: -------------------------------------------------------------------------------- 1 | // 2 | // IASKPSSliderSpecifierViewCell.h 3 | // http://www.inappsettingskit.com 4 | // 5 | // Copyright (c) 2009: 6 | // Luc Vandal, Edovia Inc., http://www.edovia.com 7 | // Ortwin Gentz, FutureTap GmbH, http://www.futuretap.com 8 | // All rights reserved. 9 | // 10 | // It is appreciated but not required that you give credit to Luc Vandal and Ortwin Gentz, 11 | // as the original authors of this code. You can give credit in a blog post, a tweet or on 12 | // a info page of your app. Also, the original authors appreciate letting them know if you use this code. 13 | // 14 | // This code is licensed under the BSD license that is available at: http://www.opensource.org/licenses/bsd-license.php 15 | // 16 | 17 | #import 18 | 19 | @class IASKSlider; 20 | 21 | @interface IASKPSSliderSpecifierViewCell : UITableViewCell { 22 | IBOutlet IASKSlider *_slider; 23 | IBOutlet UIImageView *_minImage; 24 | IBOutlet UIImageView *_maxImage; 25 | } 26 | 27 | @property (nonatomic, readonly) IASKSlider *slider; 28 | @property (nonatomic, readonly) UIImageView *minImage; 29 | @property (nonatomic, readonly) UIImageView *maxImage; 30 | 31 | @end 32 | -------------------------------------------------------------------------------- /Client/Externals/InAppSettingsKit/Views/IASKPSTextFieldSpecifierViewCell.h: -------------------------------------------------------------------------------- 1 | // 2 | // IASKPSTextFieldSpecifierViewCell.h 3 | // http://www.inappsettingskit.com 4 | // 5 | // Copyright (c) 2009: 6 | // Luc Vandal, Edovia Inc., http://www.edovia.com 7 | // Ortwin Gentz, FutureTap GmbH, http://www.futuretap.com 8 | // All rights reserved. 9 | // 10 | // It is appreciated but not required that you give credit to Luc Vandal and Ortwin Gentz, 11 | // as the original authors of this code. You can give credit in a blog post, a tweet or on 12 | // a info page of your app. Also, the original authors appreciate letting them know if you use this code. 13 | // 14 | // This code is licensed under the BSD license that is available at: http://www.opensource.org/licenses/bsd-license.php 15 | // 16 | 17 | #import 18 | 19 | @class IASKTextField; 20 | 21 | @interface IASKPSTextFieldSpecifierViewCell : UITableViewCell { 22 | IBOutlet UILabel *_label; 23 | IBOutlet IASKTextField *_textField; 24 | } 25 | 26 | @property (nonatomic, readonly) UILabel *label; 27 | @property (nonatomic, readonly) IASKTextField *textField; 28 | 29 | @end 30 | -------------------------------------------------------------------------------- /Client/Externals/InAppSettingsKit/Views/IASKPSTextFieldSpecifierViewCell.m: -------------------------------------------------------------------------------- 1 | // 2 | // IASKPSTextFieldSpecifierViewCell.m 3 | // http://www.inappsettingskit.com 4 | // 5 | // Copyright (c) 2009-2010: 6 | // Luc Vandal, Edovia Inc., http://www.edovia.com 7 | // Ortwin Gentz, FutureTap GmbH, http://www.futuretap.com 8 | // All rights reserved. 9 | // 10 | // It is appreciated but not required that you give credit to Luc Vandal and Ortwin Gentz, 11 | // as the original authors of this code. You can give credit in a blog post, a tweet or on 12 | // a info page of your app. Also, the original authors appreciate letting them know if you use this code. 13 | // 14 | // This code is licensed under the BSD license that is available at: http://www.opensource.org/licenses/bsd-license.php 15 | // 16 | 17 | #import "IASKPSTextFieldSpecifierViewCell.h" 18 | #import "IASKTextField.h" 19 | #import "IASKSettingsReader.h" 20 | 21 | @implementation IASKPSTextFieldSpecifierViewCell 22 | 23 | @synthesize label=_label, 24 | textField=_textField; 25 | 26 | - (void)layoutSubviews { 27 | [super layoutSubviews]; 28 | CGSize labelSize = [_label sizeThatFits:CGSizeZero]; 29 | labelSize.width = MIN(labelSize.width, _label.bounds.size.width); 30 | 31 | CGRect textFieldFrame = _textField.frame; 32 | textFieldFrame.origin.x = _label.frame.origin.x + MAX(kIASKMinLabelWidth, labelSize.width) + kIASKSpacing; 33 | if (!_label.text.length) 34 | textFieldFrame.origin.x = _label.frame.origin.x; 35 | textFieldFrame.size.width = _textField.superview.frame.size.width - textFieldFrame.origin.x - _label.frame.origin.x; 36 | _textField.frame = textFieldFrame; 37 | } 38 | 39 | - (void)setSelected:(BOOL)selected animated:(BOOL)animated { 40 | 41 | [super setSelected:selected animated:animated]; 42 | 43 | // Configure the view for the selected state 44 | } 45 | 46 | 47 | - (void)dealloc { 48 | [super dealloc]; 49 | } 50 | 51 | 52 | @end 53 | -------------------------------------------------------------------------------- /Client/Externals/InAppSettingsKit/Views/IASKPSTitleValueSpecifierViewCell.h: -------------------------------------------------------------------------------- 1 | // 2 | // IASKPSTitleValueSpecifierViewCell.h 3 | // http://www.inappsettingskit.com 4 | // 5 | // Copyright (c) 2010: 6 | // Luc Vandal, Edovia Inc., http://www.edovia.com 7 | // Ortwin Gentz, FutureTap GmbH, http://www.futuretap.com 8 | // All rights reserved. 9 | // 10 | // It is appreciated but not required that you give credit to Luc Vandal and Ortwin Gentz, 11 | // as the original authors of this code. You can give credit in a blog post, a tweet or on 12 | // a info page of your app. Also, the original authors appreciate letting them know if you use this code. 13 | // 14 | // This code is licensed under the BSD license that is available at: http://www.opensource.org/licenses/bsd-license.php 15 | // 16 | 17 | #import 18 | 19 | 20 | @interface IASKPSTitleValueSpecifierViewCell : UITableViewCell 21 | 22 | @end 23 | -------------------------------------------------------------------------------- /Client/Externals/InAppSettingsKit/Views/IASKPSToggleSwitchSpecifierViewCell.h: -------------------------------------------------------------------------------- 1 | // 2 | // IASKPSToggleSwitchSpecifierViewCell.h 3 | // http://www.inappsettingskit.com 4 | // 5 | // Copyright (c) 2009: 6 | // Luc Vandal, Edovia Inc., http://www.edovia.com 7 | // Ortwin Gentz, FutureTap GmbH, http://www.futuretap.com 8 | // All rights reserved. 9 | // 10 | // It is appreciated but not required that you give credit to Luc Vandal and Ortwin Gentz, 11 | // as the original authors of this code. You can give credit in a blog post, a tweet or on 12 | // a info page of your app. Also, the original authors appreciate letting them know if you use this code. 13 | // 14 | // This code is licensed under the BSD license that is available at: http://www.opensource.org/licenses/bsd-license.php 15 | // 16 | 17 | #import 18 | 19 | @class IASKSwitch; 20 | 21 | @interface IASKPSToggleSwitchSpecifierViewCell : UITableViewCell { 22 | IBOutlet UILabel *_label; 23 | IBOutlet IASKSwitch *_toggle; 24 | } 25 | 26 | @property (nonatomic, readonly) UILabel *label; 27 | @property (nonatomic, readonly) IASKSwitch *toggle; 28 | 29 | @end 30 | -------------------------------------------------------------------------------- /Client/Externals/InAppSettingsKit/Views/IASKPSToggleSwitchSpecifierViewCell.m: -------------------------------------------------------------------------------- 1 | // 2 | // IASKPSToggleSwitchSpecifierViewCell.m 3 | // http://www.inappsettingskit.com 4 | // 5 | // Copyright (c) 2009: 6 | // Luc Vandal, Edovia Inc., http://www.edovia.com 7 | // Ortwin Gentz, FutureTap GmbH, http://www.futuretap.com 8 | // All rights reserved. 9 | // 10 | // It is appreciated but not required that you give credit to Luc Vandal and Ortwin Gentz, 11 | // as the original authors of this code. You can give credit in a blog post, a tweet or on 12 | // a info page of your app. Also, the original authors appreciate letting them know if you use this code. 13 | // 14 | // This code is licensed under the BSD license that is available at: http://www.opensource.org/licenses/bsd-license.php 15 | // 16 | 17 | #import "IASKPSToggleSwitchSpecifierViewCell.h" 18 | #import "IASKSwitch.h" 19 | 20 | @implementation IASKPSToggleSwitchSpecifierViewCell 21 | 22 | @synthesize label=_label, 23 | toggle=_toggle; 24 | 25 | - (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier { 26 | if ((self = [super initWithStyle:style reuseIdentifier:reuseIdentifier])) { 27 | // Initialization code 28 | } 29 | return self; 30 | } 31 | 32 | 33 | - (void)setSelected:(BOOL)selected animated:(BOOL)animated { 34 | 35 | [super setSelected:selected animated:animated]; 36 | 37 | // Configure the view for the selected state 38 | } 39 | 40 | 41 | - (void)dealloc { 42 | [super dealloc]; 43 | } 44 | 45 | 46 | @end 47 | -------------------------------------------------------------------------------- /Client/Externals/InAppSettingsKit/Views/IASKSlider.h: -------------------------------------------------------------------------------- 1 | // 2 | // IASKSlider.h 3 | // http://www.inappsettingskit.com 4 | // 5 | // Copyright (c) 2009: 6 | // Luc Vandal, Edovia Inc., http://www.edovia.com 7 | // Ortwin Gentz, FutureTap GmbH, http://www.futuretap.com 8 | // All rights reserved. 9 | // 10 | // It is appreciated but not required that you give credit to Luc Vandal and Ortwin Gentz, 11 | // as the original authors of this code. You can give credit in a blog post, a tweet or on 12 | // a info page of your app. Also, the original authors appreciate letting them know if you use this code. 13 | // 14 | // This code is licensed under the BSD license that is available at: http://www.opensource.org/licenses/bsd-license.php 15 | // 16 | 17 | #import 18 | 19 | 20 | @interface IASKSlider : UISlider { 21 | NSString *_key; 22 | } 23 | 24 | @property (nonatomic, retain) NSString *key; 25 | 26 | @end 27 | -------------------------------------------------------------------------------- /Client/Externals/InAppSettingsKit/Views/IASKSlider.m: -------------------------------------------------------------------------------- 1 | // 2 | // IASKSlider.m 3 | // http://www.inappsettingskit.com 4 | // 5 | // Copyright (c) 2009: 6 | // Luc Vandal, Edovia Inc., http://www.edovia.com 7 | // Ortwin Gentz, FutureTap GmbH, http://www.futuretap.com 8 | // All rights reserved. 9 | // 10 | // It is appreciated but not required that you give credit to Luc Vandal and Ortwin Gentz, 11 | // as the original authors of this code. You can give credit in a blog post, a tweet or on 12 | // a info page of your app. Also, the original authors appreciate letting them know if you use this code. 13 | // 14 | // This code is licensed under the BSD license that is available at: http://www.opensource.org/licenses/bsd-license.php 15 | // 16 | 17 | #import "IASKSlider.h" 18 | 19 | 20 | @implementation IASKSlider 21 | 22 | @synthesize key=_key; 23 | 24 | - (void)dealloc { 25 | [_key release]; 26 | [super dealloc]; 27 | } 28 | 29 | @end 30 | -------------------------------------------------------------------------------- /Client/Externals/InAppSettingsKit/Views/IASKSwitch.h: -------------------------------------------------------------------------------- 1 | // 2 | // IASKSwitch.h 3 | // http://www.inappsettingskit.com 4 | // 5 | // Copyright (c) 2009: 6 | // Luc Vandal, Edovia Inc., http://www.edovia.com 7 | // Ortwin Gentz, FutureTap GmbH, http://www.futuretap.com 8 | // All rights reserved. 9 | // 10 | // It is appreciated but not required that you give credit to Luc Vandal and Ortwin Gentz, 11 | // as the original authors of this code. You can give credit in a blog post, a tweet or on 12 | // a info page of your app. Also, the original authors appreciate letting them know if you use this code. 13 | // 14 | // This code is licensed under the BSD license that is available at: http://www.opensource.org/licenses/bsd-license.php 15 | // 16 | 17 | #import 18 | 19 | 20 | @interface IASKSwitch : UISwitch { 21 | NSString *_key; 22 | } 23 | 24 | @property (nonatomic, retain) NSString *key; 25 | 26 | @end 27 | -------------------------------------------------------------------------------- /Client/Externals/InAppSettingsKit/Views/IASKSwitch.m: -------------------------------------------------------------------------------- 1 | // 2 | // IASKSwitch.m 3 | // http://www.inappsettingskit.com 4 | // 5 | // Copyright (c) 2009: 6 | // Luc Vandal, Edovia Inc., http://www.edovia.com 7 | // Ortwin Gentz, FutureTap GmbH, http://www.futuretap.com 8 | // All rights reserved. 9 | // 10 | // It is appreciated but not required that you give credit to Luc Vandal and Ortwin Gentz, 11 | // as the original authors of this code. You can give credit in a blog post, a tweet or on 12 | // a info page of your app. Also, the original authors appreciate letting them know if you use this code. 13 | // 14 | // This code is licensed under the BSD license that is available at: http://www.opensource.org/licenses/bsd-license.php 15 | // 16 | 17 | #import "IASKSwitch.h" 18 | 19 | 20 | @implementation IASKSwitch 21 | 22 | @synthesize key=_key; 23 | 24 | - (void)dealloc { 25 | [_key release]; 26 | [super dealloc]; 27 | } 28 | 29 | 30 | @end 31 | -------------------------------------------------------------------------------- /Client/Externals/InAppSettingsKit/Views/IASKTextField.h: -------------------------------------------------------------------------------- 1 | // 2 | // IASKTextField.h 3 | // http://www.inappsettingskit.com 4 | // 5 | // Copyright (c) 2009: 6 | // Luc Vandal, Edovia Inc., http://www.edovia.com 7 | // Ortwin Gentz, FutureTap GmbH, http://www.futuretap.com 8 | // All rights reserved. 9 | // 10 | // It is appreciated but not required that you give credit to Luc Vandal and Ortwin Gentz, 11 | // as the original authors of this code. You can give credit in a blog post, a tweet or on 12 | // a info page of your app. Also, the original authors appreciate letting them know if you use this code. 13 | // 14 | // This code is licensed under the BSD license that is available at: http://www.opensource.org/licenses/bsd-license.php 15 | // 16 | 17 | #import 18 | 19 | 20 | @interface IASKTextField : UITextField { 21 | NSString *_key; 22 | } 23 | 24 | @property (nonatomic, retain) NSString *key; 25 | 26 | @end 27 | -------------------------------------------------------------------------------- /Client/Externals/InAppSettingsKit/Views/IASKTextField.m: -------------------------------------------------------------------------------- 1 | // 2 | // IASKTextField.m 3 | // http://www.inappsettingskit.com 4 | // 5 | // Copyright (c) 2009: 6 | // Luc Vandal, Edovia Inc., http://www.edovia.com 7 | // Ortwin Gentz, FutureTap GmbH, http://www.futuretap.com 8 | // All rights reserved. 9 | // 10 | // It is appreciated but not required that you give credit to Luc Vandal and Ortwin Gentz, 11 | // as the original authors of this code. You can give credit in a blog post, a tweet or on 12 | // a info page of your app. Also, the original authors appreciate letting them know if you use this code. 13 | // 14 | // This code is licensed under the BSD license that is available at: http://www.opensource.org/licenses/bsd-license.php 15 | // 16 | 17 | #import "IASKTextField.h" 18 | 19 | 20 | @implementation IASKTextField 21 | 22 | @synthesize key=_key; 23 | 24 | - (void)dealloc { 25 | [_key release]; 26 | [super dealloc]; 27 | } 28 | 29 | @end 30 | -------------------------------------------------------------------------------- /Client/Externals/KissXML/DDXML.h: -------------------------------------------------------------------------------- 1 | #import "DDXMLNode.h" 2 | #import "DDXMLElement.h" 3 | #import "DDXMLDocument.h" 4 | -------------------------------------------------------------------------------- /Client/Externals/KissXML/DDXMLElement.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import "DDXMLNode.h" 3 | 4 | 5 | @interface DDXMLElement : DDXMLNode 6 | { 7 | } 8 | 9 | - (id)initWithName:(NSString *)name; 10 | - (id)initWithName:(NSString *)name URI:(NSString *)URI; 11 | - (id)initWithName:(NSString *)name stringValue:(NSString *)string; 12 | - (id)initWithXMLString:(NSString *)string error:(NSError **)error; 13 | 14 | #pragma mark --- Elements by name --- 15 | 16 | - (NSArray *)elementsForName:(NSString *)name; 17 | - (NSArray *)elementsForLocalName:(NSString *)localName URI:(NSString *)URI; 18 | 19 | #pragma mark --- Attributes --- 20 | 21 | - (void)addAttribute:(DDXMLNode *)attribute; 22 | - (void)removeAttributeForName:(NSString *)name; 23 | - (void)setAttributes:(NSArray *)attributes; 24 | //- (void)setAttributesAsDictionary:(NSDictionary *)attributes; 25 | - (NSArray *)attributes; 26 | - (DDXMLNode *)attributeForName:(NSString *)name; 27 | //- (DDXMLNode *)attributeForLocalName:(NSString *)localName URI:(NSString *)URI; 28 | 29 | #pragma mark --- Namespaces --- 30 | 31 | - (void)addNamespace:(DDXMLNode *)aNamespace; 32 | - (void)removeNamespaceForPrefix:(NSString *)name; 33 | - (void)setNamespaces:(NSArray *)namespaces; 34 | - (NSArray *)namespaces; 35 | - (DDXMLNode *)namespaceForPrefix:(NSString *)prefix; 36 | - (DDXMLNode *)resolveNamespaceForName:(NSString *)name; 37 | - (NSString *)resolvePrefixForNamespaceURI:(NSString *)namespaceURI; 38 | 39 | #pragma mark --- Children --- 40 | 41 | - (void)insertChild:(DDXMLNode *)child atIndex:(NSUInteger)index; 42 | //- (void)insertChildren:(NSArray *)children atIndex:(NSUInteger)index; 43 | - (void)removeChildAtIndex:(NSUInteger)index; 44 | - (void)setChildren:(NSArray *)children; 45 | - (void)addChild:(DDXMLNode *)child; 46 | //- (void)replaceChildAtIndex:(NSUInteger)index withNode:(DDXMLNode *)node; 47 | //- (void)normalizeAdjacentTextNodesPreservingCDATA:(BOOL)preserve; 48 | 49 | @end 50 | -------------------------------------------------------------------------------- /Client/Externals/KissXML/DDXMLElementAdditions.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import "DDXML.h" 3 | 4 | // These methods are not part of the standard NSXML API. 5 | // But any developer working extensively with XML will likely appreciate them. 6 | 7 | @interface DDXMLElement (DDAdditions) 8 | 9 | + (DDXMLElement *)elementWithName:(NSString *)name xmlns:(NSString *)ns; 10 | 11 | - (DDXMLElement *)elementForName:(NSString *)name; 12 | - (DDXMLElement *)elementForName:(NSString *)name xmlns:(NSString *)xmlns; 13 | 14 | - (NSString *)xmlns; 15 | - (void)setXmlns:(NSString *)ns; 16 | 17 | - (void)addAttributeWithName:(NSString *)name stringValue:(NSString *)string; 18 | 19 | - (NSDictionary *)attributesAsDictionary; 20 | 21 | @end 22 | -------------------------------------------------------------------------------- /Client/Externals/KissXML/NSStringAdditions.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | 4 | 5 | @interface NSString (NSStringAdditions) 6 | 7 | /** 8 | * xmlChar - A basic replacement for char, a byte in a UTF-8 encoded string. 9 | **/ 10 | - (const xmlChar *)xmlChar; 11 | 12 | - (NSString *)trimWhitespace; 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /Client/Externals/KissXML/NSStringAdditions.m: -------------------------------------------------------------------------------- 1 | #import "NSStringAdditions.h" 2 | 3 | 4 | @implementation NSString (NSStringAdditions) 5 | 6 | - (const xmlChar *)xmlChar 7 | { 8 | return (const xmlChar *)[self UTF8String]; 9 | } 10 | 11 | - (NSString *)trimWhitespace 12 | { 13 | NSMutableString *mStr = [self mutableCopy]; 14 | CFStringTrimWhitespace((CFMutableStringRef)mStr); 15 | 16 | NSString *result = [mStr copy]; 17 | 18 | [mStr release]; 19 | return [result autorelease]; 20 | } 21 | 22 | @end 23 | -------------------------------------------------------------------------------- /Client/Externals/NextiveJson/NSError+Extensions.h: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Copyright (c) 2011 Nextive LLC 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and 6 | associated documentation files (the "Software"), to deal in the Software without restriction, 7 | including without limitation the rights to use, copy, modify, merge, publish, distribute, 8 | sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is 9 | furnished to do so, subject to the following conditions: 10 | 11 | The above copyright notice and this permission notice shall be included in all copies or substantial 12 | portions of the Software. 13 | 14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT 15 | NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 16 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES 17 | OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 18 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 19 | 20 | Created by Martin Adoue (martin@nextive.com) and Hernan Pelassini (hernan@nextive.com) 21 | 22 | */ 23 | 24 | #import 25 | #import "NXDebug.h" 26 | 27 | /** 28 | Extensions to simplfy common tasks with `NSError` 29 | */ 30 | @interface NSError (Extensions) 31 | 32 | /** 33 | Does all the dirty work of creating a simple NSError object. 34 | @param domain The error domain. 35 | @param code The error code for the error 36 | @param description A NSString containing the description of the error 37 | @return Returns an NSError object for domain with the specified error code and description 38 | */ 39 | +(NSError*)errorWithDomain:(NSString*)domain code:(NSInteger)code description:(NSString*)description NOTNULL(1, 3); 40 | 41 | @end 42 | -------------------------------------------------------------------------------- /Client/Externals/NextiveJson/NSError+Extensions.m: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Copyright (c) 2011 Nextive LLC 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and 6 | associated documentation files (the "Software"), to deal in the Software without restriction, 7 | including without limitation the rights to use, copy, modify, merge, publish, distribute, 8 | sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is 9 | furnished to do so, subject to the following conditions: 10 | 11 | The above copyright notice and this permission notice shall be included in all copies or substantial 12 | portions of the Software. 13 | 14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT 15 | NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 16 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES 17 | OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 18 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 19 | 20 | Created by Martin Adoue (martin@nextive.com) and Hernan Pelassini (hernan@nextive.com) 21 | 22 | */ 23 | 24 | #import "NSError+Extensions.h" 25 | 26 | 27 | @implementation NSError(Extensions) 28 | +(NSError*)errorWithDomain:(NSString*)domain code:(NSInteger)code description:(NSString*)description 29 | { 30 | 31 | ASSERT(domain); 32 | ASSERT(description); 33 | ASSERT_CLASS(domain, NSString); 34 | ASSERT_CLASS(description, NSString); 35 | ASSERT([domain length] > 0); 36 | ASSERT([description length] > 0); 37 | ASSERT(code != 0); 38 | 39 | NSMutableDictionary* errorDict = [NSMutableDictionary dictionary]; 40 | [errorDict setObject:description forKey:NSLocalizedDescriptionKey]; 41 | return [NSError errorWithDomain:domain code:code userInfo:errorDict]; 42 | } 43 | 44 | @end 45 | -------------------------------------------------------------------------------- /Client/Externals/NextiveJson/NXSerializable.h: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Copyright (c) 2011 Nextive LLC 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and 6 | associated documentation files (the "Software"), to deal in the Software without restriction, 7 | including without limitation the rights to use, copy, modify, merge, publish, distribute, 8 | sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is 9 | furnished to do so, subject to the following conditions: 10 | 11 | The above copyright notice and this permission notice shall be included in all copies or substantial 12 | portions of the Software. 13 | 14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT 15 | NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 16 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES 17 | OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 18 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 19 | 20 | Created by Martin Adoue (martin@nextive.com) and Hernan Pelassini (hernan@nextive.com) 21 | 22 | */ 23 | 24 | /** 25 | 26 | Implement this protocol to allow for seamless serialization of objects to the supported formats (JSON, binary, etc.) 27 | 28 | */ 29 | 30 | 31 | @protocol NXSerializable 32 | /** 33 | Return any valid object for serialization *except* an object that conforms to this protocol. 34 | If you want a `nil`, return `[NSNull null]` 35 | */ 36 | -(id)serialize; 37 | @end 38 | -------------------------------------------------------------------------------- /Client/Externals/ProtocolBuffers/Classes/AbstractMessage.h: -------------------------------------------------------------------------------- 1 | // Copyright 2008 Cyrus Najmabadi 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | #import "Message.h" 16 | 17 | /** 18 | * A partial implementation of the {@link Message} interface which implements 19 | * as many methods of that interface as possible in terms of other methods. 20 | * 21 | * @author Cyrus Najmabadi 22 | */ 23 | @interface PBAbstractMessage : NSObject { 24 | @private 25 | } 26 | 27 | @end 28 | -------------------------------------------------------------------------------- /Client/Externals/ProtocolBuffers/Classes/AbstractMessage_Builder.h: -------------------------------------------------------------------------------- 1 | // Copyright 2008 Cyrus Najmabadi 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | #import "Message_Builder.h" 16 | 17 | /** 18 | * A partial implementation of the {@link Message.Builder} interface which 19 | * implements as many methods of that interface as possible in terms of 20 | * other methods. 21 | */ 22 | @interface PBAbstractMessage_Builder : NSObject { 23 | } 24 | 25 | @end 26 | -------------------------------------------------------------------------------- /Client/Externals/ProtocolBuffers/Classes/Bootstrap.h: -------------------------------------------------------------------------------- 1 | // Copyright 2008 Cyrus Najmabadi 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | #import "ForwardDeclarations.h" 16 | 17 | #import "CodedInputStream.h" 18 | #import "CodedOutputStream.h" 19 | #import "ExtendableMessage.h" 20 | #import "ExtendableMessage_Builder.h" 21 | #import "ExtensionRegistry.h" 22 | #import "GeneratedMessage.h" 23 | #import "GeneratedMessage_Builder.h" 24 | #import "Message_Builder.h" 25 | #import "UnknownFieldSet.h" 26 | #import "UnknownFieldSet_Builder.h" 27 | #import "Utilities.h" 28 | -------------------------------------------------------------------------------- /Client/Externals/ProtocolBuffers/Classes/ExtensionField.h: -------------------------------------------------------------------------------- 1 | // Copyright 2008 Cyrus Najmabadi 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | #import "WireFormat.h" 16 | 17 | @protocol PBExtensionField 18 | - (int32_t) fieldNumber; 19 | - (PBWireFormat) wireType; 20 | - (BOOL) isRepeated; 21 | - (Class) extendedClass; 22 | - (id) defaultValue; 23 | 24 | - (void) mergeFromCodedInputStream:(PBCodedInputStream*) input 25 | unknownFields:(PBUnknownFieldSet_Builder*) unknownFields 26 | extensionRegistry:(PBExtensionRegistry*) extensionRegistry 27 | builder:(PBExtendableMessage_Builder*) builder 28 | tag:(int32_t) tag; 29 | - (void) writeValue:(id) value includingTagToCodedOutputStream:(PBCodedOutputStream*) output; 30 | - (int32_t) computeSerializedSizeIncludingTag:(id) value; 31 | @end 32 | -------------------------------------------------------------------------------- /Client/Externals/ProtocolBuffers/Classes/ExtensionRegistry.m: -------------------------------------------------------------------------------- 1 | // Copyright 2008 Cyrus Najmabadi 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | #import "ExtensionRegistry.h" 16 | 17 | @interface PBExtensionRegistry() 18 | @property (retain) NSDictionary* classMap; 19 | @end 20 | 21 | @implementation PBExtensionRegistry 22 | 23 | @synthesize classMap; 24 | 25 | - (void) dealloc { 26 | self.classMap = nil; 27 | [super dealloc]; 28 | } 29 | 30 | static PBExtensionRegistry* emptyRegistry = nil; 31 | 32 | + (void) initialize { 33 | if (self == [PBExtensionRegistry class]) { 34 | emptyRegistry = [[PBExtensionRegistry alloc] initWithClassMap:[NSDictionary dictionary]]; 35 | } 36 | } 37 | 38 | 39 | - (id) initWithClassMap:(NSDictionary*) map_{ 40 | if ((self = [super init])) { 41 | self.classMap = map_; 42 | } 43 | 44 | return self; 45 | } 46 | 47 | 48 | - (id) keyForClass:(Class) clazz { 49 | return NSStringFromClass(clazz); 50 | } 51 | 52 | 53 | + (PBExtensionRegistry*) emptyRegistry { 54 | return emptyRegistry; 55 | } 56 | 57 | 58 | - (id) getExtension:(Class) clazz fieldNumber:(NSInteger) fieldNumber { 59 | NSDictionary* extensionMap = [classMap objectForKey:[self keyForClass:clazz]]; 60 | return [extensionMap objectForKey:[NSNumber numberWithInteger:fieldNumber]]; 61 | } 62 | 63 | @end 64 | -------------------------------------------------------------------------------- /Client/Externals/ProtocolBuffers/Classes/Field.h: -------------------------------------------------------------------------------- 1 | // Copyright 2008 Cyrus Najmabadi 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | @interface PBField : NSObject { 16 | @protected 17 | NSMutableArray* mutableVarintList; 18 | NSMutableArray* mutableFixed32List; 19 | NSMutableArray* mutableFixed64List; 20 | NSMutableArray* mutableLengthDelimitedList; 21 | NSMutableArray* mutableGroupList; 22 | } 23 | 24 | - (NSArray*) varintList; 25 | - (NSArray*) fixed32List; 26 | - (NSArray*) fixed64List; 27 | - (NSArray*) lengthDelimitedList; 28 | - (NSArray*) groupList; 29 | 30 | + (PBField*) defaultInstance; 31 | 32 | - (void) writeTo:(int32_t) fieldNumber 33 | output:(PBCodedOutputStream*) output; 34 | 35 | - (int32_t) getSerializedSize:(int32_t) fieldNumber; 36 | - (void) writeAsMessageSetExtensionTo:(int32_t) fieldNumber 37 | output:(PBCodedOutputStream*) output; 38 | - (int32_t) getSerializedSizeAsMessageSetExtension:(int32_t) fieldNumber; 39 | 40 | @end 41 | -------------------------------------------------------------------------------- /Client/Externals/ProtocolBuffers/Classes/ForwardDeclarations.h: -------------------------------------------------------------------------------- 1 | // Copyright 2008 Cyrus Najmabadi 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | @protocol PBMessage; 16 | @protocol PBMessage_Builder; 17 | @protocol PBExtensionField; 18 | 19 | @class PBAbstractMessage; 20 | @class PBCodedInputStream; 21 | @class PBCodedOutputStream; 22 | @class PBConcreteExtensionField; 23 | @class PBExtendableMessage_Builder; 24 | @class PBExtendableMessage; 25 | @class PBExtensionRegistry; 26 | @class PBField; 27 | @class PBGeneratedMessage; 28 | @class PBGeneratedMessage_Builder; 29 | @class PBMutableExtensionRegistry; 30 | @class PBMutableField; 31 | @class PBUnknownFieldSet; 32 | @class PBUnknownFieldSet_Builder; 33 | -------------------------------------------------------------------------------- /Client/Externals/ProtocolBuffers/Classes/GeneratedMessage.h: -------------------------------------------------------------------------------- 1 | // Copyright 2008 Cyrus Najmabadi 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | #import "AbstractMessage.h" 16 | 17 | /** 18 | * All generated protocol message classes extend this class. This class 19 | * implements most of the Message and Builder interfaces using Java reflection. 20 | * Users can ignore this class and pretend that generated messages implement 21 | * the Message interface directly. 22 | * 23 | * @author Cyrus Najmabadi 24 | */ 25 | @interface PBGeneratedMessage : PBAbstractMessage { 26 | @private 27 | PBUnknownFieldSet* unknownFields; 28 | 29 | @protected 30 | int32_t memoizedSerializedSize; 31 | } 32 | 33 | @end 34 | -------------------------------------------------------------------------------- /Client/Externals/ProtocolBuffers/Classes/GeneratedMessage.m: -------------------------------------------------------------------------------- 1 | // Copyright 2008 Cyrus Najmabadi 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | #import "GeneratedMessage.h" 16 | 17 | #import "UnknownFieldSet.h" 18 | 19 | @interface PBGeneratedMessage () 20 | @property (retain) PBUnknownFieldSet* unknownFields; 21 | @end 22 | 23 | 24 | @implementation PBGeneratedMessage 25 | 26 | @synthesize unknownFields; 27 | 28 | - (void) dealloc { 29 | self.unknownFields = nil; 30 | [super dealloc]; 31 | } 32 | 33 | 34 | - (id) init { 35 | if ((self = [super init])) { 36 | self.unknownFields = [PBUnknownFieldSet defaultInstance]; 37 | memoizedSerializedSize = -1; 38 | } 39 | 40 | return self; 41 | } 42 | 43 | @end 44 | -------------------------------------------------------------------------------- /Client/Externals/ProtocolBuffers/Classes/GeneratedMessage_Builder.h: -------------------------------------------------------------------------------- 1 | // Copyright 2008 Cyrus Najmabadi 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | #import "AbstractMessage_Builder.h" 16 | 17 | @interface PBGeneratedMessage_Builder : PBAbstractMessage_Builder { 18 | } 19 | 20 | /* @protected */ 21 | - (BOOL) parseUnknownField:(PBCodedInputStream*) input 22 | unknownFields:(PBUnknownFieldSet_Builder*) unknownFields 23 | extensionRegistry:(PBExtensionRegistry*) extensionRegistry 24 | tag:(int32_t) tag; 25 | 26 | - (void) checkInitialized; 27 | 28 | @end 29 | -------------------------------------------------------------------------------- /Client/Externals/ProtocolBuffers/Classes/Main.m: -------------------------------------------------------------------------------- 1 | // Copyright 2008 Cyrus Najmabadi 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | #import "UnknownFieldSetTest.h" 16 | #import "WireFormatTests.h" 17 | 18 | int main (int argc, const char * argv[]) { 19 | NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]; 20 | // insert code here... 21 | NSLog(@"Hello, World!"); 22 | 23 | WireFormatTests* tests = [[[WireFormatTests alloc] init] autorelease]; 24 | [tests testParsePackedExtensions]; 25 | 26 | [pool drain]; 27 | return 0; 28 | } 29 | -------------------------------------------------------------------------------- /Client/Externals/ProtocolBuffers/Classes/MutableExtensionRegistry.h: -------------------------------------------------------------------------------- 1 | // Copyright 2008 Cyrus Najmabadi 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | #import "ExtensionRegistry.h" 16 | 17 | @interface PBMutableExtensionRegistry : PBExtensionRegistry { 18 | @private 19 | NSMutableDictionary* mutableClassMap; 20 | } 21 | 22 | + (PBMutableExtensionRegistry*) registry; 23 | 24 | - (void) addExtension:(id) extension; 25 | 26 | @end 27 | -------------------------------------------------------------------------------- /Client/Externals/ProtocolBuffers/Classes/MutableField.h: -------------------------------------------------------------------------------- 1 | // Copyright 2008 Cyrus Najmabadi 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | #import "Field.h" 16 | 17 | @interface PBMutableField : PBField { 18 | } 19 | 20 | + (PBMutableField*) field; 21 | 22 | - (PBMutableField*) mergeFromField:(PBField*) other; 23 | 24 | - (PBMutableField*) clear; 25 | - (PBMutableField*) mergeFromField:(PBField*) other; 26 | - (PBMutableField*) addVarint:(int64_t) value; 27 | - (PBMutableField*) addFixed32:(int32_t) value; 28 | - (PBMutableField*) addFixed64:(int64_t) value; 29 | - (PBMutableField*) addLengthDelimited:(NSData*) value; 30 | - (PBMutableField*) addGroup:(PBUnknownFieldSet*) value; 31 | 32 | @end 33 | -------------------------------------------------------------------------------- /Client/Externals/ProtocolBuffers/Classes/ProtocolBuffers.h: -------------------------------------------------------------------------------- 1 | // Copyright 2008 Cyrus Najmabadi 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | #import "Bootstrap.h" 16 | 17 | #import "AbstractMessage.h" 18 | #import "AbstractMessage_Builder.h" 19 | #import "CodedInputStream.h" 20 | #import "CodedOutputStream.h" 21 | #import "ConcreteExtensionField.h" 22 | #import "ExtendableMessage.h" 23 | #import "ExtendableMessage_Builder.h" 24 | #import "ExtensionField.h" 25 | #import "ExtensionRegistry.h" 26 | #import "Field.h" 27 | #import "GeneratedMessage.h" 28 | #import "GeneratedMessage_Builder.h" 29 | #import "Message.h" 30 | #import "Message_Builder.h" 31 | #import "MutableExtensionRegistry.h" 32 | #import "MutableField.h" 33 | #import "UnknownFieldSet.h" 34 | #import "UnknownFieldSet_Builder.h" 35 | #import "Utilities.h" 36 | #import "WireFormat.h" 37 | -------------------------------------------------------------------------------- /Client/Externals/ProtocolBuffers/Classes/TextFormat.h: -------------------------------------------------------------------------------- 1 | // Copyright 2008 Cyrus Najmabadi 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | @interface PBTextFormat : NSObject { 16 | 17 | } 18 | 19 | + (int32_t) parseInt32:(NSString*) text; 20 | + (int32_t) parseUInt32:(NSString*) text; 21 | + (int64_t) parseInt64:(NSString*) text; 22 | + (int64_t) parseUInt64:(NSString*) text; 23 | 24 | + (NSData*) unescapeBytes:(NSString*) input; 25 | 26 | @end 27 | -------------------------------------------------------------------------------- /Client/Externals/ProtocolBuffers/Classes/UnknownFieldSet.h: -------------------------------------------------------------------------------- 1 | // Copyright 2008 Cyrus Najmabadi 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | @interface PBUnknownFieldSet : NSObject { 16 | @private 17 | NSDictionary* fields; 18 | } 19 | 20 | @property (readonly, retain) NSDictionary* fields; 21 | 22 | + (PBUnknownFieldSet*) defaultInstance; 23 | 24 | + (PBUnknownFieldSet*) setWithFields:(NSMutableDictionary*) fields; 25 | + (PBUnknownFieldSet*) parseFromData:(NSData*) data; 26 | 27 | + (PBUnknownFieldSet_Builder*) builder; 28 | + (PBUnknownFieldSet_Builder*) builderWithUnknownFields:(PBUnknownFieldSet*) other; 29 | 30 | - (void) writeAsMessageSetTo:(PBCodedOutputStream*) output; 31 | - (void) writeToCodedOutputStream:(PBCodedOutputStream*) output; 32 | - (NSData*) data; 33 | 34 | - (int32_t) serializedSize; 35 | - (int32_t) serializedSizeAsMessageSet; 36 | 37 | - (BOOL) hasField:(int32_t) number; 38 | - (PBField*) getField:(int32_t) number; 39 | 40 | @end 41 | -------------------------------------------------------------------------------- /Client/Externals/ProtocolBuffers/Classes/UnknownFieldSet_Builder.h: -------------------------------------------------------------------------------- 1 | // Copyright 2008 Cyrus Najmabadi 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | @interface PBUnknownFieldSet_Builder : NSObject { 16 | @private 17 | NSMutableDictionary* fields; 18 | 19 | // Optimization: We keep around a builder for the last field that was 20 | // modified so that we can efficiently add to it multiple times in a 21 | // row (important when parsing an unknown repeated field). 22 | int32_t lastFieldNumber; 23 | 24 | PBMutableField* lastField; 25 | } 26 | 27 | + (PBUnknownFieldSet_Builder*) newBuilder:(PBUnknownFieldSet*) unknownFields; 28 | 29 | - (PBUnknownFieldSet*) build; 30 | - (PBUnknownFieldSet_Builder*) mergeUnknownFields:(PBUnknownFieldSet*) other; 31 | 32 | - (PBUnknownFieldSet_Builder*) mergeFromCodedInputStream:(PBCodedInputStream*) input; 33 | - (PBUnknownFieldSet_Builder*) mergeFromData:(NSData*) data; 34 | - (PBUnknownFieldSet_Builder*) mergeFromInputStream:(NSInputStream*) input; 35 | 36 | - (PBUnknownFieldSet_Builder*) mergeVarintField:(int32_t) number value:(int32_t) value; 37 | 38 | - (BOOL) mergeFieldFrom:(int32_t) tag input:(PBCodedInputStream*) input; 39 | 40 | - (PBUnknownFieldSet_Builder*) addField:(PBField*) field forNumber:(int32_t) number; 41 | 42 | - (PBUnknownFieldSet_Builder*) clear; 43 | - (PBUnknownFieldSet_Builder*) mergeField:(PBField*) field forNumber:(int32_t) number; 44 | 45 | @end 46 | -------------------------------------------------------------------------------- /Client/Externals/ProtocolBuffers/Classes/Utilities.h: -------------------------------------------------------------------------------- 1 | // Copyright 2008 Cyrus Najmabadi 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | int64_t convertFloat64ToInt64(Float64 f); 16 | int32_t convertFloat32ToInt32(Float32 f); 17 | Float64 convertInt64ToFloat64(int64_t f); 18 | Float32 convertInt32ToFloat32(int32_t f); 19 | 20 | uint64_t convertInt64ToUInt64(int64_t i); 21 | int64_t convertUInt64ToInt64(uint64_t u); 22 | uint32_t convertInt32ToUInt32(int32_t i); 23 | int64_t convertUInt32ToInt32(uint32_t u); 24 | 25 | int32_t logicalRightShift32(int32_t value, int32_t spaces); 26 | int64_t logicalRightShift64(int64_t value, int32_t spaces); 27 | -------------------------------------------------------------------------------- /Client/Externals/ProtocolBuffers/Classes/WireFormat.h: -------------------------------------------------------------------------------- 1 | // Copyright 2008 Cyrus Najmabadi 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | typedef enum { 16 | PBWireFormatVarint = 0, 17 | PBWireFormatFixed64 = 1, 18 | PBWireFormatLengthDelimited = 2, 19 | PBWireFormatStartGroup = 3, 20 | PBWireFormatEndGroup = 4, 21 | PBWireFormatFixed32 = 5, 22 | 23 | PBWireFormatTagTypeBits = 3, 24 | PBWireFormatTagTypeMask = 7 /* = (1 << PBWireFormatTagTypeBits) - 1*/, 25 | 26 | PBWireFormatMessageSetItem = 1, 27 | PBWireFormatMessageSetTypeId = 2, 28 | PBWireFormatMessageSetMessage = 3 29 | } PBWireFormat; 30 | 31 | int32_t PBWireFormatMakeTag(int32_t fieldNumber, int32_t wireType); 32 | int32_t PBWireFormatGetTagWireType(int32_t tag); 33 | int32_t PBWireFormatGetTagFieldNumber(int32_t tag); 34 | 35 | #define PBWireFormatMessageSetItemTag (PBWireFormatMakeTag(PBWireFormatMessageSetItem, PBWireFormatStartGroup)) 36 | #define PBWireFormatMessageSetItemEndTag (PBWireFormatMakeTag(PBWireFormatMessageSetItem, PBWireFormatEndGroup)) 37 | #define PBWireFormatMessageSetTypeIdTag (PBWireFormatMakeTag(PBWireFormatMessageSetTypeId, PBWireFormatVarint)) 38 | #define PBWireFormatMessageSetMessageTag (PBWireFormatMakeTag(PBWireFormatMessageSetMessage, PBWireFormatLengthDelimited)) 39 | -------------------------------------------------------------------------------- /Client/Externals/ProtocolBuffers/Classes/WireFormat.m: -------------------------------------------------------------------------------- 1 | // Copyright 2008 Cyrus Najmabadi 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | #import "WireFormat.h" 16 | 17 | #import "Utilities.h" 18 | 19 | int32_t PBWireFormatMakeTag(int32_t fieldNumber, int32_t wireType) { 20 | return (fieldNumber << PBWireFormatTagTypeBits) | wireType; 21 | } 22 | 23 | 24 | int32_t PBWireFormatGetTagWireType(int32_t tag) { 25 | return tag & PBWireFormatTagTypeMask; 26 | } 27 | 28 | 29 | int32_t PBWireFormatGetTagFieldNumber(int32_t tag) { 30 | return logicalRightShift32(tag, PBWireFormatTagTypeBits); 31 | } 32 | -------------------------------------------------------------------------------- /Client/Externals/ProtocolBuffers/ProtocolBuffers-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleDisplayName 8 | ${PRODUCT_NAME} 9 | CFBundleExecutable 10 | ${EXECUTABLE_NAME} 11 | CFBundleIconFile 12 | 13 | CFBundleIdentifier 14 | org.metasyntactic.${PRODUCT_NAME:rfc1034identifier} 15 | CFBundleInfoDictionaryVersion 16 | 6.0 17 | CFBundleName 18 | ${PRODUCT_NAME} 19 | CFBundlePackageType 20 | APPL 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | 1.0 25 | LSRequiresIPhoneOS 26 | 27 | NSMainNibFile 28 | MainWindow 29 | 30 | 31 | -------------------------------------------------------------------------------- /Client/Externals/ProtocolBuffers/ProtocolBuffers_Prefix.pch: -------------------------------------------------------------------------------- 1 | // 2 | // Prefix header for all source files of the 'ProtocolBuffersLibrary' target in the 'ProtocolBuffersLibrary' project 3 | // 4 | 5 | #ifdef __OBJC__ 6 | #import 7 | #import "Bootstrap.h" 8 | #endif 9 | -------------------------------------------------------------------------------- /Client/Externals/ProtocolBuffers/Tests/CodedInputStreamTests.h: -------------------------------------------------------------------------------- 1 | // Copyright 2008 Cyrus Najmabadi 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | #import 16 | 17 | @interface CodedInputStreamTests : SenTestCase { 18 | 19 | } 20 | 21 | @end 22 | -------------------------------------------------------------------------------- /Client/Externals/ProtocolBuffers/Tests/CodedOuputStreamTests.h: -------------------------------------------------------------------------------- 1 | // Copyright 2008 Cyrus Najmabadi 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | #import 16 | 17 | @interface CodedOutputStreamTests : SenTestCase { 18 | 19 | } 20 | 21 | @end 22 | -------------------------------------------------------------------------------- /Client/Externals/ProtocolBuffers/Tests/CoreTests.h: -------------------------------------------------------------------------------- 1 | // Copyright 2008 Cyrus Najmabadi 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | #import 16 | 17 | @interface CoreTests : SenTestCase { 18 | 19 | } 20 | 21 | @end 22 | -------------------------------------------------------------------------------- /Client/Externals/ProtocolBuffers/Tests/CoreTests.m: -------------------------------------------------------------------------------- 1 | // Copyright 2008 Cyrus Najmabadi 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | #import "CoreTests.h" 16 | 17 | @implementation CoreTests 18 | 19 | - (void) testTypeSizes { 20 | STAssertEquals(4, (int)sizeof(int), nil); 21 | STAssertEquals(4, (int)sizeof(long), nil); 22 | STAssertEquals(8, (int)sizeof(long long), nil); 23 | STAssertEquals(4, (int)sizeof(int32_t), nil); 24 | STAssertEquals(8, (int)sizeof(int64_t), nil); 25 | STAssertEquals(4, (int)sizeof(Float32), nil); 26 | STAssertEquals(8, (int)sizeof(Float64), nil); 27 | STAssertEquals(0, !!0, nil); 28 | STAssertEquals(1, !!1, nil); 29 | STAssertEquals(1, !!2, nil); 30 | } 31 | 32 | @end 33 | -------------------------------------------------------------------------------- /Client/Externals/ProtocolBuffers/Tests/GeneratedMessageTests.h: -------------------------------------------------------------------------------- 1 | // Copyright 2008 Cyrus Najmabadi 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | #import 16 | 17 | 18 | @interface GeneratedMessageTests : SenTestCase { 19 | 20 | } 21 | 22 | @end 23 | -------------------------------------------------------------------------------- /Client/Externals/ProtocolBuffers/Tests/MessageTests.h: -------------------------------------------------------------------------------- 1 | // Copyright 2008 Cyrus Najmabadi 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | #import 16 | 17 | @interface MessageTests : SenTestCase { 18 | 19 | } 20 | 21 | @end 22 | -------------------------------------------------------------------------------- /Client/Externals/ProtocolBuffers/Tests/MicroTest.h: -------------------------------------------------------------------------------- 1 | // Copyright 2008 Cyrus Najmabadi 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | #import 16 | 17 | 18 | @interface MicroTest : SenTestCase { 19 | 20 | } 21 | 22 | @end 23 | -------------------------------------------------------------------------------- /Client/Externals/ProtocolBuffers/Tests/MicroTest.m: -------------------------------------------------------------------------------- 1 | // Copyright 2008 Cyrus Najmabadi 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | #import "MicroTest.h" 16 | 17 | 18 | @implementation MicroTest 19 | 20 | - (void)testIntegers { 21 | STAssertNil(nil, @"nil should be nil"); 22 | STAssertEquals(2, 2, @"2 should equal 2"); 23 | } 24 | 25 | @end 26 | -------------------------------------------------------------------------------- /Client/Externals/ProtocolBuffers/Tests/SmallBlockInputStream.h: -------------------------------------------------------------------------------- 1 | // Copyright 2008 Cyrus Najmabadi 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | @interface SmallBlockInputStream : NSInputStream { 16 | NSInputStream* underlyingStream; 17 | int32_t blockSize; 18 | } 19 | 20 | @property (retain) NSInputStream* underlyingStream; 21 | 22 | + (SmallBlockInputStream*) streamWithData:(NSData*) data blockSize:(int32_t) blockSize; 23 | 24 | @end 25 | -------------------------------------------------------------------------------- /Client/Externals/ProtocolBuffers/Tests/UnknownFieldSetTest.h: -------------------------------------------------------------------------------- 1 | // Copyright 2008 Cyrus Najmabadi 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | #import 16 | 17 | @class PBUnknownFieldSet; 18 | @class TestAllTypes; 19 | @class TestEmptyMessage; 20 | 21 | @interface UnknownFieldSetTest : SenTestCase { 22 | TestAllTypes* allFields; 23 | NSData* allFieldsData; 24 | 25 | // An empty message that has been parsed from allFieldsData. So, it has 26 | // unknown fields of every type. 27 | TestEmptyMessage* emptyMessage; 28 | PBUnknownFieldSet* unknownFields; 29 | } 30 | 31 | @property (retain) TestAllTypes* allFields; 32 | @property (retain) NSData* allFieldsData; 33 | 34 | // An empty message that has been parsed from allFieldsData. So, it has 35 | // unknown fields of every type. 36 | @property (retain) TestEmptyMessage* emptyMessage; 37 | @property (retain) PBUnknownFieldSet* unknownFields; 38 | 39 | @end 40 | -------------------------------------------------------------------------------- /Client/Externals/ProtocolBuffers/Tests/UtilitiesTests.h: -------------------------------------------------------------------------------- 1 | // Copyright 2008 Cyrus Najmabadi 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | #import 16 | 17 | @interface UtilitiesTests : SenTestCase { 18 | 19 | } 20 | 21 | @end 22 | -------------------------------------------------------------------------------- /Client/Externals/ProtocolBuffers/Tests/UtilitiesTests.m: -------------------------------------------------------------------------------- 1 | // Copyright 2008 Cyrus Najmabadi 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | #import "UtilitiesTests.h" 16 | 17 | #import "Utilities.h" 18 | 19 | @implementation UtilitiesTests 20 | 21 | - (void) testRightShiftFunctions { 22 | STAssertEquals((1UL << 31) >> 31, 1UL, nil); 23 | STAssertEquals((1 << 31) >> 31, -1, nil); 24 | STAssertEquals((1ULL << 63) >> 63, 1ULL, nil); 25 | STAssertEquals((1LL << 63) >> 63, -1LL, nil); 26 | 27 | STAssertEquals(logicalRightShift32((1 << 31), 31), 1, nil); 28 | STAssertEquals(logicalRightShift64((1LL << 63), 63), 1LL, nil); 29 | } 30 | 31 | @end 32 | -------------------------------------------------------------------------------- /Client/Externals/ProtocolBuffers/Tests/WireFormatTests.h: -------------------------------------------------------------------------------- 1 | // Copyright 2008 Cyrus Najmabadi 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | #import 16 | 17 | 18 | @interface WireFormatTests : SenTestCase { 19 | 20 | } 21 | 22 | @end 23 | -------------------------------------------------------------------------------- /Client/Externals/ProtocolBuffers/UnitTests-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | com.yourcompany.${PRODUCT_NAME:identifier} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundlePackageType 14 | BNDL 15 | CFBundleSignature 16 | ???? 17 | CFBundleVersion 18 | 1.0 19 | 20 | 21 | -------------------------------------------------------------------------------- /Client/Externals/ProtocolBuffers/golden_message: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akosma/iPhoneWebServicesClient/177053fa90151c2479c125654e780b3a3d713a24/Client/Externals/ProtocolBuffers/golden_message -------------------------------------------------------------------------------- /Client/Externals/ProtocolBuffers/golden_packed_fields_message: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akosma/iPhoneWebServicesClient/177053fa90151c2479c125654e780b3a3d713a24/Client/Externals/ProtocolBuffers/golden_packed_fields_message -------------------------------------------------------------------------------- /Client/Externals/TinyXML/tinystr.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akosma/iPhoneWebServicesClient/177053fa90151c2479c125654e780b3a3d713a24/Client/Externals/TinyXML/tinystr.cpp -------------------------------------------------------------------------------- /Client/Externals/TouchJSON/Extensions/CDataScanner_Extensions.h: -------------------------------------------------------------------------------- 1 | // 2 | // CDataScanner_Extensions.h 3 | // TouchCode 4 | // 5 | // Created by Jonathan Wight on 12/08/2005. 6 | // Copyright 2005 toxicsoftware.com. All rights reserved. 7 | // 8 | // Permission is hereby granted, free of charge, to any person 9 | // obtaining a copy of this software and associated documentation 10 | // files (the "Software"), to deal in the Software without 11 | // restriction, including without limitation the rights to use, 12 | // copy, modify, merge, publish, distribute, sublicense, and/or sell 13 | // copies of the Software, and to permit persons to whom the 14 | // Software is furnished to do so, subject to the following 15 | // conditions: 16 | // 17 | // The above copyright notice and this permission notice shall be 18 | // included in all copies or substantial portions of the Software. 19 | // 20 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 21 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 22 | // OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 23 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 24 | // HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 25 | // WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 27 | // OTHER DEALINGS IN THE SOFTWARE. 28 | // 29 | 30 | #import "CDataScanner.h" 31 | 32 | @interface CDataScanner (CDataScanner_Extensions) 33 | 34 | - (BOOL)scanCStyleComment:(NSString **)outComment; 35 | - (BOOL)scanCPlusPlusStyleComment:(NSString **)outComment; 36 | 37 | @end 38 | -------------------------------------------------------------------------------- /Client/Externals/TouchJSON/Extensions/NSCharacterSet_Extensions.h: -------------------------------------------------------------------------------- 1 | // 2 | // NSCharacterSet_Extensions.h 3 | // TouchCode 4 | // 5 | // Created by Jonathan Wight on 12/08/2005. 6 | // Copyright 2005 toxicsoftware.com. All rights reserved. 7 | // 8 | // Permission is hereby granted, free of charge, to any person 9 | // obtaining a copy of this software and associated documentation 10 | // files (the "Software"), to deal in the Software without 11 | // restriction, including without limitation the rights to use, 12 | // copy, modify, merge, publish, distribute, sublicense, and/or sell 13 | // copies of the Software, and to permit persons to whom the 14 | // Software is furnished to do so, subject to the following 15 | // conditions: 16 | // 17 | // The above copyright notice and this permission notice shall be 18 | // included in all copies or substantial portions of the Software. 19 | // 20 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 21 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 22 | // OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 23 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 24 | // HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 25 | // WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 27 | // OTHER DEALINGS IN THE SOFTWARE. 28 | // 29 | 30 | #import 31 | 32 | @interface NSCharacterSet (NSCharacterSet_Extensions) 33 | 34 | + (NSCharacterSet *)linebreaksCharacterSet; 35 | 36 | @end 37 | -------------------------------------------------------------------------------- /Client/Externals/TouchJSON/Extensions/NSDictionary_JSONExtensions.h: -------------------------------------------------------------------------------- 1 | // 2 | // NSDictionary_JSONExtensions.h 3 | // TouchCode 4 | // 5 | // Created by Jonathan Wight on 04/17/08. 6 | // Copyright 2008 toxicsoftware.com. All rights reserved. 7 | // 8 | // Permission is hereby granted, free of charge, to any person 9 | // obtaining a copy of this software and associated documentation 10 | // files (the "Software"), to deal in the Software without 11 | // restriction, including without limitation the rights to use, 12 | // copy, modify, merge, publish, distribute, sublicense, and/or sell 13 | // copies of the Software, and to permit persons to whom the 14 | // Software is furnished to do so, subject to the following 15 | // conditions: 16 | // 17 | // The above copyright notice and this permission notice shall be 18 | // included in all copies or substantial portions of the Software. 19 | // 20 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 21 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 22 | // OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 23 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 24 | // HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 25 | // WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 27 | // OTHER DEALINGS IN THE SOFTWARE. 28 | // 29 | 30 | #import 31 | 32 | @interface NSDictionary (NSDictionary_JSONExtensions) 33 | 34 | + (id)dictionaryWithJSONData:(NSData *)inData error:(NSError **)outError; 35 | 36 | @end 37 | -------------------------------------------------------------------------------- /Client/Externals/TouchJSON/Extensions/NSDictionary_JSONExtensions.m: -------------------------------------------------------------------------------- 1 | // 2 | // NSDictionary_JSONExtensions.m 3 | // TouchCode 4 | // 5 | // Created by Jonathan Wight on 04/17/08. 6 | // Copyright 2008 toxicsoftware.com. All rights reserved. 7 | // 8 | // Permission is hereby granted, free of charge, to any person 9 | // obtaining a copy of this software and associated documentation 10 | // files (the "Software"), to deal in the Software without 11 | // restriction, including without limitation the rights to use, 12 | // copy, modify, merge, publish, distribute, sublicense, and/or sell 13 | // copies of the Software, and to permit persons to whom the 14 | // Software is furnished to do so, subject to the following 15 | // conditions: 16 | // 17 | // The above copyright notice and this permission notice shall be 18 | // included in all copies or substantial portions of the Software. 19 | // 20 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 21 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 22 | // OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 23 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 24 | // HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 25 | // WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 27 | // OTHER DEALINGS IN THE SOFTWARE. 28 | // 29 | 30 | #import "NSDictionary_JSONExtensions.h" 31 | 32 | #import "CJSONDeserializer.h" 33 | 34 | @implementation NSDictionary (NSDictionary_JSONExtensions) 35 | 36 | + (id)dictionaryWithJSONData:(NSData *)inData error:(NSError **)outError 37 | { 38 | return([[CJSONDeserializer deserializer] deserialize:inData error:outError]); 39 | } 40 | 41 | @end 42 | -------------------------------------------------------------------------------- /Client/Externals/TouchJSON/Extensions/NSScanner_Extensions.h: -------------------------------------------------------------------------------- 1 | // 2 | // NSScanner_Extensions.h 3 | // TouchCode 4 | // 5 | // Created by Jonathan Wight on 12/08/2005. 6 | // Copyright 2005 toxicsoftware.com. All rights reserved. 7 | // 8 | // Permission is hereby granted, free of charge, to any person 9 | // obtaining a copy of this software and associated documentation 10 | // files (the "Software"), to deal in the Software without 11 | // restriction, including without limitation the rights to use, 12 | // copy, modify, merge, publish, distribute, sublicense, and/or sell 13 | // copies of the Software, and to permit persons to whom the 14 | // Software is furnished to do so, subject to the following 15 | // conditions: 16 | // 17 | // The above copyright notice and this permission notice shall be 18 | // included in all copies or substantial portions of the Software. 19 | // 20 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 21 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 22 | // OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 23 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 24 | // HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 25 | // WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 27 | // OTHER DEALINGS IN THE SOFTWARE. 28 | // 29 | 30 | #import 31 | 32 | @interface NSScanner (NSScanner_Extensions) 33 | 34 | - (NSString *)remainingString; 35 | 36 | - (unichar)currentCharacter; 37 | - (unichar)scanCharacter; 38 | - (BOOL)scanCharacter:(unichar)inCharacter; 39 | - (void)backtrack:(unsigned)inCount; 40 | 41 | - (BOOL)scanCStyleComment:(NSString **)outComment; 42 | - (BOOL)scanCPlusPlusStyleComment:(NSString **)outComment; 43 | 44 | @end 45 | -------------------------------------------------------------------------------- /Client/Externals/TouchJSON/JSON/CJSONDeserializer.h: -------------------------------------------------------------------------------- 1 | // 2 | // CJSONDeserializer.h 3 | // TouchCode 4 | // 5 | // Created by Jonathan Wight on 12/15/2005. 6 | // Copyright 2005 toxicsoftware.com. All rights reserved. 7 | // 8 | // Permission is hereby granted, free of charge, to any person 9 | // obtaining a copy of this software and associated documentation 10 | // files (the "Software"), to deal in the Software without 11 | // restriction, including without limitation the rights to use, 12 | // copy, modify, merge, publish, distribute, sublicense, and/or sell 13 | // copies of the Software, and to permit persons to whom the 14 | // Software is furnished to do so, subject to the following 15 | // conditions: 16 | // 17 | // The above copyright notice and this permission notice shall be 18 | // included in all copies or substantial portions of the Software. 19 | // 20 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 21 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 22 | // OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 23 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 24 | // HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 25 | // WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 27 | // OTHER DEALINGS IN THE SOFTWARE. 28 | // 29 | 30 | #import 31 | 32 | extern NSString *const kJSONDeserializerErrorDomain /* = @"CJSONDeserializerErrorDomain" */; 33 | 34 | @interface CJSONDeserializer : NSObject { 35 | 36 | } 37 | 38 | + (id)deserializer; 39 | 40 | - (id)deserialize:(NSData *)inData error:(NSError **)outError; 41 | 42 | - (id)deserializeAsDictionary:(NSData *)inData error:(NSError **)outError; 43 | - (id)deserializeAsArray:(NSData *)inData error:(NSError **)outError; 44 | 45 | @end 46 | -------------------------------------------------------------------------------- /Client/Externals/TouchJSON/JSON/CSerializedJSONData.h: -------------------------------------------------------------------------------- 1 | // 2 | // CSerializedJSONData.h 3 | // TouchCode 4 | // 5 | // Created by Jonathan Wight on 10/23/09. 6 | // Copyright 2009 toxicsoftware.com. All rights reserved. 7 | // 8 | // Permission is hereby granted, free of charge, to any person 9 | // obtaining a copy of this software and associated documentation 10 | // files (the "Software"), to deal in the Software without 11 | // restriction, including without limitation the rights to use, 12 | // copy, modify, merge, publish, distribute, sublicense, and/or sell 13 | // copies of the Software, and to permit persons to whom the 14 | // Software is furnished to do so, subject to the following 15 | // conditions: 16 | // 17 | // The above copyright notice and this permission notice shall be 18 | // included in all copies or substantial portions of the Software. 19 | // 20 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 21 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 22 | // OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 23 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 24 | // HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 25 | // WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 27 | // OTHER DEALINGS IN THE SOFTWARE. 28 | // 29 | 30 | #import 31 | 32 | @interface CSerializedJSONData : NSObject { 33 | NSData *data; 34 | } 35 | 36 | @property (readonly, nonatomic, retain) NSData *data; 37 | 38 | - (id)initWithData:(NSData *)inData; 39 | 40 | @end 41 | -------------------------------------------------------------------------------- /Client/Externals/TouchJSON/JSON/CSerializedJSONData.m: -------------------------------------------------------------------------------- 1 | // 2 | // CSerializedJSONData.m 3 | // TouchCode 4 | // 5 | // Created by Jonathan Wight on 10/23/09. 6 | // Copyright 2009 toxicsoftware.com. All rights reserved. 7 | // 8 | // Permission is hereby granted, free of charge, to any person 9 | // obtaining a copy of this software and associated documentation 10 | // files (the "Software"), to deal in the Software without 11 | // restriction, including without limitation the rights to use, 12 | // copy, modify, merge, publish, distribute, sublicense, and/or sell 13 | // copies of the Software, and to permit persons to whom the 14 | // Software is furnished to do so, subject to the following 15 | // conditions: 16 | // 17 | // The above copyright notice and this permission notice shall be 18 | // included in all copies or substantial portions of the Software. 19 | // 20 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 21 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 22 | // OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 23 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 24 | // HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 25 | // WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 27 | // OTHER DEALINGS IN THE SOFTWARE. 28 | // 29 | 30 | #import "CSerializedJSONData.h" 31 | 32 | @implementation CSerializedJSONData 33 | 34 | @synthesize data; 35 | 36 | - (id)initWithData:(NSData *)inData; 37 | { 38 | if ((self = [self init]) != NULL) 39 | { 40 | data = inData; 41 | } 42 | return(self); 43 | } 44 | 45 | - (void)dealloc 46 | { 47 | [data release]; 48 | data = NULL; 49 | // 50 | [super dealloc]; 51 | } 52 | 53 | 54 | @end 55 | -------------------------------------------------------------------------------- /Client/Externals/TouchXML/CXMLDocument_PrivateExtensions.h: -------------------------------------------------------------------------------- 1 | // 2 | // CXMLDocument_PrivateExtensions.h 3 | // TouchCode 4 | // 5 | // Created by Jonathan Wight on 03/07/08. 6 | // Copyright 2008 toxicsoftware.com. All rights reserved. 7 | // 8 | // Permission is hereby granted, free of charge, to any person 9 | // obtaining a copy of this software and associated documentation 10 | // files (the "Software"), to deal in the Software without 11 | // restriction, including without limitation the rights to use, 12 | // copy, modify, merge, publish, distribute, sublicense, and/or sell 13 | // copies of the Software, and to permit persons to whom the 14 | // Software is furnished to do so, subject to the following 15 | // conditions: 16 | // 17 | // The above copyright notice and this permission notice shall be 18 | // included in all copies or substantial portions of the Software. 19 | // 20 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 21 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 22 | // OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 23 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 24 | // HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 25 | // WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 27 | // OTHER DEALINGS IN THE SOFTWARE. 28 | // 29 | 30 | #import "CXMLDocument.h" 31 | 32 | #include 33 | 34 | @interface CXMLDocument (CXMLDocument_PrivateExtensions) 35 | 36 | //- (id)initWithLibXmlParserContext:(xmlParserCtxtPtr)inContext options:(NSUInteger)inOptions error:(NSError **)outError; 37 | 38 | - (NSMutableSet *)nodePool; 39 | 40 | @end 41 | -------------------------------------------------------------------------------- /Client/Externals/TouchXML/CXMLDocument_PrivateExtensions.m: -------------------------------------------------------------------------------- 1 | // 2 | // CXMLDocument_PrivateExtensions.m 3 | // TouchCode 4 | // 5 | // Created by Jonathan Wight on 03/07/08. 6 | // Copyright 2008 toxicsoftware.com. All rights reserved. 7 | // 8 | // Permission is hereby granted, free of charge, to any person 9 | // obtaining a copy of this software and associated documentation 10 | // files (the "Software"), to deal in the Software without 11 | // restriction, including without limitation the rights to use, 12 | // copy, modify, merge, publish, distribute, sublicense, and/or sell 13 | // copies of the Software, and to permit persons to whom the 14 | // Software is furnished to do so, subject to the following 15 | // conditions: 16 | // 17 | // The above copyright notice and this permission notice shall be 18 | // included in all copies or substantial portions of the Software. 19 | // 20 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 21 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 22 | // OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 23 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 24 | // HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 25 | // WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 27 | // OTHER DEALINGS IN THE SOFTWARE. 28 | // 29 | 30 | #import "CXMLDocument_PrivateExtensions.h" 31 | 32 | @implementation CXMLDocument (CXMLDocument_PrivateExtensions) 33 | 34 | /* 35 | - (id)initWithLibXmlParserContext:(xmlParserCtxtPtr)inContext options:(NSUInteger)inOptions error:(NSError **)outError 36 | { 37 | 38 | xmlParseDocument(inContext); 39 | 40 | } 41 | */ 42 | 43 | - (NSMutableSet *)nodePool 44 | { 45 | if (nodePool == NULL) 46 | { 47 | nodePool = [[NSMutableSet alloc] init]; 48 | } 49 | return(nodePool); 50 | } 51 | 52 | 53 | @end 54 | -------------------------------------------------------------------------------- /Client/Externals/TouchXML/CXMLElement_CreationExtensions.h: -------------------------------------------------------------------------------- 1 | // 2 | // CXMLElement_CreationExtensions.h 3 | // TouchCode 4 | // 5 | // Created by Jonathan Wight on 04/01/08. 6 | // Copyright 2008 toxicsoftware.com. All rights reserved. 7 | // 8 | // Permission is hereby granted, free of charge, to any person 9 | // obtaining a copy of this software and associated documentation 10 | // files (the "Software"), to deal in the Software without 11 | // restriction, including without limitation the rights to use, 12 | // copy, modify, merge, publish, distribute, sublicense, and/or sell 13 | // copies of the Software, and to permit persons to whom the 14 | // Software is furnished to do so, subject to the following 15 | // conditions: 16 | // 17 | // The above copyright notice and this permission notice shall be 18 | // included in all copies or substantial portions of the Software. 19 | // 20 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 21 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 22 | // OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 23 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 24 | // HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 25 | // WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 27 | // OTHER DEALINGS IN THE SOFTWARE. 28 | // 29 | 30 | #import "CXMLElement.h" 31 | 32 | @interface CXMLElement (CXMLElement_CreationExtensions) 33 | 34 | - (void)addChild:(CXMLNode *)inNode; 35 | 36 | - (void)addNamespace:(CXMLNode *)inNamespace; 37 | 38 | @end 39 | -------------------------------------------------------------------------------- /Client/Externals/TouchXML/CXMLElement_ElementTreeExtensions.h: -------------------------------------------------------------------------------- 1 | // 2 | // CXMLElement_ElementTreeExtensions.h 3 | // TouchCode 4 | // 5 | // Created by Jonathan Wight on 11/14/08. 6 | // Copyright 2008 toxicsoftware.com. All rights reserved. 7 | // 8 | // Permission is hereby granted, free of charge, to any person 9 | // obtaining a copy of this software and associated documentation 10 | // files (the "Software"), to deal in the Software without 11 | // restriction, including without limitation the rights to use, 12 | // copy, modify, merge, publish, distribute, sublicense, and/or sell 13 | // copies of the Software, and to permit persons to whom the 14 | // Software is furnished to do so, subject to the following 15 | // conditions: 16 | // 17 | // The above copyright notice and this permission notice shall be 18 | // included in all copies or substantial portions of the Software. 19 | // 20 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 21 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 22 | // OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 23 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 24 | // HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 25 | // WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 27 | // OTHER DEALINGS IN THE SOFTWARE. 28 | // 29 | 30 | #import "CXMLElement.h" 31 | 32 | 33 | @interface CXMLElement (CXMLElement_ElementTreeExtensions) 34 | 35 | - (CXMLElement *)subelement:(NSString *)inName; 36 | 37 | @end 38 | -------------------------------------------------------------------------------- /Client/Externals/TouchXML/CXMLElement_ElementTreeExtensions.m: -------------------------------------------------------------------------------- 1 | // 2 | // CXMLElement_ElementTreeExtensions.m 3 | // TouchCode 4 | // 5 | // Created by Jonathan Wight on 11/14/08. 6 | // Copyright 2008 toxicsoftware.com. All rights reserved. 7 | // 8 | // Permission is hereby granted, free of charge, to any person 9 | // obtaining a copy of this software and associated documentation 10 | // files (the "Software"), to deal in the Software without 11 | // restriction, including without limitation the rights to use, 12 | // copy, modify, merge, publish, distribute, sublicense, and/or sell 13 | // copies of the Software, and to permit persons to whom the 14 | // Software is furnished to do so, subject to the following 15 | // conditions: 16 | // 17 | // The above copyright notice and this permission notice shall be 18 | // included in all copies or substantial portions of the Software. 19 | // 20 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 21 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 22 | // OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 23 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 24 | // HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 25 | // WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 27 | // OTHER DEALINGS IN THE SOFTWARE. 28 | // 29 | 30 | #import "CXMLElement_ElementTreeExtensions.h" 31 | 32 | #import "CXMLElement_CreationExtensions.h" 33 | #import "CXMLNode_CreationExtensions.h" 34 | 35 | @implementation CXMLElement (CXMLElement_ElementTreeExtensions) 36 | 37 | - (CXMLElement *)subelement:(NSString *)inName; 38 | { 39 | CXMLElement *theSubelement = [CXMLNode elementWithName:inName]; 40 | [self addChild:theSubelement]; 41 | return(theSubelement); 42 | } 43 | 44 | @end 45 | -------------------------------------------------------------------------------- /Client/Externals/TouchXML/CXMLNode_PrivateExtensions.h: -------------------------------------------------------------------------------- 1 | // 2 | // CXMLNode_PrivateExtensions.h 3 | // TouchCode 4 | // 5 | // Created by Jonathan Wight on 03/07/08. 6 | // Copyright 2008 toxicsoftware.com. All rights reserved. 7 | // 8 | // Permission is hereby granted, free of charge, to any person 9 | // obtaining a copy of this software and associated documentation 10 | // files (the "Software"), to deal in the Software without 11 | // restriction, including without limitation the rights to use, 12 | // copy, modify, merge, publish, distribute, sublicense, and/or sell 13 | // copies of the Software, and to permit persons to whom the 14 | // Software is furnished to do so, subject to the following 15 | // conditions: 16 | // 17 | // The above copyright notice and this permission notice shall be 18 | // included in all copies or substantial portions of the Software. 19 | // 20 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 21 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 22 | // OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 23 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 24 | // HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 25 | // WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 27 | // OTHER DEALINGS IN THE SOFTWARE. 28 | // 29 | 30 | #import "CXMLNode.h" 31 | 32 | @interface CXMLNode (CXMLNode_PrivateExtensions) 33 | 34 | @property (readonly, nonatomic, assign) xmlNodePtr node; 35 | 36 | - (id)initWithLibXMLNode:(xmlNodePtr)inLibXMLNode; 37 | 38 | + (id)nodeWithLibXMLNode:(xmlNodePtr)inLibXMLNode; 39 | 40 | @end 41 | -------------------------------------------------------------------------------- /Client/Externals/TouchXML/CXMLNode_XPathExtensions.h: -------------------------------------------------------------------------------- 1 | // 2 | // CXMLNode_XPathExtensions.h 3 | // TouchCode 4 | // 5 | // Created by Jonathan Wight on 04/01/08. 6 | // Copyright 2008 toxicsoftware.com. All rights reserved. 7 | // 8 | // Permission is hereby granted, free of charge, to any person 9 | // obtaining a copy of this software and associated documentation 10 | // files (the "Software"), to deal in the Software without 11 | // restriction, including without limitation the rights to use, 12 | // copy, modify, merge, publish, distribute, sublicense, and/or sell 13 | // copies of the Software, and to permit persons to whom the 14 | // Software is furnished to do so, subject to the following 15 | // conditions: 16 | // 17 | // The above copyright notice and this permission notice shall be 18 | // included in all copies or substantial portions of the Software. 19 | // 20 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 21 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 22 | // OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 23 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 24 | // HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 25 | // WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 27 | // OTHER DEALINGS IN THE SOFTWARE. 28 | // 29 | 30 | #import "CXMLNode.h" 31 | 32 | @interface CXMLNode (CXMLNode_XPathExtensions) 33 | 34 | - (NSArray *)nodesForXPath:(NSString *)xpath namespaceMappings:(NSDictionary *)inNamespaceMappings error:(NSError **)error; 35 | 36 | @end 37 | -------------------------------------------------------------------------------- /Client/Externals/TouchXML/TouchXML.h: -------------------------------------------------------------------------------- 1 | // 2 | // TouchXML.h 3 | // TouchCode 4 | // 5 | // Created by Jonathan Wight on 07/11/08. 6 | // Copyright 2008 toxicsoftware.com. All rights reserved. 7 | // 8 | // Permission is hereby granted, free of charge, to any person 9 | // obtaining a copy of this software and associated documentation 10 | // files (the "Software"), to deal in the Software without 11 | // restriction, including without limitation the rights to use, 12 | // copy, modify, merge, publish, distribute, sublicense, and/or sell 13 | // copies of the Software, and to permit persons to whom the 14 | // Software is furnished to do so, subject to the following 15 | // conditions: 16 | // 17 | // The above copyright notice and this permission notice shall be 18 | // included in all copies or substantial portions of the Software. 19 | // 20 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 21 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 22 | // OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 23 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 24 | // HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 25 | // WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 27 | // OTHER DEALINGS IN THE SOFTWARE. 28 | // 29 | 30 | #import "CXMLDocument.h" 31 | #import "CXMLDocument_CreationExtensions.h" 32 | #import "CXMLElement.h" 33 | #import "CXMLElement_CreationExtensions.h" 34 | #import "CXMLElement_ElementTreeExtensions.h" 35 | #import "CXMLNode.h" 36 | #import "CXMLNode_CreationExtensions.h" 37 | #import "CXMLNode_XPathExtensions.h" 38 | -------------------------------------------------------------------------------- /Client/Externals/YAJLiOS/YAJLiOS.framework/Headers: -------------------------------------------------------------------------------- 1 | Versions/Current/Headers -------------------------------------------------------------------------------- /Client/Externals/YAJLiOS/YAJLiOS.framework/Resources: -------------------------------------------------------------------------------- 1 | Versions/Current/Resources -------------------------------------------------------------------------------- /Client/Externals/YAJLiOS/YAJLiOS.framework/Versions/A/Headers/yajl_version.h: -------------------------------------------------------------------------------- 1 | #ifndef YAJL_VERSION_H_ 2 | #define YAJL_VERSION_H_ 3 | 4 | #include "yajl_common.h" 5 | 6 | #define YAJL_MAJOR 1 7 | #define YAJL_MINOR 0 8 | #define YAJL_MICRO 11 9 | 10 | #define YAJL_VERSION ((YAJL_MAJOR * 10000) + (YAJL_MINOR * 100) + YAJL_MICRO) 11 | 12 | #ifdef __cplusplus 13 | extern "C" { 14 | #endif 15 | 16 | extern int YAJL_API yajl_version(void); 17 | 18 | #ifdef __cplusplus 19 | } 20 | #endif 21 | 22 | #endif /* YAJL_VERSION_H_ */ 23 | 24 | -------------------------------------------------------------------------------- /Client/Externals/YAJLiOS/YAJLiOS.framework/Versions/A/Resources/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleIdentifier 8 | me.rel.yajl 9 | CFBundleInfoDictionaryVersion 10 | 6.0 11 | CFBundlePackageType 12 | FMWK 13 | CFBundleSignature 14 | ???? 15 | CFBundleVersion 16 | $(YAJL_VERSION) 17 | 18 | 19 | -------------------------------------------------------------------------------- /Client/Externals/YAJLiOS/YAJLiOS.framework/Versions/A/YAJLiOS: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akosma/iPhoneWebServicesClient/177053fa90151c2479c125654e780b3a3d713a24/Client/Externals/YAJLiOS/YAJLiOS.framework/Versions/A/YAJLiOS -------------------------------------------------------------------------------- /Client/Externals/YAJLiOS/YAJLiOS.framework/Versions/Current: -------------------------------------------------------------------------------- 1 | A -------------------------------------------------------------------------------- /Client/Externals/YAJLiOS/YAJLiOS.framework/YAJLiOS: -------------------------------------------------------------------------------- 1 | Versions/Current/YAJLiOS -------------------------------------------------------------------------------- /Client/Externals/YAML2/YAML.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | id yaml_parse(NSString *str); 4 | 5 | @interface NSObject (PublicYAMLAdditions) 6 | // -toYAML and +fromYAML are the methods you will need to override for your classes 7 | // overide -toYAML to return a NSArray, NSDictionary, NSString or NSNumber 8 | - (id)toYAML; 9 | // overide +fromYAML to read the same back in 10 | // [MyClass fromYAML:[me toYAML]] should give a copy of me 11 | + (id)fromYAML:(id)data; 12 | 13 | // -yamlData is a sibling of -toYAML 14 | // it wraps up the -toYAML data in a wrapper that also contains the Class 15 | - (id)yamlData; 16 | // -yamlParse is the opposite of -yamlData 17 | // it will decode the wrapped up data of -yamlData 18 | // [[me yamlData] yamlParse] should give a copy of me 19 | - (id)yamlParse; 20 | 21 | // yamlDescription provides the actual yaml text that you can write out to a file 22 | - (NSString*)yamlDescription; 23 | @end -------------------------------------------------------------------------------- /Client/Externals/YAML2/YAMLCategories.h: -------------------------------------------------------------------------------- 1 | // 2 | // YAMLCategories.h 3 | // YAML 4 | // 5 | // Created by William Thimbleby on Sat Sep 25 2004. 6 | // Copyright (c) 2004 William Thimbleby. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface YAMLWrapper : NSObject 12 | { 13 | Class tag; 14 | id data; 15 | } 16 | + (id)wrapperWithData:(id)d tag:(Class)cn; 17 | - (id)initWrapperWithData:(id)d tag:(Class)cn; 18 | - (id)data; 19 | - (Class)tag; 20 | @end 21 | 22 | @interface NSString (YAMLAdditions) 23 | 24 | + (id)stringWithUTF8String:(const char *)bytes length:(unsigned)length; 25 | -(int) indent; 26 | -(NSString*) indented:(int)indent; 27 | -(NSString*) trim; 28 | -(NSString*) firstWord; 29 | -(id) logicalValue; 30 | -(NSString*)yamlDescriptionWithIndent:(int)indent; 31 | 32 | @end 33 | 34 | @interface NSArray (YAMLAdditions) 35 | -(NSString*) yamlDescriptionWithIndent:(int)indent; 36 | - (id)firstObject; 37 | - (NSArray*)collectWithSelector:(SEL)aSelector withObject:(id)anObject; 38 | - (NSArray*)collectWithSelector:(SEL)aSelector; 39 | @end 40 | 41 | @interface NSDictionary (YAMLAdditions) 42 | -(NSString*) yamlDescriptionWithIndent:(int)indent; 43 | - (NSDictionary*)collectWithSelector:(SEL)aSelector withObject:(id)anObject; 44 | - (NSDictionary*)collectWithSelector:(SEL)aSelector; 45 | @end 46 | 47 | @interface NSObject (YAMLAdditions) 48 | -(id) toYAML; 49 | -(NSString*) yamlDescription; 50 | -(NSString*) yamlDescriptionWithIndent:(int)indent; 51 | - (void)performSelector:(SEL)sel withEachObjectInArray:(NSArray *)array; 52 | - (void)performSelector:(SEL)sel withEachObjectInSet:(NSSet *)set; 53 | @end 54 | -------------------------------------------------------------------------------- /Client/Externals/YAML2/YAMLCocoaCategories.h: -------------------------------------------------------------------------------- 1 | // 2 | // YAMLCocoaCategories.h 3 | // YAML 4 | // 5 | // Created by Will on 29/09/2004. 6 | // Copyright 2004 __MyCompanyName__. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | //@interface NSColor (YAMLCocoaAdditions) 12 | //+(id) objectWithYAML:(id)data; 13 | //-(id) toYAML; 14 | //@end 15 | 16 | //@interface NSAffineTransform (YAMLCocoaAdditions) 17 | //+(id) objectWithYAML:(id)data; 18 | //-(id) toYAML; 19 | //@end 20 | 21 | //@interface NSValue (YAMLCocoaAdditions) 22 | //+(id) objectWithYAML:(id)data; 23 | //-(id) toYAML; 24 | //@end 25 | 26 | @interface NSNumber (YAMLCocoaAdditions) 27 | +(id) objectWithYAML:(id)data; 28 | -(id) toYAML; 29 | @end 30 | 31 | //@interface NSPrinter (YAMLCocoaAdditions) 32 | //+(id) objectWithYAML:(id)data; 33 | //-(id) toYAML; 34 | //@end 35 | 36 | @interface NSData (YAMLCocoaAdditions) 37 | +(id) objectWithYAML:(id)data; 38 | -(id) toYAML; 39 | @end 40 | -------------------------------------------------------------------------------- /Client/Externals/arashpayan-apxml/APAttribute.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 2009, Arash Payan (http://arashpayan.com) 3 | This library is distributed under the terms of the GNU Lesser GPL. 4 | 5 | This file is part of APXML. 6 | 7 | APXML is free software: you can redistribute it and/or modify 8 | it under the terms of the GNU Lesser General Public License as published by 9 | the Free Software Foundation, either version 3 of the License, or 10 | (at your option) any later version. 11 | 12 | APXML is distributed in the hope that it will be useful, 13 | but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | GNU Lesser General Public License for more details. 16 | 17 | You should have received a copy of the GNU Lesser General Public License 18 | along with APXML. If not, see . 19 | */ 20 | 21 | #import 22 | 23 | 24 | @interface APAttribute : NSObject { 25 | NSString *name; 26 | NSString *value; 27 | } 28 | 29 | + (id)attributeWithName:(NSString*)aName value:(NSString*)aValue; 30 | - (id)initWithName:(NSString*)aName value:(NSString*)aValue; 31 | 32 | @property (readonly) NSString *name; 33 | @property (readonly) NSString *value; 34 | 35 | @end 36 | -------------------------------------------------------------------------------- /Client/Externals/arashpayan-apxml/APAttribute.m: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 2009, Arash Payan (http://arashpayan.com) 3 | This library is distributed under the terms of the GNU Lesser GPL. 4 | 5 | This file is part of APXML. 6 | 7 | APXML is free software: you can redistribute it and/or modify 8 | it under the terms of the GNU Lesser General Public License as published by 9 | the Free Software Foundation, either version 3 of the License, or 10 | (at your option) any later version. 11 | 12 | APXML is distributed in the hope that it will be useful, 13 | but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | GNU Lesser General Public License for more details. 16 | 17 | You should have received a copy of the GNU Lesser General Public License 18 | along with APXML. If not, see . 19 | */ 20 | 21 | #import "APAttribute.h" 22 | 23 | 24 | @implementation APAttribute 25 | 26 | @synthesize name; 27 | @synthesize value; 28 | 29 | /* 30 | Returns an APAttribute with the specified name and value. 31 | */ 32 | + (id)attributeWithName:(NSString*)aName value:(NSString*)aValue { 33 | return [[[APAttribute alloc] initWithName:aName value:aValue] autorelease]; 34 | } 35 | 36 | /* 37 | Initializes the receiver with a specified name and value 38 | */ 39 | - (id)initWithName:(NSString*)aName value:(NSString*)aValue { 40 | if (self = [super init]) 41 | { 42 | name = [[NSString alloc] initWithString:aName]; 43 | value = [[NSString alloc] initWithString:aValue]; 44 | } 45 | 46 | return self; 47 | } 48 | 49 | - (void)dealloc { 50 | [name release]; 51 | [value release]; 52 | 53 | [super dealloc]; 54 | } 55 | 56 | @end 57 | -------------------------------------------------------------------------------- /Client/Externals/arashpayan-apxml/APDocument.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 2009, Arash Payan (http://arashpayan.com) 3 | This library is distributed under the terms of the GNU Lesser GPL. 4 | 5 | This file is part of APXML. 6 | 7 | APXML is free software: you can redistribute it and/or modify 8 | it under the terms of the GNU Lesser General Public License as published by 9 | the Free Software Foundation, either version 3 of the License, or 10 | (at your option) any later version. 11 | 12 | APXML is distributed in the hope that it will be useful, 13 | but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | GNU Lesser General Public License for more details. 16 | 17 | You should have received a copy of the GNU Lesser General Public License 18 | along with APXML. If not, see . 19 | */ 20 | 21 | #import 22 | @class APElement; 23 | 24 | 25 | @interface APDocument : NSObject { 26 | APElement *rootElement; 27 | } 28 | 29 | + (id)documentWithXMLString:(NSString*)anXMLString; 30 | - (id)initWithRootElement:(APElement*)aRootElement; 31 | - (id)initWithString:(NSString*)anXMLString; 32 | - (APElement*)rootElement; 33 | - (NSString*)prettyXML; 34 | - (NSString*)xml; 35 | 36 | @end 37 | -------------------------------------------------------------------------------- /Client/Externals/arashpayan-apxml/APXML.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 2009, Arash Payan (http://arashpayan.com) 3 | This library is distributed under the terms of the GNU Lesser GPL. 4 | 5 | This file is part of APXML. 6 | 7 | APXML is free software: you can redistribute it and/or modify 8 | it under the terms of the GNU Lesser General Public License as published by 9 | the Free Software Foundation, either version 3 of the License, or 10 | (at your option) any later version. 11 | 12 | APXML is distributed in the hope that it will be useful, 13 | but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | GNU Lesser General Public License for more details. 16 | 17 | You should have received a copy of the GNU Lesser General Public License 18 | along with APXML. If not, see . 19 | */ 20 | 21 | #import "APDocument.h" 22 | #import "APElement.h" 23 | #import "APAttribute.h" 24 | -------------------------------------------------------------------------------- /Client/Externals/bsjsonadditions/BSJSONEncoder.h: -------------------------------------------------------------------------------- 1 | // 2 | // BSJSONEncoder.h 3 | // BSJSONAdditions 4 | // 5 | 6 | #import 7 | 8 | @interface BSJSONEncoder : NSObject 9 | + (NSString *)jsonStringForValue:(id)value withIndentLevel:(NSInteger)level; 10 | @end 11 | -------------------------------------------------------------------------------- /Client/Externals/bsjsonadditions/BSJSONEncoder.m: -------------------------------------------------------------------------------- 1 | // 2 | // BSJSONEncoder.m 3 | // BSJSONAdditions 4 | // 5 | 6 | #import "BSJSONEncoder.h" 7 | #import "NSArray+BSJSONAdditions.h" 8 | #import "NSDictionary+BSJSONAdditions.h" 9 | #import "NSScanner+BSJSONAdditions.h" 10 | #import "NSString+BSJSONAdditions.h" 11 | 12 | @implementation BSJSONEncoder 13 | 14 | + (NSString *)jsonStringForValue:(id)value withIndentLevel:(NSInteger)level 15 | { 16 | NSString *jsonString; 17 | if ([value respondsToSelector:@selector(characterAtIndex:)]) { // String 18 | jsonString = [(NSString *)value jsonStringValue]; 19 | } else if ([value respondsToSelector:@selector(keyEnumerator)]) { // Dictionary 20 | jsonString = [(NSDictionary *)value jsonStringValueWithIndentLevel:(level + 1)]; 21 | } else if ([value respondsToSelector:@selector(objectAtIndex:)]) { // Array 22 | jsonString = [(NSArray *)value jsonStringValueWithIndentLevel:level]; 23 | } else if (value == [NSNull null]) { // null 24 | jsonString = jsonNullString; 25 | } else if ([value respondsToSelector:@selector(objCType)]) { // NSNumber - representing true, false, and any form of numeric 26 | NSNumber *number = (NSNumber *)value; 27 | if (((*[number objCType]) == 'c') && ([number boolValue] == YES)) { // true 28 | jsonString = jsonTrueString; 29 | } else if (((*[number objCType]) == 'c') && ([number boolValue] == NO)) { // false 30 | jsonString = jsonFalseString; 31 | } else { // attempt to handle as a decimal number - int, fractional, exponential 32 | // TODO: values converted from exponential json to dict and back to json do not format as exponential again 33 | jsonString = [[NSDecimalNumber decimalNumberWithDecimal:[number decimalValue]] stringValue]; 34 | } 35 | } else { 36 | // TODO: error condition - it's not any of the types that I know about. 37 | return nil; 38 | } 39 | 40 | return jsonString; 41 | } 42 | 43 | @end 44 | -------------------------------------------------------------------------------- /Client/Externals/bsjsonadditions/NSArray+BSJSONAdditions.h: -------------------------------------------------------------------------------- 1 | // 2 | // BSJSONAdditions 3 | // 4 | // Created by Blake Seely on 2009/03/24. 5 | // Copyright 2006 Blake Seely - http://www.blakeseely.com All rights reserved. 6 | // Permission to use this code: 7 | // 8 | // Feel free to use this code in your software, either as-is or 9 | // in a modified form. Either way, please include a credit in 10 | // your software's "About" box or similar, mentioning at least 11 | // my name (Blake Seely). 12 | // 13 | // Permission to redistribute this code: 14 | // 15 | // You can redistribute this code, as long as you keep these 16 | // comments. You can also redistribute modified versions of the 17 | // code, as long as you add comments to say that you've made 18 | // modifications (keeping these original comments too). 19 | // 20 | // If you do use or redistribute this code, an email would be 21 | // appreciated, just to let me know that people are finding my 22 | // code useful. You can reach me at blakeseely@mac.com 23 | 24 | #import 25 | 26 | #import "NSDictionary+BSJSONAdditions.h" 27 | 28 | @interface NSArray (BSJSONAdditions) 29 | 30 | + (NSArray *)arrayWithJSONString:(NSString *)jsonString; 31 | - (NSString *)jsonStringValue; 32 | - (NSString *)jsonStringValueWithIndentLevel:(NSInteger)level; 33 | 34 | @end 35 | -------------------------------------------------------------------------------- /Client/Externals/bsjsonadditions/NSDictionary+BSJSONAdditions.h: -------------------------------------------------------------------------------- 1 | // 2 | // BSJSONAdditions 3 | // 4 | // Created by Blake Seely on 2/1/06. 5 | // Copyright 2006 Blake Seely - http://www.blakeseely.com All rights reserved. 6 | // Permission to use this code: 7 | // 8 | // Feel free to use this code in your software, either as-is or 9 | // in a modified form. Either way, please include a credit in 10 | // your software's "About" box or similar, mentioning at least 11 | // my name (Blake Seely). 12 | // 13 | // Permission to redistribute this code: 14 | // 15 | // You can redistribute this code, as long as you keep these 16 | // comments. You can also redistribute modified versions of the 17 | // code, as long as you add comments to say that you've made 18 | // modifications (keeping these original comments too). 19 | // 20 | // If you do use or redistribute this code, an email would be 21 | // appreciated, just to let me know that people are finding my 22 | // code useful. You can reach me at blakeseely@mac.com 23 | 24 | #import 25 | 26 | @interface NSDictionary (BSJSONAdditions) 27 | + (NSDictionary *)dictionaryWithJSONString:(NSString *)jsonString; 28 | 29 | - (NSString *)jsonStringValue; 30 | - (NSString *)jsonStringValueWithIndentLevel:(NSInteger)level; 31 | @end 32 | -------------------------------------------------------------------------------- /Client/Externals/bsjsonadditions/NSString+BSJSONAdditions.h: -------------------------------------------------------------------------------- 1 | // 2 | // NSString+BSJSONAdditions.h 3 | // BSJSONAdditions 4 | // 5 | // Created by Blake Seely (Air) on 3/24/09. 6 | // Copyright 2009 Apple Inc.. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | 12 | @interface NSString (BSJSONAdditions) 13 | 14 | + (NSString *)jsonIndentStringForLevel:(NSInteger)level; 15 | - (NSString *)jsonStringValue; 16 | 17 | @end 18 | -------------------------------------------------------------------------------- /Client/Externals/cCSVParse/parseCSV.h: -------------------------------------------------------------------------------- 1 | /* 2 | * cCSVParse, a small CVS file parser 3 | * 4 | * © 2007-2009 Michael Stapelberg and contributors 5 | * http://michael.stapelberg.de/ 6 | * 7 | * This source code is BSD-licensed, see LICENSE for the complete license. 8 | * 9 | */ 10 | 11 | #import 12 | 13 | @interface CSVParser:NSObject { 14 | int fileHandle; 15 | int bufferSize; 16 | char delimiter; 17 | NSStringEncoding encoding; 18 | } 19 | -(id)init; 20 | -(BOOL)openFile:(NSString*)fileName; 21 | -(void)closeFile; 22 | -(char)autodetectDelimiter; 23 | -(char)delimiter; 24 | -(void)setDelimiter:(char)newDelimiter; 25 | -(void)setBufferSize:(int)newBufferSize; 26 | -(NSMutableArray*)parseFile; 27 | -(void)setEncoding:(NSStringEncoding)newEncoding; 28 | @end 29 | -------------------------------------------------------------------------------- /Client/Externals/syck/syck_st.h: -------------------------------------------------------------------------------- 1 | /* This is a public domain general purpose hash table package written by Peter Moore @ UCB. */ 2 | 3 | /* @(#) st.h 5.1 89/12/14 */ 4 | 5 | #ifndef ST_INCLUDED 6 | 7 | #define ST_INCLUDED 8 | 9 | typedef struct st_table st_table; 10 | 11 | struct st_hash_type { 12 | int (*compare)(); 13 | int (*hash)(); 14 | }; 15 | 16 | struct st_table { 17 | struct st_hash_type *type; 18 | int num_bins; 19 | int num_entries; 20 | struct st_table_entry **bins; 21 | }; 22 | 23 | #define st_is_member(table,key) st_lookup(table,key,(char **)0) 24 | 25 | enum st_retval {ST_CONTINUE, ST_STOP, ST_DELETE}; 26 | 27 | st_table *st_init_table(); 28 | st_table *st_init_table_with_size(); 29 | st_table *st_init_numtable(); 30 | st_table *st_init_numtable_with_size(); 31 | st_table *st_init_strtable(); 32 | st_table *st_init_strtable_with_size(); 33 | int st_delete(), st_delete_safe(); 34 | int st_insert(), st_lookup(); 35 | void st_foreach(), st_add_direct(), st_free_table(), st_cleanup_safe(); 36 | st_table *st_copy(); 37 | 38 | #define ST_NUMCMP ((int (*)()) 0) 39 | #define ST_NUMHASH ((int (*)()) -2) 40 | 41 | #define st_numcmp ST_NUMCMP 42 | #define st_numhash ST_NUMHASH 43 | 44 | int st_strhash(); 45 | 46 | #endif /* ST_INCLUDED */ 47 | -------------------------------------------------------------------------------- /Client/Resources/Entitlements.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | application-identifier 7 | $(AppIdentifierPrefix)$(CFBundleIdentifier) 8 | keychain-access-groups 9 | 10 | $(AppIdentifierPrefix)$(CFBundleIdentifier) 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /Client/Resources/Images/Default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akosma/iPhoneWebServicesClient/177053fa90151c2479c125654e780b3a3d713a24/Client/Resources/Images/Default.png -------------------------------------------------------------------------------- /Client/Resources/Images/Icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akosma/iPhoneWebServicesClient/177053fa90151c2479c125654e780b3a3d713a24/Client/Resources/Images/Icon.png -------------------------------------------------------------------------------- /Client/Resources/Settings.bundle/en.lproj/Root.strings: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akosma/iPhoneWebServicesClient/177053fa90151c2479c125654e780b3a3d713a24/Client/Resources/Settings.bundle/en.lproj/Root.strings -------------------------------------------------------------------------------- /Command Line/bin.plist: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akosma/iPhoneWebServicesClient/177053fa90151c2479c125654e780b3a3d713a24/Command Line/bin.plist -------------------------------------------------------------------------------- /Command Line/data.pbuf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akosma/iPhoneWebServicesClient/177053fa90151c2479c125654e780b3a3d713a24/Command Line/data.pbuf -------------------------------------------------------------------------------- /Command Line/wsdl.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | Returns a dataset 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2010, akosma software / Adrian Kosmaczewski 2 | All rights reserved. 3 | 4 | Redistribution and use in source and binary forms, with or without 5 | modification, are permitted provided that the following conditions are met: 6 | 1. Redistributions of source code must retain the above copyright 7 | notice, this list of conditions and the following disclaimer. 8 | 2. Redistributions in binary form must reproduce the above copyright 9 | notice, this list of conditions and the following disclaimer in the 10 | documentation and/or other materials provided with the distribution. 11 | 3. All advertising materials mentioning features or use of this software 12 | must display the following acknowledgement: 13 | This product includes software developed by akosma software. 14 | 4. Neither the name of the akosma software nor the 15 | names of its contributors may be used to endorse or promote products 16 | derived from this software without specific prior written permission. 17 | 18 | THIS SOFTWARE IS PROVIDED BY ADRIAN KOSMACZEWSKI ''AS IS'' AND ANY 19 | EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 20 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 21 | DISCLAIMED. IN NO EVENT SHALL ADRIAN KOSMACZEWSKI BE LIABLE FOR ANY 22 | DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 23 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 24 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 25 | ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 27 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 | -------------------------------------------------------------------------------- /Libraries/AlanQuatermain-aqtoolkit-6d25552.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akosma/iPhoneWebServicesClient/177053fa90151c2479c125654e780b3a3d713a24/Libraries/AlanQuatermain-aqtoolkit-6d25552.tar.gz -------------------------------------------------------------------------------- /Libraries/CFPropertyList-1.0.5.tgz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akosma/iPhoneWebServicesClient/177053fa90151c2479c125654e780b3a3d713a24/Libraries/CFPropertyList-1.0.5.tgz -------------------------------------------------------------------------------- /Libraries/JSON_2.2.2.dmg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akosma/iPhoneWebServicesClient/177053fa90151c2479c125654e780b3a3d713a24/Libraries/JSON_2.2.2.dmg -------------------------------------------------------------------------------- /Libraries/KissXML.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akosma/iPhoneWebServicesClient/177053fa90151c2479c125654e780b3a3d713a24/Libraries/KissXML.zip -------------------------------------------------------------------------------- /Libraries/ProtocolBuffers-2.2.0-Source.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akosma/iPhoneWebServicesClient/177053fa90151c2479c125654e780b3a3d713a24/Libraries/ProtocolBuffers-2.2.0-Source.tar.gz -------------------------------------------------------------------------------- /Libraries/TBXML-V1.3.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akosma/iPhoneWebServicesClient/177053fa90151c2479c125654e780b3a3d713a24/Libraries/TBXML-V1.3.zip -------------------------------------------------------------------------------- /Libraries/TouchJSON_1.0.7_Release.tar.bz2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akosma/iPhoneWebServicesClient/177053fa90151c2479c125654e780b3a3d713a24/Libraries/TouchJSON_1.0.7_Release.tar.bz2 -------------------------------------------------------------------------------- /Libraries/TouchXML_1.0.7_Release.tar.bz2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akosma/iPhoneWebServicesClient/177053fa90151c2479c125654e780b3a3d713a24/Libraries/TouchXML_1.0.7_Release.tar.bz2 -------------------------------------------------------------------------------- /Libraries/WSDL2ObjC-0.6.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akosma/iPhoneWebServicesClient/177053fa90151c2479c125654e780b3a3d713a24/Libraries/WSDL2ObjC-0.6.zip -------------------------------------------------------------------------------- /Libraries/YAJLiOS-0.2.26.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akosma/iPhoneWebServicesClient/177053fa90151c2479c125654e780b3a3d713a24/Libraries/YAJLiOS-0.2.26.zip -------------------------------------------------------------------------------- /Libraries/YAML2.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akosma/iPhoneWebServicesClient/177053fa90151c2479c125654e780b3a3d713a24/Libraries/YAML2.zip -------------------------------------------------------------------------------- /Libraries/arashpayan-apxml-bd72496.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akosma/iPhoneWebServicesClient/177053fa90151c2479c125654e780b3a3d713a24/Libraries/arashpayan-apxml-bd72496.tar.gz -------------------------------------------------------------------------------- /Libraries/blakeseely-bsjsonadditions.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akosma/iPhoneWebServicesClient/177053fa90151c2479c125654e780b3a3d713a24/Libraries/blakeseely-bsjsonadditions.tar.gz -------------------------------------------------------------------------------- /Libraries/cCSVParse-1.2.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akosma/iPhoneWebServicesClient/177053fa90151c2479c125654e780b3a3d713a24/Libraries/cCSVParse-1.2.tar.gz -------------------------------------------------------------------------------- /Libraries/data_generator2_1.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akosma/iPhoneWebServicesClient/177053fa90151c2479c125654e780b3a3d713a24/Libraries/data_generator2_1.zip -------------------------------------------------------------------------------- /Libraries/futuretap-InAppSettingsKit-434d5b6.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akosma/iPhoneWebServicesClient/177053fa90151c2479c125654e780b3a3d713a24/Libraries/futuretap-InAppSettingsKit-434d5b6.tar.gz -------------------------------------------------------------------------------- /Libraries/gdata-objectivec-client-1.9.1.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akosma/iPhoneWebServicesClient/177053fa90151c2479c125654e780b3a3d713a24/Libraries/gdata-objectivec-client-1.9.1.zip -------------------------------------------------------------------------------- /Libraries/johnezang-JSONKit-v1.3.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akosma/iPhoneWebServicesClient/177053fa90151c2479c125654e780b3a3d713a24/Libraries/johnezang-JSONKit-v1.3.zip -------------------------------------------------------------------------------- /Libraries/libsyck/arm_configure.sh: -------------------------------------------------------------------------------- 1 | #!/usr/local/bin/env sh 2 | 3 | # Script adapted from 4 | # http://latenitesoft.blogspot.com/2008/10/iphone-programming-tips-building-unix.html 5 | 6 | # This script builds the ARM version of the libsyck YAML parser library, and then 7 | # merges it with the i386 version generated via Fink. It requires the file 8 | # /sw/lib/libsyck.a to exist in the Fink library folder. 9 | 10 | # To use it, expand the syck-0.45.tar.gz file, copy this script inside 11 | # the new folder, and execute it. 12 | 13 | # Save binary generated by Fink 14 | mkdir -p lnsout 15 | cp /sw/lib/libsyck.a lnsout/libsyck.a.i386 16 | 17 | # Set up the environment for the ARM binary 18 | export DEVROOT=/Developer/Platforms/iPhoneOS.platform/Developer 19 | export SDKROOT=$DEVROOT/SDKs/iPhoneOS3.0.sdk 20 | U_CC=$CC 21 | U_CFLAGS=$CFLAGS 22 | U_LD=$LD 23 | U_LDFLAGS=$LDFLAGS 24 | U_CPP=$CPP 25 | U_CPPFLAGS=$CPPFLAGS 26 | export CPPFLAGS="-I$SDKROOT/usr/lib/gcc/arm-apple-darwin9/4.0.1/include/ -I$SDKROOT/usr/include/" 27 | export CFLAGS="$CPPFLAGS -arch armv6 -pipe -no-cpp-precomp -isysroot $SDKROOT" 28 | export CPP="/usr/bin/cpp $CPPFLAGS" 29 | 30 | # Configure and build 31 | ./configure CC=$DEVROOT/usr/bin/arm-apple-darwin9-gcc-4.0.1 LD=$DEVROOT/usr/bin/ld --host=arm-apple-darwin 32 | make 33 | 34 | # Move the result to a subfolder 35 | cp lib/libsyck.a lnsout/libsyck.a.arm 36 | 37 | # Create fat lib 38 | $DEVROOT/usr/bin/lipo -arch arm lnsout/libsyck.a.arm -arch i386 lnsout/libsyck.a.i386 -create -output lnsout/libsyck.a 39 | -------------------------------------------------------------------------------- /Libraries/libsyck/libsyck.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akosma/iPhoneWebServicesClient/177053fa90151c2479c125654e780b3a3d713a24/Libraries/libsyck/libsyck.a -------------------------------------------------------------------------------- /Libraries/libsyck/syck-0.45.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akosma/iPhoneWebServicesClient/177053fa90151c2479c125654e780b3a3d713a24/Libraries/libsyck/syck-0.45.tar.gz -------------------------------------------------------------------------------- /Libraries/nusoap-0.7.3.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akosma/iPhoneWebServicesClient/177053fa90151c2479c125654e780b3a3d713a24/Libraries/nusoap-0.7.3.zip -------------------------------------------------------------------------------- /Libraries/pokeb-asi-http-request-cde0e3f.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akosma/iPhoneWebServicesClient/177053fa90151c2479c125654e780b3a3d713a24/Libraries/pokeb-asi-http-request-cde0e3f.tar.gz -------------------------------------------------------------------------------- /Libraries/protocolbuf_025.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akosma/iPhoneWebServicesClient/177053fa90151c2479c125654e780b3a3d713a24/Libraries/protocolbuf_025.zip -------------------------------------------------------------------------------- /Libraries/spyc-0.4.5.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akosma/iPhoneWebServicesClient/177053fa90151c2479c125654e780b3a3d713a24/Libraries/spyc-0.4.5.zip -------------------------------------------------------------------------------- /Libraries/tinyxml_2_5_3.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akosma/iPhoneWebServicesClient/177053fa90151c2479c125654e780b3a3d713a24/Libraries/tinyxml_2_5_3.zip -------------------------------------------------------------------------------- /Results/stats.xlsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akosma/iPhoneWebServicesClient/177053fa90151c2479c125654e780b3a3d713a24/Results/stats.xlsx -------------------------------------------------------------------------------- /Server/conf/phpinfo.php: -------------------------------------------------------------------------------- 1 | 33 | -------------------------------------------------------------------------------- /Server/formatters/person.proto: -------------------------------------------------------------------------------- 1 | message Person 2 | { 3 | required int32 entryId = 1; 4 | required string firstName = 2; 5 | required string lastName = 3; 6 | required string phone = 4; 7 | required string email = 5; 8 | required string address = 6; 9 | required string city = 7; 10 | required string zip = 8; 11 | required string state = 9; 12 | required string country = 10; 13 | required string description = 11; 14 | required string password = 12; 15 | required string createdOn = 13; 16 | required string modifiedOn = 14; 17 | } 18 | 19 | message Data 20 | { 21 | repeated Person person = 1; 22 | } 23 | -------------------------------------------------------------------------------- /Server/libs/cfpropertylist/LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License 2 | 3 | Copyright (c) 2009 Christian Kruse, Rodney Rehm 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in 13 | all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | THE SOFTWARE. 22 | 23 | -------------------------------------------------------------------------------- /Server/libs/cfpropertylist/PListException.php: -------------------------------------------------------------------------------- 1 | 6 | * @author Christian Kruse 7 | * @package plist 8 | * @version $Id$ 9 | */ 10 | 11 | /** 12 | * Exception for errors with the PList format 13 | * @author Rodney Rehm 14 | * @author Christian Kruse 15 | * @package plist 16 | */ 17 | class PListException extends Exception { 18 | 19 | } 20 | 21 | 22 | ?> -------------------------------------------------------------------------------- /Server/libs/cfpropertylist/docs/blank.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | CFPropertyList 4 | 5 | 6 | 7 | 8 |

CFPropertyList

9 | Welcome to plist!
10 |
11 | This documentation was generated by phpDocumentor v1.4.1
12 | 13 | -------------------------------------------------------------------------------- /Server/libs/cfpropertylist/docs/classtrees_plist.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 |

14 | 15 |

16 |

Root class CFBinaryPropertyList

17 | 21 | 22 |

Root class CFType

23 | 27 | 28 |

Root class CFTypeDetector

29 | 31 | 32 |

Root class Exception

33 | 35 | 36 |

37 | Documentation generated on Fri, 01 Jan 2010 21:33:32 +0100 by phpDocumentor 1.4.1 38 |

39 | 40 | -------------------------------------------------------------------------------- /Server/libs/cfpropertylist/docs/errors.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | phpDocumentor Parser Errors and Warnings 7 | 8 | 9 | 10 | 11 | Post-parsing
12 | 13 |

CFTypeDetector.php

14 |

Warnings:


15 | Warning on line 13 - DocBlock would be page-level, but precedes class "CFTypeDetector", use another DocBlock to document the file
16 | 17 |

Post-parsing

18 |

Errors:


19 | Error - DocBlock has multiple @access tags, illegal. ignoring additional tag "@access public"
20 |

21 | Documentation generated on Fri, 01 Jan 2010 21:33:35 +0100 by phpDocumentor 1.4.1 22 |

23 | 24 | -------------------------------------------------------------------------------- /Server/libs/cfpropertylist/docs/index.html: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 | CFPropertyList 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | <H2>Frame Alert</H2> 20 | <P>This document is designed to be viewed using the frames feature. 21 | If you see this message, you are using a non-frame-capable web client.</P> 22 | 23 | 24 | -------------------------------------------------------------------------------- /Server/libs/cfpropertylist/docs/media/banner.css: -------------------------------------------------------------------------------- 1 | body 2 | { 3 | background-color: #CCCCFF; 4 | margin: 0px; 5 | padding: 0px; 6 | } 7 | 8 | /* Banner (top bar) classes */ 9 | 10 | .banner { } 11 | 12 | .banner-menu 13 | { 14 | clear: both; 15 | padding: .5em; 16 | border-top: 2px solid #6666AA; 17 | } 18 | 19 | .banner-title 20 | { 21 | text-align: right; 22 | font-size: 20pt; 23 | font-weight: bold; 24 | margin: .2em; 25 | } 26 | 27 | .package-selector 28 | { 29 | background-color: #AAAADD; 30 | border: 1px solid black; 31 | color: yellow; 32 | } 33 | -------------------------------------------------------------------------------- /Server/libs/cfpropertylist/docs/packages.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 26 | 27 | -------------------------------------------------------------------------------- /Server/libs/cfpropertylist/examples/example-create-02.php: -------------------------------------------------------------------------------- 1 | 1965, 31 | // Note: dates cannot be guessed, so this will become a CFNumber and be treated as an integer 32 | // See example-04.php for a possible workaround 33 | 'Date Of Graduation' => gmmktime( 19, 23, 43, 06, 22, 2004 ), 34 | 'Pets Names' => array(), 35 | // Note: data cannot be guessed, so this will become a CFString 36 | // See example-03.php for a possible workaround 37 | 'Picture' => 'PEKBpYGlmYFCPA==', 38 | 'City Of Birth' => 'Springfield', 39 | 'Name' => 'John Doe', 40 | 'Kids Names' => array( 'John', 'Kyra' ), 41 | ); 42 | 43 | $td = new CFTypeDetector(); 44 | $guessedStructure = $td->toCFType( $structure ); 45 | $plist->add( $guessedStructure ); 46 | 47 | 48 | /* 49 | * Save PList as XML 50 | */ 51 | $plist->saveXML( dirname(__FILE__).'/example-create-02.xml.plist' ); 52 | 53 | /* 54 | * Save PList as Binary 55 | */ 56 | $plist->saveBinary( dirname(__FILE__).'/example-create-02.binary.plist' ); 57 | 58 | ?> -------------------------------------------------------------------------------- /Server/libs/cfpropertylist/examples/example-create-03.php: -------------------------------------------------------------------------------- 1 | 1965, 32 | // Note: dates cannot be guessed, it thus has to be specified explicitly 33 | 'Date Of Graduation' => new CFDate( gmmktime( 19, 23, 43, 06, 22, 2004 ) ), 34 | 'Pets Names' => array(), 35 | // Note: data cannot be guessed, it thus has to be specified explicitly 36 | 'Picture' => new CFData( 'PEKBpYGlmYFCPA==', true ), 37 | 'City Of Birth' => 'Springfield', 38 | 'Name' => 'John Doe', 39 | 'Kids Names' => array( 'John', 'Kyra' ), 40 | ); 41 | 42 | $td = new CFTypeDetector(); 43 | $guessedStructure = $td->toCFType( $structure ); 44 | $plist->add( $guessedStructure ); 45 | 46 | 47 | /* 48 | * Save PList as XML 49 | */ 50 | $plist->saveXML( dirname(__FILE__).'/example-create-03.xml.plist' ); 51 | 52 | /* 53 | * Save PList as Binary 54 | */ 55 | $plist->saveBinary( dirname(__FILE__).'/example-create-03.binary.plist' ); 56 | 57 | ?> -------------------------------------------------------------------------------- /Server/libs/cfpropertylist/examples/example-read-01.php: -------------------------------------------------------------------------------- 1 | '; 30 | var_dump( $plist->toArray() ); 31 | echo ''; 32 | 33 | ?> -------------------------------------------------------------------------------- /Server/libs/cfpropertylist/examples/example-read-02.php: -------------------------------------------------------------------------------- 1 | '; 30 | var_dump( $plist->toArray() ); 31 | echo ''; 32 | 33 | $plist->saveBinary( dirname(__FILE__).'/sample.binary.plist' ); 34 | 35 | ?> -------------------------------------------------------------------------------- /Server/libs/cfpropertylist/examples/example-read-03.php: -------------------------------------------------------------------------------- 1 | '; 30 | var_dump( $plist->toArray() ); 31 | echo ''; 32 | 33 | $plist->saveBinary( dirname(__FILE__).'/sample.binary.plist' ); 34 | 35 | ?> -------------------------------------------------------------------------------- /Server/libs/cfpropertylist/examples/sample.binary.plist: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akosma/iPhoneWebServicesClient/177053fa90151c2479c125654e780b3a3d713a24/Server/libs/cfpropertylist/examples/sample.binary.plist -------------------------------------------------------------------------------- /Server/libs/cfpropertylist/examples/sample.xml.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Year Of Birth 6 | 1965 7 | 8 | Date Of Graduation 9 | 2004-06-22T19:23:43Z 10 | 11 | Pets Names 12 | 13 | 14 | Picture 15 | PEKBpYGlmYFCPA== 16 | 17 | City Of Birth 18 | Springfield 19 | 20 | Name 21 | John Doe 22 | 23 | Kids Names 24 | 25 | John 26 | Kyra 27 | 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /Server/libs/nusoap/lib/changelog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akosma/iPhoneWebServicesClient/177053fa90151c2479c125654e780b3a3d713a24/Server/libs/nusoap/lib/changelog -------------------------------------------------------------------------------- /Server/libs/nusoap/samples/getfile1client.php: -------------------------------------------------------------------------------- 1 | getError(); 20 | if ($err) { 21 | echo '

Constructor error

' . $err . '
'; 22 | } 23 | $result = $client->call('getFile', array('filename' => 'getfile1.php')); 24 | if ($client->fault) { 25 | echo '

Fault

'; print_r($result); echo '
'; 26 | } else { 27 | $err = $client->getError(); 28 | if ($err) { 29 | echo '

Error

' . $err . '
'; 30 | } else { 31 | echo '

Result

' . htmlspecialchars($result, ENT_QUOTES) . '
'; 32 | } 33 | } 34 | echo '

Request

' . htmlspecialchars($client->request, ENT_QUOTES) . '
'; 35 | echo '

Response

' . htmlspecialchars($client->response, ENT_QUOTES) . '
'; 36 | echo '

Debug

' . htmlspecialchars($client->debug_str, ENT_QUOTES) . '
'; 37 | ?> 38 | -------------------------------------------------------------------------------- /Server/libs/nusoap/samples/getfile2client.php: -------------------------------------------------------------------------------- 1 | getError(); 20 | if ($err) { 21 | echo '

Constructor error

' . $err . '
'; 22 | } 23 | $result = $client->call('getFile', array('filename' => 'getfile2.php')); 24 | if ($client->fault) { 25 | echo '

Fault

'; print_r($result); echo '
'; 26 | } else { 27 | $err = $client->getError(); 28 | if ($err) { 29 | echo '

Error

' . $err . '
'; 30 | } else { 31 | echo '

Result

' . htmlspecialchars($result, ENT_QUOTES) . '
'; 32 | } 33 | } 34 | echo '

Request

' . htmlspecialchars($client->request, ENT_QUOTES) . '
'; 35 | echo '

Response

' . htmlspecialchars($client->response, ENT_QUOTES) . '
'; 36 | echo '

Debug

' . htmlspecialchars($client->debug_str, ENT_QUOTES) . '
'; 37 | ?> 38 | -------------------------------------------------------------------------------- /Server/libs/nusoap/samples/sslclient.php: -------------------------------------------------------------------------------- 1 | getError(); 20 | if ($err) { 21 | echo '

Constructor error

' . $err . '
'; 22 | } 23 | $result = $client->call('getVersion', array(), 'http://arcweb.esri.com/v2', 'getVersion'); 24 | if ($client->fault) { 25 | echo '

Fault

'; print_r($result); echo '
'; 26 | } else { 27 | $err = $client->getError(); 28 | if ($err) { 29 | echo '

Error

' . $err . '
'; 30 | } else { 31 | echo '

Result

'; print_r($result); echo '
'; 32 | } 33 | } 34 | echo '

Request

' . htmlspecialchars($client->request, ENT_QUOTES) . '
'; 35 | echo '

Response

' . htmlspecialchars($client->response, ENT_QUOTES) . '
'; 36 | echo '

Debug

' . htmlspecialchars($client->debug_str, ENT_QUOTES) . '
'; 37 | ?> 38 | -------------------------------------------------------------------------------- /Server/libs/nusoap/samples/wsdlclient1.php: -------------------------------------------------------------------------------- 1 | getError(); 20 | if ($err) { 21 | echo '

Constructor error

' . $err . '
'; 22 | } 23 | // Doc/lit parameters get wrapped 24 | $param = array('Symbol' => 'IBM'); 25 | $result = $client->call('GetQuickQuotes', array('parameters' => $param), '', '', false, true); 26 | // Check for a fault 27 | if ($client->fault) { 28 | echo '

Fault

';
29 | 	print_r($result);
30 | 	echo '
'; 31 | } else { 32 | // Check for errors 33 | $err = $client->getError(); 34 | if ($err) { 35 | // Display the error 36 | echo '

Error

' . $err . '
'; 37 | } else { 38 | // Display the result 39 | echo '

Result

';
40 | 		print_r($result);
41 | 		echo '
'; 42 | } 43 | } 44 | echo '

Request

' . htmlspecialchars($client->request, ENT_QUOTES) . '
'; 45 | echo '

Response

' . htmlspecialchars($client->response, ENT_QUOTES) . '
'; 46 | echo '

Debug

' . htmlspecialchars($client->debug_str, ENT_QUOTES) . '
'; 47 | ?> 48 | -------------------------------------------------------------------------------- /Server/libs/nusoap/samples/wsdlclient10.php: -------------------------------------------------------------------------------- 1 | getError(); 22 | if ($err) { 23 | echo '

Constructor error

' . $err . '
'; 24 | } 25 | $client->setUseCurl($useCURL); 26 | $result = $client->call('getCountries', array(), '', '', false, true); 27 | if ($client->fault) { 28 | echo '

Fault

';
29 | 	print_r($result);
30 | 	echo '
'; 31 | } else { 32 | $err = $client->getError(); 33 | if ($err) { 34 | echo '

Error

' . $err . '
'; 35 | } else { 36 | echo '

Result

';
37 | 		print_r($result);
38 | 		echo '
'; 39 | } 40 | } 41 | echo '

Request

' . htmlspecialchars($client->request, ENT_QUOTES) . '
'; 42 | echo '

Response

' . htmlspecialchars($client->response, ENT_QUOTES) . '
'; 43 | echo '

Debug

' . htmlspecialchars($client->debug_str, ENT_QUOTES) . '
'; 44 | ?> 45 | -------------------------------------------------------------------------------- /Server/libs/nusoap/samples/wsdlclient11.php: -------------------------------------------------------------------------------- 1 | getError(); 23 | if ($err) { 24 | echo '

Constructor error

' . $err . '
'; 25 | } 26 | $client->setUseCurl($useCURL); 27 | $person = array('firstname' => 'Willi', 'age' => 22, 'gender' => 'male'); 28 | $name = array('name' => $person); 29 | $result = $client->call('hello', $name); 30 | if ($client->fault) { 31 | echo '

Fault

';
32 | 	print_r($result);
33 | 	echo '
'; 34 | } else { 35 | $err = $client->getError(); 36 | if ($err) { 37 | echo '

Error

' . $err . '
'; 38 | } else { 39 | echo '

Result

';
40 | 		print_r($result);
41 | 	echo '
'; 42 | } 43 | } 44 | echo '

Request

'; 45 | echo '
' . htmlspecialchars($client->request, ENT_QUOTES) . '
'; 46 | echo '

Response

'; 47 | echo '
' . htmlspecialchars($client->response, ENT_QUOTES) . '
'; 48 | echo '

Debug

'; 49 | echo '
' . htmlspecialchars($client->debug_str, ENT_QUOTES) . '
'; 50 | ?> 51 | -------------------------------------------------------------------------------- /Server/libs/nusoap/samples/wsdlclient3b.php: -------------------------------------------------------------------------------- 1 | getError(); 20 | if ($err) { 21 | echo '

Constructor error

' . $err . '
'; 22 | } 23 | $params = 'Willi22male'; 24 | $result = $client->call('hello', $params); 25 | // Check for a fault 26 | if ($client->fault) { 27 | echo '

Fault

';
28 | 	print_r($result);
29 | 	echo '
'; 30 | } else { 31 | // Check for errors 32 | $err = $client->getError(); 33 | if ($err) { 34 | // Display the error 35 | echo '

Error

' . $err . '
'; 36 | } else { 37 | // Display the result 38 | echo '

Result

';
39 | 		print_r($result);
40 | 		echo '
'; 41 | } 42 | } 43 | echo '

Request

' . htmlspecialchars($client->request, ENT_QUOTES) . '
'; 44 | echo '

Response

' . htmlspecialchars($client->response, ENT_QUOTES) . '
'; 45 | echo '

Debug

' . htmlspecialchars($client->debug_str, ENT_QUOTES) . '
'; 46 | ?> 47 | -------------------------------------------------------------------------------- /Server/libs/nusoap/samples/wsdlclient3c.php: -------------------------------------------------------------------------------- 1 | getError(); 20 | if ($err) { 21 | echo '

Constructor error

' . $err . '
'; 22 | } 23 | $person = array('firstname' => 'Willi', 'age' => 22, 'gender' => 'male'); 24 | $result = $client->call('hello', array('person' => $person)); 25 | // Check for a fault 26 | if ($client->fault) { 27 | echo '

Fault

';
28 | 	print_r($result);
29 | 	echo '
'; 30 | } else { 31 | // Check for errors 32 | $err = $client->getError(); 33 | if ($err) { 34 | // Display the error 35 | echo '

Error

' . $err . '
'; 36 | } else { 37 | // Display the result 38 | echo '

Result

';
39 | 		print_r($result);
40 | 		echo '
'; 41 | } 42 | } 43 | echo '

Request

' . htmlspecialchars($client->request, ENT_QUOTES) . '
'; 44 | echo '

Response

' . htmlspecialchars($client->response, ENT_QUOTES) . '
'; 45 | echo '

Debug

' . htmlspecialchars($client->debug_str, ENT_QUOTES) . '
'; 46 | ?> 47 | -------------------------------------------------------------------------------- /Server/libs/protocolbuf/example/nested_mess/nested.pb: -------------------------------------------------------------------------------- 1 | j Kreuzverhör -------------------------------------------------------------------------------- /Server/libs/protocolbuf/example/nested_mess/nested.php: -------------------------------------------------------------------------------- 1 | append_take('Kreuzverhör'); 16 | $assign->append_take('hällo'); 17 | 18 | // remove hällo 19 | $assign->set_take(0, $assign->take(1)); 20 | $assign->remove_last_take(); 21 | var_dump($assign->take_size()); 22 | var_dump($assign->take(0)); 23 | exit(); 24 | 25 | $entry->set_assign($assign); 26 | 27 | $string = $entry->SerializeToString(); 28 | 29 | file_put_contents('nested.pb', $string); 30 | 31 | //var_dump($string); 32 | 33 | // now test the reading 34 | $entry = new Entry(); 35 | $entry->parseFromString($string); 36 | 37 | var_dump($entry->assign()->take(0)); 38 | //var_dump($entry->assign()->take(1)); 39 | 40 | ?> -------------------------------------------------------------------------------- /Server/libs/protocolbuf/example/nested_mess/nested.proto: -------------------------------------------------------------------------------- 1 | message TPublic{ 2 | optional string title = 1; 3 | optional string url = 2; 4 | optional string feedurl = 3; 5 | optional string pictureurl = 4; 6 | optional string author = 5; 7 | optional string description = 6; 8 | } 9 | 10 | message RssEntry { 11 | 12 | optional int64 publisheddate = 1; 13 | optional int64 indexeddate = 2; 14 | optional int64 updateddate = 3; 15 | 16 | optional string title = 4; 17 | optional string author = 5; 18 | optional string guid = 6; 19 | optional string url = 7; 20 | optional string description = 8; 21 | optional string extractedcontent = 9; 22 | optional string html = 10; 23 | 24 | optional TPublic source = 12; 25 | 26 | } 27 | 28 | message Entry { 29 | optional RssEntry rssentry = 4; 30 | 31 | message Assign { 32 | repeated string nottake = 1; 33 | repeated string take = 2; 34 | } 35 | 36 | optional Assign assign = 13; 37 | } 38 | 39 | message SomeOtherMessage { 40 | optional Entry.Assign result = 1; 41 | } -------------------------------------------------------------------------------- /Server/libs/protocolbuf/example/nested_mess/protoc.php: -------------------------------------------------------------------------------- 1 | parse('./nested.proto'); 7 | 8 | var_dump('File parsing done!'); 9 | ?> -------------------------------------------------------------------------------- /Server/libs/protocolbuf/example/pb_proto_test_with_new_field.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Server/libs/protocolbuf/example/primitive_rep/pb_proto_primitive.php: -------------------------------------------------------------------------------- 1 | fields["2"] = "PBString"; 15 | $this->values["2"] = array(); 16 | $this->fields["3"] = "AddressBook_PhoneType"; 17 | $this->values["3"] = array(); 18 | } 19 | function person($offset) 20 | { 21 | $v = $this->_get_arr_value("2", $offset); 22 | return $v->get_value(); 23 | } 24 | function append_person($value) 25 | { 26 | $v = $this->_add_arr_value("2"); 27 | $v->set_value($value); 28 | } 29 | function person_size() 30 | { 31 | return $this->_get_arr_size("2"); 32 | } 33 | function type($offset) 34 | { 35 | $v = $this->_get_arr_value("3", $offset); 36 | return $v->get_value(); 37 | } 38 | function append_type($value) 39 | { 40 | $v = $this->_add_arr_value("3"); 41 | $v->set_value($value); 42 | } 43 | function type_size() 44 | { 45 | return $this->_get_arr_size("3"); 46 | } 47 | } 48 | ?> -------------------------------------------------------------------------------- /Server/libs/protocolbuf/example/primitive_rep/primitive.php: -------------------------------------------------------------------------------- 1 | append_person("Hello"); 14 | $book->append_person("Test"); 15 | $book->append_type(AddressBook_PhoneType::MOBILE); 16 | 17 | // in $ p now there is Hello 18 | $p = $book->person(0); 19 | var_dump($p); 20 | 21 | $string = $book->SerializeToString(); 22 | 23 | // now test the reading 24 | $book = new AddressBook(); 25 | $book->parseFromString($string); 26 | 27 | var_dump($book->person(0)); 28 | var_dump($book->person_size()); 29 | var_dump($book->person(1)); 30 | var_dump($book->type(0) == AddressBook_PhoneType::MOBILE); 31 | ?> -------------------------------------------------------------------------------- /Server/libs/protocolbuf/example/primitive_rep/primitive.proto: -------------------------------------------------------------------------------- 1 | message AddressBook { 2 | 3 | enum PhoneType { 4 | MOBILE = 0; 5 | HOME = 1; 6 | WORK = 2; 7 | } 8 | 9 | repeated String person = 2; 10 | repeated PhoneType type = 3; 11 | } -------------------------------------------------------------------------------- /Server/libs/protocolbuf/example/primitive_rep/protoc.php: -------------------------------------------------------------------------------- 1 | parse('./primitive.proto'); 7 | 8 | var_dump('File parsing done!'); 9 | ?> -------------------------------------------------------------------------------- /Server/libs/protocolbuf/example/protoc.php: -------------------------------------------------------------------------------- 1 | parse('./test.proto'); 7 | $test = new PBParser(); 8 | $test->parse('./test_new.proto'); 9 | 10 | var_dump('File parsing done!'); 11 | ?> -------------------------------------------------------------------------------- /Server/libs/protocolbuf/example/test.pb: -------------------------------------------------------------------------------- 1 | 2 | 3 | Nikolai 4 | 2 5 | Kordulla" 6 | 0711" 7 | 0171" 8 | 030* MySurname -------------------------------------------------------------------------------- /Server/libs/protocolbuf/example/test.php: -------------------------------------------------------------------------------- 1 | parseFromString($string); 17 | 18 | var_dump($book->person_size()); 19 | $person = $book->person(0); 20 | var_dump($person->name()); 21 | $person = $book->person(1); 22 | var_dump($person->name()); 23 | var_dump($person->phone(0)->number()); 24 | var_dump($person->phone(0)->type()); 25 | var_dump($person->phone(1)->number()); 26 | var_dump($person->phone(1)->type()); 27 | var_dump($person->phone(2)->number()); 28 | var_dump($person->phone(2)->type()); 29 | ?> -------------------------------------------------------------------------------- /Server/libs/protocolbuf/example/test.proto: -------------------------------------------------------------------------------- 1 | message Person 2 | { 3 | required string name = 1; 4 | required int32 id = 2; 5 | optional string email = 3; 6 | 7 | enum PhoneType { 8 | MOBILE = 0; 9 | HOME = 1; 10 | WORK = 2; 11 | } 12 | 13 | message PhoneNumber { 14 | required string number = 1; 15 | optional PhoneType type = 2 [default = HOME]; 16 | } 17 | // a simple comment 18 | repeated PhoneNumber phone = 4; 19 | } 20 | 21 | message AddressBook { 22 | repeated Person person = 1; 23 | } -------------------------------------------------------------------------------- /Server/libs/protocolbuf/example/test_new.php: -------------------------------------------------------------------------------- 1 | add_person(); 14 | $person->set_name('Nikolai'); 15 | $person = $book->add_person(); 16 | $person->set_name('Kordulla'); 17 | $person->set_surname('MySurname'); 18 | 19 | $phone_number = $person->add_phone(); 20 | $phone_number->set_number('0711'); 21 | $phone_number->set_type(Person_PhoneType::WORK); 22 | 23 | $phone_number = $person->add_phone(); 24 | $phone_number->set_number('0171'); 25 | $phone_number->set_type(Person_PhoneType::MOBILE); 26 | 27 | $phone_number = $person->add_phone(); 28 | $phone_number->set_number('030'); 29 | 30 | // serialize 31 | $string = $book->SerializeToString(); 32 | 33 | // write it to disk 34 | file_put_contents('test.pb', $string); 35 | 36 | 37 | ?> -------------------------------------------------------------------------------- /Server/libs/protocolbuf/example/test_new.proto: -------------------------------------------------------------------------------- 1 | message Person 2 | { 3 | required string name = 1; 4 | required int32 id = 2; 5 | optional string email = 3; 6 | 7 | enum PhoneType { 8 | MOBILE = 0; 9 | HOME = 1; 10 | WORK = 2; 11 | } 12 | 13 | message PhoneNumber { 14 | required string number = 1; 15 | optional PhoneType type = 2 [default = HOME]; 16 | } 17 | // a simple comment 18 | repeated PhoneNumber phone = 4; 19 | optional string surname = 5; 20 | } 21 | 22 | message AddressBook { 23 | repeated Person person = 1; 24 | } 25 | 26 | message Test { 27 | repeated string person = 2; 28 | } -------------------------------------------------------------------------------- /Server/libs/protocolbuf/message/reader/pb_input_reader.php: -------------------------------------------------------------------------------- 1 | base128 = new base128varint(1); 15 | } 16 | 17 | /** 18 | * Gets the acutal position of the point 19 | * @return int the pointer 20 | */ 21 | public function get_pointer() 22 | { 23 | return $this->pointer; 24 | } 25 | 26 | /** 27 | * Add add to the pointer 28 | * @param int $add - int to add to the pointer 29 | */ 30 | public function add_pointer($add) 31 | { 32 | $this->pointer += $add; 33 | } 34 | 35 | /** 36 | * Get the message from from to actual pointer 37 | * @param from 38 | */ 39 | public function get_message_from($from) 40 | { 41 | return substr($this->string, $from, $this->pointer - $from); 42 | } 43 | 44 | /** 45 | * Getting the next varint as decimal number 46 | * @return varint 47 | */ 48 | public abstract function next(); 49 | } 50 | ?> 51 | -------------------------------------------------------------------------------- /Server/libs/protocolbuf/message/reader/pb_input_string_reader.php: -------------------------------------------------------------------------------- 1 | string = $string; 13 | $this->length = strlen($string); 14 | } 15 | 16 | /** 17 | * get the next 18 | * @param boolean $is_string - if set to true only one byte is read 19 | */ 20 | public function next($is_string = false) 21 | { 22 | $package = ''; 23 | while (true) 24 | { 25 | if ($this->pointer >= $this->length) 26 | { 27 | return false; 28 | } 29 | 30 | $string = ''; 31 | $string = $this->string[$this->pointer]; 32 | $this->pointer++; 33 | 34 | if ($is_string == true) 35 | return ord($string); 36 | 37 | $value = decbin(ord($string)); 38 | 39 | if ($value >= 10000000 && $is_string == false) 40 | { 41 | // now fill to eight with 00 42 | $package .= $value; 43 | } 44 | else 45 | { 46 | // now fill to length of eight with 0 47 | $value = substr('00000000', 0, 8 - strlen($value) % 8) . $value; 48 | return $this->base128->get_value($package . $value); 49 | } 50 | } 51 | } 52 | } 53 | ?> 54 | -------------------------------------------------------------------------------- /Server/libs/protocolbuf/message/type/pb_bool.php: -------------------------------------------------------------------------------- 1 | value = $this->reader->next(); 17 | $this->value = ($this->value != 0) ? 1 : 0; 18 | } 19 | 20 | } 21 | ?> 22 | -------------------------------------------------------------------------------- /Server/libs/protocolbuf/message/type/pb_bytes.php: -------------------------------------------------------------------------------- 1 | value = ''; 17 | // first byte is length 18 | $length = $this->reader->next(); 19 | 20 | // just extract the string 21 | $pointer = $this->reader->get_pointer(); 22 | $this->reader->add_pointer($length); 23 | $this->value = $this->reader->get_message_from($pointer); 24 | } 25 | 26 | /** 27 | * Serializes type 28 | */ 29 | public function SerializeToString($rec = -1) 30 | { 31 | $string = ''; 32 | 33 | if ($rec > -1) 34 | { 35 | $string .= $this->base128->set_value($rec << 3 | $this->wired_type); 36 | } 37 | 38 | $string .= $this->base128->set_value(strlen($this->value)); 39 | $string .= $this->value; 40 | 41 | return $string; 42 | } 43 | } 44 | ?> 45 | -------------------------------------------------------------------------------- /Server/libs/protocolbuf/message/type/pb_enum.php: -------------------------------------------------------------------------------- 1 | value = $this->reader->next(); 17 | } 18 | 19 | /** 20 | * Serializes type 21 | */ 22 | public function SerializeToString($rec=-1) 23 | { 24 | $string = ''; 25 | 26 | if ($rec > -1) 27 | { 28 | $string .= $this->base128->set_value($rec << 3 | $this->wired_type); 29 | } 30 | 31 | $value = $this->base128->set_value($this->value); 32 | $string .= $value; 33 | 34 | return $string; 35 | } 36 | } 37 | ?> 38 | -------------------------------------------------------------------------------- /Server/libs/protocolbuf/message/type/pb_int.php: -------------------------------------------------------------------------------- 1 | value = $this->reader->next(); 17 | } 18 | 19 | /** 20 | * Serializes type 21 | */ 22 | public function SerializeToString($rec=-1) 23 | { 24 | // first byte is length byte 25 | $string = ''; 26 | 27 | if ($rec > -1) 28 | { 29 | $string .= $this->base128->set_value($rec << 3 | $this->wired_type); 30 | } 31 | 32 | $value = $this->base128->set_value($this->value); 33 | $string .= $value; 34 | 35 | return $string; 36 | } 37 | } 38 | ?> 39 | -------------------------------------------------------------------------------- /Server/libs/protocolbuf/message/type/pb_scalar.php: -------------------------------------------------------------------------------- 1 | value = $value; 13 | } 14 | 15 | /** 16 | * Get the scalar value 17 | */ 18 | public function get_value() 19 | { 20 | return $this->value; 21 | } 22 | } 23 | ?> 24 | -------------------------------------------------------------------------------- /Server/libs/protocolbuf/message/type/pb_signed_int.php: -------------------------------------------------------------------------------- 1 | value; 19 | $this->value = round($this->value / 2); 20 | if ($saved % 2 == 1) 21 | { 22 | $this->value = -($this->value); 23 | } 24 | } 25 | 26 | /** 27 | * Serializes type 28 | */ 29 | public function SerializeToString($rec=-1) 30 | { 31 | // now convert signed int to int 32 | $save = $this->value; 33 | if ($this->value < 0) 34 | { 35 | $this->value = abs($this->value)*2-1; 36 | } 37 | else 38 | { 39 | $this->value = $this->value*2; 40 | } 41 | $string = parent::SerializeToString($rec); 42 | // restore value 43 | $this->value = $save; 44 | 45 | return $string; 46 | } 47 | } 48 | ?> 49 | -------------------------------------------------------------------------------- /Server/libs/protocolbuf/message/type/pb_string.php: -------------------------------------------------------------------------------- 1 | value = ''; 17 | // first byte is length 18 | $length = $this->reader->next(); 19 | 20 | // just extract the string 21 | $pointer = $this->reader->get_pointer(); 22 | $this->reader->add_pointer($length); 23 | $this->value = $this->reader->get_message_from($pointer); 24 | } 25 | 26 | /** 27 | * Serializes type 28 | */ 29 | public function SerializeToString($rec = -1) 30 | { 31 | $string = ''; 32 | 33 | if ($rec > -1) 34 | { 35 | $string .= $this->base128->set_value($rec << 3 | $this->wired_type); 36 | } 37 | 38 | $string .= $this->base128->set_value(strlen($this->value)); 39 | $string .= $this->value; 40 | 41 | return $string; 42 | } 43 | } 44 | ?> 45 | -------------------------------------------------------------------------------- /Server/libs/spyc/examples/yaml-dump.php: -------------------------------------------------------------------------------- 1 | 'A sequence','second' => 'of mapped values'); 18 | $array['Mapped'] = array('A sequence','which is mapped'); 19 | $array['A Note'] = 'What if your text is too long?'; 20 | $array['Another Note'] = 'If that is the case, the dumper will probably fold your text by using a block. Kinda like this.'; 21 | $array['The trick?'] = 'The trick is that we overrode the default indent, 2, to 4 and the default wordwrap, 40, to 60.'; 22 | $array['Old Dog'] = "And if you want\n to preserve line breaks, \ngo ahead!"; 23 | $array['key:withcolon'] = "Should support this to"; 24 | 25 | $yaml = Spyc::YAMLDump($array,4,60); -------------------------------------------------------------------------------- /Server/libs/spyc/examples/yaml-load.php: -------------------------------------------------------------------------------- 1 | spyc.yaml loaded into PHP:
'; 19 | print_r($array); 20 | echo ''; 21 | 22 | 23 | echo '
YAML Data dumped back:
'; 24 | echo Spyc::YAMLDump($array); 25 | echo '
'; 26 | -------------------------------------------------------------------------------- /Server/libs/spyc/php4/5to4.php: -------------------------------------------------------------------------------- 1 | ', $code); 12 | $f = fopen ($dest, 'w'); 13 | fwrite($f, $code); 14 | fclose ($f); 15 | print "Written to $dest.\n"; 16 | } -------------------------------------------------------------------------------- /Server/libs/spyc/tests/DumpTest.php: -------------------------------------------------------------------------------- 1 | files_to_test = array ('../spyc.yaml', 'failing1.yaml', 'indent_1.yaml', 'quotes.yaml'); 11 | } 12 | 13 | public function testDump() { 14 | foreach ($this->files_to_test as $file) { 15 | $yaml = spyc_load(file_get_contents($file)); 16 | $dump = Spyc::YAMLDump ($yaml); 17 | $yaml_after_dump = Spyc::YAMLLoad ($dump); 18 | $this->assertEquals ($yaml, $yaml_after_dump); 19 | } 20 | } 21 | 22 | public function testDumpWithQuotes() { 23 | $Spyc = new Spyc(); 24 | $Spyc->setting_dump_force_quotes = true; 25 | foreach ($this->files_to_test as $file) { 26 | $yaml = $Spyc->load(file_get_contents($file)); 27 | $dump = $Spyc->dump ($yaml); 28 | $yaml_after_dump = Spyc::YAMLLoad ($dump); 29 | $this->assertEquals ($yaml, $yaml_after_dump); 30 | } 31 | } 32 | 33 | public function testDumpArrays() { 34 | $dump = Spyc::YAMLDump(array ('item1', 'item2', 'item3')); 35 | $awaiting = "---\n- item1\n- item2\n- item3\n"; 36 | $this->assertEquals ($awaiting, $dump); 37 | } 38 | 39 | public function testDumpNumerics() { 40 | $dump = Spyc::YAMLDump(array ('404', '405', '500')); 41 | $awaiting = "---\n- 404\n- 405\n- 500\n"; 42 | $this->assertEquals ($awaiting, $dump); 43 | } 44 | 45 | public function testDumpAsterisks() { 46 | $dump = Spyc::YAMLDump(array ('*')); 47 | $awaiting = "---\n- '*'\n"; 48 | $this->assertEquals ($awaiting, $dump); 49 | } 50 | 51 | 52 | public function testEmpty() { 53 | $dump = Spyc::YAMLDump(array("foo" => array())); 54 | $awaiting = "---\nfoo: [ ]\n"; 55 | $this->assertEquals ($awaiting, $dump); 56 | } 57 | 58 | } -------------------------------------------------------------------------------- /Server/libs/spyc/tests/IndentTest.php: -------------------------------------------------------------------------------- 1 | Y = Spyc::YAMLLoad("indent_1.yaml"); 11 | } 12 | 13 | public function testIndent_1() { 14 | $this->assertEquals (array ('child_1' => 2, 'child_2' => 0, 'child_3' => 1), $this->Y['root']); 15 | } 16 | 17 | public function testIndent_2() { 18 | $this->assertEquals (array ('child_1' => 1, 'child_2' => 2), $this->Y['root2']); 19 | } 20 | 21 | public function testIndent_3() { 22 | $this->assertEquals (array (array ('resolutions' => array (1024 => 768, 1920 => 1200), 'producer' => 'Nec')), $this->Y['display']); 23 | } 24 | 25 | public function testIndent_4() { 26 | $this->assertEquals (array ( 27 | array ('resolutions' => array (1024 => 768)), 28 | array ('resolutions' => array (1920 => 1200)), 29 | ), $this->Y['displays']); 30 | } 31 | 32 | public function testIndent_5() { 33 | $this->assertEquals (array (array ( 34 | 'row' => 0, 35 | 'col' => 0, 36 | 'headsets_affected' => array ( 37 | array ( 38 | 'ports' => array (0), 39 | 'side' => 'left', 40 | ) 41 | ), 42 | 'switch_function' => array ( 43 | 'ics_ptt' => true 44 | ) 45 | )), $this->Y['nested_hashes_and_seqs']); 46 | } 47 | 48 | public function testIndent_6() { 49 | $this->assertEquals (array ( 50 | 'h' => array ( 51 | array ('a' => 'b', 'a1' => 'b1'), 52 | array ('c' => 'd') 53 | ) 54 | ), $this->Y['easier_nest']); 55 | } 56 | 57 | } -------------------------------------------------------------------------------- /Server/libs/spyc/tests/failing1.yaml: -------------------------------------------------------------------------------- 1 | MyObject: 2 | Prop1: {key1:val1} -------------------------------------------------------------------------------- /Server/libs/spyc/tests/indent_1.yaml: -------------------------------------------------------------------------------- 1 | root: 2 | child_1: 2 3 | 4 | child_2: 0 5 | child_3: 1 6 | 7 | root2: 8 | child_1: 1 9 | # A comment 10 | child_2: 2 11 | 12 | displays: 13 | - resolutions: 14 | 1024: 768 15 | - resolutions: 16 | 1920: 1200 17 | 18 | display: 19 | - resolutions: 20 | 1024: 768 21 | 1920: 1200 22 | producer: "Nec" 23 | 24 | nested_hashes_and_seqs: 25 | - { row: 0, col: 0, headsets_affected: [{ports: [0], side: left}], switch_function: {ics_ptt: true} } 26 | 27 | easier_nest: { h: [{a: b, a1: b1}, {c: d}] } 28 | 29 | steps: 30 | - step: &id001 31 | instrument: Lasik 2000 32 | pulseEnergy: 5.4 33 | pulseDuration: 12 34 | repetition: 1000 35 | spotSize: 1mm 36 | - step: 37 | <<: *id001 38 | spotSize: 2mm 39 | 40 | death masks are: 41 | sad: 2 42 | <<: {magnificent: 4} 43 | 44 | login: &login 45 | adapter: mysql 46 | host: localhost 47 | 48 | development: 49 | database: rails_dev 50 | <<: *login 51 | 52 | "key": "value:" 53 | colon_only: ":" -------------------------------------------------------------------------------- /Server/libs/spyc/tests/quotes.yaml: -------------------------------------------------------------------------------- 1 | html_tags: 2 | -
3 | -

4 | html_content: 5 | -

hello world

6 | - hello
world 7 | text_content: 8 | - hello world --------------------------------------------------------------------------------