Search in sources :

Example 1 with RdpConsoleModel

use of org.ovirt.engine.ui.uicommonweb.models.vms.RdpConsoleModel in project ovirt-engine by oVirt.

the class ConsolesBase method fillModels.

private void fillModels() {
    SpiceConsoleModel spiceConsoleModel = new SpiceConsoleModel(vm, parentModel);
    spiceConsoleModel.getErrorEvent().addListener(new ConsoleModelErrorEventListener(parentModel));
    spiceConsoleModel.setForceVmStatusUp(myContext == ConsoleOptionsFrontendPersister.ConsoleContext.UP_BASIC);
    consoleModels.put(ConsoleProtocol.SPICE, spiceConsoleModel);
    VncConsoleModel vncConsoleModel = new VncConsoleModel(vm, parentModel);
    vncConsoleModel.setForceVmStatusUp(myContext == ConsoleOptionsFrontendPersister.ConsoleContext.UP_BASIC);
    consoleModels.put(ConsoleProtocol.VNC, vncConsoleModel);
    RdpConsoleModel rdpConsoleModel = new RdpConsoleModel(vm, parentModel);
    rdpConsoleModel.getErrorEvent().addListener(new ConsoleModelErrorEventListener(parentModel));
    rdpConsoleModel.setForceVmStatusUp(myContext == ConsoleOptionsFrontendPersister.ConsoleContext.UP_BASIC);
    consoleModels.put(ConsoleProtocol.RDP, rdpConsoleModel);
}
Also used : SpiceConsoleModel(org.ovirt.engine.ui.uicommonweb.models.vms.SpiceConsoleModel) ConsoleModelErrorEventListener(org.ovirt.engine.ui.uicommonweb.models.vms.ConsoleModelErrorEventListener) VncConsoleModel(org.ovirt.engine.ui.uicommonweb.models.vms.VncConsoleModel) RdpConsoleModel(org.ovirt.engine.ui.uicommonweb.models.vms.RdpConsoleModel)

Example 2 with RdpConsoleModel

use of org.ovirt.engine.ui.uicommonweb.models.vms.RdpConsoleModel in project ovirt-engine by oVirt.

the class ConsoleOptionsFrontendPersisterImpl method storeRdpData.

protected void storeRdpData(VmConsoles vmConsoles, KeyMaker keyMaker) {
    RdpConsoleModel consoleModel = vmConsoles.getConsoleModel(RdpConsoleModel.class);
    IRdp rdpImpl = consoleModel.getrdp();
    clientStorage.setLocalItem(keyMaker.make(RDP_CLIENT_MODE), consoleModel.getClientConsoleMode().toString());
    storeBool(keyMaker.make(USE_LOCAL_DRIVES), rdpImpl.getUseLocalDrives());
}
Also used : IRdp(org.ovirt.engine.ui.uicommonweb.models.vms.IRdp) RdpConsoleModel(org.ovirt.engine.ui.uicommonweb.models.vms.RdpConsoleModel)

Aggregations

RdpConsoleModel (org.ovirt.engine.ui.uicommonweb.models.vms.RdpConsoleModel)2 ConsoleModelErrorEventListener (org.ovirt.engine.ui.uicommonweb.models.vms.ConsoleModelErrorEventListener)1 IRdp (org.ovirt.engine.ui.uicommonweb.models.vms.IRdp)1 SpiceConsoleModel (org.ovirt.engine.ui.uicommonweb.models.vms.SpiceConsoleModel)1 VncConsoleModel (org.ovirt.engine.ui.uicommonweb.models.vms.VncConsoleModel)1