[gnome-boxes/wip/download: 2/3] downloader: Move out download class



commit d21409639f7febcbbd695c6d371ff6f667390a09
Author: Lasse Schuirmann <lasse schuirmann gmail com>
Date:   Sun Oct 12 11:08:00 2014 +0200

    downloader: Move out download class
    
    The Download class will take greater responsibilities in the following
    commit and deserves an own file.

 src/download.vala   |   16 ++++++++++++++++
 src/downloader.vala |   14 --------------
 2 files changed, 16 insertions(+), 14 deletions(-)
---
diff --git a/src/download.vala b/src/download.vala
new file mode 100644
index 0000000..9dd10e2
--- /dev/null
+++ b/src/download.vala
@@ -0,0 +1,16 @@
+// This file is part of GNOME Boxes. License: LGPLv2+
+
+private class Boxes.Download {
+    public string uri;
+    public File remote_file;
+    public File cached_file;
+    public ActivityProgress progress;
+
+    public Download (File remote_file, File cached_file, ActivityProgress progress) {
+        this.remote_file = remote_file;
+        this.uri = remote_file.get_uri ();
+        this.cached_file = cached_file;
+        this.progress = progress;
+    }
+}
+
diff --git a/src/downloader.vala b/src/downloader.vala
index 3006ef6..4eed590 100644
--- a/src/downloader.vala
+++ b/src/downloader.vala
@@ -1,19 +1,5 @@
 // This file is part of GNOME Boxes. License: LGPLv2+
 
-private class Boxes.Download {
-    public string uri;
-    public File remote_file;
-    public File cached_file;
-    public ActivityProgress progress;
-
-    public Download (File remote_file, File cached_file, ActivityProgress progress) {
-        this.remote_file = remote_file;
-        this.uri = remote_file.get_uri ();
-        this.cached_file = cached_file;
-        this.progress = progress;
-    }
-}
-
 private class Boxes.Downloader : GLib.Object {
     private static Downloader downloader;
     private Soup.Session session;


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