@rdlabo/capacitor-brotherprint 0.0.2 → 2.0.0-0
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/README.md +97 -0
- package/RdlaboCapacitorBrotherprint.podspec +8 -2
- package/android/.gradle/5.6.4/executionHistory/executionHistory.bin +0 -0
- package/android/.gradle/5.6.4/executionHistory/executionHistory.lock +0 -0
- package/android/.gradle/5.6.4/fileChanges/last-build.bin +0 -0
- package/android/.gradle/5.6.4/fileContent/fileContent.lock +0 -0
- package/android/.gradle/5.6.4/fileHashes/fileHashes.bin +0 -0
- package/android/.gradle/5.6.4/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/5.6.4/fileHashes/resourceHashesCache.bin +0 -0
- package/android/.gradle/5.6.4/gc.properties +0 -0
- package/android/.gradle/5.6.4/javaCompile/classAnalysis.bin +0 -0
- package/android/.gradle/5.6.4/javaCompile/jarAnalysis.bin +0 -0
- package/android/.gradle/5.6.4/javaCompile/javaCompile.lock +0 -0
- package/android/.gradle/5.6.4/javaCompile/taskHistory.bin +0 -0
- package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/android/.gradle/buildOutputCleanup/cache.properties +2 -0
- package/android/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
- package/android/.gradle/vcs-1/gc.properties +0 -0
- package/android/.idea/caches/build_file_checksums.ser +0 -0
- package/android/.idea/codeStyles/Project.xml +116 -0
- package/android/.idea/gradle.xml +22 -0
- package/android/.idea/jarRepositories.xml +30 -0
- package/android/.idea/libraries/Gradle__androidx_activity_activity_1_0_0_aar.xml +12 -0
- package/android/.idea/libraries/Gradle__androidx_annotation_annotation_1_1_0_jar.xml +13 -0
- package/android/.idea/libraries/Gradle__androidx_appcompat_appcompat_1_1_0_aar.xml +15 -0
- package/android/.idea/libraries/Gradle__androidx_appcompat_appcompat_resources_1_1_0_aar.xml +12 -0
- package/android/.idea/libraries/Gradle__androidx_arch_core_core_common_2_1_0_jar.xml +11 -0
- package/android/.idea/libraries/Gradle__androidx_arch_core_core_runtime_2_0_0_aar.xml +12 -0
- package/android/.idea/libraries/Gradle__androidx_browser_browser_1_2_0_aar.xml +15 -0
- package/android/.idea/libraries/Gradle__androidx_cardview_cardview_1_0_0_aar.xml +12 -0
- package/android/.idea/libraries/Gradle__androidx_collection_collection_1_1_0_jar.xml +11 -0
- package/android/.idea/libraries/Gradle__androidx_coordinatorlayout_coordinatorlayout_1_1_0_aar.xml +15 -0
- package/android/.idea/libraries/Gradle__androidx_core_core_1_2_0_aar.xml +15 -0
- package/android/.idea/libraries/Gradle__androidx_cursoradapter_cursoradapter_1_0_0_aar.xml +12 -0
- package/android/.idea/libraries/Gradle__androidx_customview_customview_1_0_0_aar.xml +12 -0
- package/android/.idea/libraries/Gradle__androidx_documentfile_documentfile_1_0_0_aar.xml +12 -0
- package/android/.idea/libraries/Gradle__androidx_drawerlayout_drawerlayout_1_0_0_aar.xml +15 -0
- package/android/.idea/libraries/Gradle__androidx_exifinterface_exifinterface_1_2_0_aar.xml +15 -0
- package/android/.idea/libraries/Gradle__androidx_fragment_fragment_1_1_0_aar.xml +15 -0
- package/android/.idea/libraries/Gradle__androidx_interpolator_interpolator_1_0_0_aar.xml +12 -0
- package/android/.idea/libraries/Gradle__androidx_legacy_legacy_support_core_utils_1_0_0_aar.xml +12 -0
- package/android/.idea/libraries/Gradle__androidx_lifecycle_lifecycle_common_2_1_0_jar.xml +11 -0
- package/android/.idea/libraries/Gradle__androidx_lifecycle_lifecycle_livedata_2_0_0_aar.xml +12 -0
- package/android/.idea/libraries/Gradle__androidx_lifecycle_lifecycle_livedata_core_2_0_0_aar.xml +12 -0
- package/android/.idea/libraries/Gradle__androidx_lifecycle_lifecycle_runtime_2_1_0_aar.xml +12 -0
- package/android/.idea/libraries/Gradle__androidx_lifecycle_lifecycle_viewmodel_2_1_0_aar.xml +12 -0
- package/android/.idea/libraries/Gradle__androidx_loader_loader_1_0_0_aar.xml +12 -0
- package/android/.idea/libraries/Gradle__androidx_localbroadcastmanager_localbroadcastmanager_1_0_0_aar.xml +12 -0
- package/android/.idea/libraries/Gradle__androidx_print_print_1_0_0_aar.xml +15 -0
- package/android/.idea/libraries/Gradle__androidx_recyclerview_recyclerview_1_1_0_aar.xml +15 -0
- package/android/.idea/libraries/Gradle__androidx_savedstate_savedstate_1_0_0_aar.xml +12 -0
- package/android/.idea/libraries/Gradle__androidx_test_core_1_2_0_aar.xml +14 -0
- package/android/.idea/libraries/Gradle__androidx_test_espresso_espresso_core_3_2_0_aar.xml +14 -0
- package/android/.idea/libraries/Gradle__androidx_test_espresso_espresso_idling_resource_3_2_0_aar.xml +14 -0
- package/android/.idea/libraries/Gradle__androidx_test_ext_junit_1_1_1_aar.xml +14 -0
- package/android/.idea/libraries/Gradle__androidx_test_monitor_1_2_0_aar.xml +14 -0
- package/android/.idea/libraries/Gradle__androidx_test_runner_1_2_0_aar.xml +14 -0
- package/android/.idea/libraries/Gradle__androidx_transition_transition_1_2_0_aar.xml +15 -0
- package/android/.idea/libraries/Gradle__androidx_vectordrawable_vectordrawable_1_1_0_aar.xml +12 -0
- package/android/.idea/libraries/Gradle__androidx_vectordrawable_vectordrawable_animated_1_1_0_aar.xml +12 -0
- package/android/.idea/libraries/Gradle__androidx_versionedparcelable_versionedparcelable_1_1_0_aar.xml +12 -0
- package/android/.idea/libraries/Gradle__androidx_viewpager2_viewpager2_1_0_0_aar.xml +15 -0
- package/android/.idea/libraries/Gradle__androidx_viewpager_viewpager_1_0_0_aar.xml +12 -0
- package/android/.idea/libraries/Gradle__artifacts_BrotherPrintLibrary_unspecified_jar.xml +11 -0
- package/android/.idea/libraries/Gradle__com_google_android_datatransport_transport_api_2_2_0_aar.xml +12 -0
- package/android/.idea/libraries/Gradle__com_google_android_datatransport_transport_backend_cct_2_2_0_aar.xml +12 -0
- package/android/.idea/libraries/Gradle__com_google_android_datatransport_transport_runtime_2_2_0_aar.xml +12 -0
- package/android/.idea/libraries/Gradle__com_google_android_gms_play_services_base_17_0_0_aar.xml +12 -0
- package/android/.idea/libraries/Gradle__com_google_android_gms_play_services_basement_17_0_0_aar.xml +12 -0
- package/android/.idea/libraries/Gradle__com_google_android_gms_play_services_location_17_0_0_aar.xml +10 -0
- package/android/.idea/libraries/Gradle__com_google_android_gms_play_services_places_placereport_17_0_0_aar.xml +10 -0
- package/android/.idea/libraries/Gradle__com_google_android_gms_play_services_stats_17_0_0_aar.xml +10 -0
- package/android/.idea/libraries/Gradle__com_google_android_gms_play_services_tasks_17_0_0_aar.xml +10 -0
- package/android/.idea/libraries/Gradle__com_google_android_material_material_1_1_0_rc02_aar.xml +15 -0
- package/android/.idea/libraries/Gradle__com_google_auto_value_auto_value_annotations_1_6_5_jar.xml +13 -0
- package/android/.idea/libraries/Gradle__com_google_code_findbugs_jsr305_2_0_1_jar.xml +9 -0
- package/android/.idea/libraries/Gradle__com_google_dagger_dagger_2_24_jar.xml +13 -0
- package/android/.idea/libraries/Gradle__com_google_firebase_firebase_common_19_3_0_aar.xml +14 -0
- package/android/.idea/libraries/Gradle__com_google_firebase_firebase_components_16_0_0_aar.xml +14 -0
- package/android/.idea/libraries/Gradle__com_google_firebase_firebase_datatransport_17_0_3_aar.xml +14 -0
- package/android/.idea/libraries/Gradle__com_google_firebase_firebase_encoders_json_16_0_0_aar.xml +14 -0
- package/android/.idea/libraries/Gradle__com_google_firebase_firebase_iid_20_1_1_aar.xml +12 -0
- package/android/.idea/libraries/Gradle__com_google_firebase_firebase_iid_interop_17_0_0_aar.xml +10 -0
- package/android/.idea/libraries/Gradle__com_google_firebase_firebase_installations_16_0_0_aar.xml +12 -0
- package/android/.idea/libraries/Gradle__com_google_firebase_firebase_installations_interop_16_0_0_aar.xml +12 -0
- package/android/.idea/libraries/Gradle__com_google_firebase_firebase_measurement_connector_18_0_0_aar.xml +10 -0
- package/android/.idea/libraries/Gradle__com_google_firebase_firebase_messaging_20_1_2_aar.xml +12 -0
- package/android/.idea/libraries/Gradle__com_google_guava_listenablefuture_1_0_jar.xml +13 -0
- package/android/.idea/libraries/Gradle__com_squareup_javawriter_2_1_1_jar.xml +13 -0
- package/android/.idea/libraries/Gradle__javax_inject_javax_inject_1_jar.xml +13 -0
- package/android/.idea/libraries/Gradle__junit_junit_4_12_jar.xml +13 -0
- package/android/.idea/libraries/Gradle__net_bytebuddy_byte_buddy_1_9_7_jar.xml +13 -0
- package/android/.idea/libraries/Gradle__net_bytebuddy_byte_buddy_agent_1_9_7_jar.xml +13 -0
- package/android/.idea/libraries/Gradle__net_sf_kxml_kxml2_2_3_0_jar.xml +13 -0
- package/android/.idea/libraries/Gradle__org_apache_cordova_framework_7_0_0_aar.xml +12 -0
- package/android/.idea/libraries/Gradle__org_hamcrest_hamcrest_core_1_3_jar.xml +13 -0
- package/android/.idea/libraries/Gradle__org_hamcrest_hamcrest_integration_1_3_jar.xml +13 -0
- package/android/.idea/libraries/Gradle__org_hamcrest_hamcrest_library_1_3_jar.xml +13 -0
- package/android/.idea/libraries/Gradle__org_json_json_20140107_jar.xml +13 -0
- package/android/.idea/libraries/Gradle__org_mockito_mockito_core_2_25_1_jar.xml +13 -0
- package/android/.idea/libraries/Gradle__org_mockito_mockito_inline_2_25_1_jar.xml +13 -0
- package/android/.idea/libraries/Gradle__org_objenesis_objenesis_2_6_jar.xml +13 -0
- package/android/.idea/misc.xml +14 -0
- package/android/.idea/modules/-485579866/capacitor-android.iml +171 -0
- package/android/.idea/modules/BrotherPrintLibrary/BrotherPrintLibrary.iml +27 -0
- package/android/.idea/modules/android.iml +110 -0
- package/android/.idea/modules.xml +10 -0
- package/android/.idea/runConfigurations.xml +12 -0
- package/android/.idea/vcs.xml +6 -0
- package/android/.idea/workspace.xml +83 -0
- package/android/BrotherPrintLibrary/BrotherPrintLibrary.aar +0 -0
- package/android/BrotherPrintLibrary/build/.transforms/25e734394246e1bfc2863356368dd65a/jetified-BrotherPrintLibrary/AndroidManifest.xml +11 -0
- package/android/BrotherPrintLibrary/build/.transforms/25e734394246e1bfc2863356368dd65a/jetified-BrotherPrintLibrary/jars/classes.jar +0 -0
- package/android/BrotherPrintLibrary/build/.transforms/25e734394246e1bfc2863356368dd65a/jetified-BrotherPrintLibrary/jars/libs/MobilePrintLib.jar +0 -0
- package/android/BrotherPrintLibrary/build/.transforms/25e734394246e1bfc2863356368dd65a/jetified-BrotherPrintLibrary/jni/arm64-v8a/libcreatedata.so +0 -0
- package/android/BrotherPrintLibrary/build/.transforms/25e734394246e1bfc2863356368dd65a/jetified-BrotherPrintLibrary/jni/armeabi/libAndrJFPDFEMB.so +0 -0
- package/android/BrotherPrintLibrary/build/.transforms/25e734394246e1bfc2863356368dd65a/jetified-BrotherPrintLibrary/jni/armeabi/libcreatedata.so +0 -0
- package/android/BrotherPrintLibrary/build/.transforms/25e734394246e1bfc2863356368dd65a/jetified-BrotherPrintLibrary/jni/armeabi-v7a/libAndrJFPDFEMB.so +0 -0
- package/android/BrotherPrintLibrary/build/.transforms/25e734394246e1bfc2863356368dd65a/jetified-BrotherPrintLibrary/jni/armeabi-v7a/libcreatedata.so +0 -0
- package/android/BrotherPrintLibrary/build/.transforms/25e734394246e1bfc2863356368dd65a/jetified-BrotherPrintLibrary/jni/x86/libcreatedata.so +0 -0
- package/android/BrotherPrintLibrary/build/.transforms/25e734394246e1bfc2863356368dd65a/jetified-BrotherPrintLibrary/jni/x86_64/libcreatedata.so +0 -0
- package/android/BrotherPrintLibrary/build/.transforms/25e734394246e1bfc2863356368dd65a.bin +1 -0
- package/android/BrotherPrintLibrary/build/.transforms/8f03997c59bfcdf41861a60561d5d5af.bin +0 -0
- package/android/BrotherPrintLibrary/build/.transforms/b3cb8a1794c15332bde93f2b78199c73/jetified-BrotherPrintLibrary.aar +0 -0
- package/android/BrotherPrintLibrary/build/.transforms/b3cb8a1794c15332bde93f2b78199c73.bin +1 -0
- package/android/BrotherPrintLibrary/build/.transforms/bb913df08d40846b1bc63945606f217a.bin +2 -0
- package/android/BrotherPrintLibrary/build/.transforms/cf1dcc0f016004f76302659fc63c1d4f.bin +1 -0
- package/android/BrotherPrintLibrary/build.gradle +2 -0
- package/android/build.gradle +2 -0
- package/android/local.properties +8 -0
- package/android/settings.gradle +1 -0
- package/android/src/main/AndroidManifest.xml +12 -0
- package/android/src/main/java/jp/rdlabo/capacitor/plugin/brotherprint/BrotherPrint.java +149 -6
- package/dist/docs.json +105 -0
- package/dist/esm/definitions.d.ts +12 -9
- package/dist/esm/definitions.js +1 -0
- package/dist/esm/definitions.js.map +1 -1
- package/dist/esm/index.d.ts +3 -0
- package/dist/esm/index.js +6 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/web.d.ts +14 -7
- package/dist/esm/web.js +15 -18
- package/dist/esm/web.js.map +1 -1
- package/dist/plugin.cjs.js +43 -0
- package/dist/plugin.cjs.js.map +1 -0
- package/dist/plugin.js +28 -18
- package/dist/plugin.js.map +1 -1
- package/ios/Plugin/Plugin.h +0 -1
- package/ios/Plugin/Plugin.m +4 -1
- package/ios/Plugin/Plugin.swift +150 -7
- package/ios/Plugin/module.modulemap +9 -0
- package/ios/Plugin.xcodeproj/project.pbxproj +47 -1
- package/ios/Plugin.xcodeproj/project.xcworkspace/xcuserdata/sakakibara.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
- package/ios/Plugin.xcodeproj/xcuserdata/sakakibara.xcuserdatad/xcschemes/xcschememanagement.plist +27 -0
- package/ios/Plugin.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
- package/ios/Plugin.xcworkspace/xcuserdata/sakakibara.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
- package/ios/Podfile +2 -1
- package/ios/Podfile.lock +8 -1
- package/ios/Pods/BRLMPrinterKit/BRLMPrinterKit/BRLMPrinterKit.framework/BRLMPrinterKit +0 -0
- package/ios/Pods/BRLMPrinterKit/BRLMPrinterKit/BRLMPrinterKit.framework/BluetoothViewController.nib +0 -0
- package/ios/Pods/BRLMPrinterKit/BRLMPrinterKit/BRLMPrinterKit.framework/CutterViewController.nib +0 -0
- package/ios/Pods/BRLMPrinterKit/BRLMPrinterKit/BRLMPrinterKit.framework/ExtraFeedViewController.nib +0 -0
- package/ios/Pods/BRLMPrinterKit/BRLMPrinterKit/BRLMPrinterKit.framework/GenericMobileLabelModelPaperSizeViewController.nib +0 -0
- package/ios/Pods/BRLMPrinterKit/BRLMPrinterKit/BRLMPrinterKit.framework/Headers/BMSPrinterDriver.h +727 -0
- package/ios/Pods/BRLMPrinterKit/BRLMPrinterKit/BRLMPrinterKit.framework/Headers/BMSPrinterKit.h +60 -0
- package/ios/Pods/BRLMPrinterKit/BRLMPrinterKit/BRLMPrinterKit.framework/Headers/BRCustomPaperInfoCommand.h +107 -0
- package/ios/Pods/BRLMPrinterKit/BRLMPrinterKit/BRLMPrinterKit.framework/Headers/BRLMChannel.h +33 -0
- package/ios/Pods/BRLMPrinterKit/BRLMPrinterKit/BRLMPrinterKit.framework/Headers/BRLMCustomPaperSize.h +69 -0
- package/ios/Pods/BRLMPrinterKit/BRLMPrinterKit/BRLMPrinterKit.framework/Headers/BRLMError.h +25 -0
- package/ios/Pods/BRLMPrinterKit/BRLMPrinterKit/BRLMPrinterKit.framework/Headers/BRLMGetStatusError.h +27 -0
- package/ios/Pods/BRLMPrinterKit/BRLMPrinterKit/BRLMPrinterKit.framework/Headers/BRLMMWPrintSettings.h +35 -0
- package/ios/Pods/BRLMPrinterKit/BRLMPrinterKit/BRLMPrinterKit.framework/Headers/BRLMOpenChannelError.h +27 -0
- package/ios/Pods/BRLMPrinterKit/BRLMPrinterKit/BRLMPrinterKit.framework/Headers/BRLMPJPrintSettings.h +84 -0
- package/ios/Pods/BRLMPrinterKit/BRLMPrinterKit/BRLMPrinterKit.framework/Headers/BRLMPJPrintSettingsCustomPaperSize.h +25 -0
- package/ios/Pods/BRLMPrinterKit/BRLMPrinterKit/BRLMPrinterKit.framework/Headers/BRLMPJPrintSettingsPaperSize.h +35 -0
- package/ios/Pods/BRLMPrinterKit/BRLMPrinterKit/BRLMPrinterKit.framework/Headers/BRLMPTPrintSettings.h +53 -0
- package/ios/Pods/BRLMPrinterKit/BRLMPrinterKit/BRLMPrinterKit.framework/Headers/BRLMPrintError.h +52 -0
- package/ios/Pods/BRLMPrinterKit/BRLMPrinterKit/BRLMPrinterKit.framework/Headers/BRLMPrintImageSettings.h +77 -0
- package/ios/Pods/BRLMPrinterKit/BRLMPrinterKit/BRLMPrinterKit.framework/Headers/BRLMPrintSettingsProtocol.h +25 -0
- package/ios/Pods/BRLMPrinterKit/BRLMPrinterKit/BRLMPrinterKit.framework/Headers/BRLMPrinterClassifier.h +31 -0
- package/ios/Pods/BRLMPrinterKit/BRLMPrinterKit/BRLMPrinterKit.framework/Headers/BRLMPrinterDefine.h +59 -0
- package/ios/Pods/BRLMPrinterKit/BRLMPrinterKit/BRLMPrinterKit.framework/Headers/BRLMPrinterDriver.h +54 -0
- package/ios/Pods/BRLMPrinterKit/BRLMPrinterKit/BRLMPrinterKit.framework/Headers/BRLMPrinterDriverGenerator.h +34 -0
- package/ios/Pods/BRLMPrinterKit/BRLMPrinterKit/BRLMPrinterKit.framework/Headers/BRLMPrinterKit+BRPtouchPrinterKit+BMSPrinterKit.h +18 -0
- package/ios/Pods/BRLMPrinterKit/BRLMPrinterKit/BRLMPrinterKit.framework/Headers/BRLMPrinterKit.h +32 -0
- package/ios/Pods/BRLMPrinterKit/BRLMPrinterKit/BRLMPrinterKit.framework/Headers/BRLMPrinterStatus.h +55 -0
- package/ios/Pods/BRLMPrinterKit/BRLMPrinterKit/BRLMPrinterKit.framework/Headers/BRLMQLPrintSettings.h +64 -0
- package/ios/Pods/BRLMPrinterKit/BRLMPrinterKit/BRLMPrinterKit.framework/Headers/BRLMRJPrintSettings.h +48 -0
- package/ios/Pods/BRLMPrinterKit/BRLMPrinterKit/BRLMPrinterKit.framework/Headers/BRLMTDPrintSettings.h +47 -0
- package/ios/Pods/BRLMPrinterKit/BRLMPrinterKit/BRLMPrinterKit.framework/Headers/BRLMValidatePrintSettings.h +42 -0
- package/ios/Pods/BRLMPrinterKit/BRLMPrinterKit/BRLMPrinterKit.framework/Headers/BRPtouchBLEManager.h +28 -0
- package/ios/Pods/BRLMPrinterKit/BRLMPrinterKit/BRLMPrinterKit.framework/Headers/BRPtouchBatteryInfo.h +26 -0
- package/ios/Pods/BRLMPrinterKit/BRLMPrinterKit/BRLMPrinterKit.framework/Headers/BRPtouchBluetoothManager.h +59 -0
- package/ios/Pods/BRLMPrinterKit/BRLMPrinterKit/BRLMPrinterKit.framework/Headers/BRPtouchDeviceInfo.h +23 -0
- package/ios/Pods/BRLMPrinterKit/BRLMPrinterKit/BRLMPrinterKit.framework/Headers/BRPtouchLabelInfoStatus.h +119 -0
- package/ios/Pods/BRLMPrinterKit/BRLMPrinterKit/BRLMPrinterKit.framework/Headers/BRPtouchLabelParam.h +27 -0
- package/ios/Pods/BRLMPrinterKit/BRLMPrinterKit/BRLMPrinterKit.framework/Headers/BRPtouchNetworkManager.h +44 -0
- package/ios/Pods/BRLMPrinterKit/BRLMPrinterKit/BRLMPrinterKit.framework/Headers/BRPtouchPrintInfo.h +136 -0
- package/ios/Pods/BRLMPrinterKit/BRLMPrinterKit/BRLMPrinterKit.framework/Headers/BRPtouchPrinter.h +272 -0
- package/ios/Pods/BRLMPrinterKit/BRLMPrinterKit/BRLMPrinterKit.framework/Headers/BRPtouchPrinterData.h +16 -0
- package/ios/Pods/BRLMPrinterKit/BRLMPrinterKit/BRLMPrinterKit.framework/Headers/BRPtouchPrinterKit.h +18 -0
- package/ios/Pods/BRLMPrinterKit/BRLMPrinterKit/BRLMPrinterKit.framework/Headers/BRPtouchPrinterStatus.h +58 -0
- package/ios/Pods/BRLMPrinterKit/BRLMPrinterKit/BRLMPrinterKit.framework/Headers/BRPtouchTemplateInfo.h +23 -0
- package/ios/Pods/BRLMPrinterKit/BRLMPrinterKit/BRLMPrinterKit.framework/Headers/GenericMobileLabelModelPrintSettings.h +211 -0
- package/ios/Pods/BRLMPrinterKit/BRLMPrinterKit/BRLMPrinterKit.framework/Headers/GenericMobileLabelModelPrintSettingsViewController.h +50 -0
- package/ios/Pods/BRLMPrinterKit/BRLMPrinterKit/BRLMPrinterKit.framework/Headers/GenericPocketJetPrintSettings.h +99 -0
- package/ios/Pods/BRLMPrinterKit/BRLMPrinterKit/BRLMPrinterKit.framework/Headers/GenericPocketJetPrintSettingsViewController.h +47 -0
- package/ios/Pods/BRLMPrinterKit/BRLMPrinterKit/BRLMPrinterKit.framework/Headers/PJ673PrintSettings.h +43 -0
- package/ios/Pods/BRLMPrinterKit/BRLMPrinterKit/BRLMPrinterKit.framework/Headers/PJ673PrintSettingsViewController.h +40 -0
- package/ios/Pods/BRLMPrinterKit/BRLMPrinterKit/BRLMPrinterKit.framework/Headers/PJ763MFIPrintSettingsViewController.h +41 -0
- package/ios/Pods/BRLMPrinterKit/BRLMPrinterKit/BRLMPrinterKit.framework/Headers/PJ763MFiPrintSettings.h +45 -0
- package/ios/Pods/BRLMPrinterKit/BRLMPrinterKit/BRLMPrinterKit.framework/Headers/PJ773PrintSettings.h +46 -0
- package/ios/Pods/BRLMPrinterKit/BRLMPrinterKit/BRLMPrinterKit.framework/Headers/PJ773PrintSettingsViewController.h +41 -0
- package/ios/Pods/BRLMPrinterKit/BRLMPrinterKit/BRLMPrinterKit.framework/Headers/PrintSettingTableViewController.h +51 -0
- package/ios/Pods/BRLMPrinterKit/BRLMPrinterKit/BRLMPrinterKit.framework/Headers/PrintSettings.h +467 -0
- package/ios/Pods/BRLMPrinterKit/BRLMPrinterKit/BRLMPrinterKit.framework/Headers/PrintSettingsViewController.h +203 -0
- package/ios/Pods/BRLMPrinterKit/BRLMPrinterKit/BRLMPrinterKit.framework/Headers/RJ2050PrintSettings.h +81 -0
- package/ios/Pods/BRLMPrinterKit/BRLMPrinterKit/BRLMPrinterKit.framework/Headers/RJ2050PrintSettingsViewController.h +42 -0
- package/ios/Pods/BRLMPrinterKit/BRLMPrinterKit/BRLMPrinterKit.framework/Headers/RJ2140PrintSettings.h +81 -0
- package/ios/Pods/BRLMPrinterKit/BRLMPrinterKit/BRLMPrinterKit.framework/Headers/RJ2140PrintSettingsViewController.h +42 -0
- package/ios/Pods/BRLMPrinterKit/BRLMPrinterKit/BRLMPrinterKit.framework/Headers/RJ2150PrintSettings.h +81 -0
- package/ios/Pods/BRLMPrinterKit/BRLMPrinterKit/BRLMPrinterKit.framework/Headers/RJ2150PrintSettingsViewController.h +42 -0
- package/ios/Pods/BRLMPrinterKit/BRLMPrinterKit/BRLMPrinterKit.framework/Headers/RJ3050AIPrintSettings.h +81 -0
- package/ios/Pods/BRLMPrinterKit/BRLMPrinterKit/BRLMPrinterKit.framework/Headers/RJ3050AiPrintSettingsViewController.h +42 -0
- package/ios/Pods/BRLMPrinterKit/BRLMPrinterKit/BRLMPrinterKit.framework/Headers/RJ3050PrintSettings.h +81 -0
- package/ios/Pods/BRLMPrinterKit/BRLMPrinterKit/BRLMPrinterKit.framework/Headers/RJ3050PrintSettingsViewController.h +42 -0
- package/ios/Pods/BRLMPrinterKit/BRLMPrinterKit/BRLMPrinterKit.framework/Headers/RJ3150AiPrintSettings.h +82 -0
- package/ios/Pods/BRLMPrinterKit/BRLMPrinterKit/BRLMPrinterKit.framework/Headers/RJ3150AiPrintSettingsViewController.h +42 -0
- package/ios/Pods/BRLMPrinterKit/BRLMPrinterKit/BRLMPrinterKit.framework/Headers/RJ3150PrintSettings.h +82 -0
- package/ios/Pods/BRLMPrinterKit/BRLMPrinterKit/BRLMPrinterKit.framework/Headers/RJ3150PrintSettingsViewController.h +42 -0
- package/ios/Pods/BRLMPrinterKit/BRLMPrinterKit/BRLMPrinterKit.framework/Headers/RJ4030AiPrintSettings.h +103 -0
- package/ios/Pods/BRLMPrinterKit/BRLMPrinterKit/BRLMPrinterKit.framework/Headers/RJ4030AiPrintSettingsViewController.h +41 -0
- package/ios/Pods/BRLMPrinterKit/BRLMPrinterKit/BRLMPrinterKit.framework/Headers/RJ4040PrintSettings.h +102 -0
- package/ios/Pods/BRLMPrinterKit/BRLMPrinterKit/BRLMPrinterKit.framework/Headers/RJ4040PrintSettingsViewController.h +41 -0
- package/ios/Pods/BRLMPrinterKit/BRLMPrinterKit/BRLMPrinterKit.framework/Headers/RJ4230BPrintSettings.h +107 -0
- package/ios/Pods/BRLMPrinterKit/BRLMPrinterKit/BRLMPrinterKit.framework/Headers/RJ4230BPrintSettingsViewController.h +42 -0
- package/ios/Pods/BRLMPrinterKit/BRLMPrinterKit/BRLMPrinterKit.framework/Headers/RJ4250WBPrintSettings.h +108 -0
- package/ios/Pods/BRLMPrinterKit/BRLMPrinterKit/BRLMPrinterKit.framework/Headers/RJ4250WBPrintSettingsViewController.h +42 -0
- package/ios/Pods/BRLMPrinterKit/BRLMPrinterKit/BRLMPrinterKit.framework/Headers/TD2120NPrintSettings.h +83 -0
- package/ios/Pods/BRLMPrinterKit/BRLMPrinterKit/BRLMPrinterKit.framework/Headers/TD2120NPrintSettingsViewController.h +42 -0
- package/ios/Pods/BRLMPrinterKit/BRLMPrinterKit/BRLMPrinterKit.framework/Headers/TD2130NPrintSettings.h +82 -0
- package/ios/Pods/BRLMPrinterKit/BRLMPrinterKit/BRLMPrinterKit.framework/Headers/TD2130NPrintSettingsViewController.h +42 -0
- package/ios/Pods/BRLMPrinterKit/BRLMPrinterKit/BRLMPrinterKit.framework/Headers/TD4550DNWBPrintSettings.h +76 -0
- package/ios/Pods/BRLMPrinterKit/BRLMPrinterKit/BRLMPrinterKit.framework/Headers/TD4550DNWBPrintSettingsViewController.h +42 -0
- package/ios/Pods/BRLMPrinterKit/BRLMPrinterKit/BRLMPrinterKit.framework/IPAddressHelp.pdf +0 -0
- package/ios/Pods/BRLMPrinterKit/BRLMPrinterKit/BRLMPrinterKit.framework/IPAddressViewController.nib +0 -0
- package/ios/Pods/BRLMPrinterKit/BRLMPrinterKit/BRLMPrinterKit.framework/Info.plist +0 -0
- package/ios/Pods/BRLMPrinterKit/BRLMPrinterKit/BRLMPrinterKit.framework/MarginViewController.nib +0 -0
- package/ios/Pods/BRLMPrinterKit/BRLMPrinterKit/BRLMPrinterKit.framework/PJCustomPaperViewController.nib +0 -0
- package/ios/Pods/BRLMPrinterKit/BRLMPrinterKit/BRLMPrinterKit.framework/PrintProgressViewControllerWithFilename_BMSSDK~ipad.nib +0 -0
- package/ios/Pods/BRLMPrinterKit/BRLMPrinterKit/BRLMPrinterKit.framework/PrintProgressViewControllerWithFilename_BMSSDK~iphone.nib +0 -0
- package/ios/Pods/BRLMPrinterKit/BRLMPrinterKit/BRLMPrinterKit.framework/PrintProgressViewController_BMSSDK~ipad.nib +0 -0
- package/ios/Pods/BRLMPrinterKit/BRLMPrinterKit/BRLMPrinterKit.framework/PrintProgressViewController_BMSSDK~iphone.nib +0 -0
- package/ios/Pods/BRLMPrinterKit/BRLMPrinterKit/BRLMPrinterKit.framework/PrinterList.plist +0 -0
- package/ios/Pods/BRLMPrinterKit/BRLMPrinterKit/BRLMPrinterKit.framework/ThresholdViewController.nib +0 -0
- package/ios/Pods/BRLMPrinterKit/BRLMPrinterKit/BRLMPrinterKit.framework/bsj673ad.ptd +0 -0
- package/ios/Pods/BRLMPrinterKit/BRLMPrinterKit/BRLMPrinterKit.framework/bspe55ad.ptd +0 -0
- package/ios/Pods/BRLMPrinterKit/BRLMPrinterKit/BRLMPrinterKit.framework/bspp75ad.ptd +0 -0
- package/ios/Pods/BRLMPrinterKit/BRLMPrinterKit/BRLMPrinterKit.framework/bsq71wad.ptd +0 -0
- package/ios/Pods/BRLMPrinterKit/BRLMPrinterKit/BRLMPrinterKit.framework/bsq72wad.ptd +0 -0
- package/ios/Pods/BRLMPrinterKit/BRLMPrinterKit/BRLMPrinterKit.framework/bsr305ad.ptd +0 -0
- package/ios/Pods/BRLMPrinterKit/BRLMPrinterKit/BRLMPrinterKit.framework/bsr315ad.ptd +0 -0
- package/ios/Pods/BRLMPrinterKit/BRLMPrinterKit/BRLMPrinterKit.framework/bsr403ad.txt +91 -0
- package/ios/Pods/BRLMPrinterKit/BRLMPrinterKit/BRLMPrinterKit.framework/bsr403aiad.txt +91 -0
- package/ios/Pods/BRLMPrinterKit/BRLMPrinterKit/BRLMPrinterKit.framework/bsr404ad.ptd +0 -0
- package/ios/Pods/BRLMPrinterKit/BRLMPrinterKit/BRLMPrinterKit.framework/bsr404ad.txt +91 -0
- package/ios/Pods/BRLMPrinterKit/BRLMPrinterKit/BRLMPrinterKit.framework/bsr423ad.txt +666 -0
- package/ios/Pods/BRLMPrinterKit/BRLMPrinterKit/BRLMPrinterKit.framework/bsr425ad.txt +610 -0
- package/ios/Pods/BRLMPrinterKit/BRLMPrinterKit/BRLMPrinterKit.framework/bst212ad.ptd +0 -0
- package/ios/Pods/BRLMPrinterKit/BRLMPrinterKit/BRLMPrinterKit.framework/bst213ad.ptd +0 -0
- package/ios/Pods/BRLMPrinterKit/BRLMPrinterKit/BRLMPrinterKit.framework/bst40ad.txt +482 -0
- package/ios/Pods/BRLMPrinterKit/BRLMPrinterKit/BRLMPrinterKit.framework/bst41nad.txt +310 -0
- package/ios/Pods/BRLMPrinterKit/BRLMPrinterKit/BRLMPrinterKit.framework/bst441ad.txt +495 -0
- package/ios/Pods/BRLMPrinterKit/BRLMPrinterKit/BRLMPrinterKit.framework/bst442ad.txt +495 -0
- package/ios/Pods/BRLMPrinterKit/BRLMPrinterKit/BRLMPrinterKit.framework/bst451ad.txt +495 -0
- package/ios/Pods/BRLMPrinterKit/BRLMPrinterKit/BRLMPrinterKit.framework/bst452ad.txt +495 -0
- package/ios/Pods/BRLMPrinterKit/BRLMPrinterKit/BRLMPrinterKit.framework/bst455ad.txt +495 -0
- package/ios/Pods/BRLMPrinterKit/BRLMPrinterKit/BRLMPrinterKit.framework/checkbox_checked.png +0 -0
- package/ios/Pods/BRLMPrinterKit/BRLMPrinterKit/BRLMPrinterKit.framework/checkbox_unchecked.png +0 -0
- package/ios/Pods/BRLMPrinterKit/BRLMPrinterKit/BRLMPrinterKit.framework/en.lproj/InfoPlist.strings +0 -0
- package/ios/Pods/BRLMPrinterKit/BRLMPrinterKit/BRLMPrinterKit.framework/modulemap/module.modulemap +9 -0
- package/ios/Pods/BRLMPrinterKit/LICENSE +19 -0
- package/ios/Pods/BRLMPrinterKit/README.md +34 -0
- package/ios/Pods/Manifest.lock +8 -1
- package/ios/Pods/Pods.xcodeproj/project.pbxproj +274 -155
- package/ios/Pods/Pods.xcodeproj/xcuserdata/sakakibara.xcuserdatad/xcschemes/BRLMPrinterKit.xcscheme +60 -0
- package/ios/Pods/Pods.xcodeproj/xcuserdata/sakakibara.xcuserdatad/xcschemes/CapacitorCordova.xcscheme +11 -13
- package/ios/Pods/Pods.xcodeproj/xcuserdata/sakakibara.xcuserdatad/xcschemes/Pods-Plugin.xcscheme +11 -13
- package/ios/Pods/Pods.xcodeproj/xcuserdata/sakakibara.xcuserdatad/xcschemes/Pods-PluginTests.xcscheme +11 -13
- package/ios/Pods/Pods.xcodeproj/xcuserdata/sakakibara.xcuserdatad/xcschemes/xcschememanagement.plist +15 -0
- package/ios/Pods/Target Support Files/BRLMPrinterKit/BRLMPrinterKit.debug.xcconfig +11 -0
- package/ios/Pods/Target Support Files/BRLMPrinterKit/BRLMPrinterKit.release.xcconfig +11 -0
- package/ios/Pods/Target Support Files/Pods-Plugin/Pods-Plugin-acknowledgements.markdown +23 -0
- package/ios/Pods/Target Support Files/Pods-Plugin/Pods-Plugin-acknowledgements.plist +29 -0
- package/ios/Pods/Target Support Files/Pods-Plugin/Pods-Plugin.debug.xcconfig +3 -2
- package/ios/Pods/Target Support Files/Pods-Plugin/Pods-Plugin.release.xcconfig +3 -2
- package/ios/Pods/Target Support Files/Pods-PluginTests/Pods-PluginTests-acknowledgements.markdown +23 -0
- package/ios/Pods/Target Support Files/Pods-PluginTests/Pods-PluginTests-acknowledgements.plist +29 -0
- package/ios/Pods/Target Support Files/Pods-PluginTests/Pods-PluginTests-frameworks.sh +2 -0
- package/ios/Pods/Target Support Files/Pods-PluginTests/Pods-PluginTests.debug.xcconfig +3 -2
- package/ios/Pods/Target Support Files/Pods-PluginTests/Pods-PluginTests.release.xcconfig +3 -2
- package/package.json +29 -16
- package/android/.npmignore +0 -1
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
//
|
|
2
|
+
// PJ763MFiPrintSettings.h
|
|
3
|
+
// BMSPrinterKit
|
|
4
|
+
//
|
|
5
|
+
// Created by BMS on 9/11/12.
|
|
6
|
+
// Copyright (c) 2012 Brother Mobile Solutions. All rights reserved.
|
|
7
|
+
//
|
|
8
|
+
|
|
9
|
+
#import "GenericPocketJetPrintSettings.h"
|
|
10
|
+
|
|
11
|
+
@interface PJ763MFiPrintSettings : GenericPocketJetPrintSettings <PrintSettingsDelegate>
|
|
12
|
+
|
|
13
|
+
// These constants below are provided for reference only. DO NOT MODIFY!
|
|
14
|
+
#define PJ763MFi_RESOLUTION_HORZ 300
|
|
15
|
+
#define PJ763MFi_RESOLUTION_VERT 300
|
|
16
|
+
|
|
17
|
+
// Arbitrarily restrict extraFeed to 11" at 300 dpi. There is no reason to be larger.
|
|
18
|
+
#define PJ763MFi_MAX_EXTRAFEEDDOTS (11*PJ763MFi_RESOLUTION_VERT)
|
|
19
|
+
|
|
20
|
+
// NOTE: These custom MIN/MAX settings will be built into framework, so you can't change them.
|
|
21
|
+
// And, the setter functions will clip to these values. The reasons for these choices are described below.
|
|
22
|
+
// If you require something different for some reason, please contact Technical Support.
|
|
23
|
+
#define PJ763MFi_CUSTOM_WIDTHDOTS_MIN 1200 // 4" due to likely skewing of narrower paper. Otherwise can be lower.
|
|
24
|
+
#define PJ763MFi_CUSTOM_WIDTHDOTS_MAX 2550 // 8.5" = max paper width
|
|
25
|
+
#define PJ763MFi_CUSTOM_LENGTHDOTS_MIN 600 // 2" to allow PerfRoll paper to print anything due to large unprintable area
|
|
26
|
+
#define PJ763MFi_CUSTOM_LENGTHDOTS_MAX 30000 // 100", arbitrary
|
|
27
|
+
|
|
28
|
+
//*** IMPORTANT ***
|
|
29
|
+
// SDK Users:
|
|
30
|
+
// You should NEVER instantiate an object of the GenericPocketJetPrintSettings class.
|
|
31
|
+
// Instead, you should instantiate one of the model-specific subclasses (i.e. PJ763MFiPrintSettings).
|
|
32
|
+
//
|
|
33
|
+
// For a list of important properties in the settings that your application needs to set,
|
|
34
|
+
// refer to the GenericPocketJetPrintSettings superclass.
|
|
35
|
+
|
|
36
|
+
// SDK Designers:
|
|
37
|
+
// The GenericPocketJetPrintSettings class handles all the important work.
|
|
38
|
+
// This subclass only needs to provide the model-specific data to the generic class.
|
|
39
|
+
|
|
40
|
+
//*** ADDITIONAL PROPERTIES not handled by GenericPocketJetPrintSettings
|
|
41
|
+
@property (nonatomic, assign) ROLL_CASE_OPTION rollCaseOption;
|
|
42
|
+
@property (nonatomic, assign) PRINT_SPEED_OPTION printSpeedOption;
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
@end
|
package/ios/Pods/BRLMPrinterKit/BRLMPrinterKit/BRLMPrinterKit.framework/Headers/PJ773PrintSettings.h
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
//
|
|
2
|
+
// PJ773PrintSettings.h
|
|
3
|
+
// BMSPrinterKit
|
|
4
|
+
//
|
|
5
|
+
// Created by BMS on 9/11/12.
|
|
6
|
+
// Copyright (c) 2012 Brother Mobile Solutions. All rights reserved.
|
|
7
|
+
//
|
|
8
|
+
|
|
9
|
+
#import "GenericPocketJetPrintSettings.h"
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
@interface PJ773PrintSettings : GenericPocketJetPrintSettings <PrintSettingsDelegate>
|
|
13
|
+
|
|
14
|
+
// These constants below are provided for reference only. DO NOT MODIFY!
|
|
15
|
+
#define PJ773_RESOLUTION_HORZ 300
|
|
16
|
+
#define PJ773_RESOLUTION_VERT 300
|
|
17
|
+
|
|
18
|
+
// Arbitrarily restrict extraFeed to 11" at 300 dpi. There is no reason to be larger.
|
|
19
|
+
#define PJ773_MAX_EXTRAFEEDDOTS (11*PJ773_RESOLUTION_VERT)
|
|
20
|
+
|
|
21
|
+
// NOTE: These custom MIN/MAX settings will be built into framework, so you can't change them.
|
|
22
|
+
// And, the setter functions will clip to these values. The reasons for these choices are described below.
|
|
23
|
+
// If you require something different for some reason, please contact Technical Support.
|
|
24
|
+
#define PJ773_CUSTOM_WIDTHDOTS_MIN 1200 // 4" due to likely skewing of narrower paper. Otherwise can be lower.
|
|
25
|
+
#define PJ773_CUSTOM_WIDTHDOTS_MAX 2550 // 8.5" = max paper width
|
|
26
|
+
#define PJ773_CUSTOM_LENGTHDOTS_MIN 600 // 2" to allow PerfRoll paper to print anything due to large unprintable area
|
|
27
|
+
#define PJ773_CUSTOM_LENGTHDOTS_MAX 30000 // 100", arbitrary
|
|
28
|
+
|
|
29
|
+
//*** IMPORTANT ***
|
|
30
|
+
// SDK Users:
|
|
31
|
+
// You should NEVER instantiate an object of the GenericPocketJetPrintSettings class.
|
|
32
|
+
// Instead, you should instantiate one of the model-specific subclasses (i.e. PJ773PrintSettings).
|
|
33
|
+
//
|
|
34
|
+
// For a list of important properties in the settings that your application needs to set,
|
|
35
|
+
// refer to the GenericPocketJetPrintSettings superclass.
|
|
36
|
+
|
|
37
|
+
// SDK Designers:
|
|
38
|
+
// The GenericPocketJetPrintSettings class handles all the important work.
|
|
39
|
+
// This subclass only needs to provide the model-specific data to the generic class.
|
|
40
|
+
|
|
41
|
+
//*** ADDITIONAL PROPERTIES not handled by GenericPocketJetPrintSettings
|
|
42
|
+
@property (nonatomic, assign) ROLL_CASE_OPTION rollCaseOption;
|
|
43
|
+
@property (nonatomic, assign) PRINT_SPEED_OPTION printSpeedOption;
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
@end
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
//
|
|
2
|
+
// PJ773PrintSettingsViewController.h
|
|
3
|
+
// BMSPrinterKit
|
|
4
|
+
//
|
|
5
|
+
// Created by BMS on 8/8/12.
|
|
6
|
+
// Copyright (c) 2012 Brother Mobile Solutions. All rights reserved.
|
|
7
|
+
//
|
|
8
|
+
|
|
9
|
+
#import "GenericPocketJetPrintSettingsViewController.h"
|
|
10
|
+
#import "PJ773PrintSettings.h"
|
|
11
|
+
|
|
12
|
+
// This is the DEFAULT popup contentSize for PJ773PrintSettingsViewController.
|
|
13
|
+
//
|
|
14
|
+
// You can override this by setting the "popoverSize" property (defined in the
|
|
15
|
+
// PrintSettingsViewController superclass) to something different
|
|
16
|
+
// before showing the ViewController.
|
|
17
|
+
//
|
|
18
|
+
// The popoverSize setting will be propagated to all of the "child" ViewControllers
|
|
19
|
+
// of the main ViewController so all of the detail views will be the SAME size as each other.
|
|
20
|
+
//
|
|
21
|
+
// NOTE: iPad1 and iPad2 size = 1024 x 768, iPad3 = 2048 x 1536
|
|
22
|
+
//#define PJ773POPUPCONTENTSIZE CGSizeMake(400,480)
|
|
23
|
+
#define PJ773POPUPCONTENTSIZE CGSizeMake(400,548)
|
|
24
|
+
#define PJ773POPUPCONTENTSIZE_IOS7 CGSizeMake(400,588)
|
|
25
|
+
|
|
26
|
+
/*
|
|
27
|
+
This class is a subclass of GenericPocketJetPrintSettingsViewController,
|
|
28
|
+
which implements all the major functionality.
|
|
29
|
+
|
|
30
|
+
*** SDK Users:
|
|
31
|
+
DO NOT INSTANTIATE an instance of GenericPocketJetPrintSettingsViewController.
|
|
32
|
+
Always instantiate a model-specific class, e.g. PJ773PrintSettingsViewController
|
|
33
|
+
*/
|
|
34
|
+
|
|
35
|
+
@interface PJ773PrintSettingsViewController : GenericPocketJetPrintSettingsViewController
|
|
36
|
+
{
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
@end
|
|
40
|
+
|
|
41
|
+
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
//
|
|
2
|
+
// PrintSettingTableViewController.h
|
|
3
|
+
// BMSPrinterKit
|
|
4
|
+
//
|
|
5
|
+
// Created by BMS on 2/11/13.
|
|
6
|
+
// Copyright (c) 2013 Brother Mobile Solutions. All rights reserved.
|
|
7
|
+
//
|
|
8
|
+
// NOTE: This is a generic implementation for all print settings that use a
|
|
9
|
+
// TableView to display the settings. It handles only a single setting at a time.
|
|
10
|
+
//
|
|
11
|
+
// NOTE: This class is used INTERNALLY to the SDK only. But, we need to make this a PUBLIC header file
|
|
12
|
+
// because other public headers need to #import it due to the PrintSettingTableViewResponder protocol.
|
|
13
|
+
|
|
14
|
+
#import <UIKit/UIKit.h>
|
|
15
|
+
|
|
16
|
+
@protocol PrintSettingTableViewResponder
|
|
17
|
+
// The "tableViewItemChanged" function must be implemented by the class that
|
|
18
|
+
// uses this PrintSettingTableViewController.
|
|
19
|
+
// This function is responsible to:
|
|
20
|
+
// (1) set the new value to its copy of the printSettings,
|
|
21
|
+
// (2) handle any "mutually exclusive" settings (such as FFMode and PaperType),
|
|
22
|
+
// (3) call "printSettingsDidChange" function per the "PrintSettingsSetter"
|
|
23
|
+
// protocol to pass the settings change notification along
|
|
24
|
+
- (void)tableViewItemChanged: (int)whichSetting newItemValue:(int)newItemValue;
|
|
25
|
+
@end
|
|
26
|
+
|
|
27
|
+
@protocol PrintSettingTableViewSetter
|
|
28
|
+
@property (assign, nonatomic) id <PrintSettingTableViewResponder> printSettingDelegate;
|
|
29
|
+
@end
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
@interface PrintSettingTableViewController : UITableViewController <UITableViewDelegate, UITableViewDataSource, PrintSettingTableViewSetter>
|
|
33
|
+
{
|
|
34
|
+
UITableViewCell *_cellWithCheck;
|
|
35
|
+
}
|
|
36
|
+
// used internally only
|
|
37
|
+
@property (nonatomic, retain) UITableViewCell *cellWithCheck;
|
|
38
|
+
|
|
39
|
+
// Must be set by caller.
|
|
40
|
+
@property (nonatomic, assign) int whichPrintSetting;
|
|
41
|
+
@property (nonatomic, retain) NSString *viewTitle;
|
|
42
|
+
@property (nonatomic, retain) NSArray *tableItemArray;
|
|
43
|
+
@property (nonatomic, assign) int initialItemValueToCheck;
|
|
44
|
+
@property (nonatomic, assign) UITableViewCellStyle cellStyle;
|
|
45
|
+
@property (nonatomic, retain) NSString *section0Title;
|
|
46
|
+
|
|
47
|
+
// The class which implements the printSettingDidChange function.
|
|
48
|
+
// This MUST be set by the CALLER before we are loaded. It cannot be nil!!
|
|
49
|
+
@property (assign, nonatomic) id <PrintSettingTableViewResponder> printSettingDelegate;
|
|
50
|
+
|
|
51
|
+
@end
|
package/ios/Pods/BRLMPrinterKit/BRLMPrinterKit/BRLMPrinterKit.framework/Headers/PrintSettings.h
ADDED
|
@@ -0,0 +1,467 @@
|
|
|
1
|
+
//
|
|
2
|
+
// PrintSettings.h
|
|
3
|
+
// BMSPrinterKit
|
|
4
|
+
//
|
|
5
|
+
// Created by BMS on 9/11/12.
|
|
6
|
+
// Copyright (c) 2012 Brother Mobile Solutions. All rights reserved.
|
|
7
|
+
//
|
|
8
|
+
// NOTE: This is the super-class that contains properties and methods common to each printer model.
|
|
9
|
+
|
|
10
|
+
#import <Foundation/Foundation.h>
|
|
11
|
+
|
|
12
|
+
//#define ALLOW_BT_TEMPORARILY 1 // TODO: define or undefine this if applicable
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
//*********************************************************************
|
|
16
|
+
// PrintSettingsDelegate PROTOCOL
|
|
17
|
+
//
|
|
18
|
+
// Subclasses of PrintSettings are required to implement the following protocol.
|
|
19
|
+
@protocol PrintSettingsDelegate
|
|
20
|
+
|
|
21
|
+
//*** Methods
|
|
22
|
+
// SDK Users: These are primary API methods that you may want to use!
|
|
23
|
+
- (BOOL) validatePrintSettings;
|
|
24
|
+
// TODO: Consider changing proto to return BOOL instead of void.
|
|
25
|
+
// For loadPrefs, return FALSE if it detects that they have never been saved previously.
|
|
26
|
+
// This could be helpful in some ISV scenarios.
|
|
27
|
+
- (void) loadPreferences;
|
|
28
|
+
- (void) savePreferences;
|
|
29
|
+
|
|
30
|
+
// These are only convenience methods, if needed. But, we need to assure that each
|
|
31
|
+
// subclass (and/or the superclass) implements them by adding them to the protocol.
|
|
32
|
+
- (NSString *)stringFromCurrentPaperType;
|
|
33
|
+
- (NSString *)stringFromCurrentPaperSize;
|
|
34
|
+
- (NSString *)stringFromCurrentFormFeedMode;
|
|
35
|
+
- (NSString *)stringFromCurrentExtraFeed;
|
|
36
|
+
- (NSString *)stringFromCurrentDensity;
|
|
37
|
+
|
|
38
|
+
// NOTE: IPAddress is already an NSString so don't need an API function for it.
|
|
39
|
+
// NOTE: bluetoothDeviceName is already an NSString so don't need an API function for it.
|
|
40
|
+
- (NSString *)stringFromCurrentChannelType;
|
|
41
|
+
- (NSString *)stringFromCurrentIPPort;
|
|
42
|
+
- (NSString *)stringFromCurrentScaleMode;
|
|
43
|
+
- (NSString *)stringFromCurrentOrientation;
|
|
44
|
+
- (NSString *)stringFromCurrentMargins;
|
|
45
|
+
- (NSString *)stringFromCurrentHalftone;
|
|
46
|
+
- (NSString *)stringFromCurrentThreshold;
|
|
47
|
+
- (NSString *)stringFromCurrentCompress;
|
|
48
|
+
- (NSString *)stringFromCurrentInvert;
|
|
49
|
+
- (NSString *)stringFromCurrentPrinterModel;
|
|
50
|
+
|
|
51
|
+
//*** Strings for custom properties not included in the GenericXXX class.
|
|
52
|
+
// PJ
|
|
53
|
+
- (NSString *)stringFromCurrentRollCase;
|
|
54
|
+
- (NSString *)stringFromCurrentPrintSpeed;
|
|
55
|
+
|
|
56
|
+
// RJ/TD
|
|
57
|
+
- (NSString *)stringFromCurrentCoolingDelayEnabled;
|
|
58
|
+
- (NSString *)stringFromCurrentCutterOptions;
|
|
59
|
+
|
|
60
|
+
//*** Properties
|
|
61
|
+
// NOTE: If you wish to get/set any model-dependent properties, then you
|
|
62
|
+
// will need to use (or cast to) an object of the specific subclass.
|
|
63
|
+
// You will NOT be able to use an object of type "PrintSettings *" to
|
|
64
|
+
// access these properties; the compiler will give a "may not respond to" warning.
|
|
65
|
+
//
|
|
66
|
+
// For example 1:
|
|
67
|
+
// PrintSettings *mySettings = [[PJ673PrintSettings alloc] init];
|
|
68
|
+
// // NO!!
|
|
69
|
+
// [mySettings setFormFeedMode:kFormFeedModeFixedPage];
|
|
70
|
+
// // YES!!
|
|
71
|
+
// [(PJ673PrintSettings *)mySettings setFormFeedMode:kFormFeedModeFixedPage];
|
|
72
|
+
//
|
|
73
|
+
// For example 2:
|
|
74
|
+
// PJ673PrintSettings *mySettings = [[PJ673PrintSettings alloc] init];
|
|
75
|
+
// [mySettings setFormFeedMode:kFormFeedModeFixedPage]; // OK!!
|
|
76
|
+
//
|
|
77
|
+
// Though many subclass properties are common to all models,
|
|
78
|
+
// (e.g. paperType, formFeedMode, extraFeed, density), and we COULD put
|
|
79
|
+
// those into this protocol, this is not going to be possible when we
|
|
80
|
+
// get to "paperSize", since PJ-673 handles this very differently from
|
|
81
|
+
// RJ4/TD2 models. So, you will need a specific subclass for that anyway.
|
|
82
|
+
//
|
|
83
|
+
// Furthermore, if we were to put these into this protocol, then the
|
|
84
|
+
// PrintSettings superclass will be required to add these properties to
|
|
85
|
+
// the interface and synthesize them, though they will NEVER be used.
|
|
86
|
+
//
|
|
87
|
+
// Furthermore, since TD2 has properties that are specific for it, we
|
|
88
|
+
// cannot add those to this protocol, so again you will have to use
|
|
89
|
+
// (or cast to) a specific subclass to access these.
|
|
90
|
+
//
|
|
91
|
+
// As such, we will NOT add these 'common' model-specific properties
|
|
92
|
+
// to this protocol.
|
|
93
|
+
//
|
|
94
|
+
// NOTE: We did add the corresponding "stringFromCurrentXXX" methods
|
|
95
|
+
// above, because these can be accessed generically, even for PaperSize.
|
|
96
|
+
|
|
97
|
+
@end // PrintSettingsDelegate protocol
|
|
98
|
+
//*********************************************************************
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
//*********************************************************************
|
|
102
|
+
//*** NSUserDefaults
|
|
103
|
+
// These are the top-level keys. Each model will have its own "dictionary" of subkeys
|
|
104
|
+
// below this key, so all of the keys for a model will be self-contained.
|
|
105
|
+
#define keyPJ673PrintSettings @"PJ-673 Print Settings"
|
|
106
|
+
#define keyPJ763MFiPrintSettings @"PJ-763MFi Print Settings"
|
|
107
|
+
#define keyPJ773PrintSettings @"PJ-773 Print Settings"
|
|
108
|
+
#define keyRJ4040PrintSettings @"RJ-4040 Print Settings"
|
|
109
|
+
#define keyRJ4030AiPrintSettings @"RJ-4030Ai Print Settings"
|
|
110
|
+
#define keyRJ4230BPrintSettings @"RJ-4230B Print Settings"
|
|
111
|
+
#define keyRJ4250WBPrintSettings @"RJ-4250WB Print Settings"
|
|
112
|
+
#define keyTD2120NPrintSettings @"TD-2120N Print Settings"
|
|
113
|
+
#define keyTD2130NPrintSettings @"TD-2130N Print Settings"
|
|
114
|
+
#define keyRJ3050PrintSettings @"RJ-3050 Print Settings"
|
|
115
|
+
#define keyRJ3050AiPrintSettings @"RJ-3050Ai Print Settings"
|
|
116
|
+
#define keyRJ3150PrintSettings @"RJ-3150 Print Settings"
|
|
117
|
+
#define keyRJ3150AiPrintSettings @"RJ-3150Ai Print Settings"
|
|
118
|
+
#define keyRJ2050PrintSettings @"RJ-2050 Print Settings"
|
|
119
|
+
#define keyRJ2140PrintSettings @"RJ-2140 Print Settings"
|
|
120
|
+
#define keyRJ2150PrintSettings @"RJ-2150 Print Settings"
|
|
121
|
+
#define keyTD4550DNWBPrintSettings @"TD-4550DNWB Print Settings"
|
|
122
|
+
|
|
123
|
+
// common properties from PrintSettings superclass
|
|
124
|
+
#define keyChannelType @"ChannelType"
|
|
125
|
+
#define keyIPAddress @"IPAddress"
|
|
126
|
+
#define keyBluetoothDeviceName @"BluetoothDeviceName"
|
|
127
|
+
#define keyIPPort @"IPPort"
|
|
128
|
+
#define keyScaleMode @"Scale Mode"
|
|
129
|
+
#define keyOrientation @"Orientation"
|
|
130
|
+
#define keyHalftone @"Halftone"
|
|
131
|
+
#define keyThreshold @"Threshold"
|
|
132
|
+
#define keyCompressionOn @"Compress"
|
|
133
|
+
#define keyMarginTop @"MarginTop"
|
|
134
|
+
#define keyMarginLeft @"MarginLeft"
|
|
135
|
+
#define keyMarginBottom @"MarginBottom"
|
|
136
|
+
#define keyMarginRight @"MarginRight"
|
|
137
|
+
#define keyInvertPrintData @"InvertPrintData"
|
|
138
|
+
|
|
139
|
+
// common properties from each subclass
|
|
140
|
+
#define keyPaperType @"PaperType"
|
|
141
|
+
#define keyFormFeedMode @"FormFeedMode"
|
|
142
|
+
#define keyExtraFeed @"ExtraFeed"
|
|
143
|
+
#define keyDensity @"Density"
|
|
144
|
+
|
|
145
|
+
// Papersize is handled differently for different models.
|
|
146
|
+
// Some models (e.g. PJ-673) have a set of fixed sizes defined by constants.
|
|
147
|
+
#define keyPaperSize @"PaperSize"
|
|
148
|
+
// But, now we added Custom Size capability, so let's add some more keys
|
|
149
|
+
#define keyCustomPaperWidth @"CustomPaperWidth"
|
|
150
|
+
#define keyCustomPaperLength @"CustomPaperLength"
|
|
151
|
+
#define keyCustomPaperAlign @"CustomPaperAlign"
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
// For other models (RJ4040, RJ3050, RJ3150, TD2120N, TD2130N),
|
|
155
|
+
// PaperSize is broken up into the following components
|
|
156
|
+
#define keyPaperWidth @"PaperWidth"
|
|
157
|
+
#define keyPaperLength @"PaperLength"
|
|
158
|
+
#define keyPaperMarginWidth @"PaperMarginWidth"
|
|
159
|
+
#define keyPaperMarginLength @"PaperMarginLength"
|
|
160
|
+
#define keyLabelSpacing @"LabelSpacing"
|
|
161
|
+
#define keyMarkWidth @"MarkWidth"
|
|
162
|
+
#define keyMarkOffset @"MarkOffset"
|
|
163
|
+
// new papersize related keys added in 2.3.4
|
|
164
|
+
#define keyEnergyRank @"EnergyRank"
|
|
165
|
+
#define keySensThrAdj @"Sensor Threshold Adjustment"
|
|
166
|
+
#define keySensDutyAdj @"Sensor Duty Adjustment"
|
|
167
|
+
#define keyHorzPosAdjDots @"Horz Position Adjustment"
|
|
168
|
+
#define keyVertPosAdjDots @"Vert Position Adjustment"
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
// TD2 specific keys
|
|
172
|
+
#define keyPeelerEnabled @"Peeler Enabled"
|
|
173
|
+
#define keyInvert180Degrees @"Invert 180 Degrees"
|
|
174
|
+
|
|
175
|
+
// RJ42 specific keys
|
|
176
|
+
#define keyCoolingDelayEnabled @"Cooling Delay Enabled"
|
|
177
|
+
|
|
178
|
+
// TD-4550DNWB specific keys
|
|
179
|
+
#define keyCutAtEndOfJobEnabled @"CutAtEnd Enabled"
|
|
180
|
+
#define keyAutoCutEnabled @"AutoCut Enabled"
|
|
181
|
+
#define keyAutoCutEveryNLabels @"AutoCut Every N Labels"
|
|
182
|
+
|
|
183
|
+
// PJ7 specific keys
|
|
184
|
+
#define keyPrintSpeedOption @"Print Speed Option"
|
|
185
|
+
#define keyRollCaseOption @"Roll Case Option"
|
|
186
|
+
|
|
187
|
+
// PrintSettingsViewController specific keys
|
|
188
|
+
#define keyBluetoothVCSearchSelectsSerialNumber @"Bluetooth Search Selects Serial Number"
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
//*********************************************************************
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
//*********************************************************************
|
|
195
|
+
//*** Constant Enumerations
|
|
196
|
+
// These are "common" to all printer models
|
|
197
|
+
|
|
198
|
+
typedef enum
|
|
199
|
+
{
|
|
200
|
+
// Currently supported printer models
|
|
201
|
+
// NOTE TO DEVELOPERS: Sometimes the order of the models defined here changes.
|
|
202
|
+
// While I probably *should* just add new models to the END of the list, instead I sometimes rearrange them
|
|
203
|
+
// so that they are grouped in a more meaningful way.
|
|
204
|
+
// Since save/loadPreferences SDK API uses a named key, that shouldn't cause you any problems if the enum changes.
|
|
205
|
+
// However, if your own app stores this value to preferences separately, I just realized that the value
|
|
206
|
+
// you saved from older SDK may no longer match the model enum value in a new SDK when you load it from prefs.
|
|
207
|
+
// As such, if you do store this in preferences,
|
|
208
|
+
// I recommend that you use **your own** defined enum values (or string values) for the "current model to use",
|
|
209
|
+
// rather than rely on these being the same with each new SDK release.
|
|
210
|
+
// If this affects your code in some way after you update to a new SDK, I apologize!!
|
|
211
|
+
kPrinterModelPJ673 = 1,
|
|
212
|
+
kPrinterModelPJ763MFi,
|
|
213
|
+
kPrinterModelPJ773,
|
|
214
|
+
kPrinterModelRJ4030Ai,
|
|
215
|
+
kPrinterModelRJ4040,
|
|
216
|
+
kPrinterModelRJ4230B,
|
|
217
|
+
kPrinterModelRJ4250WB,
|
|
218
|
+
kPrinterModelRJ3050,
|
|
219
|
+
kPrinterModelRJ3050Ai,
|
|
220
|
+
kPrinterModelRJ3150,
|
|
221
|
+
kPrinterModelRJ3150Ai,
|
|
222
|
+
kPrinterModelRJ2050,
|
|
223
|
+
kPrinterModelRJ2140,
|
|
224
|
+
kPrinterModelRJ2150,
|
|
225
|
+
kPrinterModelTD2120N,
|
|
226
|
+
kPrinterModelTD2130N,
|
|
227
|
+
kPrinterModelTD4550DNWB,
|
|
228
|
+
|
|
229
|
+
} PRINTERMODEL;
|
|
230
|
+
|
|
231
|
+
typedef enum
|
|
232
|
+
{
|
|
233
|
+
kChannelTypeWIFI = 1,
|
|
234
|
+
kChannelTypeBluetooth,
|
|
235
|
+
kChannelTypeFile, // NOTE: When this is selected, SDK will create file "Output.prn" in the App Documents folder.
|
|
236
|
+
} CHANNELTYPE;
|
|
237
|
+
|
|
238
|
+
typedef enum
|
|
239
|
+
{
|
|
240
|
+
kHalftoneThreshold = 1,
|
|
241
|
+
kHalftoneDiffusion,
|
|
242
|
+
} HALFTONE;
|
|
243
|
+
|
|
244
|
+
typedef enum
|
|
245
|
+
{
|
|
246
|
+
kScaleModeActualSize = 1,
|
|
247
|
+
kScaleModeFitPage,
|
|
248
|
+
kScaleModeFitPageAspect,
|
|
249
|
+
kScaleModeFitWidthAspectAutoHeight,
|
|
250
|
+
} SCALEMODE;
|
|
251
|
+
|
|
252
|
+
typedef enum
|
|
253
|
+
{
|
|
254
|
+
kOrientationPortrait = 1,
|
|
255
|
+
kOrientationLandscape90,
|
|
256
|
+
kOrientationPortrait180,
|
|
257
|
+
kOrientationLandscape270,
|
|
258
|
+
} ORIENTATION;
|
|
259
|
+
|
|
260
|
+
//*** The following enums are for properties defined in each subclass,
|
|
261
|
+
// i.e. they are model-specific properties (at least as concerns the subset of values supported).
|
|
262
|
+
// We define them here instead of in each subclass' header file so they can hold ALL of the
|
|
263
|
+
// possible values for ALL models to avoid "redefinition of enumerator" compiler errors if we
|
|
264
|
+
// attempt to use the same constant names in different enums within each subclass.
|
|
265
|
+
// *** Each printer model is likely to support only a SUBSET of these values. ***
|
|
266
|
+
// As such, we will handle limiting the available choices in the "setter" function for each
|
|
267
|
+
// property in the appropriate PrintSettings subclass for each model.
|
|
268
|
+
// Refer to the SDK Documentation for a list of values supported by each printer model.
|
|
269
|
+
typedef enum
|
|
270
|
+
{
|
|
271
|
+
kPaperSizeLetter=1,
|
|
272
|
+
kPaperSizeLegal,
|
|
273
|
+
kPaperSizeA4,
|
|
274
|
+
kPaperSizeCustom,
|
|
275
|
+
} PAPERSIZE;
|
|
276
|
+
|
|
277
|
+
typedef enum
|
|
278
|
+
{
|
|
279
|
+
kPaperTypeRoll = 1, // unmarked roll, used by PJ, RJ, and TD
|
|
280
|
+
kPaperTypeCutsheet, // PJ only
|
|
281
|
+
kPaperTypePerfRoll, // marked roll, used by PJ, RJ, and TD
|
|
282
|
+
kPaperTypePerfRollRetract, // marked roll, with forced retraction, used by PJ only
|
|
283
|
+
kPaperTypeDieCutLabel, // label, used by RJ and TD only
|
|
284
|
+
} PAPERTYPE;
|
|
285
|
+
|
|
286
|
+
|
|
287
|
+
typedef enum
|
|
288
|
+
{
|
|
289
|
+
kFormFeedModeNoFeed=1,
|
|
290
|
+
kFormFeedModeFixedPage,
|
|
291
|
+
kFormFeedModeEndOfPage,
|
|
292
|
+
kFormFeedModeEndOfPageRetract,
|
|
293
|
+
} FORMFEEDMODE;
|
|
294
|
+
|
|
295
|
+
typedef enum
|
|
296
|
+
{
|
|
297
|
+
kDensity0 = 0, // start this one at 0 rather than 1. "stringFromDensity" in particular requires this.
|
|
298
|
+
kDensity1,
|
|
299
|
+
kDensity2,
|
|
300
|
+
kDensity3,
|
|
301
|
+
kDensity4,
|
|
302
|
+
kDensity5,
|
|
303
|
+
kDensity6,
|
|
304
|
+
kDensity7,
|
|
305
|
+
kDensity8,
|
|
306
|
+
kDensity9,
|
|
307
|
+
kDensity10,
|
|
308
|
+
kDensityUsePrinterSetting, // use value saved to printer, don't send command
|
|
309
|
+
} DENSITY;
|
|
310
|
+
|
|
311
|
+
// PJ-7 only
|
|
312
|
+
typedef enum
|
|
313
|
+
{
|
|
314
|
+
kRollCaseOption_None = 1,
|
|
315
|
+
kRollCaseOption_PARC001_NoAntiCurl,
|
|
316
|
+
kRollCaseOption_PARC001,
|
|
317
|
+
kRollCaseOption_UsePrinterSetting, // use value saved to printer, don't send command
|
|
318
|
+
} ROLL_CASE_OPTION;
|
|
319
|
+
|
|
320
|
+
// PJ-7 only
|
|
321
|
+
typedef enum
|
|
322
|
+
{
|
|
323
|
+
kPrintSpeedOption_65mmpersec = 1, // 2.5 ips
|
|
324
|
+
kPrintSpeedOption_48mmpersec, // 1.9 ips
|
|
325
|
+
kPrintSpeedOption_41mmpersec, // 1.6 ips
|
|
326
|
+
kPrintSpeedOption_27mmpersec, // 1.1 ips
|
|
327
|
+
kPrintSpeedOption_UsePrinterSetting, // use value saved to printer, don't send command
|
|
328
|
+
} PRINT_SPEED_OPTION;
|
|
329
|
+
|
|
330
|
+
//*********************************************************************
|
|
331
|
+
|
|
332
|
+
|
|
333
|
+
//*********************************************************************
|
|
334
|
+
//*** struct definitions
|
|
335
|
+
|
|
336
|
+
// Arbitrarily limit the size (in dots) of each margin dimension to something rational.
|
|
337
|
+
// These values are used when setting and validating the margins.
|
|
338
|
+
#define MARGINDOTSMIN 0
|
|
339
|
+
#define MARGINDOTSMAX 1000
|
|
340
|
+
|
|
341
|
+
typedef struct
|
|
342
|
+
{
|
|
343
|
+
int top;
|
|
344
|
+
int left;
|
|
345
|
+
int bottom;
|
|
346
|
+
int right;
|
|
347
|
+
} MARGINS, *pMARGINS;
|
|
348
|
+
//*********************************************************************
|
|
349
|
+
|
|
350
|
+
|
|
351
|
+
@interface PrintSettings : NSObject <PrintSettingsDelegate>
|
|
352
|
+
{
|
|
353
|
+
// provide subclasses with access to READONLY properties via ivars.
|
|
354
|
+
// Because they are readonly, there is no "Setter" method available in the superclass.
|
|
355
|
+
// The subclasses should be the only place where these properties are set.
|
|
356
|
+
// But, they will be used in this superclass.
|
|
357
|
+
// Users of this superclass can read the values if desired, but in most cases this
|
|
358
|
+
// will not be necessary.
|
|
359
|
+
PRINTERMODEL _printerModel;
|
|
360
|
+
|
|
361
|
+
// provide subclasses with access to non-readonly ivars too, especially if subclass implements setter override.
|
|
362
|
+
CHANNELTYPE _channelType;
|
|
363
|
+
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
// NOTE: This superclass contains properties that will be common to all subclasses.
|
|
367
|
+
|
|
368
|
+
// SDK Users: All of the properties below (and those in the PrintSettings subclasses)
|
|
369
|
+
// are settable by you to change the printer behavior.
|
|
370
|
+
// If you are not using the PrintSettingsViewController (either the SDK's or your own custom one),
|
|
371
|
+
// then you should set each of these properties programmatically to your desired setting.
|
|
372
|
+
|
|
373
|
+
@property (nonatomic, assign) CHANNELTYPE channelType;
|
|
374
|
+
@property (nonatomic, retain) NSString *IPAddress;
|
|
375
|
+
@property (nonatomic, assign) int IPPort;
|
|
376
|
+
@property (nonatomic, retain) NSString *bluetoothDeviceNameOrSerialNumber;
|
|
377
|
+
|
|
378
|
+
@property (nonatomic, assign) SCALEMODE scaleMode;
|
|
379
|
+
@property (nonatomic, assign) ORIENTATION orientation;
|
|
380
|
+
@property (nonatomic, assign) MARGINS marginDots;
|
|
381
|
+
|
|
382
|
+
@property (nonatomic, assign) HALFTONE halftone;
|
|
383
|
+
// INCREASE this value to make printout darker. Decrease to make it lighter. Default is 128.
|
|
384
|
+
@property (nonatomic, assign) Byte threshold;
|
|
385
|
+
@property (nonatomic, assign) BOOL compress;
|
|
386
|
+
// NOTE: Added this property to allow inverting the print data (i.e. black<->white)
|
|
387
|
+
// But, not adding this to the ViewController. It must be set programmatically.
|
|
388
|
+
@property (nonatomic, assign) BOOL bInvert;
|
|
389
|
+
|
|
390
|
+
//*** NOTE: The following properties are NOT used for printing,
|
|
391
|
+
// but they are part of the PrintSettings superclass for convenience.
|
|
392
|
+
|
|
393
|
+
// For save/loadPreferences, each subclass MUST set this during init.
|
|
394
|
+
// NOTE: If desired, the caller can set this to be different from the default, so not using readonly attribute.
|
|
395
|
+
@property (nonatomic, retain) NSString *preferencesKey;
|
|
396
|
+
|
|
397
|
+
//*** The following properties are used ONLY by the PrintSettingsViewController(s)
|
|
398
|
+
// They are specified here only to allow SDK-related preferences to be stored in their own container
|
|
399
|
+
// along with the rest of the preferences.
|
|
400
|
+
@property (nonatomic, assign) BOOL bBluetoothVCSearchSelectsSerialNumber;
|
|
401
|
+
|
|
402
|
+
|
|
403
|
+
//*** READONLY properties. Values will be set by the subclass. SDK User can NOT change it.
|
|
404
|
+
// printerModel may be useful if the subclass (e.g. PJ673PrintSettings) object instance is
|
|
405
|
+
// stored inside the app using a superclass (e.g. PrintSettings) object reference.
|
|
406
|
+
// This can be used to perform model-specific behavior in your app, if necessary.
|
|
407
|
+
@property (readonly, nonatomic, assign) PRINTERMODEL printerModel;
|
|
408
|
+
|
|
409
|
+
// *** PrintSettingsDelegate protocol
|
|
410
|
+
// All subclasses of PrintSettings are required to implement these methods.
|
|
411
|
+
// validatePrintSettings - This function assures that all properties are in range
|
|
412
|
+
// and that there are no conflicting settings.
|
|
413
|
+
- (BOOL) validatePrintSettings;
|
|
414
|
+
- (void) loadPreferences;
|
|
415
|
+
- (void) savePreferences;
|
|
416
|
+
|
|
417
|
+
// These are only convenience methods, if needed. But, we need to assure that each
|
|
418
|
+
// subclass (and/or the superclass) implements them by adding them to the protocol.
|
|
419
|
+
|
|
420
|
+
//*** generate strings from CURRENT values of properties, for convenience
|
|
421
|
+
- (NSString *)stringFromCurrentPaperType;
|
|
422
|
+
- (NSString *)stringFromCurrentPaperSize;
|
|
423
|
+
- (NSString *)stringFromCurrentFormFeedMode;
|
|
424
|
+
- (NSString *)stringFromCurrentExtraFeed;
|
|
425
|
+
- (NSString *)stringFromCurrentDensity;
|
|
426
|
+
|
|
427
|
+
// NOTE: IPAddress is already an NSString so don't need an API function for it.
|
|
428
|
+
// NOTE: bluetoothDeviceName is already an NSString so don't need an API function for it.
|
|
429
|
+
- (NSString *)stringFromCurrentChannelType;
|
|
430
|
+
- (NSString *)stringFromCurrentIPPort;
|
|
431
|
+
- (NSString *)stringFromCurrentScaleMode;
|
|
432
|
+
- (NSString *)stringFromCurrentOrientation;
|
|
433
|
+
- (NSString *)stringFromCurrentMargins;
|
|
434
|
+
- (NSString *)stringFromCurrentHalftone;
|
|
435
|
+
- (NSString *)stringFromCurrentThreshold;
|
|
436
|
+
- (NSString *)stringFromCurrentCompress;
|
|
437
|
+
- (NSString *)stringFromCurrentInvert;
|
|
438
|
+
- (NSString *)stringFromCurrentPrinterModel;
|
|
439
|
+
// Strings for custom properties not included in the GenericXXX class.
|
|
440
|
+
// PJ
|
|
441
|
+
- (NSString *)stringFromCurrentRollCase;
|
|
442
|
+
- (NSString *)stringFromCurrentPrintSpeed;
|
|
443
|
+
// RJ/TD
|
|
444
|
+
- (NSString *)stringFromCurrentCoolingDelayEnabled;
|
|
445
|
+
- (NSString *)stringFromCurrentCutterOptions; // TD-4550DNWB only for now.
|
|
446
|
+
|
|
447
|
+
|
|
448
|
+
//*** generate strings from SPECIFIC constants, for convenience
|
|
449
|
+
// NOTE: IPAddress is already an NSString so don't need an API function for it.
|
|
450
|
+
// NOTE: bluetoothDeviceName is already an NSString so don't need an API function for it.
|
|
451
|
+
- (NSString *)stringFromChannelType:(CHANNELTYPE)channelType;
|
|
452
|
+
- (NSString *)stringFromIPPort: (int)ipPort;
|
|
453
|
+
- (NSString *)stringFromScaleMode:(SCALEMODE)scaleMode;
|
|
454
|
+
- (NSString *)stringFromOrientation:(ORIENTATION)orientation;
|
|
455
|
+
- (NSString *)stringFromMargins:(MARGINS)margins;
|
|
456
|
+
- (NSString *)stringFromHalftone: (HALFTONE)halftone;
|
|
457
|
+
- (NSString *)stringFromThreshold:(Byte)threshold;
|
|
458
|
+
- (NSString *)stringFromBool: (BOOL)boolValue; // used with compress, invert
|
|
459
|
+
- (NSString *)stringFromPrinterModel: (PRINTERMODEL)model;
|
|
460
|
+
// Strings for custom properties not included in the GenericXXX class.
|
|
461
|
+
// PJ
|
|
462
|
+
- (NSString *)stringFromRollCase:(ROLL_CASE_OPTION)rollCaseOption;
|
|
463
|
+
- (NSString *)stringFromPrintSpeed:(PRINT_SPEED_OPTION)printSpeedOption;
|
|
464
|
+
// RJ/TD
|
|
465
|
+
- (NSString *)stringFromCutEveryNLabels:(Byte)nLabels;
|
|
466
|
+
|
|
467
|
+
@end
|