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



commit 6e553b143e7478f40a0a48b86b87535387bb1c82
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.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=690757

 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]