rygel r160 - in trunk: . src/media-providers/tracker



Author: zeeshanak
Date: Tue Oct 28 21:01:50 2008
New Revision: 160
URL: http://svn.gnome.org/viewvc/rygel?rev=160&view=rev

Log:
Refactor: Put TrackerContainer class into a separate module.

Added:
   trunk/src/media-providers/tracker/gupnp-tracker-container.vala
Modified:
   trunk/ChangeLog
   trunk/src/media-providers/tracker/Makefile.am
   trunk/src/media-providers/tracker/gupnp-media-tracker.vala

Modified: trunk/src/media-providers/tracker/Makefile.am
==============================================================================
--- trunk/src/media-providers/tracker/Makefile.am	(original)
+++ trunk/src/media-providers/tracker/Makefile.am	Tue Oct 28 21:01:50 2008
@@ -9,11 +9,16 @@
 
 BUILT_SOURCES = gupnp-media-tracker.stamp \
 		gupnp-media-tracker.h \
-		gupnp-media-tracker.c
+		gupnp-media-tracker.c \
+		gupnp-tracker-container.h \
+		gupnp-tracker-container.c
 
 libgupnp_media_tracker_la_SOURCES = gupnp-media-tracker.h \
 			            gupnp-media-tracker.c \
-				    gupnp-media-tracker.vala
+				    gupnp-media-tracker.vala \
+				    gupnp-tracker-container.h \
+			            gupnp-tracker-container.c \
+				    gupnp-tracker-container.vala
 
 gupnp-media-tracker.stamp: $(filter %.vala,$(libgupnp_media_tracker_la_SOURCES))
 	$(VALAC) -C --vapidir=$(top_srcdir)/src/media-server \

Modified: trunk/src/media-providers/tracker/gupnp-media-tracker.vala
==============================================================================
--- trunk/src/media-providers/tracker/gupnp-media-tracker.vala	(original)
+++ trunk/src/media-providers/tracker/gupnp-media-tracker.vala	Tue Oct 28 21:01:50 2008
@@ -25,25 +25,6 @@
 using GUPnP;
 using DBus;
 
-private class GUPnP.TrackerContainer : MediaContainer {
-    public string tracker_category;
-
-    /* UPnP class of items under this container */
-    public string child_class;
-
-    public TrackerContainer (string id,
-                             string parent_id,
-                             string title,
-                             string tracker_category,
-                             string child_class) {
-        this.id = id;
-        this.parent_id = parent_id;
-        this.title = title;
-        this.tracker_category = tracker_category;
-        this.child_class = child_class;
-    }
-}
-
 public class GUPnP.MediaTracker : MediaProvider {
     /* class-wide constants */
     public static const string TRACKER_SERVICE = "org.freedesktop.Tracker";

Added: trunk/src/media-providers/tracker/gupnp-tracker-container.vala
==============================================================================
--- (empty file)
+++ trunk/src/media-providers/tracker/gupnp-tracker-container.vala	Tue Oct 28 21:01:50 2008
@@ -0,0 +1,44 @@
+/*
+ * Copyright (C) 2008 Zeeshan Ali <zeenix gmail com>.
+ *
+ * Author: Zeeshan Ali <zeenix gmail com>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ */
+
+using GUPnP;
+
+public class GUPnP.TrackerContainer : MediaContainer {
+    public string tracker_category;
+
+    /* UPnP class of items under this container */
+    public string child_class;
+
+    public TrackerContainer (string id,
+                             string parent_id,
+                             string title,
+                             string tracker_category,
+                             string child_class) {
+        this.id = id;
+        this.parent_id = parent_id;
+        this.title = title;
+        this.tracker_category = tracker_category;
+        this.child_class = child_class;
+    }
+}



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