62 | 62 |
* - smartcard-insert: string in spice hotkey format
|
63 | 63 |
* - smartcard-remove: string in spice hotkey format
|
64 | 64 |
* - secure-attention: string in spice hotkey format
|
|
65 |
* - usb-device-reset: string in spice hotkey format
|
65 | 66 |
* - enable-smartcard: int (0 or 1 atm)
|
66 | 67 |
* - enable-usbredir: int (0 or 1 atm)
|
67 | 68 |
* - color-depth: int
|
|
136 | 137 |
PROP_SECURE_CHANNELS,
|
137 | 138 |
PROP_DELETE_THIS_FILE,
|
138 | 139 |
PROP_SECURE_ATTENTION,
|
|
140 |
PROP_USB_DEVICE_RESET,
|
139 | 141 |
PROP_OVIRT_ADMIN,
|
140 | 142 |
PROP_OVIRT_HOST,
|
141 | 143 |
PROP_OVIRT_VM_GUID,
|
|
571 | 573 |
{
|
572 | 574 |
virt_viewer_file_set_string(self, MAIN_GROUP, "secure-attention", value);
|
573 | 575 |
g_object_notify(G_OBJECT(self), "secure-attention");
|
|
576 |
}
|
|
577 |
|
|
578 |
gchar*
|
|
579 |
virt_viewer_file_get_usb_device_reset(VirtViewerFile* self)
|
|
580 |
{
|
|
581 |
return virt_viewer_file_get_string(self, MAIN_GROUP, "usb-device-reset");
|
|
582 |
}
|
|
583 |
|
|
584 |
void
|
|
585 |
virt_viewer_file_set_usb_device_reset(VirtViewerFile* self, const gchar* value)
|
|
586 |
{
|
|
587 |
virt_viewer_file_set_string(self, MAIN_GROUP, "usb-device-reset", value);
|
|
588 |
g_object_notify(G_OBJECT(self), "usb-device-reset");
|
574 | 589 |
}
|
575 | 590 |
|
576 | 591 |
gchar*
|
|
966 | 981 |
{ "smartcard-insert", "app.smartcard-insert" },
|
967 | 982 |
{ "smartcard-remove", "app.smartcard-remove" },
|
968 | 983 |
{ "secure-attention", "win.secure-attention" },
|
|
984 |
{ "usb-device-reset", "win.usb-device-reset" },
|
969 | 985 |
};
|
970 | 986 |
int i;
|
971 | 987 |
|
|
1053 | 1069 |
case PROP_SECURE_ATTENTION:
|
1054 | 1070 |
virt_viewer_file_set_secure_attention(self, g_value_get_string(value));
|
1055 | 1071 |
break;
|
|
1072 |
case PROP_USB_DEVICE_RESET:
|
|
1073 |
virt_viewer_file_set_usb_device_reset(self, g_value_get_string(value));
|
|
1074 |
break;
|
1056 | 1075 |
case PROP_ENABLE_SMARTCARD:
|
1057 | 1076 |
virt_viewer_file_set_enable_smartcard(self, g_value_get_int(value));
|
1058 | 1077 |
break;
|
|
1179 | 1198 |
case PROP_SECURE_ATTENTION:
|
1180 | 1199 |
g_value_take_string(value, virt_viewer_file_get_secure_attention(self));
|
1181 | 1200 |
break;
|
|
1201 |
case PROP_USB_DEVICE_RESET:
|
|
1202 |
g_value_take_string(value, virt_viewer_file_get_usb_device_reset(self));
|
|
1203 |
break;
|
1182 | 1204 |
case PROP_ENABLE_SMARTCARD:
|
1183 | 1205 |
g_value_set_int(value, virt_viewer_file_get_enable_smartcard(self));
|
1184 | 1206 |
break;
|
|
1333 | 1355 |
g_param_spec_string("secure-attention", "secure-attention", "secure-attention", NULL,
|
1334 | 1356 |
G_PARAM_STATIC_STRINGS | G_PARAM_READWRITE));
|
1335 | 1357 |
|
|
1358 |
g_object_class_install_property(G_OBJECT_CLASS(klass), PROP_USB_DEVICE_RESET,
|
|
1359 |
g_param_spec_string("usb-device-reset", "usb-device-reset", "usb-device-reset", NULL,
|
|
1360 |
G_PARAM_STATIC_STRINGS | G_PARAM_READWRITE));
|
|
1361 |
|
1336 | 1362 |
g_object_class_install_property(G_OBJECT_CLASS(klass), PROP_ENABLE_SMARTCARD,
|
1337 | 1363 |
g_param_spec_int("enable-smartcard", "enable-smartcard", "enable-smartcard", 0, 1, 0,
|
1338 | 1364 |
G_PARAM_STATIC_STRINGS | G_PARAM_READWRITE));
|