use of org.ovirt.engine.ui.uicommonweb.models.vms.VncConsoleModel 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);
}
use of org.ovirt.engine.ui.uicommonweb.models.vms.VncConsoleModel in project ovirt-engine by oVirt.
the class ConsoleOptionsFrontendPersisterImpl method storeVncData.
private void storeVncData(VmConsoles vmConsoles, KeyMaker keyMaker) {
VncConsoleModel consoleModel = vmConsoles.getConsoleModel(VncConsoleModel.class);
if (consoleModel != null) {
clientStorage.setLocalItem(keyMaker.make(VNC_CLIENT_MODE), consoleModel.getClientConsoleMode().toString());
storeBool(keyMaker.make(REMAP_CAD_VNC), consoleModel.getVncImpl().getOptions().isRemapCtrlAltDelete());
}
}
Aggregations