[gnome-boxes/wip/clone: 1/3] LibvirtSystemVMImporter -> LibvirtVMImporter



commit f9dff56ddda7109280500d8b131f28e5f1ef5bb6
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Thu Apr 28 15:32:51 2016 +0100

    LibvirtSystemVMImporter -> LibvirtVMImporter
    
    Not only this class is agnostic to the type of libvirt connection the VM
    is being imported from, we'll be re-using this class in a following
    patch to import (rather clone) VMs from session libvirt connection.

 src/Makefile.am                                    |    2 +-
 src/libvirt-broker.vala                            |    2 +-
 src/libvirt-system-media.vala                      |    2 +-
 ...m-vm-importer.vala => libvirt-vm-importer.vala} |    6 +++---
 4 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/src/Makefile.am b/src/Makefile.am
index 4f3e43e..c90c814 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -149,7 +149,7 @@ gnome_boxes_SOURCES =                               \
        vm-creator.vala                         \
        vm-importer.vala                        \
        libvirt-system-importer.vala            \
-       libvirt-system-vm-importer.vala         \
+       libvirt-vm-importer.vala        \
        vnc-display.vala                        \
        wizard-window.vala                      \
        wizard-source.vala                      \
diff --git a/src/libvirt-broker.vala b/src/libvirt-broker.vala
index 1ca8759..c79758c 100644
--- a/src/libvirt-broker.vala
+++ b/src/libvirt-broker.vala
@@ -95,7 +95,7 @@ private class Boxes.LibvirtBroker : Boxes.Broker {
                 new VMImporter.for_import_completion (machine);
             } else if (VMConfigurator.is_libvirt_system_import_config (config)) {
                 debug ("Continuing import of '%s', ..", machine.name);
-                new LibvirtSystemVMImporter.for_import_completion (machine);
+                new LibvirtVMImporter.for_import_completion (machine);
             }
         } catch (GLib.Error error) {
             warning ("Failed to create source '%s': %s", source.name, error.message);
diff --git a/src/libvirt-system-media.vala b/src/libvirt-system-media.vala
index 030f5d4..3b178f8 100644
--- a/src/libvirt-system-media.vala
+++ b/src/libvirt-system-media.vala
@@ -23,6 +23,6 @@ private class Boxes.LibvirtSystemMedia : Boxes.InstalledMedia {
     }
 
     public override VMCreator get_vm_creator () {
-        return new LibvirtSystemVMImporter (this);
+        return new LibvirtVMImporter (this);
     }
 }
diff --git a/src/libvirt-system-vm-importer.vala b/src/libvirt-vm-importer.vala
similarity index 91%
rename from src/libvirt-system-vm-importer.vala
rename to src/libvirt-vm-importer.vala
index e865bd7..8e633a7 100644
--- a/src/libvirt-system-vm-importer.vala
+++ b/src/libvirt-vm-importer.vala
@@ -3,13 +3,13 @@
 using Osinfo;
 using GVirConfig;
 
-private class Boxes.LibvirtSystemVMImporter : Boxes.VMImporter {
-    public LibvirtSystemVMImporter (InstalledMedia source_media) {
+private class Boxes.LibvirtVMImporter : Boxes.VMImporter {
+    public LibvirtVMImporter (InstalledMedia source_media) {
         base (source_media);
         start_after_import = false;
     }
 
-    public LibvirtSystemVMImporter.for_import_completion (LibvirtMachine machine) {
+    public LibvirtVMImporter.for_import_completion (LibvirtMachine machine) {
         base.for_install_completion (machine);
         start_after_import = false;
     }


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