@chilkat/react-native 11.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/ChilkatRN.podspec +44 -0
- package/LICENSE +254 -0
- package/README.md +67 -0
- package/android/CMakeLists.txt +60 -0
- package/android/build.gradle +148 -0
- package/android/gradle.properties +5 -0
- package/android/src/main/AndroidManifest.xml +2 -0
- package/android/src/main/cpp/cpp-adapter.cpp +12 -0
- package/android/src/main/java/com/margelo/nitro/chilkat/ChilkatRNPackage.java +33 -0
- package/chilkat-checksums.json +9 -0
- package/cpp/HybridAi.cpp +660 -0
- package/cpp/HybridAi.hpp +159 -0
- package/cpp/HybridAsn.cpp +403 -0
- package/cpp/HybridAsn.hpp +105 -0
- package/cpp/HybridAuthAws.cpp +188 -0
- package/cpp/HybridAuthAws.hpp +55 -0
- package/cpp/HybridAuthAzureSAS.cpp +142 -0
- package/cpp/HybridAuthAzureSAS.hpp +47 -0
- package/cpp/HybridAuthAzureStorage.cpp +144 -0
- package/cpp/HybridAuthAzureStorage.hpp +47 -0
- package/cpp/HybridAuthGoogle.cpp +215 -0
- package/cpp/HybridAuthGoogle.hpp +67 -0
- package/cpp/HybridBinData.cpp +439 -0
- package/cpp/HybridBinData.hpp +112 -0
- package/cpp/HybridBz2.cpp +177 -0
- package/cpp/HybridBz2.hpp +58 -0
- package/cpp/HybridCache.cpp +314 -0
- package/cpp/HybridCache.hpp +82 -0
- package/cpp/HybridCert.cpp +840 -0
- package/cpp/HybridCert.hpp +196 -0
- package/cpp/HybridCertChain.cpp +149 -0
- package/cpp/HybridCertChain.hpp +50 -0
- package/cpp/HybridCertStore.cpp +276 -0
- package/cpp/HybridCertStore.hpp +78 -0
- package/cpp/HybridCharset.cpp +333 -0
- package/cpp/HybridCharset.hpp +83 -0
- package/cpp/HybridCkDateTime.cpp +384 -0
- package/cpp/HybridCkDateTime.hpp +105 -0
- package/cpp/HybridCodeSign.cpp +156 -0
- package/cpp/HybridCodeSign.hpp +55 -0
- package/cpp/HybridCompression.cpp +422 -0
- package/cpp/HybridCompression.hpp +100 -0
- package/cpp/HybridCrypt2.cpp +1517 -0
- package/cpp/HybridCrypt2.hpp +320 -0
- package/cpp/HybridCsr.cpp +292 -0
- package/cpp/HybridCsr.hpp +77 -0
- package/cpp/HybridCsv.cpp +382 -0
- package/cpp/HybridCsv.hpp +101 -0
- package/cpp/HybridDh.cpp +137 -0
- package/cpp/HybridDh.hpp +47 -0
- package/cpp/HybridDirTree.cpp +167 -0
- package/cpp/HybridDirTree.hpp +53 -0
- package/cpp/HybridDkim.cpp +249 -0
- package/cpp/HybridDkim.hpp +74 -0
- package/cpp/HybridDns.cpp +193 -0
- package/cpp/HybridDns.hpp +64 -0
- package/cpp/HybridDsa.cpp +453 -0
- package/cpp/HybridDsa.hpp +112 -0
- package/cpp/HybridDtObj.cpp +172 -0
- package/cpp/HybridDtObj.hpp +57 -0
- package/cpp/HybridEcc.cpp +195 -0
- package/cpp/HybridEcc.hpp +55 -0
- package/cpp/HybridEdDSA.cpp +147 -0
- package/cpp/HybridEdDSA.hpp +47 -0
- package/cpp/HybridEmail.cpp +1911 -0
- package/cpp/HybridEmail.hpp +419 -0
- package/cpp/HybridEmailBundle.cpp +204 -0
- package/cpp/HybridEmailBundle.hpp +64 -0
- package/cpp/HybridFileAccess.cpp +631 -0
- package/cpp/HybridFileAccess.hpp +149 -0
- package/cpp/HybridFtp2.cpp +2308 -0
- package/cpp/HybridFtp2.hpp +462 -0
- package/cpp/HybridGlobal.cpp +221 -0
- package/cpp/HybridGlobal.hpp +68 -0
- package/cpp/HybridGzip.cpp +440 -0
- package/cpp/HybridGzip.hpp +105 -0
- package/cpp/HybridHashtable.cpp +211 -0
- package/cpp/HybridHashtable.hpp +64 -0
- package/cpp/HybridHtmlToText.cpp +136 -0
- package/cpp/HybridHtmlToText.hpp +47 -0
- package/cpp/HybridHtmlToXml.cpp +218 -0
- package/cpp/HybridHtmlToXml.hpp +65 -0
- package/cpp/HybridHttp.cpp +2067 -0
- package/cpp/HybridHttp.hpp +416 -0
- package/cpp/HybridHttpCurl.cpp +337 -0
- package/cpp/HybridHttpCurl.hpp +93 -0
- package/cpp/HybridHttpRequest.cpp +455 -0
- package/cpp/HybridHttpRequest.hpp +109 -0
- package/cpp/HybridHttpResponse.cpp +340 -0
- package/cpp/HybridHttpResponse.hpp +86 -0
- package/cpp/HybridImap.cpp +1818 -0
- package/cpp/HybridImap.hpp +363 -0
- package/cpp/HybridJavaKeyStore.cpp +387 -0
- package/cpp/HybridJavaKeyStore.hpp +98 -0
- package/cpp/HybridJs.cpp +154 -0
- package/cpp/HybridJs.hpp +54 -0
- package/cpp/HybridJsonArray.cpp +441 -0
- package/cpp/HybridJsonArray.hpp +120 -0
- package/cpp/HybridJsonObject.cpp +1125 -0
- package/cpp/HybridJsonObject.hpp +260 -0
- package/cpp/HybridJwe.cpp +294 -0
- package/cpp/HybridJwe.hpp +82 -0
- package/cpp/HybridJws.cpp +290 -0
- package/cpp/HybridJws.hpp +82 -0
- package/cpp/HybridJwt.cpp +198 -0
- package/cpp/HybridJwt.hpp +57 -0
- package/cpp/HybridLog.cpp +212 -0
- package/cpp/HybridLog.hpp +63 -0
- package/cpp/HybridMailMan.cpp +1853 -0
- package/cpp/HybridMailMan.hpp +386 -0
- package/cpp/HybridMailboxes.cpp +165 -0
- package/cpp/HybridMailboxes.hpp +54 -0
- package/cpp/HybridMcp.cpp +322 -0
- package/cpp/HybridMcp.hpp +85 -0
- package/cpp/HybridMessageSet.cpp +162 -0
- package/cpp/HybridMessageSet.hpp +54 -0
- package/cpp/HybridMht.cpp +700 -0
- package/cpp/HybridMht.hpp +165 -0
- package/cpp/HybridMime.cpp +1119 -0
- package/cpp/HybridMime.hpp +266 -0
- package/cpp/HybridNtlm.cpp +333 -0
- package/cpp/HybridNtlm.hpp +83 -0
- package/cpp/HybridOAuth1.cpp +307 -0
- package/cpp/HybridOAuth1.hpp +78 -0
- package/cpp/HybridOAuth2.cpp +515 -0
- package/cpp/HybridOAuth2.hpp +127 -0
- package/cpp/HybridPdf.cpp +370 -0
- package/cpp/HybridPdf.hpp +103 -0
- package/cpp/HybridPem.cpp +327 -0
- package/cpp/HybridPem.hpp +88 -0
- package/cpp/HybridPfx.cpp +343 -0
- package/cpp/HybridPfx.hpp +87 -0
- package/cpp/HybridPkcs11.cpp +318 -0
- package/cpp/HybridPkcs11.hpp +88 -0
- package/cpp/HybridPrivateKey.cpp +464 -0
- package/cpp/HybridPrivateKey.hpp +117 -0
- package/cpp/HybridPrng.cpp +192 -0
- package/cpp/HybridPrng.hpp +57 -0
- package/cpp/HybridPublicKey.cpp +238 -0
- package/cpp/HybridPublicKey.hpp +68 -0
- package/cpp/HybridRest.cpp +993 -0
- package/cpp/HybridRest.hpp +214 -0
- package/cpp/HybridRsa.cpp +348 -0
- package/cpp/HybridRsa.hpp +90 -0
- package/cpp/HybridSCard.cpp +328 -0
- package/cpp/HybridSCard.hpp +91 -0
- package/cpp/HybridSFtp.cpp +1889 -0
- package/cpp/HybridSFtp.hpp +366 -0
- package/cpp/HybridSFtpDir.cpp +119 -0
- package/cpp/HybridSFtpDir.hpp +43 -0
- package/cpp/HybridSFtpFile.cpp +203 -0
- package/cpp/HybridSFtpFile.hpp +60 -0
- package/cpp/HybridScMinidriver.cpp +341 -0
- package/cpp/HybridScMinidriver.hpp +88 -0
- package/cpp/HybridScp.cpp +398 -0
- package/cpp/HybridScp.hpp +96 -0
- package/cpp/HybridSecrets.cpp +328 -0
- package/cpp/HybridSecrets.hpp +84 -0
- package/cpp/HybridSecureString.cpp +175 -0
- package/cpp/HybridSecureString.hpp +55 -0
- package/cpp/HybridServerSentEvent.cpp +112 -0
- package/cpp/HybridServerSentEvent.hpp +41 -0
- package/cpp/HybridSocket.cpp +1567 -0
- package/cpp/HybridSocket.hpp +336 -0
- package/cpp/HybridSpider.cpp +543 -0
- package/cpp/HybridSpider.hpp +138 -0
- package/cpp/HybridSsh.cpp +1330 -0
- package/cpp/HybridSsh.hpp +282 -0
- package/cpp/HybridSshKey.cpp +310 -0
- package/cpp/HybridSshKey.hpp +83 -0
- package/cpp/HybridSshTunnel.cpp +687 -0
- package/cpp/HybridSshTunnel.hpp +159 -0
- package/cpp/HybridStream.cpp +496 -0
- package/cpp/HybridStream.hpp +123 -0
- package/cpp/HybridStringArray.cpp +368 -0
- package/cpp/HybridStringArray.hpp +99 -0
- package/cpp/HybridStringBuilder.cpp +739 -0
- package/cpp/HybridStringBuilder.hpp +178 -0
- package/cpp/HybridStringTable.cpp +218 -0
- package/cpp/HybridStringTable.hpp +66 -0
- package/cpp/HybridTar.cpp +547 -0
- package/cpp/HybridTar.hpp +134 -0
- package/cpp/HybridTrustedRoots.cpp +178 -0
- package/cpp/HybridTrustedRoots.hpp +61 -0
- package/cpp/HybridUnixCompress.cpp +191 -0
- package/cpp/HybridUnixCompress.hpp +60 -0
- package/cpp/HybridUpload.cpp +427 -0
- package/cpp/HybridUpload.hpp +114 -0
- package/cpp/HybridUrl.cpp +152 -0
- package/cpp/HybridUrl.hpp +48 -0
- package/cpp/HybridWebSocket.cpp +378 -0
- package/cpp/HybridWebSocket.hpp +103 -0
- package/cpp/HybridXml.cpp +1527 -0
- package/cpp/HybridXml.hpp +340 -0
- package/cpp/HybridXmlCertVault.cpp +215 -0
- package/cpp/HybridXmlCertVault.hpp +63 -0
- package/cpp/HybridXmlDSig.cpp +328 -0
- package/cpp/HybridXmlDSig.hpp +88 -0
- package/cpp/HybridXmlDSigGen.cpp +549 -0
- package/cpp/HybridXmlDSigGen.hpp +126 -0
- package/cpp/HybridXmp.cpp +329 -0
- package/cpp/HybridXmp.hpp +86 -0
- package/cpp/HybridZip.cpp +1000 -0
- package/cpp/HybridZip.hpp +226 -0
- package/cpp/HybridZipCrc.cpp +162 -0
- package/cpp/HybridZipCrc.hpp +57 -0
- package/cpp/HybridZipEntry.cpp +395 -0
- package/cpp/HybridZipEntry.hpp +102 -0
- package/cpp/runtime/AsyncCall.hpp +96 -0
- package/cpp/runtime/Bytes.hpp +49 -0
- package/cpp/runtime/ChilkatError.hpp +66 -0
- package/cpp/runtime/ChilkatObject.hpp +219 -0
- package/cpp/runtime/ProgLang.hpp +9 -0
- package/cpp/runtime/ProgressAdapter.hpp +43 -0
- package/nitro.json +113 -0
- package/nitrogen/generated/.gitattributes +1 -0
- package/nitrogen/generated/android/ChilkatRN+autolinking.cmake +179 -0
- package/nitrogen/generated/android/ChilkatRN+autolinking.gradle +27 -0
- package/nitrogen/generated/android/ChilkatRNOnLoad.cpp +1029 -0
- package/nitrogen/generated/android/ChilkatRNOnLoad.hpp +34 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/chilkat/ChilkatRNOnLoad.kt +35 -0
- package/nitrogen/generated/ios/ChilkatRN+autolinking.rb +62 -0
- package/nitrogen/generated/ios/ChilkatRN-Swift-Cxx-Bridge.cpp +17 -0
- package/nitrogen/generated/ios/ChilkatRN-Swift-Cxx-Bridge.hpp +27 -0
- package/nitrogen/generated/ios/ChilkatRN-Swift-Cxx-Umbrella.hpp +38 -0
- package/nitrogen/generated/ios/ChilkatRNAutolinking.mm +1015 -0
- package/nitrogen/generated/ios/ChilkatRNAutolinking.swift +16 -0
- package/nitrogen/generated/shared/c++/HybridAiSpec.cpp +114 -0
- package/nitrogen/generated/shared/c++/HybridAiSpec.hpp +175 -0
- package/nitrogen/generated/shared/c++/HybridAsnSpec.cpp +70 -0
- package/nitrogen/generated/shared/c++/HybridAsnSpec.hpp +116 -0
- package/nitrogen/generated/shared/c++/HybridAuthAwsSpec.cpp +49 -0
- package/nitrogen/generated/shared/c++/HybridAuthAwsSpec.hpp +89 -0
- package/nitrogen/generated/shared/c++/HybridAuthAzureSASSpec.cpp +38 -0
- package/nitrogen/generated/shared/c++/HybridAuthAzureSASSpec.hpp +78 -0
- package/nitrogen/generated/shared/c++/HybridAuthAzureStorageSpec.cpp +41 -0
- package/nitrogen/generated/shared/c++/HybridAuthAzureStorageSpec.hpp +81 -0
- package/nitrogen/generated/shared/c++/HybridAuthGoogleSpec.cpp +56 -0
- package/nitrogen/generated/shared/c++/HybridAuthGoogleSpec.hpp +108 -0
- package/nitrogen/generated/shared/c++/HybridBinDataSpec.cpp +69 -0
- package/nitrogen/generated/shared/c++/HybridBinDataSpec.hpp +116 -0
- package/nitrogen/generated/shared/c++/HybridBz2Spec.cpp +47 -0
- package/nitrogen/generated/shared/c++/HybridBz2Spec.hpp +93 -0
- package/nitrogen/generated/shared/c++/HybridCacheSpec.cpp +57 -0
- package/nitrogen/generated/shared/c++/HybridCacheSpec.hpp +106 -0
- package/nitrogen/generated/shared/c++/HybridCertChainSpec.cpp +40 -0
- package/nitrogen/generated/shared/c++/HybridCertChainSpec.hpp +89 -0
- package/nitrogen/generated/shared/c++/HybridCertSpec.cpp +138 -0
- package/nitrogen/generated/shared/c++/HybridCertSpec.hpp +205 -0
- package/nitrogen/generated/shared/c++/HybridCertStoreSpec.cpp +55 -0
- package/nitrogen/generated/shared/c++/HybridCertStoreSpec.hpp +104 -0
- package/nitrogen/generated/shared/c++/HybridCharsetSpec.cpp +61 -0
- package/nitrogen/generated/shared/c++/HybridCharsetSpec.hpp +101 -0
- package/nitrogen/generated/shared/c++/HybridCkDateTimeSpec.cpp +66 -0
- package/nitrogen/generated/shared/c++/HybridCkDateTimeSpec.hpp +115 -0
- package/nitrogen/generated/shared/c++/HybridCodeSignSpec.cpp +44 -0
- package/nitrogen/generated/shared/c++/HybridCodeSignSpec.hpp +93 -0
- package/nitrogen/generated/shared/c++/HybridCompressionSpec.cpp +79 -0
- package/nitrogen/generated/shared/c++/HybridCompressionSpec.hpp +134 -0
- package/nitrogen/generated/shared/c++/HybridCrypt2Spec.cpp +215 -0
- package/nitrogen/generated/shared/c++/HybridCrypt2Spec.hpp +283 -0
- package/nitrogen/generated/shared/c++/HybridCsrSpec.cpp +61 -0
- package/nitrogen/generated/shared/c++/HybridCsrSpec.hpp +116 -0
- package/nitrogen/generated/shared/c++/HybridCsvSpec.cpp +72 -0
- package/nitrogen/generated/shared/c++/HybridCsvSpec.hpp +121 -0
- package/nitrogen/generated/shared/c++/HybridDhSpec.cpp +37 -0
- package/nitrogen/generated/shared/c++/HybridDhSpec.hpp +77 -0
- package/nitrogen/generated/shared/c++/HybridDirTreeSpec.cpp +46 -0
- package/nitrogen/generated/shared/c++/HybridDirTreeSpec.hpp +86 -0
- package/nitrogen/generated/shared/c++/HybridDkimSpec.cpp +60 -0
- package/nitrogen/generated/shared/c++/HybridDkimSpec.hpp +109 -0
- package/nitrogen/generated/shared/c++/HybridDnsSpec.cpp +51 -0
- package/nitrogen/generated/shared/c++/HybridDnsSpec.hpp +97 -0
- package/nitrogen/generated/shared/c++/HybridDsaSpec.cpp +73 -0
- package/nitrogen/generated/shared/c++/HybridDsaSpec.hpp +116 -0
- package/nitrogen/generated/shared/c++/HybridDtObjSpec.cpp +50 -0
- package/nitrogen/generated/shared/c++/HybridDtObjSpec.hpp +90 -0
- package/nitrogen/generated/shared/c++/HybridEccSpec.cpp +41 -0
- package/nitrogen/generated/shared/c++/HybridEccSpec.hpp +96 -0
- package/nitrogen/generated/shared/c++/HybridEdDSASpec.cpp +38 -0
- package/nitrogen/generated/shared/c++/HybridEdDSASpec.hpp +90 -0
- package/nitrogen/generated/shared/c++/HybridEmailBundleSpec.cpp +45 -0
- package/nitrogen/generated/shared/c++/HybridEmailBundleSpec.hpp +91 -0
- package/nitrogen/generated/shared/c++/HybridEmailSpec.cpp +259 -0
- package/nitrogen/generated/shared/c++/HybridEmailSpec.hpp +326 -0
- package/nitrogen/generated/shared/c++/HybridFileAccessSpec.cpp +90 -0
- package/nitrogen/generated/shared/c++/HybridFileAccessSpec.hpp +140 -0
- package/nitrogen/generated/shared/c++/HybridFtp2Spec.cpp +367 -0
- package/nitrogen/generated/shared/c++/HybridFtp2Spec.hpp +434 -0
- package/nitrogen/generated/shared/c++/HybridGlobalSpec.cpp +59 -0
- package/nitrogen/generated/shared/c++/HybridGlobalSpec.hpp +99 -0
- package/nitrogen/generated/shared/c++/HybridGzipSpec.cpp +79 -0
- package/nitrogen/generated/shared/c++/HybridGzipSpec.hpp +134 -0
- package/nitrogen/generated/shared/c++/HybridHashtableSpec.cpp +45 -0
- package/nitrogen/generated/shared/c++/HybridHashtableSpec.hpp +91 -0
- package/nitrogen/generated/shared/c++/HybridHtmlToTextSpec.cpp +40 -0
- package/nitrogen/generated/shared/c++/HybridHtmlToTextSpec.hpp +83 -0
- package/nitrogen/generated/shared/c++/HybridHtmlToXmlSpec.cpp +49 -0
- package/nitrogen/generated/shared/c++/HybridHtmlToXmlSpec.hpp +95 -0
- package/nitrogen/generated/shared/c++/HybridHttpCurlSpec.cpp +67 -0
- package/nitrogen/generated/shared/c++/HybridHttpCurlSpec.hpp +125 -0
- package/nitrogen/generated/shared/c++/HybridHttpRequestSpec.cpp +76 -0
- package/nitrogen/generated/shared/c++/HybridHttpRequestSpec.hpp +122 -0
- package/nitrogen/generated/shared/c++/HybridHttpResponseSpec.cpp +64 -0
- package/nitrogen/generated/shared/c++/HybridHttpResponseSpec.hpp +119 -0
- package/nitrogen/generated/shared/c++/HybridHttpSpec.cpp +334 -0
- package/nitrogen/generated/shared/c++/HybridHttpSpec.hpp +407 -0
- package/nitrogen/generated/shared/c++/HybridImapSpec.cpp +275 -0
- package/nitrogen/generated/shared/c++/HybridImapSpec.hpp +360 -0
- package/nitrogen/generated/shared/c++/HybridJavaKeyStoreSpec.cpp +65 -0
- package/nitrogen/generated/shared/c++/HybridJavaKeyStoreSpec.hpp +132 -0
- package/nitrogen/generated/shared/c++/HybridJsSpec.cpp +43 -0
- package/nitrogen/generated/shared/c++/HybridJsSpec.hpp +92 -0
- package/nitrogen/generated/shared/c++/HybridJsonArraySpec.cpp +76 -0
- package/nitrogen/generated/shared/c++/HybridJsonArraySpec.hpp +131 -0
- package/nitrogen/generated/shared/c++/HybridJsonObjectSpec.cpp +154 -0
- package/nitrogen/generated/shared/c++/HybridJsonObjectSpec.hpp +218 -0
- package/nitrogen/generated/shared/c++/HybridJweSpec.cpp +57 -0
- package/nitrogen/generated/shared/c++/HybridJweSpec.hpp +112 -0
- package/nitrogen/generated/shared/c++/HybridJwsSpec.cpp +57 -0
- package/nitrogen/generated/shared/c++/HybridJwsSpec.hpp +115 -0
- package/nitrogen/generated/shared/c++/HybridJwtSpec.cpp +43 -0
- package/nitrogen/generated/shared/c++/HybridJwtSpec.hpp +92 -0
- package/nitrogen/generated/shared/c++/HybridLogSpec.cpp +44 -0
- package/nitrogen/generated/shared/c++/HybridLogSpec.hpp +85 -0
- package/nitrogen/generated/shared/c++/HybridMailManSpec.cpp +311 -0
- package/nitrogen/generated/shared/c++/HybridMailManSpec.hpp +396 -0
- package/nitrogen/generated/shared/c++/HybridMailboxesSpec.cpp +40 -0
- package/nitrogen/generated/shared/c++/HybridMailboxesSpec.hpp +80 -0
- package/nitrogen/generated/shared/c++/HybridMcpSpec.cpp +68 -0
- package/nitrogen/generated/shared/c++/HybridMcpSpec.hpp +117 -0
- package/nitrogen/generated/shared/c++/HybridMessageSetSpec.cpp +41 -0
- package/nitrogen/generated/shared/c++/HybridMessageSetSpec.hpp +84 -0
- package/nitrogen/generated/shared/c++/HybridMhtSpec.cpp +138 -0
- package/nitrogen/generated/shared/c++/HybridMhtSpec.hpp +181 -0
- package/nitrogen/generated/shared/c++/HybridMimeSpec.cpp +169 -0
- package/nitrogen/generated/shared/c++/HybridMimeSpec.hpp +233 -0
- package/nitrogen/generated/shared/c++/HybridNtlmSpec.cpp +69 -0
- package/nitrogen/generated/shared/c++/HybridNtlmSpec.hpp +109 -0
- package/nitrogen/generated/shared/c++/HybridOAuth1Spec.cpp +67 -0
- package/nitrogen/generated/shared/c++/HybridOAuth1Spec.hpp +110 -0
- package/nitrogen/generated/shared/c++/HybridOAuth2Spec.cpp +107 -0
- package/nitrogen/generated/shared/c++/HybridOAuth2Spec.hpp +156 -0
- package/nitrogen/generated/shared/c++/HybridPdfSpec.cpp +73 -0
- package/nitrogen/generated/shared/c++/HybridPdfSpec.hpp +134 -0
- package/nitrogen/generated/shared/c++/HybridPemSpec.cpp +63 -0
- package/nitrogen/generated/shared/c++/HybridPemSpec.hpp +124 -0
- package/nitrogen/generated/shared/c++/HybridPfxSpec.cpp +61 -0
- package/nitrogen/generated/shared/c++/HybridPfxSpec.hpp +122 -0
- package/nitrogen/generated/shared/c++/HybridPkcs11Spec.cpp +60 -0
- package/nitrogen/generated/shared/c++/HybridPkcs11Spec.hpp +115 -0
- package/nitrogen/generated/shared/c++/HybridPrivateKeySpec.cpp +76 -0
- package/nitrogen/generated/shared/c++/HybridPrivateKeySpec.hpp +131 -0
- package/nitrogen/generated/shared/c++/HybridPrngSpec.cpp +42 -0
- package/nitrogen/generated/shared/c++/HybridPrngSpec.hpp +85 -0
- package/nitrogen/generated/shared/c++/HybridPublicKeySpec.cpp +48 -0
- package/nitrogen/generated/shared/c++/HybridPublicKeySpec.hpp +91 -0
- package/nitrogen/generated/shared/c++/HybridRestSpec.cpp +150 -0
- package/nitrogen/generated/shared/c++/HybridRestSpec.hpp +229 -0
- package/nitrogen/generated/shared/c++/HybridRsaSpec.cpp +68 -0
- package/nitrogen/generated/shared/c++/HybridRsaSpec.hpp +120 -0
- package/nitrogen/generated/shared/c++/HybridSCardSpec.cpp +64 -0
- package/nitrogen/generated/shared/c++/HybridSCardSpec.hpp +116 -0
- package/nitrogen/generated/shared/c++/HybridSFtpDirSpec.cpp +35 -0
- package/nitrogen/generated/shared/c++/HybridSFtpDirSpec.hpp +78 -0
- package/nitrogen/generated/shared/c++/HybridSFtpFileSpec.cpp +57 -0
- package/nitrogen/generated/shared/c++/HybridSFtpFileSpec.hpp +98 -0
- package/nitrogen/generated/shared/c++/HybridSFtpSpec.cpp +284 -0
- package/nitrogen/generated/shared/c++/HybridSFtpSpec.hpp +354 -0
- package/nitrogen/generated/shared/c++/HybridScMinidriverSpec.cpp +61 -0
- package/nitrogen/generated/shared/c++/HybridScMinidriverSpec.hpp +119 -0
- package/nitrogen/generated/shared/c++/HybridScpSpec.cpp +78 -0
- package/nitrogen/generated/shared/c++/HybridScpSpec.hpp +127 -0
- package/nitrogen/generated/shared/c++/HybridSecretsSpec.cpp +65 -0
- package/nitrogen/generated/shared/c++/HybridSecretsSpec.hpp +120 -0
- package/nitrogen/generated/shared/c++/HybridSecureStringSpec.cpp +42 -0
- package/nitrogen/generated/shared/c++/HybridSecureStringSpec.hpp +88 -0
- package/nitrogen/generated/shared/c++/HybridServerSentEventSpec.cpp +35 -0
- package/nitrogen/generated/shared/c++/HybridServerSentEventSpec.hpp +75 -0
- package/nitrogen/generated/shared/c++/HybridSocketSpec.cpp +262 -0
- package/nitrogen/generated/shared/c++/HybridSocketSpec.hpp +327 -0
- package/nitrogen/generated/shared/c++/HybridSpiderSpec.cpp +110 -0
- package/nitrogen/generated/shared/c++/HybridSpiderSpec.hpp +153 -0
- package/nitrogen/generated/shared/c++/HybridSshKeySpec.cpp +59 -0
- package/nitrogen/generated/shared/c++/HybridSshKeySpec.hpp +102 -0
- package/nitrogen/generated/shared/c++/HybridSshSpec.cpp +215 -0
- package/nitrogen/generated/shared/c++/HybridSshSpec.hpp +276 -0
- package/nitrogen/generated/shared/c++/HybridSshTunnelSpec.cpp +136 -0
- package/nitrogen/generated/shared/c++/HybridSshTunnelSpec.hpp +191 -0
- package/nitrogen/generated/shared/c++/HybridStreamSpec.cpp +100 -0
- package/nitrogen/generated/shared/c++/HybridStreamSpec.hpp +150 -0
- package/nitrogen/generated/shared/c++/HybridStringArraySpec.cpp +66 -0
- package/nitrogen/generated/shared/c++/HybridStringArraySpec.hpp +109 -0
- package/nitrogen/generated/shared/c++/HybridStringBuilderSpec.cpp +104 -0
- package/nitrogen/generated/shared/c++/HybridStringBuilderSpec.hpp +156 -0
- package/nitrogen/generated/shared/c++/HybridStringTableSpec.cpp +46 -0
- package/nitrogen/generated/shared/c++/HybridStringTableSpec.hpp +89 -0
- package/nitrogen/generated/shared/c++/HybridTarSpec.cpp +110 -0
- package/nitrogen/generated/shared/c++/HybridTarSpec.hpp +156 -0
- package/nitrogen/generated/shared/c++/HybridTrustedRootsSpec.cpp +48 -0
- package/nitrogen/generated/shared/c++/HybridTrustedRootsSpec.hpp +97 -0
- package/nitrogen/generated/shared/c++/HybridUnixCompressSpec.cpp +48 -0
- package/nitrogen/generated/shared/c++/HybridUnixCompressSpec.hpp +91 -0
- package/nitrogen/generated/shared/c++/HybridUploadSpec.cpp +98 -0
- package/nitrogen/generated/shared/c++/HybridUploadSpec.hpp +141 -0
- package/nitrogen/generated/shared/c++/HybridUrlSpec.cpp +42 -0
- package/nitrogen/generated/shared/c++/HybridUrlSpec.hpp +82 -0
- package/nitrogen/generated/shared/c++/HybridWebSocketSpec.cpp +80 -0
- package/nitrogen/generated/shared/c++/HybridWebSocketSpec.hpp +135 -0
- package/nitrogen/generated/shared/c++/HybridXmlCertVaultSpec.cpp +45 -0
- package/nitrogen/generated/shared/c++/HybridXmlCertVaultSpec.hpp +94 -0
- package/nitrogen/generated/shared/c++/HybridXmlDSigGenSpec.cpp +99 -0
- package/nitrogen/generated/shared/c++/HybridXmlDSigGenSpec.hpp +163 -0
- package/nitrogen/generated/shared/c++/HybridXmlDSigSpec.cpp +62 -0
- package/nitrogen/generated/shared/c++/HybridXmlDSigSpec.hpp +126 -0
- package/nitrogen/generated/shared/c++/HybridXmlSpec.cpp +203 -0
- package/nitrogen/generated/shared/c++/HybridXmlSpec.hpp +253 -0
- package/nitrogen/generated/shared/c++/HybridXmpSpec.cpp +58 -0
- package/nitrogen/generated/shared/c++/HybridXmpSpec.hpp +104 -0
- package/nitrogen/generated/shared/c++/HybridZipCrcSpec.cpp +43 -0
- package/nitrogen/generated/shared/c++/HybridZipCrcSpec.hpp +92 -0
- package/nitrogen/generated/shared/c++/HybridZipEntrySpec.cpp +82 -0
- package/nitrogen/generated/shared/c++/HybridZipEntrySpec.hpp +137 -0
- package/nitrogen/generated/shared/c++/HybridZipSpec.cpp +176 -0
- package/nitrogen/generated/shared/c++/HybridZipSpec.hpp +231 -0
- package/package.json +46 -0
- package/react-native.config.js +9 -0
- package/scripts/fetch-chilkat.js +184 -0
- package/src/index.ts +306 -0
- package/src/runtime/chilkat.ts +25 -0
- package/src/specs/Ai.nitro.ts +1288 -0
- package/src/specs/Asn.nitro.ts +509 -0
- package/src/specs/AuthAws.nitro.ts +234 -0
- package/src/specs/AuthAzureSAS.nitro.ts +205 -0
- package/src/specs/AuthAzureStorage.nitro.ts +172 -0
- package/src/specs/AuthGoogle.nitro.ts +291 -0
- package/src/specs/BinData.nitro.ts +470 -0
- package/src/specs/Bz2.nitro.ts +269 -0
- package/src/specs/Cache.nitro.ts +483 -0
- package/src/specs/Cert.nitro.ts +1279 -0
- package/src/specs/CertChain.nitro.ts +312 -0
- package/src/specs/CertStore.nitro.ts +430 -0
- package/src/specs/Charset.nitro.ts +518 -0
- package/src/specs/CkDateTime.nitro.ts +492 -0
- package/src/specs/CodeSign.nitro.ts +307 -0
- package/src/specs/Compression.nitro.ts +654 -0
- package/src/specs/Crypt2.nitro.ts +2387 -0
- package/src/specs/Csr.nitro.ts +461 -0
- package/src/specs/Csv.nitro.ts +670 -0
- package/src/specs/Dh.nitro.ts +343 -0
- package/src/specs/DirTree.nitro.ts +332 -0
- package/src/specs/Dkim.nitro.ts +595 -0
- package/src/specs/Dns.nitro.ts +271 -0
- package/src/specs/Dsa.nitro.ts +653 -0
- package/src/specs/DtObj.nitro.ts +198 -0
- package/src/specs/Ecc.nitro.ts +375 -0
- package/src/specs/EdDSA.nitro.ts +273 -0
- package/src/specs/Email.nitro.ts +2921 -0
- package/src/specs/EmailBundle.nitro.ts +334 -0
- package/src/specs/FileAccess.nitro.ts +836 -0
- package/src/specs/Ftp2.nitro.ts +3943 -0
- package/src/specs/Global.nitro.ts +319 -0
- package/src/specs/Gzip.nitro.ts +646 -0
- package/src/specs/Hashtable.nitro.ts +356 -0
- package/src/specs/HtmlToText.nitro.ts +238 -0
- package/src/specs/HtmlToXml.nitro.ts +323 -0
- package/src/specs/Http.nitro.ts +3095 -0
- package/src/specs/HttpCurl.nitro.ts +550 -0
- package/src/specs/HttpRequest.nitro.ts +522 -0
- package/src/specs/HttpResponse.nitro.ts +424 -0
- package/src/specs/Imap.nitro.ts +2991 -0
- package/src/specs/JavaKeyStore.nitro.ts +619 -0
- package/src/specs/Js.nitro.ts +263 -0
- package/src/specs/JsonArray.nitro.ts +681 -0
- package/src/specs/JsonObject.nitro.ts +1454 -0
- package/src/specs/Jwe.nitro.ts +756 -0
- package/src/specs/Jws.nitro.ts +733 -0
- package/src/specs/Jwt.nitro.ts +380 -0
- package/src/specs/Log.nitro.ts +258 -0
- package/src/specs/MailMan.nitro.ts +3571 -0
- package/src/specs/Mailboxes.nitro.ts +251 -0
- package/src/specs/Mcp.nitro.ts +491 -0
- package/src/specs/MessageSet.nitro.ts +320 -0
- package/src/specs/Mht.nitro.ts +1684 -0
- package/src/specs/Mime.nitro.ts +1745 -0
- package/src/specs/Ntlm.nitro.ts +556 -0
- package/src/specs/OAuth1.nitro.ts +331 -0
- package/src/specs/OAuth2.nitro.ts +1023 -0
- package/src/specs/Pdf.nitro.ts +740 -0
- package/src/specs/Pem.nitro.ts +484 -0
- package/src/specs/Pfx.nitro.ts +1003 -0
- package/src/specs/Pkcs11.nitro.ts +559 -0
- package/src/specs/PrivateKey.nitro.ts +994 -0
- package/src/specs/Prng.nitro.ts +348 -0
- package/src/specs/PublicKey.nitro.ts +610 -0
- package/src/specs/Rest.nitro.ts +1972 -0
- package/src/specs/Rsa.nitro.ts +453 -0
- package/src/specs/SCard.nitro.ts +739 -0
- package/src/specs/SFtp.nitro.ts +3138 -0
- package/src/specs/SFtpDir.nitro.ts +213 -0
- package/src/specs/SFtpFile.nitro.ts +452 -0
- package/src/specs/ScMinidriver.nitro.ts +443 -0
- package/src/specs/Scp.nitro.ts +708 -0
- package/src/specs/Secrets.nitro.ts +470 -0
- package/src/specs/SecureString.nitro.ts +231 -0
- package/src/specs/ServerSentEvent.nitro.ts +183 -0
- package/src/specs/Socket.nitro.ts +3335 -0
- package/src/specs/Spider.nitro.ts +609 -0
- package/src/specs/Ssh.nitro.ts +2842 -0
- package/src/specs/SshKey.nitro.ts +740 -0
- package/src/specs/SshTunnel.nitro.ts +1243 -0
- package/src/specs/Stream.nitro.ts +737 -0
- package/src/specs/StringArray.nitro.ts +396 -0
- package/src/specs/StringBuilder.nitro.ts +920 -0
- package/src/specs/StringTable.nitro.ts +271 -0
- package/src/specs/Tar.nitro.ts +804 -0
- package/src/specs/TrustedRoots.nitro.ts +360 -0
- package/src/specs/UnixCompress.nitro.ts +293 -0
- package/src/specs/Upload.nitro.ts +623 -0
- package/src/specs/Url.nitro.ts +246 -0
- package/src/specs/WebSocket.nitro.ts +840 -0
- package/src/specs/Xml.nitro.ts +1988 -0
- package/src/specs/XmlCertVault.nitro.ts +259 -0
- package/src/specs/XmlDSig.nitro.ts +464 -0
- package/src/specs/XmlDSigGen.nitro.ts +978 -0
- package/src/specs/Xmp.nitro.ts +364 -0
- package/src/specs/Zip.nitro.ts +1611 -0
- package/src/specs/ZipCrc.nitro.ts +229 -0
- package/src/specs/ZipEntry.nitro.ts +782 -0
|
@@ -0,0 +1,2308 @@
|
|
|
1
|
+
// Generated by ReactNativeNs.RnGenerator -- do not edit.
|
|
2
|
+
#include "HybridFtp2.hpp"
|
|
3
|
+
#include "HybridBinData.hpp"
|
|
4
|
+
#include "HybridCert.hpp"
|
|
5
|
+
#include "HybridCkDateTime.hpp"
|
|
6
|
+
#include "HybridJsonObject.hpp"
|
|
7
|
+
#include "HybridSecureString.hpp"
|
|
8
|
+
#include "HybridStream.hpp"
|
|
9
|
+
#include "HybridStringBuilder.hpp"
|
|
10
|
+
#include "HybridStringTable.hpp"
|
|
11
|
+
#include "runtime/AsyncCall.hpp"
|
|
12
|
+
#include "runtime/Bytes.hpp"
|
|
13
|
+
#include "runtime/ProgLang.hpp"
|
|
14
|
+
#include "runtime/ProgressAdapter.hpp"
|
|
15
|
+
#include <CkFtp2Progress.h>
|
|
16
|
+
|
|
17
|
+
namespace margelo::nitro::chilkat {
|
|
18
|
+
|
|
19
|
+
HybridFtp2::HybridFtp2()
|
|
20
|
+
: HybridObject(HybridFtp2Spec::TAG), ChilkatObject<CkFtp2>("Ftp2", CkFtp2::createNew2(PROGLANG_REACT_NATIVE)) {
|
|
21
|
+
init();
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
HybridFtp2::HybridFtp2(CkFtp2* owned)
|
|
25
|
+
: HybridObject(HybridFtp2Spec::TAG), ChilkatObject<CkFtp2>("Ftp2", owned) {
|
|
26
|
+
init();
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
void HybridFtp2::init() {
|
|
30
|
+
this->installProgress<ProgressAdapter<CkFtp2Progress>>();
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
void HybridFtp2::dispose() {
|
|
34
|
+
this->disposeChilkat();
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
// ---- Properties ----
|
|
38
|
+
std::string HybridFtp2::getLastErrorHtml() {
|
|
39
|
+
this->beginCall();
|
|
40
|
+
CkString _s;
|
|
41
|
+
this->ck().get_LastErrorHtml(_s);
|
|
42
|
+
return rt::stdString(_s);
|
|
43
|
+
}
|
|
44
|
+
std::string HybridFtp2::getLastErrorText() {
|
|
45
|
+
this->beginCall();
|
|
46
|
+
CkString _s;
|
|
47
|
+
this->ck().get_LastErrorText(_s);
|
|
48
|
+
return rt::stdString(_s);
|
|
49
|
+
}
|
|
50
|
+
std::string HybridFtp2::getLastErrorXml() {
|
|
51
|
+
this->beginCall();
|
|
52
|
+
CkString _s;
|
|
53
|
+
this->ck().get_LastErrorXml(_s);
|
|
54
|
+
return rt::stdString(_s);
|
|
55
|
+
}
|
|
56
|
+
std::string HybridFtp2::getVersion() {
|
|
57
|
+
this->beginCall();
|
|
58
|
+
CkString _s;
|
|
59
|
+
this->ck().get_Version(_s);
|
|
60
|
+
return rt::stdString(_s);
|
|
61
|
+
}
|
|
62
|
+
std::string HybridFtp2::getDebugLogFilePath() {
|
|
63
|
+
this->beginCall();
|
|
64
|
+
CkString _s;
|
|
65
|
+
this->ck().get_DebugLogFilePath(_s);
|
|
66
|
+
return rt::stdString(_s);
|
|
67
|
+
}
|
|
68
|
+
void HybridFtp2::setDebugLogFilePath(const std::string& value) {
|
|
69
|
+
this->beginCall();
|
|
70
|
+
rt::checkNoNul(value, "debugLogFilePath");
|
|
71
|
+
this->ck().put_DebugLogFilePath(value.c_str());
|
|
72
|
+
}
|
|
73
|
+
bool HybridFtp2::getVerboseLogging() {
|
|
74
|
+
this->beginCall();
|
|
75
|
+
return this->ck().get_VerboseLogging();
|
|
76
|
+
}
|
|
77
|
+
void HybridFtp2::setVerboseLogging(bool value) {
|
|
78
|
+
this->beginCall();
|
|
79
|
+
this->ck().put_VerboseLogging(value);
|
|
80
|
+
}
|
|
81
|
+
bool HybridFtp2::getLastMethodSuccess() {
|
|
82
|
+
this->beginCall();
|
|
83
|
+
return this->ck().get_LastMethodSuccess();
|
|
84
|
+
}
|
|
85
|
+
void HybridFtp2::setLastMethodSuccess(bool value) {
|
|
86
|
+
this->beginCall();
|
|
87
|
+
this->ck().put_LastMethodSuccess(value);
|
|
88
|
+
}
|
|
89
|
+
bool HybridFtp2::getAbortCurrent() {
|
|
90
|
+
this->beginCall();
|
|
91
|
+
return this->ck().get_AbortCurrent();
|
|
92
|
+
}
|
|
93
|
+
void HybridFtp2::setAbortCurrent(bool value) {
|
|
94
|
+
this->beginCall();
|
|
95
|
+
this->ck().put_AbortCurrent(value);
|
|
96
|
+
}
|
|
97
|
+
std::string HybridFtp2::getAccount() {
|
|
98
|
+
this->beginCall();
|
|
99
|
+
CkString _s;
|
|
100
|
+
this->ck().get_Account(_s);
|
|
101
|
+
return rt::stdString(_s);
|
|
102
|
+
}
|
|
103
|
+
void HybridFtp2::setAccount(const std::string& value) {
|
|
104
|
+
this->beginCall();
|
|
105
|
+
rt::checkNoNul(value, "account");
|
|
106
|
+
this->ck().put_Account(value.c_str());
|
|
107
|
+
}
|
|
108
|
+
double HybridFtp2::getActivePortRangeEnd() {
|
|
109
|
+
this->beginCall();
|
|
110
|
+
return static_cast<double>(this->ck().get_ActivePortRangeEnd());
|
|
111
|
+
}
|
|
112
|
+
void HybridFtp2::setActivePortRangeEnd(double value) {
|
|
113
|
+
this->beginCall();
|
|
114
|
+
this->ck().put_ActivePortRangeEnd(rt::toInt(value, "activePortRangeEnd"));
|
|
115
|
+
}
|
|
116
|
+
double HybridFtp2::getActivePortRangeStart() {
|
|
117
|
+
this->beginCall();
|
|
118
|
+
return static_cast<double>(this->ck().get_ActivePortRangeStart());
|
|
119
|
+
}
|
|
120
|
+
void HybridFtp2::setActivePortRangeStart(double value) {
|
|
121
|
+
this->beginCall();
|
|
122
|
+
this->ck().put_ActivePortRangeStart(rt::toInt(value, "activePortRangeStart"));
|
|
123
|
+
}
|
|
124
|
+
double HybridFtp2::getAllocateSize() {
|
|
125
|
+
this->beginCall();
|
|
126
|
+
return static_cast<double>(this->ck().get_AllocateSize());
|
|
127
|
+
}
|
|
128
|
+
void HybridFtp2::setAllocateSize(double value) {
|
|
129
|
+
this->beginCall();
|
|
130
|
+
this->ck().put_AllocateSize(rt::toULong(value, "allocateSize"));
|
|
131
|
+
}
|
|
132
|
+
bool HybridFtp2::getAllowMlsd() {
|
|
133
|
+
this->beginCall();
|
|
134
|
+
return this->ck().get_AllowMlsd();
|
|
135
|
+
}
|
|
136
|
+
void HybridFtp2::setAllowMlsd(bool value) {
|
|
137
|
+
this->beginCall();
|
|
138
|
+
this->ck().put_AllowMlsd(value);
|
|
139
|
+
}
|
|
140
|
+
double HybridFtp2::getCurBytesReceived() {
|
|
141
|
+
this->beginCall();
|
|
142
|
+
return static_cast<double>(this->ck().get_CurBytesReceived());
|
|
143
|
+
}
|
|
144
|
+
double HybridFtp2::getCurBytesReceived64() {
|
|
145
|
+
this->beginCall();
|
|
146
|
+
return static_cast<double>(this->ck().get_CurBytesReceived64());
|
|
147
|
+
}
|
|
148
|
+
std::string HybridFtp2::getCurBytesReceivedStr() {
|
|
149
|
+
this->beginCall();
|
|
150
|
+
CkString _s;
|
|
151
|
+
this->ck().get_CurBytesReceivedStr(_s);
|
|
152
|
+
return rt::stdString(_s);
|
|
153
|
+
}
|
|
154
|
+
double HybridFtp2::getCurBytesSent() {
|
|
155
|
+
this->beginCall();
|
|
156
|
+
return static_cast<double>(this->ck().get_CurBytesSent());
|
|
157
|
+
}
|
|
158
|
+
double HybridFtp2::getCurBytesSent64() {
|
|
159
|
+
this->beginCall();
|
|
160
|
+
return static_cast<double>(this->ck().get_CurBytesSent64());
|
|
161
|
+
}
|
|
162
|
+
std::string HybridFtp2::getCurBytesSentStr() {
|
|
163
|
+
this->beginCall();
|
|
164
|
+
CkString _s;
|
|
165
|
+
this->ck().get_CurBytesSentStr(_s);
|
|
166
|
+
return rt::stdString(_s);
|
|
167
|
+
}
|
|
168
|
+
bool HybridFtp2::getAuthSsl() {
|
|
169
|
+
this->beginCall();
|
|
170
|
+
return this->ck().get_AuthSsl();
|
|
171
|
+
}
|
|
172
|
+
void HybridFtp2::setAuthSsl(bool value) {
|
|
173
|
+
this->beginCall();
|
|
174
|
+
this->ck().put_AuthSsl(value);
|
|
175
|
+
}
|
|
176
|
+
bool HybridFtp2::getAuthTls() {
|
|
177
|
+
this->beginCall();
|
|
178
|
+
return this->ck().get_AuthTls();
|
|
179
|
+
}
|
|
180
|
+
void HybridFtp2::setAuthTls(bool value) {
|
|
181
|
+
this->beginCall();
|
|
182
|
+
this->ck().put_AuthTls(value);
|
|
183
|
+
}
|
|
184
|
+
bool HybridFtp2::getAutoFeat() {
|
|
185
|
+
this->beginCall();
|
|
186
|
+
return this->ck().get_AutoFeat();
|
|
187
|
+
}
|
|
188
|
+
void HybridFtp2::setAutoFeat(bool value) {
|
|
189
|
+
this->beginCall();
|
|
190
|
+
this->ck().put_AutoFeat(value);
|
|
191
|
+
}
|
|
192
|
+
bool HybridFtp2::getAutoFix() {
|
|
193
|
+
this->beginCall();
|
|
194
|
+
return this->ck().get_AutoFix();
|
|
195
|
+
}
|
|
196
|
+
void HybridFtp2::setAutoFix(bool value) {
|
|
197
|
+
this->beginCall();
|
|
198
|
+
this->ck().put_AutoFix(value);
|
|
199
|
+
}
|
|
200
|
+
bool HybridFtp2::getAutoGetSizeForProgress() {
|
|
201
|
+
this->beginCall();
|
|
202
|
+
return this->ck().get_AutoGetSizeForProgress();
|
|
203
|
+
}
|
|
204
|
+
void HybridFtp2::setAutoGetSizeForProgress(bool value) {
|
|
205
|
+
this->beginCall();
|
|
206
|
+
this->ck().put_AutoGetSizeForProgress(value);
|
|
207
|
+
}
|
|
208
|
+
bool HybridFtp2::getAutoOptsUtf8() {
|
|
209
|
+
this->beginCall();
|
|
210
|
+
return this->ck().get_AutoOptsUtf8();
|
|
211
|
+
}
|
|
212
|
+
void HybridFtp2::setAutoOptsUtf8(bool value) {
|
|
213
|
+
this->beginCall();
|
|
214
|
+
this->ck().put_AutoOptsUtf8(value);
|
|
215
|
+
}
|
|
216
|
+
bool HybridFtp2::getAutoSetUseEpsv() {
|
|
217
|
+
this->beginCall();
|
|
218
|
+
return this->ck().get_AutoSetUseEpsv();
|
|
219
|
+
}
|
|
220
|
+
void HybridFtp2::setAutoSetUseEpsv(bool value) {
|
|
221
|
+
this->beginCall();
|
|
222
|
+
this->ck().put_AutoSetUseEpsv(value);
|
|
223
|
+
}
|
|
224
|
+
bool HybridFtp2::getAutoSyst() {
|
|
225
|
+
this->beginCall();
|
|
226
|
+
return this->ck().get_AutoSyst();
|
|
227
|
+
}
|
|
228
|
+
void HybridFtp2::setAutoSyst(bool value) {
|
|
229
|
+
this->beginCall();
|
|
230
|
+
this->ck().put_AutoSyst(value);
|
|
231
|
+
}
|
|
232
|
+
bool HybridFtp2::getAutoXcrc() {
|
|
233
|
+
this->beginCall();
|
|
234
|
+
return this->ck().get_AutoXcrc();
|
|
235
|
+
}
|
|
236
|
+
void HybridFtp2::setAutoXcrc(bool value) {
|
|
237
|
+
this->beginCall();
|
|
238
|
+
this->ck().put_AutoXcrc(value);
|
|
239
|
+
}
|
|
240
|
+
double HybridFtp2::getBandwidthThrottleDown() {
|
|
241
|
+
this->beginCall();
|
|
242
|
+
return static_cast<double>(this->ck().get_BandwidthThrottleDown());
|
|
243
|
+
}
|
|
244
|
+
void HybridFtp2::setBandwidthThrottleDown(double value) {
|
|
245
|
+
this->beginCall();
|
|
246
|
+
this->ck().put_BandwidthThrottleDown(rt::toInt(value, "bandwidthThrottleDown"));
|
|
247
|
+
}
|
|
248
|
+
double HybridFtp2::getBandwidthThrottleUp() {
|
|
249
|
+
this->beginCall();
|
|
250
|
+
return static_cast<double>(this->ck().get_BandwidthThrottleUp());
|
|
251
|
+
}
|
|
252
|
+
void HybridFtp2::setBandwidthThrottleUp(double value) {
|
|
253
|
+
this->beginCall();
|
|
254
|
+
this->ck().put_BandwidthThrottleUp(rt::toInt(value, "bandwidthThrottleUp"));
|
|
255
|
+
}
|
|
256
|
+
std::string HybridFtp2::getClientIpAddress() {
|
|
257
|
+
this->beginCall();
|
|
258
|
+
CkString _s;
|
|
259
|
+
this->ck().get_ClientIpAddress(_s);
|
|
260
|
+
return rt::stdString(_s);
|
|
261
|
+
}
|
|
262
|
+
void HybridFtp2::setClientIpAddress(const std::string& value) {
|
|
263
|
+
this->beginCall();
|
|
264
|
+
rt::checkNoNul(value, "clientIpAddress");
|
|
265
|
+
this->ck().put_ClientIpAddress(value.c_str());
|
|
266
|
+
}
|
|
267
|
+
std::string HybridFtp2::getCommandCharset() {
|
|
268
|
+
this->beginCall();
|
|
269
|
+
CkString _s;
|
|
270
|
+
this->ck().get_CommandCharset(_s);
|
|
271
|
+
return rt::stdString(_s);
|
|
272
|
+
}
|
|
273
|
+
void HybridFtp2::setCommandCharset(const std::string& value) {
|
|
274
|
+
this->beginCall();
|
|
275
|
+
rt::checkNoNul(value, "commandCharset");
|
|
276
|
+
this->ck().put_CommandCharset(value.c_str());
|
|
277
|
+
}
|
|
278
|
+
double HybridFtp2::getConnectFailReason() {
|
|
279
|
+
this->beginCall();
|
|
280
|
+
return static_cast<double>(this->ck().get_ConnectFailReason());
|
|
281
|
+
}
|
|
282
|
+
double HybridFtp2::getConnectTimeout() {
|
|
283
|
+
this->beginCall();
|
|
284
|
+
return static_cast<double>(this->ck().get_ConnectTimeout());
|
|
285
|
+
}
|
|
286
|
+
void HybridFtp2::setConnectTimeout(double value) {
|
|
287
|
+
this->beginCall();
|
|
288
|
+
this->ck().put_ConnectTimeout(rt::toInt(value, "connectTimeout"));
|
|
289
|
+
}
|
|
290
|
+
bool HybridFtp2::getConnectVerified() {
|
|
291
|
+
this->beginCall();
|
|
292
|
+
return this->ck().get_ConnectVerified();
|
|
293
|
+
}
|
|
294
|
+
double HybridFtp2::getCrlfMode() {
|
|
295
|
+
this->beginCall();
|
|
296
|
+
return static_cast<double>(this->ck().get_CrlfMode());
|
|
297
|
+
}
|
|
298
|
+
void HybridFtp2::setCrlfMode(double value) {
|
|
299
|
+
this->beginCall();
|
|
300
|
+
this->ck().put_CrlfMode(rt::toInt(value, "crlfMode"));
|
|
301
|
+
}
|
|
302
|
+
std::string HybridFtp2::getDataProtection() {
|
|
303
|
+
this->beginCall();
|
|
304
|
+
CkString _s;
|
|
305
|
+
this->ck().get_DataProtection(_s);
|
|
306
|
+
return rt::stdString(_s);
|
|
307
|
+
}
|
|
308
|
+
void HybridFtp2::setDataProtection(const std::string& value) {
|
|
309
|
+
this->beginCall();
|
|
310
|
+
rt::checkNoNul(value, "dataProtection");
|
|
311
|
+
this->ck().put_DataProtection(value.c_str());
|
|
312
|
+
}
|
|
313
|
+
std::string HybridFtp2::getDirListingCharset() {
|
|
314
|
+
this->beginCall();
|
|
315
|
+
CkString _s;
|
|
316
|
+
this->ck().get_DirListingCharset(_s);
|
|
317
|
+
return rt::stdString(_s);
|
|
318
|
+
}
|
|
319
|
+
void HybridFtp2::setDirListingCharset(const std::string& value) {
|
|
320
|
+
this->beginCall();
|
|
321
|
+
rt::checkNoNul(value, "dirListingCharset");
|
|
322
|
+
this->ck().put_DirListingCharset(value.c_str());
|
|
323
|
+
}
|
|
324
|
+
double HybridFtp2::getDownloadTransferRate() {
|
|
325
|
+
this->beginCall();
|
|
326
|
+
return static_cast<double>(this->ck().get_DownloadTransferRate());
|
|
327
|
+
}
|
|
328
|
+
std::string HybridFtp2::getForcePortIpAddress() {
|
|
329
|
+
this->beginCall();
|
|
330
|
+
CkString _s;
|
|
331
|
+
this->ck().get_ForcePortIpAddress(_s);
|
|
332
|
+
return rt::stdString(_s);
|
|
333
|
+
}
|
|
334
|
+
void HybridFtp2::setForcePortIpAddress(const std::string& value) {
|
|
335
|
+
this->beginCall();
|
|
336
|
+
rt::checkNoNul(value, "forcePortIpAddress");
|
|
337
|
+
this->ck().put_ForcePortIpAddress(value.c_str());
|
|
338
|
+
}
|
|
339
|
+
std::string HybridFtp2::getGreeting() {
|
|
340
|
+
this->beginCall();
|
|
341
|
+
CkString _s;
|
|
342
|
+
this->ck().get_Greeting(_s);
|
|
343
|
+
return rt::stdString(_s);
|
|
344
|
+
}
|
|
345
|
+
bool HybridFtp2::getHasModeZ() {
|
|
346
|
+
this->beginCall();
|
|
347
|
+
return this->ck().get_HasModeZ();
|
|
348
|
+
}
|
|
349
|
+
double HybridFtp2::getHeartbeatMs() {
|
|
350
|
+
this->beginCall();
|
|
351
|
+
return static_cast<double>(this->ck().get_HeartbeatMs());
|
|
352
|
+
}
|
|
353
|
+
void HybridFtp2::setHeartbeatMs(double value) {
|
|
354
|
+
this->beginCall();
|
|
355
|
+
this->ck().put_HeartbeatMs(rt::toInt(value, "heartbeatMs"));
|
|
356
|
+
}
|
|
357
|
+
std::string HybridFtp2::getHostname() {
|
|
358
|
+
this->beginCall();
|
|
359
|
+
CkString _s;
|
|
360
|
+
this->ck().get_Hostname(_s);
|
|
361
|
+
return rt::stdString(_s);
|
|
362
|
+
}
|
|
363
|
+
void HybridFtp2::setHostname(const std::string& value) {
|
|
364
|
+
this->beginCall();
|
|
365
|
+
rt::checkNoNul(value, "hostname");
|
|
366
|
+
this->ck().put_Hostname(value.c_str());
|
|
367
|
+
}
|
|
368
|
+
std::string HybridFtp2::getHttpProxyAuthMethod() {
|
|
369
|
+
this->beginCall();
|
|
370
|
+
CkString _s;
|
|
371
|
+
this->ck().get_HttpProxyAuthMethod(_s);
|
|
372
|
+
return rt::stdString(_s);
|
|
373
|
+
}
|
|
374
|
+
void HybridFtp2::setHttpProxyAuthMethod(const std::string& value) {
|
|
375
|
+
this->beginCall();
|
|
376
|
+
rt::checkNoNul(value, "httpProxyAuthMethod");
|
|
377
|
+
this->ck().put_HttpProxyAuthMethod(value.c_str());
|
|
378
|
+
}
|
|
379
|
+
std::string HybridFtp2::getHttpProxyDomain() {
|
|
380
|
+
this->beginCall();
|
|
381
|
+
CkString _s;
|
|
382
|
+
this->ck().get_HttpProxyDomain(_s);
|
|
383
|
+
return rt::stdString(_s);
|
|
384
|
+
}
|
|
385
|
+
void HybridFtp2::setHttpProxyDomain(const std::string& value) {
|
|
386
|
+
this->beginCall();
|
|
387
|
+
rt::checkNoNul(value, "httpProxyDomain");
|
|
388
|
+
this->ck().put_HttpProxyDomain(value.c_str());
|
|
389
|
+
}
|
|
390
|
+
std::string HybridFtp2::getHttpProxyHostname() {
|
|
391
|
+
this->beginCall();
|
|
392
|
+
CkString _s;
|
|
393
|
+
this->ck().get_HttpProxyHostname(_s);
|
|
394
|
+
return rt::stdString(_s);
|
|
395
|
+
}
|
|
396
|
+
void HybridFtp2::setHttpProxyHostname(const std::string& value) {
|
|
397
|
+
this->beginCall();
|
|
398
|
+
rt::checkNoNul(value, "httpProxyHostname");
|
|
399
|
+
this->ck().put_HttpProxyHostname(value.c_str());
|
|
400
|
+
}
|
|
401
|
+
std::string HybridFtp2::getHttpProxyPassword() {
|
|
402
|
+
this->beginCall();
|
|
403
|
+
CkString _s;
|
|
404
|
+
this->ck().get_HttpProxyPassword(_s);
|
|
405
|
+
return rt::stdString(_s);
|
|
406
|
+
}
|
|
407
|
+
void HybridFtp2::setHttpProxyPassword(const std::string& value) {
|
|
408
|
+
this->beginCall();
|
|
409
|
+
rt::checkNoNul(value, "httpProxyPassword");
|
|
410
|
+
this->ck().put_HttpProxyPassword(value.c_str());
|
|
411
|
+
}
|
|
412
|
+
double HybridFtp2::getHttpProxyPort() {
|
|
413
|
+
this->beginCall();
|
|
414
|
+
return static_cast<double>(this->ck().get_HttpProxyPort());
|
|
415
|
+
}
|
|
416
|
+
void HybridFtp2::setHttpProxyPort(double value) {
|
|
417
|
+
this->beginCall();
|
|
418
|
+
this->ck().put_HttpProxyPort(rt::toInt(value, "httpProxyPort"));
|
|
419
|
+
}
|
|
420
|
+
std::string HybridFtp2::getHttpProxyUsername() {
|
|
421
|
+
this->beginCall();
|
|
422
|
+
CkString _s;
|
|
423
|
+
this->ck().get_HttpProxyUsername(_s);
|
|
424
|
+
return rt::stdString(_s);
|
|
425
|
+
}
|
|
426
|
+
void HybridFtp2::setHttpProxyUsername(const std::string& value) {
|
|
427
|
+
this->beginCall();
|
|
428
|
+
rt::checkNoNul(value, "httpProxyUsername");
|
|
429
|
+
this->ck().put_HttpProxyUsername(value.c_str());
|
|
430
|
+
}
|
|
431
|
+
double HybridFtp2::getIdleTimeoutMs() {
|
|
432
|
+
this->beginCall();
|
|
433
|
+
return static_cast<double>(this->ck().get_IdleTimeoutMs());
|
|
434
|
+
}
|
|
435
|
+
void HybridFtp2::setIdleTimeoutMs(double value) {
|
|
436
|
+
this->beginCall();
|
|
437
|
+
this->ck().put_IdleTimeoutMs(rt::toInt(value, "idleTimeoutMs"));
|
|
438
|
+
}
|
|
439
|
+
bool HybridFtp2::getIsConnected() {
|
|
440
|
+
this->beginCall();
|
|
441
|
+
return this->ck().get_IsConnected();
|
|
442
|
+
}
|
|
443
|
+
bool HybridFtp2::getKeepSessionLog() {
|
|
444
|
+
this->beginCall();
|
|
445
|
+
return this->ck().get_KeepSessionLog();
|
|
446
|
+
}
|
|
447
|
+
void HybridFtp2::setKeepSessionLog(bool value) {
|
|
448
|
+
this->beginCall();
|
|
449
|
+
this->ck().put_KeepSessionLog(value);
|
|
450
|
+
}
|
|
451
|
+
std::string HybridFtp2::getLastReply() {
|
|
452
|
+
this->beginCall();
|
|
453
|
+
CkString _s;
|
|
454
|
+
this->ck().get_LastReply(_s);
|
|
455
|
+
return rt::stdString(_s);
|
|
456
|
+
}
|
|
457
|
+
std::string HybridFtp2::getListPattern() {
|
|
458
|
+
this->beginCall();
|
|
459
|
+
CkString _s;
|
|
460
|
+
this->ck().get_ListPattern(_s);
|
|
461
|
+
return rt::stdString(_s);
|
|
462
|
+
}
|
|
463
|
+
void HybridFtp2::setListPattern(const std::string& value) {
|
|
464
|
+
this->beginCall();
|
|
465
|
+
rt::checkNoNul(value, "listPattern");
|
|
466
|
+
this->ck().put_ListPattern(value.c_str());
|
|
467
|
+
}
|
|
468
|
+
bool HybridFtp2::getLoginVerified() {
|
|
469
|
+
this->beginCall();
|
|
470
|
+
return this->ck().get_LoginVerified();
|
|
471
|
+
}
|
|
472
|
+
bool HybridFtp2::getPartialTransfer() {
|
|
473
|
+
this->beginCall();
|
|
474
|
+
return this->ck().get_PartialTransfer();
|
|
475
|
+
}
|
|
476
|
+
bool HybridFtp2::getPassive() {
|
|
477
|
+
this->beginCall();
|
|
478
|
+
return this->ck().get_Passive();
|
|
479
|
+
}
|
|
480
|
+
void HybridFtp2::setPassive(bool value) {
|
|
481
|
+
this->beginCall();
|
|
482
|
+
this->ck().put_Passive(value);
|
|
483
|
+
}
|
|
484
|
+
bool HybridFtp2::getPassiveUseHostAddr() {
|
|
485
|
+
this->beginCall();
|
|
486
|
+
return this->ck().get_PassiveUseHostAddr();
|
|
487
|
+
}
|
|
488
|
+
void HybridFtp2::setPassiveUseHostAddr(bool value) {
|
|
489
|
+
this->beginCall();
|
|
490
|
+
this->ck().put_PassiveUseHostAddr(value);
|
|
491
|
+
}
|
|
492
|
+
std::string HybridFtp2::getPassword() {
|
|
493
|
+
this->beginCall();
|
|
494
|
+
CkString _s;
|
|
495
|
+
this->ck().get_Password(_s);
|
|
496
|
+
return rt::stdString(_s);
|
|
497
|
+
}
|
|
498
|
+
void HybridFtp2::setPassword(const std::string& value) {
|
|
499
|
+
this->beginCall();
|
|
500
|
+
rt::checkNoNul(value, "password");
|
|
501
|
+
this->ck().put_Password(value.c_str());
|
|
502
|
+
}
|
|
503
|
+
double HybridFtp2::getPercentDoneScale() {
|
|
504
|
+
this->beginCall();
|
|
505
|
+
return static_cast<double>(this->ck().get_PercentDoneScale());
|
|
506
|
+
}
|
|
507
|
+
void HybridFtp2::setPercentDoneScale(double value) {
|
|
508
|
+
this->beginCall();
|
|
509
|
+
this->ck().put_PercentDoneScale(rt::toInt(value, "percentDoneScale"));
|
|
510
|
+
}
|
|
511
|
+
double HybridFtp2::getPort() {
|
|
512
|
+
this->beginCall();
|
|
513
|
+
return static_cast<double>(this->ck().get_Port());
|
|
514
|
+
}
|
|
515
|
+
void HybridFtp2::setPort(double value) {
|
|
516
|
+
this->beginCall();
|
|
517
|
+
this->ck().put_Port(rt::toInt(value, "port"));
|
|
518
|
+
}
|
|
519
|
+
bool HybridFtp2::getPreferIpv6() {
|
|
520
|
+
this->beginCall();
|
|
521
|
+
return this->ck().get_PreferIpv6();
|
|
522
|
+
}
|
|
523
|
+
void HybridFtp2::setPreferIpv6(bool value) {
|
|
524
|
+
this->beginCall();
|
|
525
|
+
this->ck().put_PreferIpv6(value);
|
|
526
|
+
}
|
|
527
|
+
bool HybridFtp2::getPreferNlst() {
|
|
528
|
+
this->beginCall();
|
|
529
|
+
return this->ck().get_PreferNlst();
|
|
530
|
+
}
|
|
531
|
+
void HybridFtp2::setPreferNlst(bool value) {
|
|
532
|
+
this->beginCall();
|
|
533
|
+
this->ck().put_PreferNlst(value);
|
|
534
|
+
}
|
|
535
|
+
double HybridFtp2::getProgressMonSize() {
|
|
536
|
+
this->beginCall();
|
|
537
|
+
return static_cast<double>(this->ck().get_ProgressMonSize());
|
|
538
|
+
}
|
|
539
|
+
void HybridFtp2::setProgressMonSize(double value) {
|
|
540
|
+
this->beginCall();
|
|
541
|
+
this->ck().put_ProgressMonSize(rt::toInt(value, "progressMonSize"));
|
|
542
|
+
}
|
|
543
|
+
double HybridFtp2::getProgressMonSize64() {
|
|
544
|
+
this->beginCall();
|
|
545
|
+
return static_cast<double>(this->ck().get_ProgressMonSize64());
|
|
546
|
+
}
|
|
547
|
+
void HybridFtp2::setProgressMonSize64(double value) {
|
|
548
|
+
this->beginCall();
|
|
549
|
+
this->ck().put_ProgressMonSize64(rt::toInt64(value, "progressMonSize64"));
|
|
550
|
+
}
|
|
551
|
+
std::string HybridFtp2::getProxyHostname() {
|
|
552
|
+
this->beginCall();
|
|
553
|
+
CkString _s;
|
|
554
|
+
this->ck().get_ProxyHostname(_s);
|
|
555
|
+
return rt::stdString(_s);
|
|
556
|
+
}
|
|
557
|
+
void HybridFtp2::setProxyHostname(const std::string& value) {
|
|
558
|
+
this->beginCall();
|
|
559
|
+
rt::checkNoNul(value, "proxyHostname");
|
|
560
|
+
this->ck().put_ProxyHostname(value.c_str());
|
|
561
|
+
}
|
|
562
|
+
double HybridFtp2::getProxyMethod() {
|
|
563
|
+
this->beginCall();
|
|
564
|
+
return static_cast<double>(this->ck().get_ProxyMethod());
|
|
565
|
+
}
|
|
566
|
+
void HybridFtp2::setProxyMethod(double value) {
|
|
567
|
+
this->beginCall();
|
|
568
|
+
this->ck().put_ProxyMethod(rt::toInt(value, "proxyMethod"));
|
|
569
|
+
}
|
|
570
|
+
std::string HybridFtp2::getProxyPassword() {
|
|
571
|
+
this->beginCall();
|
|
572
|
+
CkString _s;
|
|
573
|
+
this->ck().get_ProxyPassword(_s);
|
|
574
|
+
return rt::stdString(_s);
|
|
575
|
+
}
|
|
576
|
+
void HybridFtp2::setProxyPassword(const std::string& value) {
|
|
577
|
+
this->beginCall();
|
|
578
|
+
rt::checkNoNul(value, "proxyPassword");
|
|
579
|
+
this->ck().put_ProxyPassword(value.c_str());
|
|
580
|
+
}
|
|
581
|
+
double HybridFtp2::getProxyPort() {
|
|
582
|
+
this->beginCall();
|
|
583
|
+
return static_cast<double>(this->ck().get_ProxyPort());
|
|
584
|
+
}
|
|
585
|
+
void HybridFtp2::setProxyPort(double value) {
|
|
586
|
+
this->beginCall();
|
|
587
|
+
this->ck().put_ProxyPort(rt::toInt(value, "proxyPort"));
|
|
588
|
+
}
|
|
589
|
+
std::string HybridFtp2::getProxyUsername() {
|
|
590
|
+
this->beginCall();
|
|
591
|
+
CkString _s;
|
|
592
|
+
this->ck().get_ProxyUsername(_s);
|
|
593
|
+
return rt::stdString(_s);
|
|
594
|
+
}
|
|
595
|
+
void HybridFtp2::setProxyUsername(const std::string& value) {
|
|
596
|
+
this->beginCall();
|
|
597
|
+
rt::checkNoNul(value, "proxyUsername");
|
|
598
|
+
this->ck().put_ProxyUsername(value.c_str());
|
|
599
|
+
}
|
|
600
|
+
double HybridFtp2::getReadTimeout() {
|
|
601
|
+
this->beginCall();
|
|
602
|
+
return static_cast<double>(this->ck().get_ReadTimeout());
|
|
603
|
+
}
|
|
604
|
+
void HybridFtp2::setReadTimeout(double value) {
|
|
605
|
+
this->beginCall();
|
|
606
|
+
this->ck().put_ReadTimeout(rt::toInt(value, "readTimeout"));
|
|
607
|
+
}
|
|
608
|
+
bool HybridFtp2::getRequireSslCertVerify() {
|
|
609
|
+
this->beginCall();
|
|
610
|
+
return this->ck().get_RequireSslCertVerify();
|
|
611
|
+
}
|
|
612
|
+
void HybridFtp2::setRequireSslCertVerify(bool value) {
|
|
613
|
+
this->beginCall();
|
|
614
|
+
this->ck().put_RequireSslCertVerify(value);
|
|
615
|
+
}
|
|
616
|
+
bool HybridFtp2::getRestartNext() {
|
|
617
|
+
this->beginCall();
|
|
618
|
+
return this->ck().get_RestartNext();
|
|
619
|
+
}
|
|
620
|
+
void HybridFtp2::setRestartNext(bool value) {
|
|
621
|
+
this->beginCall();
|
|
622
|
+
this->ck().put_RestartNext(value);
|
|
623
|
+
}
|
|
624
|
+
std::string HybridFtp2::getSessionLog() {
|
|
625
|
+
this->beginCall();
|
|
626
|
+
CkString _s;
|
|
627
|
+
this->ck().get_SessionLog(_s);
|
|
628
|
+
return rt::stdString(_s);
|
|
629
|
+
}
|
|
630
|
+
double HybridFtp2::getSoRcvBuf() {
|
|
631
|
+
this->beginCall();
|
|
632
|
+
return static_cast<double>(this->ck().get_SoRcvBuf());
|
|
633
|
+
}
|
|
634
|
+
void HybridFtp2::setSoRcvBuf(double value) {
|
|
635
|
+
this->beginCall();
|
|
636
|
+
this->ck().put_SoRcvBuf(rt::toInt(value, "soRcvBuf"));
|
|
637
|
+
}
|
|
638
|
+
double HybridFtp2::getSoSndBuf() {
|
|
639
|
+
this->beginCall();
|
|
640
|
+
return static_cast<double>(this->ck().get_SoSndBuf());
|
|
641
|
+
}
|
|
642
|
+
void HybridFtp2::setSoSndBuf(double value) {
|
|
643
|
+
this->beginCall();
|
|
644
|
+
this->ck().put_SoSndBuf(rt::toInt(value, "soSndBuf"));
|
|
645
|
+
}
|
|
646
|
+
std::string HybridFtp2::getSocksHostname() {
|
|
647
|
+
this->beginCall();
|
|
648
|
+
CkString _s;
|
|
649
|
+
this->ck().get_SocksHostname(_s);
|
|
650
|
+
return rt::stdString(_s);
|
|
651
|
+
}
|
|
652
|
+
void HybridFtp2::setSocksHostname(const std::string& value) {
|
|
653
|
+
this->beginCall();
|
|
654
|
+
rt::checkNoNul(value, "socksHostname");
|
|
655
|
+
this->ck().put_SocksHostname(value.c_str());
|
|
656
|
+
}
|
|
657
|
+
std::string HybridFtp2::getSocksPassword() {
|
|
658
|
+
this->beginCall();
|
|
659
|
+
CkString _s;
|
|
660
|
+
this->ck().get_SocksPassword(_s);
|
|
661
|
+
return rt::stdString(_s);
|
|
662
|
+
}
|
|
663
|
+
void HybridFtp2::setSocksPassword(const std::string& value) {
|
|
664
|
+
this->beginCall();
|
|
665
|
+
rt::checkNoNul(value, "socksPassword");
|
|
666
|
+
this->ck().put_SocksPassword(value.c_str());
|
|
667
|
+
}
|
|
668
|
+
double HybridFtp2::getSocksPort() {
|
|
669
|
+
this->beginCall();
|
|
670
|
+
return static_cast<double>(this->ck().get_SocksPort());
|
|
671
|
+
}
|
|
672
|
+
void HybridFtp2::setSocksPort(double value) {
|
|
673
|
+
this->beginCall();
|
|
674
|
+
this->ck().put_SocksPort(rt::toInt(value, "socksPort"));
|
|
675
|
+
}
|
|
676
|
+
std::string HybridFtp2::getSocksUsername() {
|
|
677
|
+
this->beginCall();
|
|
678
|
+
CkString _s;
|
|
679
|
+
this->ck().get_SocksUsername(_s);
|
|
680
|
+
return rt::stdString(_s);
|
|
681
|
+
}
|
|
682
|
+
void HybridFtp2::setSocksUsername(const std::string& value) {
|
|
683
|
+
this->beginCall();
|
|
684
|
+
rt::checkNoNul(value, "socksUsername");
|
|
685
|
+
this->ck().put_SocksUsername(value.c_str());
|
|
686
|
+
}
|
|
687
|
+
double HybridFtp2::getSocksVersion() {
|
|
688
|
+
this->beginCall();
|
|
689
|
+
return static_cast<double>(this->ck().get_SocksVersion());
|
|
690
|
+
}
|
|
691
|
+
void HybridFtp2::setSocksVersion(double value) {
|
|
692
|
+
this->beginCall();
|
|
693
|
+
this->ck().put_SocksVersion(rt::toInt(value, "socksVersion"));
|
|
694
|
+
}
|
|
695
|
+
bool HybridFtp2::getSsl() {
|
|
696
|
+
this->beginCall();
|
|
697
|
+
return this->ck().get_Ssl();
|
|
698
|
+
}
|
|
699
|
+
void HybridFtp2::setSsl(bool value) {
|
|
700
|
+
this->beginCall();
|
|
701
|
+
this->ck().put_Ssl(value);
|
|
702
|
+
}
|
|
703
|
+
std::string HybridFtp2::getSslAllowedCiphers() {
|
|
704
|
+
this->beginCall();
|
|
705
|
+
CkString _s;
|
|
706
|
+
this->ck().get_SslAllowedCiphers(_s);
|
|
707
|
+
return rt::stdString(_s);
|
|
708
|
+
}
|
|
709
|
+
void HybridFtp2::setSslAllowedCiphers(const std::string& value) {
|
|
710
|
+
this->beginCall();
|
|
711
|
+
rt::checkNoNul(value, "sslAllowedCiphers");
|
|
712
|
+
this->ck().put_SslAllowedCiphers(value.c_str());
|
|
713
|
+
}
|
|
714
|
+
std::string HybridFtp2::getSslProtocol() {
|
|
715
|
+
this->beginCall();
|
|
716
|
+
CkString _s;
|
|
717
|
+
this->ck().get_SslProtocol(_s);
|
|
718
|
+
return rt::stdString(_s);
|
|
719
|
+
}
|
|
720
|
+
void HybridFtp2::setSslProtocol(const std::string& value) {
|
|
721
|
+
this->beginCall();
|
|
722
|
+
rt::checkNoNul(value, "sslProtocol");
|
|
723
|
+
this->ck().put_SslProtocol(value.c_str());
|
|
724
|
+
}
|
|
725
|
+
bool HybridFtp2::getSslServerCertVerified() {
|
|
726
|
+
this->beginCall();
|
|
727
|
+
return this->ck().get_SslServerCertVerified();
|
|
728
|
+
}
|
|
729
|
+
std::string HybridFtp2::getSyncMustMatch() {
|
|
730
|
+
this->beginCall();
|
|
731
|
+
CkString _s;
|
|
732
|
+
this->ck().get_SyncMustMatch(_s);
|
|
733
|
+
return rt::stdString(_s);
|
|
734
|
+
}
|
|
735
|
+
void HybridFtp2::setSyncMustMatch(const std::string& value) {
|
|
736
|
+
this->beginCall();
|
|
737
|
+
rt::checkNoNul(value, "syncMustMatch");
|
|
738
|
+
this->ck().put_SyncMustMatch(value.c_str());
|
|
739
|
+
}
|
|
740
|
+
std::string HybridFtp2::getSyncMustNotMatch() {
|
|
741
|
+
this->beginCall();
|
|
742
|
+
CkString _s;
|
|
743
|
+
this->ck().get_SyncMustNotMatch(_s);
|
|
744
|
+
return rt::stdString(_s);
|
|
745
|
+
}
|
|
746
|
+
void HybridFtp2::setSyncMustNotMatch(const std::string& value) {
|
|
747
|
+
this->beginCall();
|
|
748
|
+
rt::checkNoNul(value, "syncMustNotMatch");
|
|
749
|
+
this->ck().put_SyncMustNotMatch(value.c_str());
|
|
750
|
+
}
|
|
751
|
+
std::string HybridFtp2::getSyncPreview() {
|
|
752
|
+
this->beginCall();
|
|
753
|
+
CkString _s;
|
|
754
|
+
this->ck().get_SyncPreview(_s);
|
|
755
|
+
return rt::stdString(_s);
|
|
756
|
+
}
|
|
757
|
+
std::string HybridFtp2::getTlsCipherSuite() {
|
|
758
|
+
this->beginCall();
|
|
759
|
+
CkString _s;
|
|
760
|
+
this->ck().get_TlsCipherSuite(_s);
|
|
761
|
+
return rt::stdString(_s);
|
|
762
|
+
}
|
|
763
|
+
std::string HybridFtp2::getTlsPinSet() {
|
|
764
|
+
this->beginCall();
|
|
765
|
+
CkString _s;
|
|
766
|
+
this->ck().get_TlsPinSet(_s);
|
|
767
|
+
return rt::stdString(_s);
|
|
768
|
+
}
|
|
769
|
+
void HybridFtp2::setTlsPinSet(const std::string& value) {
|
|
770
|
+
this->beginCall();
|
|
771
|
+
rt::checkNoNul(value, "tlsPinSet");
|
|
772
|
+
this->ck().put_TlsPinSet(value.c_str());
|
|
773
|
+
}
|
|
774
|
+
std::string HybridFtp2::getTlsVersion() {
|
|
775
|
+
this->beginCall();
|
|
776
|
+
CkString _s;
|
|
777
|
+
this->ck().get_TlsVersion(_s);
|
|
778
|
+
return rt::stdString(_s);
|
|
779
|
+
}
|
|
780
|
+
double HybridFtp2::getUploadTransferRate() {
|
|
781
|
+
this->beginCall();
|
|
782
|
+
return static_cast<double>(this->ck().get_UploadTransferRate());
|
|
783
|
+
}
|
|
784
|
+
bool HybridFtp2::getUseEpsv() {
|
|
785
|
+
this->beginCall();
|
|
786
|
+
return this->ck().get_UseEpsv();
|
|
787
|
+
}
|
|
788
|
+
void HybridFtp2::setUseEpsv(bool value) {
|
|
789
|
+
this->beginCall();
|
|
790
|
+
this->ck().put_UseEpsv(value);
|
|
791
|
+
}
|
|
792
|
+
std::string HybridFtp2::getUsername() {
|
|
793
|
+
this->beginCall();
|
|
794
|
+
CkString _s;
|
|
795
|
+
this->ck().get_Username(_s);
|
|
796
|
+
return rt::stdString(_s);
|
|
797
|
+
}
|
|
798
|
+
void HybridFtp2::setUsername(const std::string& value) {
|
|
799
|
+
this->beginCall();
|
|
800
|
+
rt::checkNoNul(value, "username");
|
|
801
|
+
this->ck().put_Username(value.c_str());
|
|
802
|
+
}
|
|
803
|
+
bool HybridFtp2::getLargeFileMeasures() {
|
|
804
|
+
this->beginCall();
|
|
805
|
+
return this->ck().get_LargeFileMeasures();
|
|
806
|
+
}
|
|
807
|
+
void HybridFtp2::setLargeFileMeasures(bool value) {
|
|
808
|
+
this->beginCall();
|
|
809
|
+
this->ck().put_LargeFileMeasures(value);
|
|
810
|
+
}
|
|
811
|
+
std::string HybridFtp2::getSyncMustMatchDir() {
|
|
812
|
+
this->beginCall();
|
|
813
|
+
CkString _s;
|
|
814
|
+
this->ck().get_SyncMustMatchDir(_s);
|
|
815
|
+
return rt::stdString(_s);
|
|
816
|
+
}
|
|
817
|
+
void HybridFtp2::setSyncMustMatchDir(const std::string& value) {
|
|
818
|
+
this->beginCall();
|
|
819
|
+
rt::checkNoNul(value, "syncMustMatchDir");
|
|
820
|
+
this->ck().put_SyncMustMatchDir(value.c_str());
|
|
821
|
+
}
|
|
822
|
+
std::string HybridFtp2::getSyncMustNotMatchDir() {
|
|
823
|
+
this->beginCall();
|
|
824
|
+
CkString _s;
|
|
825
|
+
this->ck().get_SyncMustNotMatchDir(_s);
|
|
826
|
+
return rt::stdString(_s);
|
|
827
|
+
}
|
|
828
|
+
void HybridFtp2::setSyncMustNotMatchDir(const std::string& value) {
|
|
829
|
+
this->beginCall();
|
|
830
|
+
rt::checkNoNul(value, "syncMustNotMatchDir");
|
|
831
|
+
this->ck().put_SyncMustNotMatchDir(value.c_str());
|
|
832
|
+
}
|
|
833
|
+
bool HybridFtp2::getSyncCreateAllLocalDirs() {
|
|
834
|
+
this->beginCall();
|
|
835
|
+
return this->ck().get_SyncCreateAllLocalDirs();
|
|
836
|
+
}
|
|
837
|
+
void HybridFtp2::setSyncCreateAllLocalDirs(bool value) {
|
|
838
|
+
this->beginCall();
|
|
839
|
+
this->ck().put_SyncCreateAllLocalDirs(value);
|
|
840
|
+
}
|
|
841
|
+
std::string HybridFtp2::getUncommonOptions() {
|
|
842
|
+
this->beginCall();
|
|
843
|
+
CkString _s;
|
|
844
|
+
this->ck().get_UncommonOptions(_s);
|
|
845
|
+
return rt::stdString(_s);
|
|
846
|
+
}
|
|
847
|
+
void HybridFtp2::setUncommonOptions(const std::string& value) {
|
|
848
|
+
this->beginCall();
|
|
849
|
+
rt::checkNoNul(value, "uncommonOptions");
|
|
850
|
+
this->ck().put_UncommonOptions(value.c_str());
|
|
851
|
+
}
|
|
852
|
+
std::string HybridFtp2::getListOption() {
|
|
853
|
+
this->beginCall();
|
|
854
|
+
CkString _s;
|
|
855
|
+
this->ck().get_ListOption(_s);
|
|
856
|
+
return rt::stdString(_s);
|
|
857
|
+
}
|
|
858
|
+
void HybridFtp2::setListOption(const std::string& value) {
|
|
859
|
+
this->beginCall();
|
|
860
|
+
rt::checkNoNul(value, "listOption");
|
|
861
|
+
this->ck().put_ListOption(value.c_str());
|
|
862
|
+
}
|
|
863
|
+
bool HybridFtp2::getEnableSecrets() {
|
|
864
|
+
this->beginCall();
|
|
865
|
+
return this->ck().get_EnableSecrets();
|
|
866
|
+
}
|
|
867
|
+
void HybridFtp2::setEnableSecrets(bool value) {
|
|
868
|
+
this->beginCall();
|
|
869
|
+
this->ck().put_EnableSecrets(value);
|
|
870
|
+
}
|
|
871
|
+
|
|
872
|
+
// ---- Methods ----
|
|
873
|
+
|
|
874
|
+
void HybridFtp2::appendFile(const std::string& localFilePath, const std::string& remoteFilePath) {
|
|
875
|
+
this->beginCall();
|
|
876
|
+
appendFile_impl(localFilePath, remoteFilePath);
|
|
877
|
+
}
|
|
878
|
+
void HybridFtp2::appendFile_impl(const std::string& localFilePath, const std::string& remoteFilePath) {
|
|
879
|
+
rt::checkNoNul(localFilePath, "localFilePath");
|
|
880
|
+
rt::checkNoNul(remoteFilePath, "remoteFilePath");
|
|
881
|
+
if (!this->ck().AppendFile(localFilePath.c_str(), remoteFilePath.c_str())) throw this->fail("appendFile");
|
|
882
|
+
}
|
|
883
|
+
std::shared_ptr<Promise<void>> HybridFtp2::appendFileAsync(const std::string& localFilePath, const std::string& remoteFilePath) {
|
|
884
|
+
this->beginCall();
|
|
885
|
+
auto _self = this->shared_cast<HybridFtp2>();
|
|
886
|
+
std::vector<std::shared_ptr<HybridObject>> _parts{ _self };
|
|
887
|
+
return rt::runAsync<void>("Ftp2.appendFileAsync", std::move(_parts), [_self, localFilePath, remoteFilePath]() {
|
|
888
|
+
_self->appendFile_impl(localFilePath, remoteFilePath);
|
|
889
|
+
});
|
|
890
|
+
}
|
|
891
|
+
|
|
892
|
+
void HybridFtp2::appendFileFromTextData(const std::string& remoteFilename, const std::string& textData, const std::string& charset) {
|
|
893
|
+
this->beginCall();
|
|
894
|
+
appendFileFromTextData_impl(remoteFilename, textData, charset);
|
|
895
|
+
}
|
|
896
|
+
void HybridFtp2::appendFileFromTextData_impl(const std::string& remoteFilename, const std::string& textData, const std::string& charset) {
|
|
897
|
+
rt::checkNoNul(remoteFilename, "remoteFilename");
|
|
898
|
+
rt::checkNoNul(textData, "textData");
|
|
899
|
+
rt::checkNoNul(charset, "charset");
|
|
900
|
+
if (!this->ck().AppendFileFromTextData(remoteFilename.c_str(), textData.c_str(), charset.c_str())) throw this->fail("appendFileFromTextData");
|
|
901
|
+
}
|
|
902
|
+
std::shared_ptr<Promise<void>> HybridFtp2::appendFileFromTextDataAsync(const std::string& remoteFilename, const std::string& textData, const std::string& charset) {
|
|
903
|
+
this->beginCall();
|
|
904
|
+
auto _self = this->shared_cast<HybridFtp2>();
|
|
905
|
+
std::vector<std::shared_ptr<HybridObject>> _parts{ _self };
|
|
906
|
+
return rt::runAsync<void>("Ftp2.appendFileFromTextDataAsync", std::move(_parts), [_self, remoteFilename, textData, charset]() {
|
|
907
|
+
_self->appendFileFromTextData_impl(remoteFilename, textData, charset);
|
|
908
|
+
});
|
|
909
|
+
}
|
|
910
|
+
|
|
911
|
+
void HybridFtp2::changeRemoteDir(const std::string& remoteDirPath) {
|
|
912
|
+
this->beginCall();
|
|
913
|
+
changeRemoteDir_impl(remoteDirPath);
|
|
914
|
+
}
|
|
915
|
+
void HybridFtp2::changeRemoteDir_impl(const std::string& remoteDirPath) {
|
|
916
|
+
rt::checkNoNul(remoteDirPath, "remoteDirPath");
|
|
917
|
+
if (!this->ck().ChangeRemoteDir(remoteDirPath.c_str())) throw this->fail("changeRemoteDir");
|
|
918
|
+
}
|
|
919
|
+
std::shared_ptr<Promise<void>> HybridFtp2::changeRemoteDirAsync(const std::string& remoteDirPath) {
|
|
920
|
+
this->beginCall();
|
|
921
|
+
auto _self = this->shared_cast<HybridFtp2>();
|
|
922
|
+
std::vector<std::shared_ptr<HybridObject>> _parts{ _self };
|
|
923
|
+
return rt::runAsync<void>("Ftp2.changeRemoteDirAsync", std::move(_parts), [_self, remoteDirPath]() {
|
|
924
|
+
_self->changeRemoteDir_impl(remoteDirPath);
|
|
925
|
+
});
|
|
926
|
+
}
|
|
927
|
+
|
|
928
|
+
bool HybridFtp2::checkConnection() {
|
|
929
|
+
this->beginCall();
|
|
930
|
+
return checkConnection_impl();
|
|
931
|
+
}
|
|
932
|
+
bool HybridFtp2::checkConnection_impl() {
|
|
933
|
+
return this->ck().CheckConnection();
|
|
934
|
+
}
|
|
935
|
+
std::shared_ptr<Promise<bool>> HybridFtp2::checkConnectionAsync() {
|
|
936
|
+
this->beginCall();
|
|
937
|
+
auto _self = this->shared_cast<HybridFtp2>();
|
|
938
|
+
std::vector<std::shared_ptr<HybridObject>> _parts{ _self };
|
|
939
|
+
return rt::runAsync<bool>("Ftp2.checkConnectionAsync", std::move(_parts), [_self]() {
|
|
940
|
+
return _self->checkConnection_impl();
|
|
941
|
+
});
|
|
942
|
+
}
|
|
943
|
+
|
|
944
|
+
void HybridFtp2::clearControlChannel() {
|
|
945
|
+
this->beginCall();
|
|
946
|
+
clearControlChannel_impl();
|
|
947
|
+
}
|
|
948
|
+
void HybridFtp2::clearControlChannel_impl() {
|
|
949
|
+
if (!this->ck().ClearControlChannel()) throw this->fail("clearControlChannel");
|
|
950
|
+
}
|
|
951
|
+
std::shared_ptr<Promise<void>> HybridFtp2::clearControlChannelAsync() {
|
|
952
|
+
this->beginCall();
|
|
953
|
+
auto _self = this->shared_cast<HybridFtp2>();
|
|
954
|
+
std::vector<std::shared_ptr<HybridObject>> _parts{ _self };
|
|
955
|
+
return rt::runAsync<void>("Ftp2.clearControlChannelAsync", std::move(_parts), [_self]() {
|
|
956
|
+
_self->clearControlChannel_impl();
|
|
957
|
+
});
|
|
958
|
+
}
|
|
959
|
+
|
|
960
|
+
void HybridFtp2::clearDirCache() {
|
|
961
|
+
this->beginCall();
|
|
962
|
+
clearDirCache_impl();
|
|
963
|
+
}
|
|
964
|
+
void HybridFtp2::clearDirCache_impl() {
|
|
965
|
+
this->ck().ClearDirCache();
|
|
966
|
+
}
|
|
967
|
+
|
|
968
|
+
void HybridFtp2::clearSessionLog() {
|
|
969
|
+
this->beginCall();
|
|
970
|
+
clearSessionLog_impl();
|
|
971
|
+
}
|
|
972
|
+
void HybridFtp2::clearSessionLog_impl() {
|
|
973
|
+
this->ck().ClearSessionLog();
|
|
974
|
+
}
|
|
975
|
+
|
|
976
|
+
void HybridFtp2::connect() {
|
|
977
|
+
this->beginCall();
|
|
978
|
+
connect_impl();
|
|
979
|
+
}
|
|
980
|
+
void HybridFtp2::connect_impl() {
|
|
981
|
+
if (!this->ck().Connect()) throw this->fail("connect");
|
|
982
|
+
}
|
|
983
|
+
std::shared_ptr<Promise<void>> HybridFtp2::connectAsync() {
|
|
984
|
+
this->beginCall();
|
|
985
|
+
auto _self = this->shared_cast<HybridFtp2>();
|
|
986
|
+
std::vector<std::shared_ptr<HybridObject>> _parts{ _self };
|
|
987
|
+
return rt::runAsync<void>("Ftp2.connectAsync", std::move(_parts), [_self]() {
|
|
988
|
+
_self->connect_impl();
|
|
989
|
+
});
|
|
990
|
+
}
|
|
991
|
+
|
|
992
|
+
void HybridFtp2::connectOnly() {
|
|
993
|
+
this->beginCall();
|
|
994
|
+
connectOnly_impl();
|
|
995
|
+
}
|
|
996
|
+
void HybridFtp2::connectOnly_impl() {
|
|
997
|
+
if (!this->ck().ConnectOnly()) throw this->fail("connectOnly");
|
|
998
|
+
}
|
|
999
|
+
std::shared_ptr<Promise<void>> HybridFtp2::connectOnlyAsync() {
|
|
1000
|
+
this->beginCall();
|
|
1001
|
+
auto _self = this->shared_cast<HybridFtp2>();
|
|
1002
|
+
std::vector<std::shared_ptr<HybridObject>> _parts{ _self };
|
|
1003
|
+
return rt::runAsync<void>("Ftp2.connectOnlyAsync", std::move(_parts), [_self]() {
|
|
1004
|
+
_self->connectOnly_impl();
|
|
1005
|
+
});
|
|
1006
|
+
}
|
|
1007
|
+
|
|
1008
|
+
void HybridFtp2::convertToTls() {
|
|
1009
|
+
this->beginCall();
|
|
1010
|
+
convertToTls_impl();
|
|
1011
|
+
}
|
|
1012
|
+
void HybridFtp2::convertToTls_impl() {
|
|
1013
|
+
if (!this->ck().ConvertToTls()) throw this->fail("convertToTls");
|
|
1014
|
+
}
|
|
1015
|
+
std::shared_ptr<Promise<void>> HybridFtp2::convertToTlsAsync() {
|
|
1016
|
+
this->beginCall();
|
|
1017
|
+
auto _self = this->shared_cast<HybridFtp2>();
|
|
1018
|
+
std::vector<std::shared_ptr<HybridObject>> _parts{ _self };
|
|
1019
|
+
return rt::runAsync<void>("Ftp2.convertToTlsAsync", std::move(_parts), [_self]() {
|
|
1020
|
+
_self->convertToTls_impl();
|
|
1021
|
+
});
|
|
1022
|
+
}
|
|
1023
|
+
|
|
1024
|
+
std::string HybridFtp2::createPlan(const std::string& localDir) {
|
|
1025
|
+
this->beginCall();
|
|
1026
|
+
return createPlan_impl(localDir);
|
|
1027
|
+
}
|
|
1028
|
+
std::string HybridFtp2::createPlan_impl(const std::string& localDir) {
|
|
1029
|
+
rt::checkNoNul(localDir, "localDir");
|
|
1030
|
+
CkString _out;
|
|
1031
|
+
if (!this->ck().CreatePlan(localDir.c_str(), _out)) throw this->fail("createPlan");
|
|
1032
|
+
return rt::stdString(_out);
|
|
1033
|
+
}
|
|
1034
|
+
std::shared_ptr<Promise<std::string>> HybridFtp2::createPlanAsync(const std::string& localDir) {
|
|
1035
|
+
this->beginCall();
|
|
1036
|
+
auto _self = this->shared_cast<HybridFtp2>();
|
|
1037
|
+
std::vector<std::shared_ptr<HybridObject>> _parts{ _self };
|
|
1038
|
+
return rt::runAsync<std::string>("Ftp2.createPlanAsync", std::move(_parts), [_self, localDir]() {
|
|
1039
|
+
return _self->createPlan_impl(localDir);
|
|
1040
|
+
});
|
|
1041
|
+
}
|
|
1042
|
+
|
|
1043
|
+
void HybridFtp2::createRemoteDir(const std::string& remoteDirPath) {
|
|
1044
|
+
this->beginCall();
|
|
1045
|
+
createRemoteDir_impl(remoteDirPath);
|
|
1046
|
+
}
|
|
1047
|
+
void HybridFtp2::createRemoteDir_impl(const std::string& remoteDirPath) {
|
|
1048
|
+
rt::checkNoNul(remoteDirPath, "remoteDirPath");
|
|
1049
|
+
if (!this->ck().CreateRemoteDir(remoteDirPath.c_str())) throw this->fail("createRemoteDir");
|
|
1050
|
+
}
|
|
1051
|
+
std::shared_ptr<Promise<void>> HybridFtp2::createRemoteDirAsync(const std::string& remoteDirPath) {
|
|
1052
|
+
this->beginCall();
|
|
1053
|
+
auto _self = this->shared_cast<HybridFtp2>();
|
|
1054
|
+
std::vector<std::shared_ptr<HybridObject>> _parts{ _self };
|
|
1055
|
+
return rt::runAsync<void>("Ftp2.createRemoteDirAsync", std::move(_parts), [_self, remoteDirPath]() {
|
|
1056
|
+
_self->createRemoteDir_impl(remoteDirPath);
|
|
1057
|
+
});
|
|
1058
|
+
}
|
|
1059
|
+
|
|
1060
|
+
double HybridFtp2::deleteMatching(const std::string& remotePattern) {
|
|
1061
|
+
this->beginCall();
|
|
1062
|
+
return deleteMatching_impl(remotePattern);
|
|
1063
|
+
}
|
|
1064
|
+
double HybridFtp2::deleteMatching_impl(const std::string& remotePattern) {
|
|
1065
|
+
rt::checkNoNul(remotePattern, "remotePattern");
|
|
1066
|
+
return static_cast<double>(this->ck().DeleteMatching(remotePattern.c_str()));
|
|
1067
|
+
}
|
|
1068
|
+
std::shared_ptr<Promise<double>> HybridFtp2::deleteMatchingAsync(const std::string& remotePattern) {
|
|
1069
|
+
this->beginCall();
|
|
1070
|
+
auto _self = this->shared_cast<HybridFtp2>();
|
|
1071
|
+
std::vector<std::shared_ptr<HybridObject>> _parts{ _self };
|
|
1072
|
+
return rt::runAsync<double>("Ftp2.deleteMatchingAsync", std::move(_parts), [_self, remotePattern]() {
|
|
1073
|
+
return _self->deleteMatching_impl(remotePattern);
|
|
1074
|
+
});
|
|
1075
|
+
}
|
|
1076
|
+
|
|
1077
|
+
void HybridFtp2::deleteRemoteFile(const std::string& remoteFilePath) {
|
|
1078
|
+
this->beginCall();
|
|
1079
|
+
deleteRemoteFile_impl(remoteFilePath);
|
|
1080
|
+
}
|
|
1081
|
+
void HybridFtp2::deleteRemoteFile_impl(const std::string& remoteFilePath) {
|
|
1082
|
+
rt::checkNoNul(remoteFilePath, "remoteFilePath");
|
|
1083
|
+
if (!this->ck().DeleteRemoteFile(remoteFilePath.c_str())) throw this->fail("deleteRemoteFile");
|
|
1084
|
+
}
|
|
1085
|
+
std::shared_ptr<Promise<void>> HybridFtp2::deleteRemoteFileAsync(const std::string& remoteFilePath) {
|
|
1086
|
+
this->beginCall();
|
|
1087
|
+
auto _self = this->shared_cast<HybridFtp2>();
|
|
1088
|
+
std::vector<std::shared_ptr<HybridObject>> _parts{ _self };
|
|
1089
|
+
return rt::runAsync<void>("Ftp2.deleteRemoteFileAsync", std::move(_parts), [_self, remoteFilePath]() {
|
|
1090
|
+
_self->deleteRemoteFile_impl(remoteFilePath);
|
|
1091
|
+
});
|
|
1092
|
+
}
|
|
1093
|
+
|
|
1094
|
+
void HybridFtp2::deleteTree() {
|
|
1095
|
+
this->beginCall();
|
|
1096
|
+
deleteTree_impl();
|
|
1097
|
+
}
|
|
1098
|
+
void HybridFtp2::deleteTree_impl() {
|
|
1099
|
+
if (!this->ck().DeleteTree()) throw this->fail("deleteTree");
|
|
1100
|
+
}
|
|
1101
|
+
std::shared_ptr<Promise<void>> HybridFtp2::deleteTreeAsync() {
|
|
1102
|
+
this->beginCall();
|
|
1103
|
+
auto _self = this->shared_cast<HybridFtp2>();
|
|
1104
|
+
std::vector<std::shared_ptr<HybridObject>> _parts{ _self };
|
|
1105
|
+
return rt::runAsync<void>("Ftp2.deleteTreeAsync", std::move(_parts), [_self]() {
|
|
1106
|
+
_self->deleteTree_impl();
|
|
1107
|
+
});
|
|
1108
|
+
}
|
|
1109
|
+
|
|
1110
|
+
std::string HybridFtp2::dirTreeXml() {
|
|
1111
|
+
this->beginCall();
|
|
1112
|
+
return dirTreeXml_impl();
|
|
1113
|
+
}
|
|
1114
|
+
std::string HybridFtp2::dirTreeXml_impl() {
|
|
1115
|
+
CkString _out;
|
|
1116
|
+
if (!this->ck().DirTreeXml(_out)) throw this->fail("dirTreeXml");
|
|
1117
|
+
return rt::stdString(_out);
|
|
1118
|
+
}
|
|
1119
|
+
std::shared_ptr<Promise<std::string>> HybridFtp2::dirTreeXmlAsync() {
|
|
1120
|
+
this->beginCall();
|
|
1121
|
+
auto _self = this->shared_cast<HybridFtp2>();
|
|
1122
|
+
std::vector<std::shared_ptr<HybridObject>> _parts{ _self };
|
|
1123
|
+
return rt::runAsync<std::string>("Ftp2.dirTreeXmlAsync", std::move(_parts), [_self]() {
|
|
1124
|
+
return _self->dirTreeXml_impl();
|
|
1125
|
+
});
|
|
1126
|
+
}
|
|
1127
|
+
|
|
1128
|
+
void HybridFtp2::disconnect() {
|
|
1129
|
+
this->beginCall();
|
|
1130
|
+
disconnect_impl();
|
|
1131
|
+
}
|
|
1132
|
+
void HybridFtp2::disconnect_impl() {
|
|
1133
|
+
if (!this->ck().Disconnect()) throw this->fail("disconnect");
|
|
1134
|
+
}
|
|
1135
|
+
std::shared_ptr<Promise<void>> HybridFtp2::disconnectAsync() {
|
|
1136
|
+
this->beginCall();
|
|
1137
|
+
auto _self = this->shared_cast<HybridFtp2>();
|
|
1138
|
+
std::vector<std::shared_ptr<HybridObject>> _parts{ _self };
|
|
1139
|
+
return rt::runAsync<void>("Ftp2.disconnectAsync", std::move(_parts), [_self]() {
|
|
1140
|
+
_self->disconnect_impl();
|
|
1141
|
+
});
|
|
1142
|
+
}
|
|
1143
|
+
|
|
1144
|
+
void HybridFtp2::downloadTree(const std::string& localRoot) {
|
|
1145
|
+
this->beginCall();
|
|
1146
|
+
downloadTree_impl(localRoot);
|
|
1147
|
+
}
|
|
1148
|
+
void HybridFtp2::downloadTree_impl(const std::string& localRoot) {
|
|
1149
|
+
rt::checkNoNul(localRoot, "localRoot");
|
|
1150
|
+
if (!this->ck().DownloadTree(localRoot.c_str())) throw this->fail("downloadTree");
|
|
1151
|
+
}
|
|
1152
|
+
std::shared_ptr<Promise<void>> HybridFtp2::downloadTreeAsync(const std::string& localRoot) {
|
|
1153
|
+
this->beginCall();
|
|
1154
|
+
auto _self = this->shared_cast<HybridFtp2>();
|
|
1155
|
+
std::vector<std::shared_ptr<HybridObject>> _parts{ _self };
|
|
1156
|
+
return rt::runAsync<void>("Ftp2.downloadTreeAsync", std::move(_parts), [_self, localRoot]() {
|
|
1157
|
+
_self->downloadTree_impl(localRoot);
|
|
1158
|
+
});
|
|
1159
|
+
}
|
|
1160
|
+
|
|
1161
|
+
std::string HybridFtp2::feat() {
|
|
1162
|
+
this->beginCall();
|
|
1163
|
+
return feat_impl();
|
|
1164
|
+
}
|
|
1165
|
+
std::string HybridFtp2::feat_impl() {
|
|
1166
|
+
CkString _out;
|
|
1167
|
+
if (!this->ck().Feat(_out)) throw this->fail("feat");
|
|
1168
|
+
return rt::stdString(_out);
|
|
1169
|
+
}
|
|
1170
|
+
std::shared_ptr<Promise<std::string>> HybridFtp2::featAsync() {
|
|
1171
|
+
this->beginCall();
|
|
1172
|
+
auto _self = this->shared_cast<HybridFtp2>();
|
|
1173
|
+
std::vector<std::shared_ptr<HybridObject>> _parts{ _self };
|
|
1174
|
+
return rt::runAsync<std::string>("Ftp2.featAsync", std::move(_parts), [_self]() {
|
|
1175
|
+
return _self->feat_impl();
|
|
1176
|
+
});
|
|
1177
|
+
}
|
|
1178
|
+
|
|
1179
|
+
std::string HybridFtp2::getCreateTimeByNameStr(const std::string& filename) {
|
|
1180
|
+
this->beginCall();
|
|
1181
|
+
return getCreateTimeByNameStr_impl(filename);
|
|
1182
|
+
}
|
|
1183
|
+
std::string HybridFtp2::getCreateTimeByNameStr_impl(const std::string& filename) {
|
|
1184
|
+
rt::checkNoNul(filename, "filename");
|
|
1185
|
+
CkString _out;
|
|
1186
|
+
if (!this->ck().GetCreateTimeByNameStr(filename.c_str(), _out)) throw this->fail("getCreateTimeByNameStr");
|
|
1187
|
+
return rt::stdString(_out);
|
|
1188
|
+
}
|
|
1189
|
+
std::shared_ptr<Promise<std::string>> HybridFtp2::getCreateTimeByNameStrAsync(const std::string& filename) {
|
|
1190
|
+
this->beginCall();
|
|
1191
|
+
auto _self = this->shared_cast<HybridFtp2>();
|
|
1192
|
+
std::vector<std::shared_ptr<HybridObject>> _parts{ _self };
|
|
1193
|
+
return rt::runAsync<std::string>("Ftp2.getCreateTimeByNameStrAsync", std::move(_parts), [_self, filename]() {
|
|
1194
|
+
return _self->getCreateTimeByNameStr_impl(filename);
|
|
1195
|
+
});
|
|
1196
|
+
}
|
|
1197
|
+
|
|
1198
|
+
std::string HybridFtp2::getCreateTimeStr(double index) {
|
|
1199
|
+
this->beginCall();
|
|
1200
|
+
return getCreateTimeStr_impl(index);
|
|
1201
|
+
}
|
|
1202
|
+
std::string HybridFtp2::getCreateTimeStr_impl(double index) {
|
|
1203
|
+
CkString _out;
|
|
1204
|
+
if (!this->ck().GetCreateTimeStr(rt::toInt(index, "index"), _out)) throw this->fail("getCreateTimeStr");
|
|
1205
|
+
return rt::stdString(_out);
|
|
1206
|
+
}
|
|
1207
|
+
std::shared_ptr<Promise<std::string>> HybridFtp2::getCreateTimeStrAsync(double index) {
|
|
1208
|
+
this->beginCall();
|
|
1209
|
+
auto _self = this->shared_cast<HybridFtp2>();
|
|
1210
|
+
std::vector<std::shared_ptr<HybridObject>> _parts{ _self };
|
|
1211
|
+
return rt::runAsync<std::string>("Ftp2.getCreateTimeStrAsync", std::move(_parts), [_self, index]() {
|
|
1212
|
+
return _self->getCreateTimeStr_impl(index);
|
|
1213
|
+
});
|
|
1214
|
+
}
|
|
1215
|
+
|
|
1216
|
+
std::string HybridFtp2::getCurrentRemoteDir() {
|
|
1217
|
+
this->beginCall();
|
|
1218
|
+
return getCurrentRemoteDir_impl();
|
|
1219
|
+
}
|
|
1220
|
+
std::string HybridFtp2::getCurrentRemoteDir_impl() {
|
|
1221
|
+
CkString _out;
|
|
1222
|
+
if (!this->ck().GetCurrentRemoteDir(_out)) throw this->fail("getCurrentRemoteDir");
|
|
1223
|
+
return rt::stdString(_out);
|
|
1224
|
+
}
|
|
1225
|
+
std::shared_ptr<Promise<std::string>> HybridFtp2::getCurrentRemoteDirAsync() {
|
|
1226
|
+
this->beginCall();
|
|
1227
|
+
auto _self = this->shared_cast<HybridFtp2>();
|
|
1228
|
+
std::vector<std::shared_ptr<HybridObject>> _parts{ _self };
|
|
1229
|
+
return rt::runAsync<std::string>("Ftp2.getCurrentRemoteDirAsync", std::move(_parts), [_self]() {
|
|
1230
|
+
return _self->getCurrentRemoteDir_impl();
|
|
1231
|
+
});
|
|
1232
|
+
}
|
|
1233
|
+
|
|
1234
|
+
double HybridFtp2::getDirCount() {
|
|
1235
|
+
this->beginCall();
|
|
1236
|
+
return getDirCount_impl();
|
|
1237
|
+
}
|
|
1238
|
+
double HybridFtp2::getDirCount_impl() {
|
|
1239
|
+
return static_cast<double>(this->ck().GetDirCount());
|
|
1240
|
+
}
|
|
1241
|
+
std::shared_ptr<Promise<double>> HybridFtp2::getDirCountAsync() {
|
|
1242
|
+
this->beginCall();
|
|
1243
|
+
auto _self = this->shared_cast<HybridFtp2>();
|
|
1244
|
+
std::vector<std::shared_ptr<HybridObject>> _parts{ _self };
|
|
1245
|
+
return rt::runAsync<double>("Ftp2.getDirCountAsync", std::move(_parts), [_self]() {
|
|
1246
|
+
return _self->getDirCount_impl();
|
|
1247
|
+
});
|
|
1248
|
+
}
|
|
1249
|
+
|
|
1250
|
+
void HybridFtp2::getFile(const std::string& remoteFilePath, const std::string& localFilePath) {
|
|
1251
|
+
this->beginCall();
|
|
1252
|
+
getFile_impl(remoteFilePath, localFilePath);
|
|
1253
|
+
}
|
|
1254
|
+
void HybridFtp2::getFile_impl(const std::string& remoteFilePath, const std::string& localFilePath) {
|
|
1255
|
+
rt::checkNoNul(remoteFilePath, "remoteFilePath");
|
|
1256
|
+
rt::checkNoNul(localFilePath, "localFilePath");
|
|
1257
|
+
if (!this->ck().GetFile(remoteFilePath.c_str(), localFilePath.c_str())) throw this->fail("getFile");
|
|
1258
|
+
}
|
|
1259
|
+
std::shared_ptr<Promise<void>> HybridFtp2::getFileAsync(const std::string& remoteFilePath, const std::string& localFilePath) {
|
|
1260
|
+
this->beginCall();
|
|
1261
|
+
auto _self = this->shared_cast<HybridFtp2>();
|
|
1262
|
+
std::vector<std::shared_ptr<HybridObject>> _parts{ _self };
|
|
1263
|
+
return rt::runAsync<void>("Ftp2.getFileAsync", std::move(_parts), [_self, remoteFilePath, localFilePath]() {
|
|
1264
|
+
_self->getFile_impl(remoteFilePath, localFilePath);
|
|
1265
|
+
});
|
|
1266
|
+
}
|
|
1267
|
+
|
|
1268
|
+
std::string HybridFtp2::getFilename(double index) {
|
|
1269
|
+
this->beginCall();
|
|
1270
|
+
return getFilename_impl(index);
|
|
1271
|
+
}
|
|
1272
|
+
std::string HybridFtp2::getFilename_impl(double index) {
|
|
1273
|
+
CkString _out;
|
|
1274
|
+
if (!this->ck().GetFilename(rt::toInt(index, "index"), _out)) throw this->fail("getFilename");
|
|
1275
|
+
return rt::stdString(_out);
|
|
1276
|
+
}
|
|
1277
|
+
std::shared_ptr<Promise<std::string>> HybridFtp2::getFilenameAsync(double index) {
|
|
1278
|
+
this->beginCall();
|
|
1279
|
+
auto _self = this->shared_cast<HybridFtp2>();
|
|
1280
|
+
std::vector<std::shared_ptr<HybridObject>> _parts{ _self };
|
|
1281
|
+
return rt::runAsync<std::string>("Ftp2.getFilenameAsync", std::move(_parts), [_self, index]() {
|
|
1282
|
+
return _self->getFilename_impl(index);
|
|
1283
|
+
});
|
|
1284
|
+
}
|
|
1285
|
+
|
|
1286
|
+
std::string HybridFtp2::getGroup(double index) {
|
|
1287
|
+
this->beginCall();
|
|
1288
|
+
return getGroup_impl(index);
|
|
1289
|
+
}
|
|
1290
|
+
std::string HybridFtp2::getGroup_impl(double index) {
|
|
1291
|
+
CkString _out;
|
|
1292
|
+
if (!this->ck().GetGroup(rt::toInt(index, "index"), _out)) throw this->fail("getGroup");
|
|
1293
|
+
return rt::stdString(_out);
|
|
1294
|
+
}
|
|
1295
|
+
std::shared_ptr<Promise<std::string>> HybridFtp2::getGroupAsync(double index) {
|
|
1296
|
+
this->beginCall();
|
|
1297
|
+
auto _self = this->shared_cast<HybridFtp2>();
|
|
1298
|
+
std::vector<std::shared_ptr<HybridObject>> _parts{ _self };
|
|
1299
|
+
return rt::runAsync<std::string>("Ftp2.getGroupAsync", std::move(_parts), [_self, index]() {
|
|
1300
|
+
return _self->getGroup_impl(index);
|
|
1301
|
+
});
|
|
1302
|
+
}
|
|
1303
|
+
|
|
1304
|
+
bool HybridFtp2::getIsDirectory(double index) {
|
|
1305
|
+
this->beginCall();
|
|
1306
|
+
return getIsDirectory_impl(index);
|
|
1307
|
+
}
|
|
1308
|
+
bool HybridFtp2::getIsDirectory_impl(double index) {
|
|
1309
|
+
return this->ck().GetIsDirectory(rt::toInt(index, "index"));
|
|
1310
|
+
}
|
|
1311
|
+
std::shared_ptr<Promise<bool>> HybridFtp2::getIsDirectoryAsync(double index) {
|
|
1312
|
+
this->beginCall();
|
|
1313
|
+
auto _self = this->shared_cast<HybridFtp2>();
|
|
1314
|
+
std::vector<std::shared_ptr<HybridObject>> _parts{ _self };
|
|
1315
|
+
return rt::runAsync<bool>("Ftp2.getIsDirectoryAsync", std::move(_parts), [_self, index]() {
|
|
1316
|
+
return _self->getIsDirectory_impl(index);
|
|
1317
|
+
});
|
|
1318
|
+
}
|
|
1319
|
+
|
|
1320
|
+
bool HybridFtp2::getIsSymbolicLink(double index) {
|
|
1321
|
+
this->beginCall();
|
|
1322
|
+
return getIsSymbolicLink_impl(index);
|
|
1323
|
+
}
|
|
1324
|
+
bool HybridFtp2::getIsSymbolicLink_impl(double index) {
|
|
1325
|
+
return this->ck().GetIsSymbolicLink(rt::toInt(index, "index"));
|
|
1326
|
+
}
|
|
1327
|
+
std::shared_ptr<Promise<bool>> HybridFtp2::getIsSymbolicLinkAsync(double index) {
|
|
1328
|
+
this->beginCall();
|
|
1329
|
+
auto _self = this->shared_cast<HybridFtp2>();
|
|
1330
|
+
std::vector<std::shared_ptr<HybridObject>> _parts{ _self };
|
|
1331
|
+
return rt::runAsync<bool>("Ftp2.getIsSymbolicLinkAsync", std::move(_parts), [_self, index]() {
|
|
1332
|
+
return _self->getIsSymbolicLink_impl(index);
|
|
1333
|
+
});
|
|
1334
|
+
}
|
|
1335
|
+
|
|
1336
|
+
std::string HybridFtp2::getLastModifiedTimeByNameStr(const std::string& filename) {
|
|
1337
|
+
this->beginCall();
|
|
1338
|
+
return getLastModifiedTimeByNameStr_impl(filename);
|
|
1339
|
+
}
|
|
1340
|
+
std::string HybridFtp2::getLastModifiedTimeByNameStr_impl(const std::string& filename) {
|
|
1341
|
+
rt::checkNoNul(filename, "filename");
|
|
1342
|
+
CkString _out;
|
|
1343
|
+
if (!this->ck().GetLastModifiedTimeByNameStr(filename.c_str(), _out)) throw this->fail("getLastModifiedTimeByNameStr");
|
|
1344
|
+
return rt::stdString(_out);
|
|
1345
|
+
}
|
|
1346
|
+
std::shared_ptr<Promise<std::string>> HybridFtp2::getLastModifiedTimeByNameStrAsync(const std::string& filename) {
|
|
1347
|
+
this->beginCall();
|
|
1348
|
+
auto _self = this->shared_cast<HybridFtp2>();
|
|
1349
|
+
std::vector<std::shared_ptr<HybridObject>> _parts{ _self };
|
|
1350
|
+
return rt::runAsync<std::string>("Ftp2.getLastModifiedTimeByNameStrAsync", std::move(_parts), [_self, filename]() {
|
|
1351
|
+
return _self->getLastModifiedTimeByNameStr_impl(filename);
|
|
1352
|
+
});
|
|
1353
|
+
}
|
|
1354
|
+
|
|
1355
|
+
std::string HybridFtp2::getLastModifiedTimeStr(double index) {
|
|
1356
|
+
this->beginCall();
|
|
1357
|
+
return getLastModifiedTimeStr_impl(index);
|
|
1358
|
+
}
|
|
1359
|
+
std::string HybridFtp2::getLastModifiedTimeStr_impl(double index) {
|
|
1360
|
+
CkString _out;
|
|
1361
|
+
if (!this->ck().GetLastModifiedTimeStr(rt::toInt(index, "index"), _out)) throw this->fail("getLastModifiedTimeStr");
|
|
1362
|
+
return rt::stdString(_out);
|
|
1363
|
+
}
|
|
1364
|
+
std::shared_ptr<Promise<std::string>> HybridFtp2::getLastModifiedTimeStrAsync(double index) {
|
|
1365
|
+
this->beginCall();
|
|
1366
|
+
auto _self = this->shared_cast<HybridFtp2>();
|
|
1367
|
+
std::vector<std::shared_ptr<HybridObject>> _parts{ _self };
|
|
1368
|
+
return rt::runAsync<std::string>("Ftp2.getLastModifiedTimeStrAsync", std::move(_parts), [_self, index]() {
|
|
1369
|
+
return _self->getLastModifiedTimeStr_impl(index);
|
|
1370
|
+
});
|
|
1371
|
+
}
|
|
1372
|
+
|
|
1373
|
+
std::string HybridFtp2::getOwner(double index) {
|
|
1374
|
+
this->beginCall();
|
|
1375
|
+
return getOwner_impl(index);
|
|
1376
|
+
}
|
|
1377
|
+
std::string HybridFtp2::getOwner_impl(double index) {
|
|
1378
|
+
CkString _out;
|
|
1379
|
+
if (!this->ck().GetOwner(rt::toInt(index, "index"), _out)) throw this->fail("getOwner");
|
|
1380
|
+
return rt::stdString(_out);
|
|
1381
|
+
}
|
|
1382
|
+
std::shared_ptr<Promise<std::string>> HybridFtp2::getOwnerAsync(double index) {
|
|
1383
|
+
this->beginCall();
|
|
1384
|
+
auto _self = this->shared_cast<HybridFtp2>();
|
|
1385
|
+
std::vector<std::shared_ptr<HybridObject>> _parts{ _self };
|
|
1386
|
+
return rt::runAsync<std::string>("Ftp2.getOwnerAsync", std::move(_parts), [_self, index]() {
|
|
1387
|
+
return _self->getOwner_impl(index);
|
|
1388
|
+
});
|
|
1389
|
+
}
|
|
1390
|
+
|
|
1391
|
+
std::string HybridFtp2::getPermType(double index) {
|
|
1392
|
+
this->beginCall();
|
|
1393
|
+
return getPermType_impl(index);
|
|
1394
|
+
}
|
|
1395
|
+
std::string HybridFtp2::getPermType_impl(double index) {
|
|
1396
|
+
CkString _out;
|
|
1397
|
+
if (!this->ck().GetPermType(rt::toInt(index, "index"), _out)) throw this->fail("getPermType");
|
|
1398
|
+
return rt::stdString(_out);
|
|
1399
|
+
}
|
|
1400
|
+
std::shared_ptr<Promise<std::string>> HybridFtp2::getPermTypeAsync(double index) {
|
|
1401
|
+
this->beginCall();
|
|
1402
|
+
auto _self = this->shared_cast<HybridFtp2>();
|
|
1403
|
+
std::vector<std::shared_ptr<HybridObject>> _parts{ _self };
|
|
1404
|
+
return rt::runAsync<std::string>("Ftp2.getPermTypeAsync", std::move(_parts), [_self, index]() {
|
|
1405
|
+
return _self->getPermType_impl(index);
|
|
1406
|
+
});
|
|
1407
|
+
}
|
|
1408
|
+
|
|
1409
|
+
std::string HybridFtp2::getPermissions(double index) {
|
|
1410
|
+
this->beginCall();
|
|
1411
|
+
return getPermissions_impl(index);
|
|
1412
|
+
}
|
|
1413
|
+
std::string HybridFtp2::getPermissions_impl(double index) {
|
|
1414
|
+
CkString _out;
|
|
1415
|
+
if (!this->ck().GetPermissions(rt::toInt(index, "index"), _out)) throw this->fail("getPermissions");
|
|
1416
|
+
return rt::stdString(_out);
|
|
1417
|
+
}
|
|
1418
|
+
std::shared_ptr<Promise<std::string>> HybridFtp2::getPermissionsAsync(double index) {
|
|
1419
|
+
this->beginCall();
|
|
1420
|
+
auto _self = this->shared_cast<HybridFtp2>();
|
|
1421
|
+
std::vector<std::shared_ptr<HybridObject>> _parts{ _self };
|
|
1422
|
+
return rt::runAsync<std::string>("Ftp2.getPermissionsAsync", std::move(_parts), [_self, index]() {
|
|
1423
|
+
return _self->getPermissions_impl(index);
|
|
1424
|
+
});
|
|
1425
|
+
}
|
|
1426
|
+
|
|
1427
|
+
std::string HybridFtp2::getRemoteFileTextC(const std::string& remoteFilename, const std::string& charset) {
|
|
1428
|
+
this->beginCall();
|
|
1429
|
+
return getRemoteFileTextC_impl(remoteFilename, charset);
|
|
1430
|
+
}
|
|
1431
|
+
std::string HybridFtp2::getRemoteFileTextC_impl(const std::string& remoteFilename, const std::string& charset) {
|
|
1432
|
+
rt::checkNoNul(remoteFilename, "remoteFilename");
|
|
1433
|
+
rt::checkNoNul(charset, "charset");
|
|
1434
|
+
CkString _out;
|
|
1435
|
+
if (!this->ck().GetRemoteFileTextC(remoteFilename.c_str(), charset.c_str(), _out)) throw this->fail("getRemoteFileTextC");
|
|
1436
|
+
return rt::stdString(_out);
|
|
1437
|
+
}
|
|
1438
|
+
std::shared_ptr<Promise<std::string>> HybridFtp2::getRemoteFileTextCAsync(const std::string& remoteFilename, const std::string& charset) {
|
|
1439
|
+
this->beginCall();
|
|
1440
|
+
auto _self = this->shared_cast<HybridFtp2>();
|
|
1441
|
+
std::vector<std::shared_ptr<HybridObject>> _parts{ _self };
|
|
1442
|
+
return rt::runAsync<std::string>("Ftp2.getRemoteFileTextCAsync", std::move(_parts), [_self, remoteFilename, charset]() {
|
|
1443
|
+
return _self->getRemoteFileTextC_impl(remoteFilename, charset);
|
|
1444
|
+
});
|
|
1445
|
+
}
|
|
1446
|
+
|
|
1447
|
+
std::string HybridFtp2::getRemoteFileTextData(const std::string& remoteFilename) {
|
|
1448
|
+
this->beginCall();
|
|
1449
|
+
return getRemoteFileTextData_impl(remoteFilename);
|
|
1450
|
+
}
|
|
1451
|
+
std::string HybridFtp2::getRemoteFileTextData_impl(const std::string& remoteFilename) {
|
|
1452
|
+
rt::checkNoNul(remoteFilename, "remoteFilename");
|
|
1453
|
+
CkString _out;
|
|
1454
|
+
if (!this->ck().GetRemoteFileTextData(remoteFilename.c_str(), _out)) throw this->fail("getRemoteFileTextData");
|
|
1455
|
+
return rt::stdString(_out);
|
|
1456
|
+
}
|
|
1457
|
+
std::shared_ptr<Promise<std::string>> HybridFtp2::getRemoteFileTextDataAsync(const std::string& remoteFilename) {
|
|
1458
|
+
this->beginCall();
|
|
1459
|
+
auto _self = this->shared_cast<HybridFtp2>();
|
|
1460
|
+
std::vector<std::shared_ptr<HybridObject>> _parts{ _self };
|
|
1461
|
+
return rt::runAsync<std::string>("Ftp2.getRemoteFileTextDataAsync", std::move(_parts), [_self, remoteFilename]() {
|
|
1462
|
+
return _self->getRemoteFileTextData_impl(remoteFilename);
|
|
1463
|
+
});
|
|
1464
|
+
}
|
|
1465
|
+
|
|
1466
|
+
double HybridFtp2::getSize(double index) {
|
|
1467
|
+
this->beginCall();
|
|
1468
|
+
return getSize_impl(index);
|
|
1469
|
+
}
|
|
1470
|
+
double HybridFtp2::getSize_impl(double index) {
|
|
1471
|
+
return static_cast<double>(this->ck().GetSize(rt::toInt(index, "index")));
|
|
1472
|
+
}
|
|
1473
|
+
std::shared_ptr<Promise<double>> HybridFtp2::getSizeAsync(double index) {
|
|
1474
|
+
this->beginCall();
|
|
1475
|
+
auto _self = this->shared_cast<HybridFtp2>();
|
|
1476
|
+
std::vector<std::shared_ptr<HybridObject>> _parts{ _self };
|
|
1477
|
+
return rt::runAsync<double>("Ftp2.getSizeAsync", std::move(_parts), [_self, index]() {
|
|
1478
|
+
return _self->getSize_impl(index);
|
|
1479
|
+
});
|
|
1480
|
+
}
|
|
1481
|
+
|
|
1482
|
+
double HybridFtp2::getSize64(double index) {
|
|
1483
|
+
this->beginCall();
|
|
1484
|
+
return getSize64_impl(index);
|
|
1485
|
+
}
|
|
1486
|
+
double HybridFtp2::getSize64_impl(double index) {
|
|
1487
|
+
return static_cast<double>(this->ck().GetSize64(rt::toInt(index, "index")));
|
|
1488
|
+
}
|
|
1489
|
+
std::shared_ptr<Promise<double>> HybridFtp2::getSize64Async(double index) {
|
|
1490
|
+
this->beginCall();
|
|
1491
|
+
auto _self = this->shared_cast<HybridFtp2>();
|
|
1492
|
+
std::vector<std::shared_ptr<HybridObject>> _parts{ _self };
|
|
1493
|
+
return rt::runAsync<double>("Ftp2.getSize64Async", std::move(_parts), [_self, index]() {
|
|
1494
|
+
return _self->getSize64_impl(index);
|
|
1495
|
+
});
|
|
1496
|
+
}
|
|
1497
|
+
|
|
1498
|
+
double HybridFtp2::getSizeByName(const std::string& filename) {
|
|
1499
|
+
this->beginCall();
|
|
1500
|
+
return getSizeByName_impl(filename);
|
|
1501
|
+
}
|
|
1502
|
+
double HybridFtp2::getSizeByName_impl(const std::string& filename) {
|
|
1503
|
+
rt::checkNoNul(filename, "filename");
|
|
1504
|
+
return static_cast<double>(this->ck().GetSizeByName(filename.c_str()));
|
|
1505
|
+
}
|
|
1506
|
+
std::shared_ptr<Promise<double>> HybridFtp2::getSizeByNameAsync(const std::string& filename) {
|
|
1507
|
+
this->beginCall();
|
|
1508
|
+
auto _self = this->shared_cast<HybridFtp2>();
|
|
1509
|
+
std::vector<std::shared_ptr<HybridObject>> _parts{ _self };
|
|
1510
|
+
return rt::runAsync<double>("Ftp2.getSizeByNameAsync", std::move(_parts), [_self, filename]() {
|
|
1511
|
+
return _self->getSizeByName_impl(filename);
|
|
1512
|
+
});
|
|
1513
|
+
}
|
|
1514
|
+
|
|
1515
|
+
double HybridFtp2::getSizeByName64(const std::string& filename) {
|
|
1516
|
+
this->beginCall();
|
|
1517
|
+
return getSizeByName64_impl(filename);
|
|
1518
|
+
}
|
|
1519
|
+
double HybridFtp2::getSizeByName64_impl(const std::string& filename) {
|
|
1520
|
+
rt::checkNoNul(filename, "filename");
|
|
1521
|
+
return static_cast<double>(this->ck().GetSizeByName64(filename.c_str()));
|
|
1522
|
+
}
|
|
1523
|
+
std::shared_ptr<Promise<double>> HybridFtp2::getSizeByName64Async(const std::string& filename) {
|
|
1524
|
+
this->beginCall();
|
|
1525
|
+
auto _self = this->shared_cast<HybridFtp2>();
|
|
1526
|
+
std::vector<std::shared_ptr<HybridObject>> _parts{ _self };
|
|
1527
|
+
return rt::runAsync<double>("Ftp2.getSizeByName64Async", std::move(_parts), [_self, filename]() {
|
|
1528
|
+
return _self->getSizeByName64_impl(filename);
|
|
1529
|
+
});
|
|
1530
|
+
}
|
|
1531
|
+
|
|
1532
|
+
std::string HybridFtp2::getSizeStr(double index) {
|
|
1533
|
+
this->beginCall();
|
|
1534
|
+
return getSizeStr_impl(index);
|
|
1535
|
+
}
|
|
1536
|
+
std::string HybridFtp2::getSizeStr_impl(double index) {
|
|
1537
|
+
CkString _out;
|
|
1538
|
+
if (!this->ck().GetSizeStr(rt::toInt(index, "index"), _out)) throw this->fail("getSizeStr");
|
|
1539
|
+
return rt::stdString(_out);
|
|
1540
|
+
}
|
|
1541
|
+
std::shared_ptr<Promise<std::string>> HybridFtp2::getSizeStrAsync(double index) {
|
|
1542
|
+
this->beginCall();
|
|
1543
|
+
auto _self = this->shared_cast<HybridFtp2>();
|
|
1544
|
+
std::vector<std::shared_ptr<HybridObject>> _parts{ _self };
|
|
1545
|
+
return rt::runAsync<std::string>("Ftp2.getSizeStrAsync", std::move(_parts), [_self, index]() {
|
|
1546
|
+
return _self->getSizeStr_impl(index);
|
|
1547
|
+
});
|
|
1548
|
+
}
|
|
1549
|
+
|
|
1550
|
+
std::string HybridFtp2::getSizeStrByName(const std::string& filename) {
|
|
1551
|
+
this->beginCall();
|
|
1552
|
+
return getSizeStrByName_impl(filename);
|
|
1553
|
+
}
|
|
1554
|
+
std::string HybridFtp2::getSizeStrByName_impl(const std::string& filename) {
|
|
1555
|
+
rt::checkNoNul(filename, "filename");
|
|
1556
|
+
CkString _out;
|
|
1557
|
+
if (!this->ck().GetSizeStrByName(filename.c_str(), _out)) throw this->fail("getSizeStrByName");
|
|
1558
|
+
return rt::stdString(_out);
|
|
1559
|
+
}
|
|
1560
|
+
std::shared_ptr<Promise<std::string>> HybridFtp2::getSizeStrByNameAsync(const std::string& filename) {
|
|
1561
|
+
this->beginCall();
|
|
1562
|
+
auto _self = this->shared_cast<HybridFtp2>();
|
|
1563
|
+
std::vector<std::shared_ptr<HybridObject>> _parts{ _self };
|
|
1564
|
+
return rt::runAsync<std::string>("Ftp2.getSizeStrByNameAsync", std::move(_parts), [_self, filename]() {
|
|
1565
|
+
return _self->getSizeStrByName_impl(filename);
|
|
1566
|
+
});
|
|
1567
|
+
}
|
|
1568
|
+
|
|
1569
|
+
std::string HybridFtp2::getTextDirListing(const std::string& pattern) {
|
|
1570
|
+
this->beginCall();
|
|
1571
|
+
return getTextDirListing_impl(pattern);
|
|
1572
|
+
}
|
|
1573
|
+
std::string HybridFtp2::getTextDirListing_impl(const std::string& pattern) {
|
|
1574
|
+
rt::checkNoNul(pattern, "pattern");
|
|
1575
|
+
CkString _out;
|
|
1576
|
+
if (!this->ck().GetTextDirListing(pattern.c_str(), _out)) throw this->fail("getTextDirListing");
|
|
1577
|
+
return rt::stdString(_out);
|
|
1578
|
+
}
|
|
1579
|
+
std::shared_ptr<Promise<std::string>> HybridFtp2::getTextDirListingAsync(const std::string& pattern) {
|
|
1580
|
+
this->beginCall();
|
|
1581
|
+
auto _self = this->shared_cast<HybridFtp2>();
|
|
1582
|
+
std::vector<std::shared_ptr<HybridObject>> _parts{ _self };
|
|
1583
|
+
return rt::runAsync<std::string>("Ftp2.getTextDirListingAsync", std::move(_parts), [_self, pattern]() {
|
|
1584
|
+
return _self->getTextDirListing_impl(pattern);
|
|
1585
|
+
});
|
|
1586
|
+
}
|
|
1587
|
+
|
|
1588
|
+
std::string HybridFtp2::getXmlDirListing(const std::string& pattern) {
|
|
1589
|
+
this->beginCall();
|
|
1590
|
+
return getXmlDirListing_impl(pattern);
|
|
1591
|
+
}
|
|
1592
|
+
std::string HybridFtp2::getXmlDirListing_impl(const std::string& pattern) {
|
|
1593
|
+
rt::checkNoNul(pattern, "pattern");
|
|
1594
|
+
CkString _out;
|
|
1595
|
+
if (!this->ck().GetXmlDirListing(pattern.c_str(), _out)) throw this->fail("getXmlDirListing");
|
|
1596
|
+
return rt::stdString(_out);
|
|
1597
|
+
}
|
|
1598
|
+
std::shared_ptr<Promise<std::string>> HybridFtp2::getXmlDirListingAsync(const std::string& pattern) {
|
|
1599
|
+
this->beginCall();
|
|
1600
|
+
auto _self = this->shared_cast<HybridFtp2>();
|
|
1601
|
+
std::vector<std::shared_ptr<HybridObject>> _parts{ _self };
|
|
1602
|
+
return rt::runAsync<std::string>("Ftp2.getXmlDirListingAsync", std::move(_parts), [_self, pattern]() {
|
|
1603
|
+
return _self->getXmlDirListing_impl(pattern);
|
|
1604
|
+
});
|
|
1605
|
+
}
|
|
1606
|
+
|
|
1607
|
+
void HybridFtp2::largeFileUpload(const std::string& localPath, const std::string& remotePath, double chunkSize) {
|
|
1608
|
+
this->beginCall();
|
|
1609
|
+
largeFileUpload_impl(localPath, remotePath, chunkSize);
|
|
1610
|
+
}
|
|
1611
|
+
void HybridFtp2::largeFileUpload_impl(const std::string& localPath, const std::string& remotePath, double chunkSize) {
|
|
1612
|
+
rt::checkNoNul(localPath, "localPath");
|
|
1613
|
+
rt::checkNoNul(remotePath, "remotePath");
|
|
1614
|
+
if (!this->ck().LargeFileUpload(localPath.c_str(), remotePath.c_str(), rt::toInt(chunkSize, "chunkSize"))) throw this->fail("largeFileUpload");
|
|
1615
|
+
}
|
|
1616
|
+
std::shared_ptr<Promise<void>> HybridFtp2::largeFileUploadAsync(const std::string& localPath, const std::string& remotePath, double chunkSize) {
|
|
1617
|
+
this->beginCall();
|
|
1618
|
+
auto _self = this->shared_cast<HybridFtp2>();
|
|
1619
|
+
std::vector<std::shared_ptr<HybridObject>> _parts{ _self };
|
|
1620
|
+
return rt::runAsync<void>("Ftp2.largeFileUploadAsync", std::move(_parts), [_self, localPath, remotePath, chunkSize]() {
|
|
1621
|
+
_self->largeFileUpload_impl(localPath, remotePath, chunkSize);
|
|
1622
|
+
});
|
|
1623
|
+
}
|
|
1624
|
+
|
|
1625
|
+
void HybridFtp2::loginAfterConnectOnly() {
|
|
1626
|
+
this->beginCall();
|
|
1627
|
+
loginAfterConnectOnly_impl();
|
|
1628
|
+
}
|
|
1629
|
+
void HybridFtp2::loginAfterConnectOnly_impl() {
|
|
1630
|
+
if (!this->ck().LoginAfterConnectOnly()) throw this->fail("loginAfterConnectOnly");
|
|
1631
|
+
}
|
|
1632
|
+
std::shared_ptr<Promise<void>> HybridFtp2::loginAfterConnectOnlyAsync() {
|
|
1633
|
+
this->beginCall();
|
|
1634
|
+
auto _self = this->shared_cast<HybridFtp2>();
|
|
1635
|
+
std::vector<std::shared_ptr<HybridObject>> _parts{ _self };
|
|
1636
|
+
return rt::runAsync<void>("Ftp2.loginAfterConnectOnlyAsync", std::move(_parts), [_self]() {
|
|
1637
|
+
_self->loginAfterConnectOnly_impl();
|
|
1638
|
+
});
|
|
1639
|
+
}
|
|
1640
|
+
|
|
1641
|
+
double HybridFtp2::mGetFiles(const std::string& remotePattern, const std::string& localDir) {
|
|
1642
|
+
this->beginCall();
|
|
1643
|
+
return mGetFiles_impl(remotePattern, localDir);
|
|
1644
|
+
}
|
|
1645
|
+
double HybridFtp2::mGetFiles_impl(const std::string& remotePattern, const std::string& localDir) {
|
|
1646
|
+
rt::checkNoNul(remotePattern, "remotePattern");
|
|
1647
|
+
rt::checkNoNul(localDir, "localDir");
|
|
1648
|
+
return static_cast<double>(this->ck().MGetFiles(remotePattern.c_str(), localDir.c_str()));
|
|
1649
|
+
}
|
|
1650
|
+
std::shared_ptr<Promise<double>> HybridFtp2::mGetFilesAsync(const std::string& remotePattern, const std::string& localDir) {
|
|
1651
|
+
this->beginCall();
|
|
1652
|
+
auto _self = this->shared_cast<HybridFtp2>();
|
|
1653
|
+
std::vector<std::shared_ptr<HybridObject>> _parts{ _self };
|
|
1654
|
+
return rt::runAsync<double>("Ftp2.mGetFilesAsync", std::move(_parts), [_self, remotePattern, localDir]() {
|
|
1655
|
+
return _self->mGetFiles_impl(remotePattern, localDir);
|
|
1656
|
+
});
|
|
1657
|
+
}
|
|
1658
|
+
|
|
1659
|
+
double HybridFtp2::mPutFiles(const std::string& pattern) {
|
|
1660
|
+
this->beginCall();
|
|
1661
|
+
return mPutFiles_impl(pattern);
|
|
1662
|
+
}
|
|
1663
|
+
double HybridFtp2::mPutFiles_impl(const std::string& pattern) {
|
|
1664
|
+
rt::checkNoNul(pattern, "pattern");
|
|
1665
|
+
return static_cast<double>(this->ck().MPutFiles(pattern.c_str()));
|
|
1666
|
+
}
|
|
1667
|
+
std::shared_ptr<Promise<double>> HybridFtp2::mPutFilesAsync(const std::string& pattern) {
|
|
1668
|
+
this->beginCall();
|
|
1669
|
+
auto _self = this->shared_cast<HybridFtp2>();
|
|
1670
|
+
std::vector<std::shared_ptr<HybridObject>> _parts{ _self };
|
|
1671
|
+
return rt::runAsync<double>("Ftp2.mPutFilesAsync", std::move(_parts), [_self, pattern]() {
|
|
1672
|
+
return _self->mPutFiles_impl(pattern);
|
|
1673
|
+
});
|
|
1674
|
+
}
|
|
1675
|
+
|
|
1676
|
+
std::string HybridFtp2::nlstXml(const std::string& remoteDirPattern) {
|
|
1677
|
+
this->beginCall();
|
|
1678
|
+
return nlstXml_impl(remoteDirPattern);
|
|
1679
|
+
}
|
|
1680
|
+
std::string HybridFtp2::nlstXml_impl(const std::string& remoteDirPattern) {
|
|
1681
|
+
rt::checkNoNul(remoteDirPattern, "remoteDirPattern");
|
|
1682
|
+
CkString _out;
|
|
1683
|
+
if (!this->ck().NlstXml(remoteDirPattern.c_str(), _out)) throw this->fail("nlstXml");
|
|
1684
|
+
return rt::stdString(_out);
|
|
1685
|
+
}
|
|
1686
|
+
std::shared_ptr<Promise<std::string>> HybridFtp2::nlstXmlAsync(const std::string& remoteDirPattern) {
|
|
1687
|
+
this->beginCall();
|
|
1688
|
+
auto _self = this->shared_cast<HybridFtp2>();
|
|
1689
|
+
std::vector<std::shared_ptr<HybridObject>> _parts{ _self };
|
|
1690
|
+
return rt::runAsync<std::string>("Ftp2.nlstXmlAsync", std::move(_parts), [_self, remoteDirPattern]() {
|
|
1691
|
+
return _self->nlstXml_impl(remoteDirPattern);
|
|
1692
|
+
});
|
|
1693
|
+
}
|
|
1694
|
+
|
|
1695
|
+
void HybridFtp2::noop() {
|
|
1696
|
+
this->beginCall();
|
|
1697
|
+
noop_impl();
|
|
1698
|
+
}
|
|
1699
|
+
void HybridFtp2::noop_impl() {
|
|
1700
|
+
if (!this->ck().Noop()) throw this->fail("noop");
|
|
1701
|
+
}
|
|
1702
|
+
std::shared_ptr<Promise<void>> HybridFtp2::noopAsync() {
|
|
1703
|
+
this->beginCall();
|
|
1704
|
+
auto _self = this->shared_cast<HybridFtp2>();
|
|
1705
|
+
std::vector<std::shared_ptr<HybridObject>> _parts{ _self };
|
|
1706
|
+
return rt::runAsync<void>("Ftp2.noopAsync", std::move(_parts), [_self]() {
|
|
1707
|
+
_self->noop_impl();
|
|
1708
|
+
});
|
|
1709
|
+
}
|
|
1710
|
+
|
|
1711
|
+
void HybridFtp2::putFile(const std::string& localFilePath, const std::string& remoteFilePath) {
|
|
1712
|
+
this->beginCall();
|
|
1713
|
+
putFile_impl(localFilePath, remoteFilePath);
|
|
1714
|
+
}
|
|
1715
|
+
void HybridFtp2::putFile_impl(const std::string& localFilePath, const std::string& remoteFilePath) {
|
|
1716
|
+
rt::checkNoNul(localFilePath, "localFilePath");
|
|
1717
|
+
rt::checkNoNul(remoteFilePath, "remoteFilePath");
|
|
1718
|
+
if (!this->ck().PutFile(localFilePath.c_str(), remoteFilePath.c_str())) throw this->fail("putFile");
|
|
1719
|
+
}
|
|
1720
|
+
std::shared_ptr<Promise<void>> HybridFtp2::putFileAsync(const std::string& localFilePath, const std::string& remoteFilePath) {
|
|
1721
|
+
this->beginCall();
|
|
1722
|
+
auto _self = this->shared_cast<HybridFtp2>();
|
|
1723
|
+
std::vector<std::shared_ptr<HybridObject>> _parts{ _self };
|
|
1724
|
+
return rt::runAsync<void>("Ftp2.putFileAsync", std::move(_parts), [_self, localFilePath, remoteFilePath]() {
|
|
1725
|
+
_self->putFile_impl(localFilePath, remoteFilePath);
|
|
1726
|
+
});
|
|
1727
|
+
}
|
|
1728
|
+
|
|
1729
|
+
void HybridFtp2::putFileFromTextData(const std::string& remoteFilename, const std::string& textData, const std::string& charset) {
|
|
1730
|
+
this->beginCall();
|
|
1731
|
+
putFileFromTextData_impl(remoteFilename, textData, charset);
|
|
1732
|
+
}
|
|
1733
|
+
void HybridFtp2::putFileFromTextData_impl(const std::string& remoteFilename, const std::string& textData, const std::string& charset) {
|
|
1734
|
+
rt::checkNoNul(remoteFilename, "remoteFilename");
|
|
1735
|
+
rt::checkNoNul(textData, "textData");
|
|
1736
|
+
rt::checkNoNul(charset, "charset");
|
|
1737
|
+
if (!this->ck().PutFileFromTextData(remoteFilename.c_str(), textData.c_str(), charset.c_str())) throw this->fail("putFileFromTextData");
|
|
1738
|
+
}
|
|
1739
|
+
std::shared_ptr<Promise<void>> HybridFtp2::putFileFromTextDataAsync(const std::string& remoteFilename, const std::string& textData, const std::string& charset) {
|
|
1740
|
+
this->beginCall();
|
|
1741
|
+
auto _self = this->shared_cast<HybridFtp2>();
|
|
1742
|
+
std::vector<std::shared_ptr<HybridObject>> _parts{ _self };
|
|
1743
|
+
return rt::runAsync<void>("Ftp2.putFileFromTextDataAsync", std::move(_parts), [_self, remoteFilename, textData, charset]() {
|
|
1744
|
+
_self->putFileFromTextData_impl(remoteFilename, textData, charset);
|
|
1745
|
+
});
|
|
1746
|
+
}
|
|
1747
|
+
|
|
1748
|
+
void HybridFtp2::putPlan(const std::string& plan, const std::string& alreadyDoneFilename) {
|
|
1749
|
+
this->beginCall();
|
|
1750
|
+
putPlan_impl(plan, alreadyDoneFilename);
|
|
1751
|
+
}
|
|
1752
|
+
void HybridFtp2::putPlan_impl(const std::string& plan, const std::string& alreadyDoneFilename) {
|
|
1753
|
+
rt::checkNoNul(plan, "plan");
|
|
1754
|
+
rt::checkNoNul(alreadyDoneFilename, "alreadyDoneFilename");
|
|
1755
|
+
if (!this->ck().PutPlan(plan.c_str(), alreadyDoneFilename.c_str())) throw this->fail("putPlan");
|
|
1756
|
+
}
|
|
1757
|
+
std::shared_ptr<Promise<void>> HybridFtp2::putPlanAsync(const std::string& plan, const std::string& alreadyDoneFilename) {
|
|
1758
|
+
this->beginCall();
|
|
1759
|
+
auto _self = this->shared_cast<HybridFtp2>();
|
|
1760
|
+
std::vector<std::shared_ptr<HybridObject>> _parts{ _self };
|
|
1761
|
+
return rt::runAsync<void>("Ftp2.putPlanAsync", std::move(_parts), [_self, plan, alreadyDoneFilename]() {
|
|
1762
|
+
_self->putPlan_impl(plan, alreadyDoneFilename);
|
|
1763
|
+
});
|
|
1764
|
+
}
|
|
1765
|
+
|
|
1766
|
+
void HybridFtp2::putTree(const std::string& localDir) {
|
|
1767
|
+
this->beginCall();
|
|
1768
|
+
putTree_impl(localDir);
|
|
1769
|
+
}
|
|
1770
|
+
void HybridFtp2::putTree_impl(const std::string& localDir) {
|
|
1771
|
+
rt::checkNoNul(localDir, "localDir");
|
|
1772
|
+
if (!this->ck().PutTree(localDir.c_str())) throw this->fail("putTree");
|
|
1773
|
+
}
|
|
1774
|
+
std::shared_ptr<Promise<void>> HybridFtp2::putTreeAsync(const std::string& localDir) {
|
|
1775
|
+
this->beginCall();
|
|
1776
|
+
auto _self = this->shared_cast<HybridFtp2>();
|
|
1777
|
+
std::vector<std::shared_ptr<HybridObject>> _parts{ _self };
|
|
1778
|
+
return rt::runAsync<void>("Ftp2.putTreeAsync", std::move(_parts), [_self, localDir]() {
|
|
1779
|
+
_self->putTree_impl(localDir);
|
|
1780
|
+
});
|
|
1781
|
+
}
|
|
1782
|
+
|
|
1783
|
+
void HybridFtp2::quote(const std::string& cmd) {
|
|
1784
|
+
this->beginCall();
|
|
1785
|
+
quote_impl(cmd);
|
|
1786
|
+
}
|
|
1787
|
+
void HybridFtp2::quote_impl(const std::string& cmd) {
|
|
1788
|
+
rt::checkNoNul(cmd, "cmd");
|
|
1789
|
+
if (!this->ck().Quote(cmd.c_str())) throw this->fail("quote");
|
|
1790
|
+
}
|
|
1791
|
+
std::shared_ptr<Promise<void>> HybridFtp2::quoteAsync(const std::string& cmd) {
|
|
1792
|
+
this->beginCall();
|
|
1793
|
+
auto _self = this->shared_cast<HybridFtp2>();
|
|
1794
|
+
std::vector<std::shared_ptr<HybridObject>> _parts{ _self };
|
|
1795
|
+
return rt::runAsync<void>("Ftp2.quoteAsync", std::move(_parts), [_self, cmd]() {
|
|
1796
|
+
_self->quote_impl(cmd);
|
|
1797
|
+
});
|
|
1798
|
+
}
|
|
1799
|
+
|
|
1800
|
+
void HybridFtp2::removeRemoteDir(const std::string& remoteDirPath) {
|
|
1801
|
+
this->beginCall();
|
|
1802
|
+
removeRemoteDir_impl(remoteDirPath);
|
|
1803
|
+
}
|
|
1804
|
+
void HybridFtp2::removeRemoteDir_impl(const std::string& remoteDirPath) {
|
|
1805
|
+
rt::checkNoNul(remoteDirPath, "remoteDirPath");
|
|
1806
|
+
if (!this->ck().RemoveRemoteDir(remoteDirPath.c_str())) throw this->fail("removeRemoteDir");
|
|
1807
|
+
}
|
|
1808
|
+
std::shared_ptr<Promise<void>> HybridFtp2::removeRemoteDirAsync(const std::string& remoteDirPath) {
|
|
1809
|
+
this->beginCall();
|
|
1810
|
+
auto _self = this->shared_cast<HybridFtp2>();
|
|
1811
|
+
std::vector<std::shared_ptr<HybridObject>> _parts{ _self };
|
|
1812
|
+
return rt::runAsync<void>("Ftp2.removeRemoteDirAsync", std::move(_parts), [_self, remoteDirPath]() {
|
|
1813
|
+
_self->removeRemoteDir_impl(remoteDirPath);
|
|
1814
|
+
});
|
|
1815
|
+
}
|
|
1816
|
+
|
|
1817
|
+
void HybridFtp2::renameRemoteFile(const std::string& existingRemoteFilePath, const std::string& newRemoteFilePath) {
|
|
1818
|
+
this->beginCall();
|
|
1819
|
+
renameRemoteFile_impl(existingRemoteFilePath, newRemoteFilePath);
|
|
1820
|
+
}
|
|
1821
|
+
void HybridFtp2::renameRemoteFile_impl(const std::string& existingRemoteFilePath, const std::string& newRemoteFilePath) {
|
|
1822
|
+
rt::checkNoNul(existingRemoteFilePath, "existingRemoteFilePath");
|
|
1823
|
+
rt::checkNoNul(newRemoteFilePath, "newRemoteFilePath");
|
|
1824
|
+
if (!this->ck().RenameRemoteFile(existingRemoteFilePath.c_str(), newRemoteFilePath.c_str())) throw this->fail("renameRemoteFile");
|
|
1825
|
+
}
|
|
1826
|
+
std::shared_ptr<Promise<void>> HybridFtp2::renameRemoteFileAsync(const std::string& existingRemoteFilePath, const std::string& newRemoteFilePath) {
|
|
1827
|
+
this->beginCall();
|
|
1828
|
+
auto _self = this->shared_cast<HybridFtp2>();
|
|
1829
|
+
std::vector<std::shared_ptr<HybridObject>> _parts{ _self };
|
|
1830
|
+
return rt::runAsync<void>("Ftp2.renameRemoteFileAsync", std::move(_parts), [_self, existingRemoteFilePath, newRemoteFilePath]() {
|
|
1831
|
+
_self->renameRemoteFile_impl(existingRemoteFilePath, newRemoteFilePath);
|
|
1832
|
+
});
|
|
1833
|
+
}
|
|
1834
|
+
|
|
1835
|
+
std::string HybridFtp2::sendCommand(const std::string& cmd) {
|
|
1836
|
+
this->beginCall();
|
|
1837
|
+
return sendCommand_impl(cmd);
|
|
1838
|
+
}
|
|
1839
|
+
std::string HybridFtp2::sendCommand_impl(const std::string& cmd) {
|
|
1840
|
+
rt::checkNoNul(cmd, "cmd");
|
|
1841
|
+
CkString _out;
|
|
1842
|
+
if (!this->ck().SendCommand(cmd.c_str(), _out)) throw this->fail("sendCommand");
|
|
1843
|
+
return rt::stdString(_out);
|
|
1844
|
+
}
|
|
1845
|
+
std::shared_ptr<Promise<std::string>> HybridFtp2::sendCommandAsync(const std::string& cmd) {
|
|
1846
|
+
this->beginCall();
|
|
1847
|
+
auto _self = this->shared_cast<HybridFtp2>();
|
|
1848
|
+
std::vector<std::shared_ptr<HybridObject>> _parts{ _self };
|
|
1849
|
+
return rt::runAsync<std::string>("Ftp2.sendCommandAsync", std::move(_parts), [_self, cmd]() {
|
|
1850
|
+
return _self->sendCommand_impl(cmd);
|
|
1851
|
+
});
|
|
1852
|
+
}
|
|
1853
|
+
|
|
1854
|
+
void HybridFtp2::setModeZ() {
|
|
1855
|
+
this->beginCall();
|
|
1856
|
+
setModeZ_impl();
|
|
1857
|
+
}
|
|
1858
|
+
void HybridFtp2::setModeZ_impl() {
|
|
1859
|
+
if (!this->ck().SetModeZ()) throw this->fail("setModeZ");
|
|
1860
|
+
}
|
|
1861
|
+
std::shared_ptr<Promise<void>> HybridFtp2::setModeZAsync() {
|
|
1862
|
+
this->beginCall();
|
|
1863
|
+
auto _self = this->shared_cast<HybridFtp2>();
|
|
1864
|
+
std::vector<std::shared_ptr<HybridObject>> _parts{ _self };
|
|
1865
|
+
return rt::runAsync<void>("Ftp2.setModeZAsync", std::move(_parts), [_self]() {
|
|
1866
|
+
_self->setModeZ_impl();
|
|
1867
|
+
});
|
|
1868
|
+
}
|
|
1869
|
+
|
|
1870
|
+
void HybridFtp2::setOldestDateStr(const std::string& oldestDateTimeStr) {
|
|
1871
|
+
this->beginCall();
|
|
1872
|
+
setOldestDateStr_impl(oldestDateTimeStr);
|
|
1873
|
+
}
|
|
1874
|
+
void HybridFtp2::setOldestDateStr_impl(const std::string& oldestDateTimeStr) {
|
|
1875
|
+
rt::checkNoNul(oldestDateTimeStr, "oldestDateTimeStr");
|
|
1876
|
+
this->ck().SetOldestDateStr(oldestDateTimeStr.c_str());
|
|
1877
|
+
}
|
|
1878
|
+
|
|
1879
|
+
void HybridFtp2::setOption(const std::string& optionName) {
|
|
1880
|
+
this->beginCall();
|
|
1881
|
+
setOption_impl(optionName);
|
|
1882
|
+
}
|
|
1883
|
+
void HybridFtp2::setOption_impl(const std::string& optionName) {
|
|
1884
|
+
rt::checkNoNul(optionName, "optionName");
|
|
1885
|
+
if (!this->ck().SetOption(optionName.c_str())) throw this->fail("setOption");
|
|
1886
|
+
}
|
|
1887
|
+
|
|
1888
|
+
void HybridFtp2::setRemoteFileDateTimeStr(const std::string& dateTimeStr, const std::string& remoteFilename) {
|
|
1889
|
+
this->beginCall();
|
|
1890
|
+
setRemoteFileDateTimeStr_impl(dateTimeStr, remoteFilename);
|
|
1891
|
+
}
|
|
1892
|
+
void HybridFtp2::setRemoteFileDateTimeStr_impl(const std::string& dateTimeStr, const std::string& remoteFilename) {
|
|
1893
|
+
rt::checkNoNul(dateTimeStr, "dateTimeStr");
|
|
1894
|
+
rt::checkNoNul(remoteFilename, "remoteFilename");
|
|
1895
|
+
if (!this->ck().SetRemoteFileDateTimeStr(dateTimeStr.c_str(), remoteFilename.c_str())) throw this->fail("setRemoteFileDateTimeStr");
|
|
1896
|
+
}
|
|
1897
|
+
std::shared_ptr<Promise<void>> HybridFtp2::setRemoteFileDateTimeStrAsync(const std::string& dateTimeStr, const std::string& remoteFilename) {
|
|
1898
|
+
this->beginCall();
|
|
1899
|
+
auto _self = this->shared_cast<HybridFtp2>();
|
|
1900
|
+
std::vector<std::shared_ptr<HybridObject>> _parts{ _self };
|
|
1901
|
+
return rt::runAsync<void>("Ftp2.setRemoteFileDateTimeStrAsync", std::move(_parts), [_self, dateTimeStr, remoteFilename]() {
|
|
1902
|
+
_self->setRemoteFileDateTimeStr_impl(dateTimeStr, remoteFilename);
|
|
1903
|
+
});
|
|
1904
|
+
}
|
|
1905
|
+
|
|
1906
|
+
void HybridFtp2::setRemoteFileDt(const std::shared_ptr<HybridCkDateTimeSpec>& dt, const std::string& remoteFilename) {
|
|
1907
|
+
this->beginCall();
|
|
1908
|
+
setRemoteFileDt_impl(dt, remoteFilename);
|
|
1909
|
+
}
|
|
1910
|
+
void HybridFtp2::setRemoteFileDt_impl(const std::shared_ptr<HybridCkDateTimeSpec>& dt, const std::string& remoteFilename) {
|
|
1911
|
+
rt::checkNoNul(remoteFilename, "remoteFilename");
|
|
1912
|
+
if (!this->ck().SetRemoteFileDt(rt::implOf<HybridCkDateTime>(dt, "dt").ck(), remoteFilename.c_str())) throw this->fail("setRemoteFileDt");
|
|
1913
|
+
}
|
|
1914
|
+
std::shared_ptr<Promise<void>> HybridFtp2::setRemoteFileDtAsync(const std::shared_ptr<HybridCkDateTimeSpec>& dt, const std::string& remoteFilename) {
|
|
1915
|
+
this->beginCall();
|
|
1916
|
+
auto _self = this->shared_cast<HybridFtp2>();
|
|
1917
|
+
std::vector<std::shared_ptr<HybridObject>> _parts{ _self };
|
|
1918
|
+
_parts.push_back(dt);
|
|
1919
|
+
return rt::runAsync<void>("Ftp2.setRemoteFileDtAsync", std::move(_parts), [_self, dt, remoteFilename]() {
|
|
1920
|
+
_self->setRemoteFileDt_impl(dt, remoteFilename);
|
|
1921
|
+
});
|
|
1922
|
+
}
|
|
1923
|
+
|
|
1924
|
+
void HybridFtp2::setSslCertRequirement(const std::string& reqName, const std::string& reqValue) {
|
|
1925
|
+
this->beginCall();
|
|
1926
|
+
setSslCertRequirement_impl(reqName, reqValue);
|
|
1927
|
+
}
|
|
1928
|
+
void HybridFtp2::setSslCertRequirement_impl(const std::string& reqName, const std::string& reqValue) {
|
|
1929
|
+
rt::checkNoNul(reqName, "reqName");
|
|
1930
|
+
rt::checkNoNul(reqValue, "reqValue");
|
|
1931
|
+
this->ck().SetSslCertRequirement(reqName.c_str(), reqValue.c_str());
|
|
1932
|
+
}
|
|
1933
|
+
|
|
1934
|
+
void HybridFtp2::setSslClientCert(const std::shared_ptr<HybridCertSpec>& cert) {
|
|
1935
|
+
this->beginCall();
|
|
1936
|
+
setSslClientCert_impl(cert);
|
|
1937
|
+
}
|
|
1938
|
+
void HybridFtp2::setSslClientCert_impl(const std::shared_ptr<HybridCertSpec>& cert) {
|
|
1939
|
+
if (!this->ck().SetSslClientCert(rt::implOf<HybridCert>(cert, "cert").ck())) throw this->fail("setSslClientCert");
|
|
1940
|
+
}
|
|
1941
|
+
|
|
1942
|
+
void HybridFtp2::setSslClientCertPem(const std::string& pemDataOrFilename, const std::string& pemPassword) {
|
|
1943
|
+
this->beginCall();
|
|
1944
|
+
setSslClientCertPem_impl(pemDataOrFilename, pemPassword);
|
|
1945
|
+
}
|
|
1946
|
+
void HybridFtp2::setSslClientCertPem_impl(const std::string& pemDataOrFilename, const std::string& pemPassword) {
|
|
1947
|
+
rt::checkNoNul(pemDataOrFilename, "pemDataOrFilename");
|
|
1948
|
+
rt::checkNoNul(pemPassword, "pemPassword");
|
|
1949
|
+
if (!this->ck().SetSslClientCertPem(pemDataOrFilename.c_str(), pemPassword.c_str())) throw this->fail("setSslClientCertPem");
|
|
1950
|
+
}
|
|
1951
|
+
|
|
1952
|
+
void HybridFtp2::setSslClientCertPfx(const std::string& pfxFilename, const std::string& pfxPassword) {
|
|
1953
|
+
this->beginCall();
|
|
1954
|
+
setSslClientCertPfx_impl(pfxFilename, pfxPassword);
|
|
1955
|
+
}
|
|
1956
|
+
void HybridFtp2::setSslClientCertPfx_impl(const std::string& pfxFilename, const std::string& pfxPassword) {
|
|
1957
|
+
rt::checkNoNul(pfxFilename, "pfxFilename");
|
|
1958
|
+
rt::checkNoNul(pfxPassword, "pfxPassword");
|
|
1959
|
+
if (!this->ck().SetSslClientCertPfx(pfxFilename.c_str(), pfxPassword.c_str())) throw this->fail("setSslClientCertPfx");
|
|
1960
|
+
}
|
|
1961
|
+
|
|
1962
|
+
void HybridFtp2::setTypeAscii() {
|
|
1963
|
+
this->beginCall();
|
|
1964
|
+
setTypeAscii_impl();
|
|
1965
|
+
}
|
|
1966
|
+
void HybridFtp2::setTypeAscii_impl() {
|
|
1967
|
+
if (!this->ck().SetTypeAscii()) throw this->fail("setTypeAscii");
|
|
1968
|
+
}
|
|
1969
|
+
std::shared_ptr<Promise<void>> HybridFtp2::setTypeAsciiAsync() {
|
|
1970
|
+
this->beginCall();
|
|
1971
|
+
auto _self = this->shared_cast<HybridFtp2>();
|
|
1972
|
+
std::vector<std::shared_ptr<HybridObject>> _parts{ _self };
|
|
1973
|
+
return rt::runAsync<void>("Ftp2.setTypeAsciiAsync", std::move(_parts), [_self]() {
|
|
1974
|
+
_self->setTypeAscii_impl();
|
|
1975
|
+
});
|
|
1976
|
+
}
|
|
1977
|
+
|
|
1978
|
+
void HybridFtp2::setTypeBinary() {
|
|
1979
|
+
this->beginCall();
|
|
1980
|
+
setTypeBinary_impl();
|
|
1981
|
+
}
|
|
1982
|
+
void HybridFtp2::setTypeBinary_impl() {
|
|
1983
|
+
if (!this->ck().SetTypeBinary()) throw this->fail("setTypeBinary");
|
|
1984
|
+
}
|
|
1985
|
+
std::shared_ptr<Promise<void>> HybridFtp2::setTypeBinaryAsync() {
|
|
1986
|
+
this->beginCall();
|
|
1987
|
+
auto _self = this->shared_cast<HybridFtp2>();
|
|
1988
|
+
std::vector<std::shared_ptr<HybridObject>> _parts{ _self };
|
|
1989
|
+
return rt::runAsync<void>("Ftp2.setTypeBinaryAsync", std::move(_parts), [_self]() {
|
|
1990
|
+
_self->setTypeBinary_impl();
|
|
1991
|
+
});
|
|
1992
|
+
}
|
|
1993
|
+
|
|
1994
|
+
void HybridFtp2::site(const std::string& siteCommand) {
|
|
1995
|
+
this->beginCall();
|
|
1996
|
+
site_impl(siteCommand);
|
|
1997
|
+
}
|
|
1998
|
+
void HybridFtp2::site_impl(const std::string& siteCommand) {
|
|
1999
|
+
rt::checkNoNul(siteCommand, "siteCommand");
|
|
2000
|
+
if (!this->ck().Site(siteCommand.c_str())) throw this->fail("site");
|
|
2001
|
+
}
|
|
2002
|
+
std::shared_ptr<Promise<void>> HybridFtp2::siteAsync(const std::string& siteCommand) {
|
|
2003
|
+
this->beginCall();
|
|
2004
|
+
auto _self = this->shared_cast<HybridFtp2>();
|
|
2005
|
+
std::vector<std::shared_ptr<HybridObject>> _parts{ _self };
|
|
2006
|
+
return rt::runAsync<void>("Ftp2.siteAsync", std::move(_parts), [_self, siteCommand]() {
|
|
2007
|
+
_self->site_impl(siteCommand);
|
|
2008
|
+
});
|
|
2009
|
+
}
|
|
2010
|
+
|
|
2011
|
+
void HybridFtp2::sleepMs(double millisec) {
|
|
2012
|
+
this->beginCall();
|
|
2013
|
+
sleepMs_impl(millisec);
|
|
2014
|
+
}
|
|
2015
|
+
void HybridFtp2::sleepMs_impl(double millisec) {
|
|
2016
|
+
this->ck().SleepMs(rt::toInt(millisec, "millisec"));
|
|
2017
|
+
}
|
|
2018
|
+
|
|
2019
|
+
std::string HybridFtp2::stat() {
|
|
2020
|
+
this->beginCall();
|
|
2021
|
+
return stat_impl();
|
|
2022
|
+
}
|
|
2023
|
+
std::string HybridFtp2::stat_impl() {
|
|
2024
|
+
CkString _out;
|
|
2025
|
+
if (!this->ck().Stat(_out)) throw this->fail("stat");
|
|
2026
|
+
return rt::stdString(_out);
|
|
2027
|
+
}
|
|
2028
|
+
std::shared_ptr<Promise<std::string>> HybridFtp2::statAsync() {
|
|
2029
|
+
this->beginCall();
|
|
2030
|
+
auto _self = this->shared_cast<HybridFtp2>();
|
|
2031
|
+
std::vector<std::shared_ptr<HybridObject>> _parts{ _self };
|
|
2032
|
+
return rt::runAsync<std::string>("Ftp2.statAsync", std::move(_parts), [_self]() {
|
|
2033
|
+
return _self->stat_impl();
|
|
2034
|
+
});
|
|
2035
|
+
}
|
|
2036
|
+
|
|
2037
|
+
void HybridFtp2::syncDeleteRemote(const std::string& localRoot) {
|
|
2038
|
+
this->beginCall();
|
|
2039
|
+
syncDeleteRemote_impl(localRoot);
|
|
2040
|
+
}
|
|
2041
|
+
void HybridFtp2::syncDeleteRemote_impl(const std::string& localRoot) {
|
|
2042
|
+
rt::checkNoNul(localRoot, "localRoot");
|
|
2043
|
+
if (!this->ck().SyncDeleteRemote(localRoot.c_str())) throw this->fail("syncDeleteRemote");
|
|
2044
|
+
}
|
|
2045
|
+
std::shared_ptr<Promise<void>> HybridFtp2::syncDeleteRemoteAsync(const std::string& localRoot) {
|
|
2046
|
+
this->beginCall();
|
|
2047
|
+
auto _self = this->shared_cast<HybridFtp2>();
|
|
2048
|
+
std::vector<std::shared_ptr<HybridObject>> _parts{ _self };
|
|
2049
|
+
return rt::runAsync<void>("Ftp2.syncDeleteRemoteAsync", std::move(_parts), [_self, localRoot]() {
|
|
2050
|
+
_self->syncDeleteRemote_impl(localRoot);
|
|
2051
|
+
});
|
|
2052
|
+
}
|
|
2053
|
+
|
|
2054
|
+
void HybridFtp2::syncLocalDir(const std::string& localRoot, double mode) {
|
|
2055
|
+
this->beginCall();
|
|
2056
|
+
syncLocalDir_impl(localRoot, mode);
|
|
2057
|
+
}
|
|
2058
|
+
void HybridFtp2::syncLocalDir_impl(const std::string& localRoot, double mode) {
|
|
2059
|
+
rt::checkNoNul(localRoot, "localRoot");
|
|
2060
|
+
if (!this->ck().SyncLocalDir(localRoot.c_str(), rt::toInt(mode, "mode"))) throw this->fail("syncLocalDir");
|
|
2061
|
+
}
|
|
2062
|
+
std::shared_ptr<Promise<void>> HybridFtp2::syncLocalDirAsync(const std::string& localRoot, double mode) {
|
|
2063
|
+
this->beginCall();
|
|
2064
|
+
auto _self = this->shared_cast<HybridFtp2>();
|
|
2065
|
+
std::vector<std::shared_ptr<HybridObject>> _parts{ _self };
|
|
2066
|
+
return rt::runAsync<void>("Ftp2.syncLocalDirAsync", std::move(_parts), [_self, localRoot, mode]() {
|
|
2067
|
+
_self->syncLocalDir_impl(localRoot, mode);
|
|
2068
|
+
});
|
|
2069
|
+
}
|
|
2070
|
+
|
|
2071
|
+
void HybridFtp2::syncLocalTree(const std::string& localRoot, double mode) {
|
|
2072
|
+
this->beginCall();
|
|
2073
|
+
syncLocalTree_impl(localRoot, mode);
|
|
2074
|
+
}
|
|
2075
|
+
void HybridFtp2::syncLocalTree_impl(const std::string& localRoot, double mode) {
|
|
2076
|
+
rt::checkNoNul(localRoot, "localRoot");
|
|
2077
|
+
if (!this->ck().SyncLocalTree(localRoot.c_str(), rt::toInt(mode, "mode"))) throw this->fail("syncLocalTree");
|
|
2078
|
+
}
|
|
2079
|
+
std::shared_ptr<Promise<void>> HybridFtp2::syncLocalTreeAsync(const std::string& localRoot, double mode) {
|
|
2080
|
+
this->beginCall();
|
|
2081
|
+
auto _self = this->shared_cast<HybridFtp2>();
|
|
2082
|
+
std::vector<std::shared_ptr<HybridObject>> _parts{ _self };
|
|
2083
|
+
return rt::runAsync<void>("Ftp2.syncLocalTreeAsync", std::move(_parts), [_self, localRoot, mode]() {
|
|
2084
|
+
_self->syncLocalTree_impl(localRoot, mode);
|
|
2085
|
+
});
|
|
2086
|
+
}
|
|
2087
|
+
|
|
2088
|
+
void HybridFtp2::syncRemoteTree(const std::string& localRoot, double mode) {
|
|
2089
|
+
this->beginCall();
|
|
2090
|
+
syncRemoteTree_impl(localRoot, mode);
|
|
2091
|
+
}
|
|
2092
|
+
void HybridFtp2::syncRemoteTree_impl(const std::string& localRoot, double mode) {
|
|
2093
|
+
rt::checkNoNul(localRoot, "localRoot");
|
|
2094
|
+
if (!this->ck().SyncRemoteTree(localRoot.c_str(), rt::toInt(mode, "mode"))) throw this->fail("syncRemoteTree");
|
|
2095
|
+
}
|
|
2096
|
+
std::shared_ptr<Promise<void>> HybridFtp2::syncRemoteTreeAsync(const std::string& localRoot, double mode) {
|
|
2097
|
+
this->beginCall();
|
|
2098
|
+
auto _self = this->shared_cast<HybridFtp2>();
|
|
2099
|
+
std::vector<std::shared_ptr<HybridObject>> _parts{ _self };
|
|
2100
|
+
return rt::runAsync<void>("Ftp2.syncRemoteTreeAsync", std::move(_parts), [_self, localRoot, mode]() {
|
|
2101
|
+
_self->syncRemoteTree_impl(localRoot, mode);
|
|
2102
|
+
});
|
|
2103
|
+
}
|
|
2104
|
+
|
|
2105
|
+
void HybridFtp2::syncRemoteTree2(const std::string& localDirPath, double mode, bool bDescend, bool bPreviewOnly) {
|
|
2106
|
+
this->beginCall();
|
|
2107
|
+
syncRemoteTree2_impl(localDirPath, mode, bDescend, bPreviewOnly);
|
|
2108
|
+
}
|
|
2109
|
+
void HybridFtp2::syncRemoteTree2_impl(const std::string& localDirPath, double mode, bool bDescend, bool bPreviewOnly) {
|
|
2110
|
+
rt::checkNoNul(localDirPath, "localDirPath");
|
|
2111
|
+
if (!this->ck().SyncRemoteTree2(localDirPath.c_str(), rt::toInt(mode, "mode"), bDescend, bPreviewOnly)) throw this->fail("syncRemoteTree2");
|
|
2112
|
+
}
|
|
2113
|
+
std::shared_ptr<Promise<void>> HybridFtp2::syncRemoteTree2Async(const std::string& localDirPath, double mode, bool bDescend, bool bPreviewOnly) {
|
|
2114
|
+
this->beginCall();
|
|
2115
|
+
auto _self = this->shared_cast<HybridFtp2>();
|
|
2116
|
+
std::vector<std::shared_ptr<HybridObject>> _parts{ _self };
|
|
2117
|
+
return rt::runAsync<void>("Ftp2.syncRemoteTree2Async", std::move(_parts), [_self, localDirPath, mode, bDescend, bPreviewOnly]() {
|
|
2118
|
+
_self->syncRemoteTree2_impl(localDirPath, mode, bDescend, bPreviewOnly);
|
|
2119
|
+
});
|
|
2120
|
+
}
|
|
2121
|
+
|
|
2122
|
+
std::string HybridFtp2::syst() {
|
|
2123
|
+
this->beginCall();
|
|
2124
|
+
return syst_impl();
|
|
2125
|
+
}
|
|
2126
|
+
std::string HybridFtp2::syst_impl() {
|
|
2127
|
+
CkString _out;
|
|
2128
|
+
if (!this->ck().Syst(_out)) throw this->fail("syst");
|
|
2129
|
+
return rt::stdString(_out);
|
|
2130
|
+
}
|
|
2131
|
+
std::shared_ptr<Promise<std::string>> HybridFtp2::systAsync() {
|
|
2132
|
+
this->beginCall();
|
|
2133
|
+
auto _self = this->shared_cast<HybridFtp2>();
|
|
2134
|
+
std::vector<std::shared_ptr<HybridObject>> _parts{ _self };
|
|
2135
|
+
return rt::runAsync<std::string>("Ftp2.systAsync", std::move(_parts), [_self]() {
|
|
2136
|
+
return _self->syst_impl();
|
|
2137
|
+
});
|
|
2138
|
+
}
|
|
2139
|
+
|
|
2140
|
+
void HybridFtp2::getFileBd(const std::string& remoteFilePath, const std::shared_ptr<HybridBinDataSpec>& binData) {
|
|
2141
|
+
this->beginCall();
|
|
2142
|
+
getFileBd_impl(remoteFilePath, binData);
|
|
2143
|
+
}
|
|
2144
|
+
void HybridFtp2::getFileBd_impl(const std::string& remoteFilePath, const std::shared_ptr<HybridBinDataSpec>& binData) {
|
|
2145
|
+
rt::checkNoNul(remoteFilePath, "remoteFilePath");
|
|
2146
|
+
if (!this->ck().GetFileBd(remoteFilePath.c_str(), rt::implOf<HybridBinData>(binData, "binData").ck())) throw this->fail("getFileBd");
|
|
2147
|
+
}
|
|
2148
|
+
std::shared_ptr<Promise<void>> HybridFtp2::getFileBdAsync(const std::string& remoteFilePath, const std::shared_ptr<HybridBinDataSpec>& binData) {
|
|
2149
|
+
this->beginCall();
|
|
2150
|
+
auto _self = this->shared_cast<HybridFtp2>();
|
|
2151
|
+
std::vector<std::shared_ptr<HybridObject>> _parts{ _self };
|
|
2152
|
+
_parts.push_back(binData);
|
|
2153
|
+
return rt::runAsync<void>("Ftp2.getFileBdAsync", std::move(_parts), [_self, remoteFilePath, binData]() {
|
|
2154
|
+
_self->getFileBd_impl(remoteFilePath, binData);
|
|
2155
|
+
});
|
|
2156
|
+
}
|
|
2157
|
+
|
|
2158
|
+
void HybridFtp2::getFileSb(const std::string& remoteFilePath, const std::string& charset, const std::shared_ptr<HybridStringBuilderSpec>& sb) {
|
|
2159
|
+
this->beginCall();
|
|
2160
|
+
getFileSb_impl(remoteFilePath, charset, sb);
|
|
2161
|
+
}
|
|
2162
|
+
void HybridFtp2::getFileSb_impl(const std::string& remoteFilePath, const std::string& charset, const std::shared_ptr<HybridStringBuilderSpec>& sb) {
|
|
2163
|
+
rt::checkNoNul(remoteFilePath, "remoteFilePath");
|
|
2164
|
+
rt::checkNoNul(charset, "charset");
|
|
2165
|
+
if (!this->ck().GetFileSb(remoteFilePath.c_str(), charset.c_str(), rt::implOf<HybridStringBuilder>(sb, "sb").ck())) throw this->fail("getFileSb");
|
|
2166
|
+
}
|
|
2167
|
+
std::shared_ptr<Promise<void>> HybridFtp2::getFileSbAsync(const std::string& remoteFilePath, const std::string& charset, const std::shared_ptr<HybridStringBuilderSpec>& sb) {
|
|
2168
|
+
this->beginCall();
|
|
2169
|
+
auto _self = this->shared_cast<HybridFtp2>();
|
|
2170
|
+
std::vector<std::shared_ptr<HybridObject>> _parts{ _self };
|
|
2171
|
+
_parts.push_back(sb);
|
|
2172
|
+
return rt::runAsync<void>("Ftp2.getFileSbAsync", std::move(_parts), [_self, remoteFilePath, charset, sb]() {
|
|
2173
|
+
_self->getFileSb_impl(remoteFilePath, charset, sb);
|
|
2174
|
+
});
|
|
2175
|
+
}
|
|
2176
|
+
|
|
2177
|
+
void HybridFtp2::putFileBd(const std::shared_ptr<HybridBinDataSpec>& binData, const std::string& remoteFilePath) {
|
|
2178
|
+
this->beginCall();
|
|
2179
|
+
putFileBd_impl(binData, remoteFilePath);
|
|
2180
|
+
}
|
|
2181
|
+
void HybridFtp2::putFileBd_impl(const std::shared_ptr<HybridBinDataSpec>& binData, const std::string& remoteFilePath) {
|
|
2182
|
+
rt::checkNoNul(remoteFilePath, "remoteFilePath");
|
|
2183
|
+
if (!this->ck().PutFileBd(rt::implOf<HybridBinData>(binData, "binData").ck(), remoteFilePath.c_str())) throw this->fail("putFileBd");
|
|
2184
|
+
}
|
|
2185
|
+
std::shared_ptr<Promise<void>> HybridFtp2::putFileBdAsync(const std::shared_ptr<HybridBinDataSpec>& binData, const std::string& remoteFilePath) {
|
|
2186
|
+
this->beginCall();
|
|
2187
|
+
auto _self = this->shared_cast<HybridFtp2>();
|
|
2188
|
+
std::vector<std::shared_ptr<HybridObject>> _parts{ _self };
|
|
2189
|
+
_parts.push_back(binData);
|
|
2190
|
+
return rt::runAsync<void>("Ftp2.putFileBdAsync", std::move(_parts), [_self, binData, remoteFilePath]() {
|
|
2191
|
+
_self->putFileBd_impl(binData, remoteFilePath);
|
|
2192
|
+
});
|
|
2193
|
+
}
|
|
2194
|
+
|
|
2195
|
+
void HybridFtp2::putFileSb(const std::shared_ptr<HybridStringBuilderSpec>& sb, const std::string& charset, bool includeBom, const std::string& remoteFilePath) {
|
|
2196
|
+
this->beginCall();
|
|
2197
|
+
putFileSb_impl(sb, charset, includeBom, remoteFilePath);
|
|
2198
|
+
}
|
|
2199
|
+
void HybridFtp2::putFileSb_impl(const std::shared_ptr<HybridStringBuilderSpec>& sb, const std::string& charset, bool includeBom, const std::string& remoteFilePath) {
|
|
2200
|
+
rt::checkNoNul(charset, "charset");
|
|
2201
|
+
rt::checkNoNul(remoteFilePath, "remoteFilePath");
|
|
2202
|
+
if (!this->ck().PutFileSb(rt::implOf<HybridStringBuilder>(sb, "sb").ck(), charset.c_str(), includeBom, remoteFilePath.c_str())) throw this->fail("putFileSb");
|
|
2203
|
+
}
|
|
2204
|
+
std::shared_ptr<Promise<void>> HybridFtp2::putFileSbAsync(const std::shared_ptr<HybridStringBuilderSpec>& sb, const std::string& charset, bool includeBom, const std::string& remoteFilePath) {
|
|
2205
|
+
this->beginCall();
|
|
2206
|
+
auto _self = this->shared_cast<HybridFtp2>();
|
|
2207
|
+
std::vector<std::shared_ptr<HybridObject>> _parts{ _self };
|
|
2208
|
+
_parts.push_back(sb);
|
|
2209
|
+
return rt::runAsync<void>("Ftp2.putFileSbAsync", std::move(_parts), [_self, sb, charset, includeBom, remoteFilePath]() {
|
|
2210
|
+
_self->putFileSb_impl(sb, charset, includeBom, remoteFilePath);
|
|
2211
|
+
});
|
|
2212
|
+
}
|
|
2213
|
+
|
|
2214
|
+
void HybridFtp2::getFileToStream(const std::string& remoteFilePath, const std::shared_ptr<HybridStreamSpec>& toStream) {
|
|
2215
|
+
this->beginCall();
|
|
2216
|
+
getFileToStream_impl(remoteFilePath, toStream);
|
|
2217
|
+
}
|
|
2218
|
+
void HybridFtp2::getFileToStream_impl(const std::string& remoteFilePath, const std::shared_ptr<HybridStreamSpec>& toStream) {
|
|
2219
|
+
rt::checkNoNul(remoteFilePath, "remoteFilePath");
|
|
2220
|
+
if (!this->ck().GetFileToStream(remoteFilePath.c_str(), rt::implOf<HybridStream>(toStream, "toStream").ck())) throw this->fail("getFileToStream");
|
|
2221
|
+
}
|
|
2222
|
+
std::shared_ptr<Promise<void>> HybridFtp2::getFileToStreamAsync(const std::string& remoteFilePath, const std::shared_ptr<HybridStreamSpec>& toStream) {
|
|
2223
|
+
this->beginCall();
|
|
2224
|
+
auto _self = this->shared_cast<HybridFtp2>();
|
|
2225
|
+
std::vector<std::shared_ptr<HybridObject>> _parts{ _self };
|
|
2226
|
+
_parts.push_back(toStream);
|
|
2227
|
+
return rt::runAsync<void>("Ftp2.getFileToStreamAsync", std::move(_parts), [_self, remoteFilePath, toStream]() {
|
|
2228
|
+
_self->getFileToStream_impl(remoteFilePath, toStream);
|
|
2229
|
+
});
|
|
2230
|
+
}
|
|
2231
|
+
|
|
2232
|
+
void HybridFtp2::setSecurePassword(const std::shared_ptr<HybridSecureStringSpec>& password) {
|
|
2233
|
+
this->beginCall();
|
|
2234
|
+
setSecurePassword_impl(password);
|
|
2235
|
+
}
|
|
2236
|
+
void HybridFtp2::setSecurePassword_impl(const std::shared_ptr<HybridSecureStringSpec>& password) {
|
|
2237
|
+
if (!this->ck().SetSecurePassword(rt::implOf<HybridSecureString>(password, "password").ck())) throw this->fail("setSecurePassword");
|
|
2238
|
+
}
|
|
2239
|
+
|
|
2240
|
+
void HybridFtp2::getSyncedFiles(const std::shared_ptr<HybridStringTableSpec>& strTable) {
|
|
2241
|
+
this->beginCall();
|
|
2242
|
+
getSyncedFiles_impl(strTable);
|
|
2243
|
+
}
|
|
2244
|
+
void HybridFtp2::getSyncedFiles_impl(const std::shared_ptr<HybridStringTableSpec>& strTable) {
|
|
2245
|
+
this->ck().GetSyncedFiles(rt::implOf<HybridStringTable>(strTable, "strTable").ck());
|
|
2246
|
+
}
|
|
2247
|
+
|
|
2248
|
+
void HybridFtp2::getServerCert(const std::shared_ptr<HybridCertSpec>& cert) {
|
|
2249
|
+
this->beginCall();
|
|
2250
|
+
getServerCert_impl(cert);
|
|
2251
|
+
}
|
|
2252
|
+
void HybridFtp2::getServerCert_impl(const std::shared_ptr<HybridCertSpec>& cert) {
|
|
2253
|
+
if (!this->ck().GetServerCert(rt::implOf<HybridCert>(cert, "cert").ck())) throw this->fail("getServerCert");
|
|
2254
|
+
}
|
|
2255
|
+
|
|
2256
|
+
void HybridFtp2::appendFileBd(const std::string& remoteFilename, const std::shared_ptr<HybridBinDataSpec>& bd) {
|
|
2257
|
+
this->beginCall();
|
|
2258
|
+
appendFileBd_impl(remoteFilename, bd);
|
|
2259
|
+
}
|
|
2260
|
+
void HybridFtp2::appendFileBd_impl(const std::string& remoteFilename, const std::shared_ptr<HybridBinDataSpec>& bd) {
|
|
2261
|
+
rt::checkNoNul(remoteFilename, "remoteFilename");
|
|
2262
|
+
if (!this->ck().AppendFileBd(remoteFilename.c_str(), rt::implOf<HybridBinData>(bd, "bd").ck())) throw this->fail("appendFileBd");
|
|
2263
|
+
}
|
|
2264
|
+
std::shared_ptr<Promise<void>> HybridFtp2::appendFileBdAsync(const std::string& remoteFilename, const std::shared_ptr<HybridBinDataSpec>& bd) {
|
|
2265
|
+
this->beginCall();
|
|
2266
|
+
auto _self = this->shared_cast<HybridFtp2>();
|
|
2267
|
+
std::vector<std::shared_ptr<HybridObject>> _parts{ _self };
|
|
2268
|
+
_parts.push_back(bd);
|
|
2269
|
+
return rt::runAsync<void>("Ftp2.appendFileBdAsync", std::move(_parts), [_self, remoteFilename, bd]() {
|
|
2270
|
+
_self->appendFileBd_impl(remoteFilename, bd);
|
|
2271
|
+
});
|
|
2272
|
+
}
|
|
2273
|
+
|
|
2274
|
+
void HybridFtp2::appendFileSb(const std::string& remoteFilename, const std::shared_ptr<HybridStringBuilderSpec>& sb, const std::string& charset) {
|
|
2275
|
+
this->beginCall();
|
|
2276
|
+
appendFileSb_impl(remoteFilename, sb, charset);
|
|
2277
|
+
}
|
|
2278
|
+
void HybridFtp2::appendFileSb_impl(const std::string& remoteFilename, const std::shared_ptr<HybridStringBuilderSpec>& sb, const std::string& charset) {
|
|
2279
|
+
rt::checkNoNul(remoteFilename, "remoteFilename");
|
|
2280
|
+
rt::checkNoNul(charset, "charset");
|
|
2281
|
+
if (!this->ck().AppendFileSb(remoteFilename.c_str(), rt::implOf<HybridStringBuilder>(sb, "sb").ck(), charset.c_str())) throw this->fail("appendFileSb");
|
|
2282
|
+
}
|
|
2283
|
+
std::shared_ptr<Promise<void>> HybridFtp2::appendFileSbAsync(const std::string& remoteFilename, const std::shared_ptr<HybridStringBuilderSpec>& sb, const std::string& charset) {
|
|
2284
|
+
this->beginCall();
|
|
2285
|
+
auto _self = this->shared_cast<HybridFtp2>();
|
|
2286
|
+
std::vector<std::shared_ptr<HybridObject>> _parts{ _self };
|
|
2287
|
+
_parts.push_back(sb);
|
|
2288
|
+
return rt::runAsync<void>("Ftp2.appendFileSbAsync", std::move(_parts), [_self, remoteFilename, sb, charset]() {
|
|
2289
|
+
_self->appendFileSb_impl(remoteFilename, sb, charset);
|
|
2290
|
+
});
|
|
2291
|
+
}
|
|
2292
|
+
|
|
2293
|
+
void HybridFtp2::getLastJsonData(const std::shared_ptr<HybridJsonObjectSpec>& json) {
|
|
2294
|
+
this->beginCall();
|
|
2295
|
+
getLastJsonData_impl(json);
|
|
2296
|
+
}
|
|
2297
|
+
void HybridFtp2::getLastJsonData_impl(const std::shared_ptr<HybridJsonObjectSpec>& json) {
|
|
2298
|
+
this->ck().GetLastJsonData(rt::implOf<HybridJsonObject>(json, "json").ck());
|
|
2299
|
+
}
|
|
2300
|
+
|
|
2301
|
+
// ---- Events ----
|
|
2302
|
+
std::optional<std::function<void(double)>> HybridFtp2::getOnPercentDone() { return this->getOnPercentDoneCb(); }
|
|
2303
|
+
void HybridFtp2::setOnPercentDone(const std::optional<std::function<void(double)>>& cb) { this->setOnPercentDoneCb(cb); }
|
|
2304
|
+
std::optional<std::function<void(const std::string&, const std::string&)>> HybridFtp2::getOnProgressInfo() { return this->getOnProgressInfoCb(); }
|
|
2305
|
+
void HybridFtp2::setOnProgressInfo(const std::optional<std::function<void(const std::string&, const std::string&)>>& cb) { this->setOnProgressInfoCb(cb); }
|
|
2306
|
+
void HybridFtp2::abort() { this->requestAbort(); }
|
|
2307
|
+
|
|
2308
|
+
} // namespace margelo::nitro::chilkat
|