[rygel] core: Minor refactoring of ContentDirectory class



commit 0c8374529d1388cd8c3229b66386f114f836f642
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Thu Feb 18 17:19:40 2010 +0200

    core: Minor refactoring of ContentDirectory class
    
    Keep private non-callback methods at the end of the class definition.

 src/rygel/rygel-content-directory.vala |   28 ++++++++++++++--------------
 1 files changed, 14 insertions(+), 14 deletions(-)
---
diff --git a/src/rygel/rygel-content-directory.vala b/src/rygel/rygel-content-directory.vala
index 9000069..3acd955 100644
--- a/src/rygel/rygel-content-directory.vala
+++ b/src/rygel/rygel-content-directory.vala
@@ -176,20 +176,6 @@ public class Rygel.ContentDirectory: Service {
                         this.create_transfer_ids ());
     }
 
-    private void on_import_completed (ImportResource import) {
-        this.notify ("TransferIDs",
-                        typeof (string),
-                        this.create_transfer_ids ());
-
-        // According to CDS specs (v3 section 2.4.17), we must not immediately
-        // remove the import from out memory
-        Timeout.add_seconds (30, () => {
-                this.active_imports.remove (import);
-
-                return false;
-        });
-    }
-
     /* Query TransferIDs */
     private void query_transfer_ids (ContentDirectory content_dir,
                                      string           variable,
@@ -351,5 +337,19 @@ public class Rygel.ContentDirectory: Service {
 
         return ids;
     }
+
+    private void on_import_completed (ImportResource import) {
+        this.notify ("TransferIDs",
+                        typeof (string),
+                        this.create_transfer_ids ());
+
+        // According to CDS specs (v3 section 2.4.17), we must not immediately
+        // remove the import from out memory
+        Timeout.add_seconds (30, () => {
+                this.active_imports.remove (import);
+
+                return false;
+        });
+    }
 }
 



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