[gnome-boxes/wip/image-import: 5/10] libvirt-machine: Add 'importing' property



commit 2a1d68e9bcc50b58e7244956a1f66ab363e23e59
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]