/// <summary> /// Initializes a new instance of the <see cref="JediOmniMyQApp"/> class. /// </summary> /// <param name="device">The device.</param> public JediOmniMyQApp(JediOmniDevice device) : base(device.ControlPanel) { _controlPanel = device.ControlPanel; _masthead = new JediOmniMasthead(device); _launchHelper = new JediOmniLaunchHelper(device); _idleTimeoutOffset = device.PowerManagement.GetInactivityTimeout().Subtract(TimeSpan.FromSeconds(10)); }
private const int _footerOffset = 50; // This is based on a 800 x 600 screen. If the screen is smaller, this value will likely need changing. /// <summary> /// Initializes a new instance of the <see cref="JediOmniHpcrApp"/> class. /// </summary> /// <param name="device">The device.</param> /// <param name="buttonTitle">The button title.</param> /// <param name="scanDestination">The scan destination.</param> /// <param name="scanDistribution">The scan distribution.</param> /// <param name="documentName">Name of the document.</param> /// <param name="imagePreview">if set to <c>true</c> [image preview].</param> public JediOmniHpcrApp(JediOmniDevice device, string buttonTitle, string scanDestination, string scanDistribution, string documentName, bool imagePreview) : base() { _buttonTitle = buttonTitle; _device = device; _controlPanel = device.ControlPanel; _documentName = documentName; _scanDestination = scanDestination; _scanDistribution = scanDistribution; _imagePreview = imagePreview; _idleTimeoutOffset = device.PowerManagement.GetInactivityTimeout().Subtract(TimeSpan.FromSeconds(10)); _masthead = new JediOmniMasthead(_device); _launchHelper = new JediOmniLaunchHelper(device); _engine = new OxpdBrowserEngine(_device.ControlPanel, HpcrResource.HpcrJavaScript); _screenWidth = _controlPanel.GetScreenSize().Width; if (_screenWidth.Equals(1024)) { _yOffset = 75; _panelBottom = 640; } else if (_screenWidth.Equals(480)) { _yOffset = 40; _swipeBottomIndex = 3; _panelBottom = 215; } }
/// <summary> /// Initializes a new instance of the <see cref="JediOmniHpecApp"/> class. /// </summary> /// <param name="device">The device.</param> public JediOmniHpecApp(JediOmniDevice device) { _device = device; _controlPanel = _device.ControlPanel; _launchHelper = new JediOmniLaunchHelper(device); _notificationPanel = new JediOmniNotificationPanel(device); _engine = new OxpdBrowserEngine(_device.ControlPanel, HpecResource.HpecJavaScript); }
/// <summary> /// Initializes a new instance of the <see cref="JediOmniHpRoamApp"/> class. /// </summary> /// <param name="device">The device.</param> public JediOmniHpRoamApp(JediOmniDevice device) : base(device.Snmp, device.ControlPanel) { _controlPanel = device.ControlPanel; _launchHelper = new JediOmniLaunchHelper(device); _jediOmniPopupManager = new JediOmniPopupManager(_controlPanel); _masthead = new JediOmniMasthead(device); }
/// <param name="device"></param> public JediOmniUdocxScanApp(JediOmniDevice device) : base(device.ControlPanel) { _controlPanel = device.ControlPanel; _launchHelper = new JediOmniLaunchHelper(device); _masthead = new JediOmniMasthead(device); _idleTimeoutOffset = device.PowerManagement.GetInactivityTimeout().Subtract(TimeSpan.FromSeconds(10)); _engine = new OxpdBrowserEngine(_controlPanel, UdocxScanResource.UdocxScanJavaScript); }
/// <summary> /// Initializes a new instance of the <see cref="JediOmniHpacApp"/> class. /// </summary> /// <param name="device">The device.</param> public JediOmniHpacApp(JediOmniDevice device) : base(device.Snmp, device.ControlPanel) { _controlPanel = device.ControlPanel; _launchHelper = new JediOmniLaunchHelper(device); _masthead = new JediOmniMasthead(device); IsWindJammer = false; }
/// <summary> /// Initializes a new instance of the <see cref="JediOmniiSecStarApp"/> class. /// </summary> /// <param name="device">The device.</param> public JediOmniiSecStarApp(JediOmniDevice device) : base(device.Snmp, device.ControlPanel) { _controlPanel = device.ControlPanel; _controlPanel.DefaultWaitTime = TimeSpan.FromSeconds(2); _launchHelper = new JediOmniLaunchHelper(device); _masthead = new JediOmniMasthead(device); }
/// <summary> /// Initializes a new instance of the <see cref="JediOmniBlueprintApp"/> class. /// </summary> /// <param name="device">The device.</param> public JediOmniBlueprintApp(JediOmniDevice device) : base(device.Snmp, device.ControlPanel) { _controlPanel = device.ControlPanel; _launchHelper = new JediOmniLaunchHelper(device); _masthead = new JediOmniMasthead(device); _engine = new OxpdBrowserEngine(device.ControlPanel); _idleTimeoutOffset = device.PowerManagement.GetInactivityTimeout().Subtract(TimeSpan.FromSeconds(10)); }
/// <summary> /// Constructor for JediOmin Device. /// </summary> /// <param name="device">JediOmni Device </param> public JediOmniJobStorageScanApp(JediOmniDevice device) { if (device == null) { throw new ArgumentNullException(nameof(device)); } _device = device; _controlPanel = _device.ControlPanel; _optionsManager = new JediOmniJobStorageJobOptions(device); _executionManager = new JediOmniJobExecutionManager(device); _launchHelper = new JediOmniLaunchHelper(device); Pacekeeper = new Pacekeeper(TimeSpan.Zero); }
/// <summary> /// Constructor for JediOmin Device. /// </summary> /// <param name="device">JediOmni Device </param> public JediOmniJobStoragePrintApp(JediOmniDevice device) { if (device == null) { throw new ArgumentNullException(nameof(device)); } _device = device; _controlPanel = _device.ControlPanel; _optionsManager = new JediOmniJobStorageJobOptions(device); _executionManager = new JediOmniJobExecutionManager(device); _launchHelper = new JediOmniLaunchHelper(device); _masthead = new JediOmniMasthead(_device); _idleTimeoutOffset = device.PowerManagement.GetInactivityTimeout().Subtract(TimeSpan.FromSeconds(10)); Pacekeeper = new Pacekeeper(TimeSpan.Zero); }
private void AuthenticateOmni(string deviceIP, string userName) { IDevice device = DeviceFactory.Create(deviceIP, "!QAZ2wsx"); //AuthenticationCredential credential = new AuthenticationCredential(userName, "1qaz2wsx", "etl.boi.rd.hpicorp.net"); AuthenticationCredential credential = new AuthenticationCredential("03000"); JediOmniPreparationManager prepMgr = new JediOmniPreparationManager(((JediOmniDevice)device)); JediOmniLaunchHelper helper = new JediOmniLaunchHelper((JediOmniDevice)device); // Set up the device for Authentication prepMgr.Reset(); helper.PressSignInButton(); IAuthenticator authenticator = AuthenticatorFactory.Create(device, credential, AuthenticationProvider.Auto); authenticator.Authenticate(); }
/// <summary> /// Initializes a new instance of the <see cref="OmniAuthenticatorDriver"/> class. /// </summary> /// <param name="device">The device.</param> /// <param name="solutionButton">The solution button.</param> public OmniAuthenticatorDriver(JediOmniDevice device, string solutionButton, DeviceWorkflowLogger workflowLogger) { _omniDevice = device; _controlPanel = device.ControlPanel; _launchHelper = new JediOmniLaunchHelper(device); _launchHelper.WorkflowLogger = workflowLogger; _preparationManager = new JediOmniPreparationManager(_omniDevice); _preparationManager.WorkflowLogger = workflowLogger; _solutionButton = solutionButton; _workflowLogger = workflowLogger; _initMethod = AuthInitMethod.GetInitiationMethod(solutionButton); PrepareDevice(); }
/// <summary> /// Initializes a new instance of the <see cref="JediOmniDssWorkflowApp" /> class. /// </summary> /// <param name="device">The device.</param> public JediOmniDssWorkflowApp(JediOmniDevice device) { if (device == null) { throw new ArgumentNullException(nameof(device)); } _device = device; _controlPanel = _device.ControlPanel; _masthead = new JediOmniMasthead(device); _launchHelper = new JediOmniLaunchHelper(device); _notificationPanel = new JediOmniNotificationPanel(device); _enhancedWorkflowApp = new DssEnhancedWorkflowApp(_controlPanel); _idleTimeoutOffset = device.PowerManagement.GetInactivityTimeout().Subtract(TimeSpan.FromSeconds(10)); _popupManager = new JediOmniPopupManager(device); _engine = new OxpdBrowserEngine(_device.ControlPanel, DssWorkflowResource.DssWorkflowJavaScript); Pacekeeper = new Pacekeeper(TimeSpan.Zero); }