[rygel] core: ContentDirectory callbacks don't need to be virtual



commit be2eec3df40f0ac2d44a1dcf0d9a17fef0f5f0e7
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Tue Feb 23 14:38:47 2010 +0200

    core: ContentDirectory callbacks don't need to be virtual

 src/rygel/rygel-content-directory.vala |   26 ++++++++++++--------------
 1 files changed, 12 insertions(+), 14 deletions(-)
---
diff --git a/src/rygel/rygel-content-directory.vala b/src/rygel/rygel-content-directory.vala
index 6cb4a78..97d5870 100644
--- a/src/rygel/rygel-content-directory.vala
+++ b/src/rygel/rygel-content-directory.vala
@@ -144,32 +144,32 @@ public class Rygel.ContentDirectory: Service {
     }
 
     /* Browse action implementation */
-    private virtual void browse_cb (ContentDirectory    content_dir,
-                                    owned ServiceAction action) {
+    private void browse_cb (ContentDirectory    content_dir,
+                            owned ServiceAction action) {
         Browse browse = new Browse (this, action);
 
         browse.run.begin ();
     }
 
     /* Search action implementation */
-    private virtual void search_cb (ContentDirectory    content_dir,
-                                    owned ServiceAction action) {
+    private void search_cb (ContentDirectory    content_dir,
+                            owned ServiceAction action) {
         var search = new Search (this, action);
 
         search.run.begin ();
     }
 
     /* CreateObject action implementation */
-    private virtual void create_object_cb (ContentDirectory    content_dir,
-                                           owned ServiceAction action) {
+    private void create_object_cb (ContentDirectory    content_dir,
+                                   owned ServiceAction action) {
         var creator = new ItemCreator (this, action);
 
         creator.run.begin ();
     }
 
     /* ImportResource action implementation */
-    private virtual void import_resource_cb (ContentDirectory    content_dir,
-                                             owned ServiceAction action) {
+    private void import_resource_cb (ContentDirectory    content_dir,
+                                     owned ServiceAction action) {
         var import = new ImportResource (this, action);
 
         import.completed += this.on_import_completed;
@@ -191,9 +191,8 @@ public class Rygel.ContentDirectory: Service {
     }
 
     /* GetTransferProgress action implementation */
-    private virtual void get_transfer_progress_cb (
-                                        ContentDirectory    content_dir,
-                                        owned ServiceAction action) {
+    private void get_transfer_progress_cb (ContentDirectory    content_dir,
+                                           owned ServiceAction action) {
         var import = find_import_for_action (action);
         if (import != null) {
             action.set ("TransferStatus",
@@ -213,9 +212,8 @@ public class Rygel.ContentDirectory: Service {
     }
 
     /* StopTransferResource action implementation */
-    private virtual void stop_transfer_resource_cb (
-                                        ContentDirectory    content_dir,
-                                        owned ServiceAction action) {
+    private void stop_transfer_resource_cb (ContentDirectory    content_dir,
+                                            owned ServiceAction action) {
         var import = find_import_for_action (action);
         if (import != null) {
             import.cancellable.cancel ();



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