/// <summary> /// Set options for the scan job. /// </summary> /// <param name="scanOptionsManager">The JetAdvantageLinkPrintOptionManager.</param> /// <param name="scanOptions">The Clio Options.</param> /// <returns>The result of the scan.</returns> protected override void SetOptions(JetAdvantageLinkScanOptionManager scanOptionsManager, LinkScanOptions scanOptions) { UpdateStatus($"Set the options screen"); scanOptionsManager.SetOptionsScreen(); UpdateStatus($"Select option activity with File Type {scanOptions.FileType.GetDescription()}, Resolution {scanOptions.Resolution.GetDescription()} is being started"); scanOptionsManager.SetFileTypeAndResolution(scanOptions.FileType, scanOptions.Resolution); UpdateStatus($"Select option activity with File Type {scanOptions.FileType.GetDescription()}, Resolution {scanOptions.Resolution.GetDescription()} is being completed"); UpdateStatus($"Select option activity with Original Sides {scanOptions.OriginalSides.GetDescription()} is being started"); scanOptionsManager.SetOriginalSides(scanOptions.OriginalSides); UpdateStatus($"Select option activity with Original Sides {scanOptions.OriginalSides.GetDescription()} is being completed"); UpdateStatus($"Select option activity with Color/Black {scanOptions.ColorBlack.GetDescription()} is being started"); scanOptionsManager.SetColorBlack(scanOptions.ColorBlack); UpdateStatus($"Select option activity with Color/Black {scanOptions.ColorBlack.GetDescription()} is being completed"); UpdateStatus($"Select option activity with Original Size {scanOptions.OriginalSize.GetDescription()} is being started"); scanOptionsManager.SetOriginalSize(scanOptions.OriginalSize); UpdateStatus($"Select option activity with Original Size {scanOptions.OriginalSize.GetDescription()} is being completed"); UpdateStatus($"Select option activity with ContentOrientation {scanOptions.ContentOrientation.GetDescription()} is being started"); scanOptionsManager.SetOrientation(scanOptions.ContentOrientation); UpdateStatus($"Select option activity with ContentOrientation {scanOptions.ContentOrientation.GetDescription()} is being completed"); }
/// <summary> /// Configuration to prepare job for Each Link Apps. /// </summary> /// <param name="destinaion"></param> /// <param name="device"></param> public LinkScanApp(LinkScanDestination destinaion, IDevice device) { _destination = destinaion.GetDescription(); LinkScanAppsPackageName = $"com.hp.print.scanapps.{_destination.ToLower()}"; LinkUI = new JetAdvantageLinkUI(device); ScanOptionManager = new JetAdvantageLinkScanOptionManager(LinkUI, LinkScanAppsPackageName); Device = (JediOmniDevice)device; JetAdvantageLinkControlHelper = new JetAdvantageLinkControlHelper(LinkUI, LinkScanAppsPackageName); }
/// <summary> /// Configuration to prepare job for Each Link Apps. /// </summary> /// <param name="device"></param> public iManageApp(IDevice device) { _appName = GetLaunchAppname(); iManageAppsPackageName = $"com.hp.imanageconnector"; LinkUI = new JetAdvantageLinkUI(device); PrintOptionManager = new JetAdvantageLinkPrintOptionManager(LinkUI, iManageAppsPackageName); ScanOptionManager = new JetAdvantageLinkScanOptionManager(LinkUI, iManageAppsPackageName); Device = (JediOmniDevice)device; JetAdvantageLinkControlHelper = new JetAdvantageLinkControlHelper(LinkUI, iManageAppsPackageName); _inactivityTimeLimit = GetInactivityTimeout(); }
/// <summary> /// Set options for the scan job. /// </summary> /// <param name="scanOptionsManager">The JetAdvantageLinkScanOptionManager.</param> /// <param name="scanOptions">The LinkScanOptions.</param> /// <returns>The result of the scan.</returns> protected override void SetOptions(JetAdvantageLinkScanOptionManager scanOptionsManager, LinkScanOptions scanOptions) { UpdateStatus($"Select option activity with File Name {FilePrefix.ToString().ToLowerInvariant()} is being started"); scanOptionsManager.SetFileName(FilePrefix.ToString().ToLowerInvariant(), "et_filename"); UpdateStatus($"Select option activity with File Name {FilePrefix.ToString().ToLowerInvariant()} is being completed"); UpdateStatus($"Set the options screen"); scanOptionsManager.SetOptionsScreen(); if (scanOptions.UseFileTypeandResolution) { UpdateStatus($"Select option activity with File Type {scanOptions.FileType.GetDescription()}, Resolution {scanOptions.Resolution.GetDescription()} is being started"); scanOptionsManager.SetFileTypeAndResolution(scanOptions.FileType, scanOptions.Resolution); UpdateStatus($"Select option activity with File Type {scanOptions.FileType.GetDescription()}, Resolution {scanOptions.Resolution.GetDescription()} is being completed"); } if (scanOptions.UseOriginalSides) { UpdateStatus($"Select option activity with Original Sides {scanOptions.OriginalSides.GetDescription()} is being started"); scanOptionsManager.SetOriginalSides(scanOptions.OriginalSides); UpdateStatus($"Select option activity with Original Sides {scanOptions.OriginalSides.GetDescription()} is being completed"); } if (scanOptions.UseColorBlack) { UpdateStatus($"Select option activity with Color/Black {scanOptions.ColorBlack.GetDescription()} is being started"); scanOptionsManager.SetColorBlack(scanOptions.ColorBlack); UpdateStatus($"Select option activity with Color/Black {scanOptions.ColorBlack.GetDescription()} is being completed"); } if (scanOptions.UseOriginalSize) { UpdateStatus($"Select option activity with Original Size {scanOptions.OriginalSize.GetDescription()} is being started"); scanOptionsManager.SetOriginalSize(scanOptions.OriginalSize); UpdateStatus($"Select option activity with Original Size {scanOptions.OriginalSize.GetDescription()} is being completed"); } if (scanOptions.UseContentOrientation) { UpdateStatus($"Select option activity with ContentOrientation {scanOptions.ContentOrientation.GetDescription()} is being started"); scanOptionsManager.SetOrientation(scanOptions.ContentOrientation); UpdateStatus($"Select option activity with ContentOrientation {scanOptions.ContentOrientation.GetDescription()} is being completed"); } }