[gnome-boxes/wip/image-import: 6/7] libvirt-machine: Add 'importing' property
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes/wip/image-import: 6/7] libvirt-machine: Add 'importing' property
- Date: Thu, 6 Jun 2013 00:10:47 +0000 (UTC)
commit 886a838c473e1e7f82b8b5ef14706ada29bf4179
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Thu Jun 6 03:01:41 2013 +0300
libvirt-machine: Add 'importing' property
Add a property to indicate if machine is currently being imported.
src/libvirt-machine.vala | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/libvirt-machine.vala b/src/libvirt-machine.vala
index 13c55e7..23e6fa3 100644
--- a/src/libvirt-machine.vala
+++ b/src/libvirt-machine.vala
@@ -8,6 +8,8 @@ private class Boxes.LibvirtMachine: Boxes.Machine {
public GVir.Connection connection { get; set; }
public GVir.StorageVol? storage_volume { get; set; }
public VMCreator? vm_creator { get; set; } // Under installation if this is set to non-null
+ // If this machine is currently being imported
+ public bool importing { get { return vm_creator != null && vm_creator is VMImporter; } }
private LibvirtMachineProperties properties;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]