[gnome-boxes/wip/clone: 14/16] Add LibvirtClonedMedia



commit 23efc8b73a7ded720e1d627afe1dfdffd0834005
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Tue May 3 21:59:56 2016 +0100

    Add LibvirtClonedMedia
    
    Add a special subclass of LibvirtMedia that represents a media, that is
    being cloned.

 src/Makefile.am               |    1 +
 src/libvirt-cloned-media.vala |   11 +++++++++++
 2 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/src/Makefile.am b/src/Makefile.am
index 52bfd4c..48a2bea 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -115,6 +115,7 @@ gnome_boxes_SOURCES =                               \
        installer-media.vala                    \
        installed-media.vala                    \
        keys-input-popover.vala                 \
+       libvirt-cloned-media.vala               \
        libvirt-media.vala                      \
        iso-extractor.vala                      \
        libvirt-broker.vala                     \
diff --git a/src/libvirt-cloned-media.vala b/src/libvirt-cloned-media.vala
new file mode 100644
index 0000000..39656e3
--- /dev/null
+++ b/src/libvirt-cloned-media.vala
@@ -0,0 +1,11 @@
+// This file is part of GNOME Boxes. License: LGPLv2+
+
+private class Boxes.LibvirtClonedMedia : Boxes.LibvirtMedia  {
+    public LibvirtClonedMedia (string path, GVirConfig.Domain domain_config) throws GLib.Error {
+        base (path, domain_config, true);
+    }
+
+    public override VMCreator get_vm_creator () {
+        return new LibvirtVMCloner (this);
+    }
+}


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]