rygel r150 - in trunk: . src/media-server



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

Log:
Introduce a new abstract class for media objects.

It will be the responsibility of derived classes to implement serializing to
DIDLLiteWriter.

Added:
   trunk/src/media-server/gupnp-media-object.vala
Modified:
   trunk/ChangeLog

Added: trunk/src/media-server/gupnp-media-object.vala
==============================================================================
--- (empty file)
+++ trunk/src/media-server/gupnp-media-object.vala	Tue Oct 28 21:01:35 2008
@@ -0,0 +1,31 @@
+/*
+ * 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.
+ */
+
+public abstract class GUPnP.MediaObject {
+    public string id;
+    public string parent_id;
+    public string title;
+
+    public abstract void serialize (DIDLLiteWriter didl_writer);
+}



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