profile/ivi/rygel.git
15 years agoOops: Put the muxer after the encoder.
Zeeshan Ali (Khattak) [Sun, 14 Dec 2008 20:22:37 +0000 (20:22 +0000)]
Oops: Put the muxer after the encoder.

svn path=/trunk/; revision=348

15 years agoStreamer rejects the stream, rather than signal handler.
Zeeshan Ali (Khattak) [Sun, 14 Dec 2008 20:22:32 +0000 (20:22 +0000)]
Streamer rejects the stream, rather than signal handler.

svn path=/trunk/; revision=347

15 years agoAdd method to detect if stream has been accepted.
Zeeshan Ali (Khattak) [Sun, 14 Dec 2008 20:22:28 +0000 (20:22 +0000)]
Add method to detect if stream has been accepted.

svn path=/trunk/; revision=346

15 years agoGeneralize: Put common code into TestItem class.
Zeeshan Ali (Khattak) [Sun, 14 Dec 2008 20:22:23 +0000 (20:22 +0000)]
Generalize: Put common code into TestItem class.

Put common code from TestAudioItem and TestVideoItem into TestItem class.

svn path=/trunk/; revision=345

15 years agoAdd a video item to test plugin.
Zeeshan Ali (Khattak) [Sun, 14 Dec 2008 20:22:17 +0000 (20:22 +0000)]
Add a video item to test plugin.

Streams video from 'videotestsrc is-live=true ! theoraenc ! oggmux'.

svn path=/trunk/; revision=344

15 years agoNicer title/ID for the exported audio item.
Zeeshan Ali (Khattak) [Sun, 14 Dec 2008 20:22:12 +0000 (20:22 +0000)]
Nicer title/ID for the exported audio item.

svn path=/trunk/; revision=343

15 years agoTell audiotestsrc to behave like a live source.
Zeeshan Ali (Khattak) [Sun, 14 Dec 2008 20:22:08 +0000 (20:22 +0000)]
Tell audiotestsrc to behave like a live source.

svn path=/trunk/; revision=342

15 years agoMove StreamContext to Rygel as GstStream.
Zeeshan Ali (Khattak) [Sun, 14 Dec 2008 20:22:02 +0000 (20:22 +0000)]
Move StreamContext to Rygel as GstStream.

This is to avoid code-duplication in plugins. Now plugins just create the
gst source element they want to stream from and tell the Streamer to
stream from that.

svn path=/trunk/; revision=341

15 years agoStreamContext can now be told to stream from any gst (source) element.
Zeeshan Ali (Khattak) [Sun, 14 Dec 2008 20:21:57 +0000 (20:21 +0000)]
StreamContext can now be told to stream from any gst (source) element.

svn path=/trunk/; revision=340

15 years agoNo need to provide candidates to Streamer anymore.
Zeeshan Ali (Khattak) [Sun, 14 Dec 2008 20:21:52 +0000 (20:21 +0000)]
No need to provide candidates to Streamer anymore.

Instead you get a new stream object for each HTTP request and you can
accept or reject it and start streaming to it in case of former.

svn path=/trunk/; revision=339

15 years agoHosted path should be derived from given name.
Zeeshan Ali (Khattak) [Sun, 14 Dec 2008 20:21:48 +0000 (20:21 +0000)]
Hosted path should be derived from given name.

Streamer takes a name as constructor argument and uses that to create the
server path it hosts.

svn path=/trunk/; revision=338

15 years agoImplement Test audio item.
Zeeshan Ali (Khattak) [Sun, 14 Dec 2008 20:21:43 +0000 (20:21 +0000)]
Implement Test audio item.

It creates a small gstreamer pipeline and feeds the data produced from
that pipeline to http response messages.

svn path=/trunk/; revision=337

15 years agoAdd gstreamer CFLAGS and LIBS to test plugin build.
Zeeshan Ali (Khattak) [Sun, 14 Dec 2008 20:21:38 +0000 (20:21 +0000)]
Add gstreamer CFLAGS and LIBS to test plugin build.

svn path=/trunk/; revision=336

15 years agoAdd a convience method to create URI from path.
Zeeshan Ali (Khattak) [Sun, 14 Dec 2008 20:21:34 +0000 (20:21 +0000)]
Add a convience method to create URI from path.

svn path=/trunk/; revision=335

15 years agoInitialize gstreamer.
Zeeshan Ali (Khattak) [Sun, 14 Dec 2008 20:21:29 +0000 (20:21 +0000)]
Initialize gstreamer.

svn path=/trunk/; revision=334

15 years agoProvide a const for generic UPnP audio item class.
Zeeshan Ali (Khattak) [Sun, 14 Dec 2008 20:21:24 +0000 (20:21 +0000)]
Provide a const for generic UPnP audio item class.

svn path=/trunk/; revision=333

15 years agoBasic skeleton for test plugin.
Zeeshan Ali (Khattak) [Sun, 14 Dec 2008 20:21:18 +0000 (20:21 +0000)]
Basic skeleton for test plugin.

A test plugin that is supposed to host test media, mainly meant for
testing the new Streaming API and hopefully the transcoding API
that will follow soon.

svn path=/trunk/; revision=332

15 years agoStreamer doesn't derive from GUPnP.Context anymore.
Zeeshan Ali (Khattak) [Sun, 14 Dec 2008 20:21:13 +0000 (20:21 +0000)]
Streamer doesn't derive from GUPnP.Context anymore.

Streamer doesn't derive from GUPnP.Context anymore but rather uses an
existing GUPnP.Conext object.

svn path=/trunk/; revision=331

15 years agoAdd Streamer and Stream classes.
Zeeshan Ali (Khattak) [Sun, 14 Dec 2008 20:21:08 +0000 (20:21 +0000)]
Add Streamer and Stream classes.

New classes for rygel and plugins to be able to stream data from sources
other than files on disk.

svn path=/trunk/; revision=330

15 years agoRefactor ContentDirectory.browse_cb ().
Zeeshan Ali (Khattak) [Sun, 14 Dec 2008 20:21:02 +0000 (20:21 +0000)]
Refactor ContentDirectory.browse_cb ().

svn path=/trunk/; revision=329

15 years agoIntroduce BrowseArgs.
Zeeshan Ali (Khattak) [Sun, 14 Dec 2008 20:20:57 +0000 (20:20 +0000)]
Introduce BrowseArgs.

Introduce a new class, whose instances holds the arguments (in and out) to
Browse action and pass these instance to all methods instead of passing
around the arguments themselves everywhere. Simplifies the code and lives
of content directory implementors.

svn path=/trunk/; revision=328

15 years agoMove most of the root container handling to base class.
Zeeshan Ali (Khattak) [Sun, 14 Dec 2008 20:20:52 +0000 (20:20 +0000)]
Move most of the root container handling to base class.

So that plugins need to a bit less work.

svn path=/trunk/; revision=327

15 years agoReflect the correct number of children in the root container.
Zeeshan Ali (Khattak) [Sun, 14 Dec 2008 20:20:46 +0000 (20:20 +0000)]
Reflect the correct number of children in the root container.

Do create the root container before creating it's child containers but
update the number of children when we know it.

svn path=/trunk/; revision=326

15 years agoSome minor beautification changes.
Zeeshan Ali (Khattak) [Mon, 1 Dec 2008 16:39:32 +0000 (16:39 +0000)]
Some minor beautification changes.

svn path=/trunk/; revision=325

15 years agoA small convenience constructor for root container.
Zeeshan Ali (Khattak) [Mon, 1 Dec 2008 16:39:27 +0000 (16:39 +0000)]
A small convenience constructor for root container.

svn path=/trunk/; revision=324

15 years agoGConf.Client.get_string returns null if key is not found.
Zeeshan Ali (Khattak) [Mon, 1 Dec 2008 16:39:22 +0000 (16:39 +0000)]
GConf.Client.get_string returns null if key is not found.

GConf.Client.get_string returns null if key is not found rather than
throwing an error.

svn path=/trunk/; revision=323

15 years agoRefactor MediaServerFactory.
Zeeshan Ali (Khattak) [Mon, 1 Dec 2008 16:39:18 +0000 (16:39 +0000)]
Refactor MediaServerFactory.

Put the saving of modified desc into a separate method.

svn path=/trunk/; revision=322

15 years agoRefactor MediaServerFactory.
Zeeshan Ali (Khattak) [Mon, 1 Dec 2008 16:39:12 +0000 (16:39 +0000)]
Refactor MediaServerFactory.

Put the creation of modified description xml into a separate method.

svn path=/trunk/; revision=321

15 years agoSet the default value to gconf rather than null.
Zeeshan Ali (Khattak) [Sat, 29 Nov 2008 23:19:50 +0000 (23:19 +0000)]
Set the default value to gconf rather than null.

svn path=/trunk/; revision=320

15 years agoInitialize the local variables.
Zeeshan Ali (Khattak) [Sat, 29 Nov 2008 23:19:45 +0000 (23:19 +0000)]
Initialize the local variables.

svn path=/trunk/; revision=319

15 years agoMake the module resident rather than keeping a ref to it.
Zeeshan Ali (Khattak) [Fri, 28 Nov 2008 12:59:41 +0000 (12:59 +0000)]
Make the module resident rather than keeping a ref to it.

Rygel was crashing on exit because of modules being unloaded while there
were still objects of classes provided by the module. I thought I had
solved the issue by keeping a ref to each module in the PluginLoader but
the problem with that approach is that it is not guaranteed the
PluginLoader will not be freed before all the objects of classes it
provides.

svn path=/trunk/; revision=318

15 years agoExport the tracker logo.
Zeeshan Ali (Khattak) [Thu, 27 Nov 2008 23:20:09 +0000 (23:20 +0000)]
Export the tracker logo.

Export the tracker logo to be used as the MediaServer icon.

svn path=/trunk/; revision=317

15 years agoAdd support for icons.
Zeeshan Ali (Khattak) [Thu, 27 Nov 2008 23:20:03 +0000 (23:20 +0000)]
Add support for icons.

Plugins can now provide icons to represent themselves. Yay!

svn path=/trunk/; revision=316

15 years agoInitialize the list before adding services to it.
Zeeshan Ali (Khattak) [Thu, 27 Nov 2008 16:49:25 +0000 (16:49 +0000)]
Initialize the list before adding services to it.

svn path=/trunk/; revision=315

15 years agoMinor refactor.
Zeeshan Ali (Khattak) [Thu, 27 Nov 2008 16:49:19 +0000 (16:49 +0000)]
Minor refactor.

svn path=/trunk/; revision=314

15 years agoDelete the now redundant directories.
Zeeshan Ali (Khattak) [Wed, 26 Nov 2008 20:53:04 +0000 (20:53 +0000)]
Delete the now redundant directories.

svn path=/trunk/; revision=313

15 years agoTry to quit the app gracefully on SIGTERM.
Zeeshan Ali (Khattak) [Wed, 26 Nov 2008 17:00:39 +0000 (17:00 +0000)]
Try to quit the app gracefully on SIGTERM.

svn path=/trunk/; revision=312

15 years agoAdd API to Main for exiting the app with an exit code.
Zeeshan Ali (Khattak) [Wed, 26 Nov 2008 17:00:33 +0000 (17:00 +0000)]
Add API to Main for exiting the app with an exit code.

svn path=/trunk/; revision=311

15 years agoTurn MainLoop into a prop of the Main class.
Zeeshan Ali (Khattak) [Wed, 26 Nov 2008 17:00:28 +0000 (17:00 +0000)]
Turn MainLoop into a prop of the Main class.

svn path=/trunk/; revision=310

15 years agoUse exceptions rather than returning nulls.
Zeeshan Ali (Khattak) [Wed, 26 Nov 2008 17:00:23 +0000 (17:00 +0000)]
Use exceptions rather than returning nulls.

svn path=/trunk/; revision=309

15 years agoMerge two functions together.
Zeeshan Ali (Khattak) [Wed, 26 Nov 2008 14:28:20 +0000 (14:28 +0000)]
Merge two functions together.

svn path=/trunk/; revision=308

15 years agoKeep the search and sort caps in a protected field.
Zeeshan Ali (Khattak) [Wed, 26 Nov 2008 14:28:15 +0000 (14:28 +0000)]
Keep the search and sort caps in a protected field.

svn path=/trunk/; revision=307

15 years agoMinor indentation fixes.
Zeeshan Ali (Khattak) [Wed, 26 Nov 2008 14:28:10 +0000 (14:28 +0000)]
Minor indentation fixes.

svn path=/trunk/; revision=306

15 years agoAllow service subclasses to override most of the funtionality.
Zeeshan Ali (Khattak) [Wed, 26 Nov 2008 14:28:06 +0000 (14:28 +0000)]
Allow service subclasses to override most of the funtionality.

Make some fields protected and some methods virtual.

svn path=/trunk/; revision=305

15 years agoAdd some basic doc comments for all classes.
Zeeshan Ali (Khattak) [Tue, 25 Nov 2008 14:44:09 +0000 (14:44 +0000)]
Add some basic doc comments for all classes.

svn path=/trunk/; revision=304

15 years agoOops! Had forgotten to update my email in the vapi file.
Zeeshan Ali (Khattak) [Tue, 25 Nov 2008 14:44:05 +0000 (14:44 +0000)]
Oops! Had forgotten to update my email in the vapi file.

svn path=/trunk/; revision=303

15 years agoRename 'media-server' dir to 'rygel'.
Zeeshan Ali (Khattak) [Tue, 25 Nov 2008 14:43:59 +0000 (14:43 +0000)]
Rename 'media-server' dir to 'rygel'.

svn path=/trunk/; revision=302

15 years agoRename 'media-providers' directory to 'plugins.
Zeeshan Ali (Khattak) [Tue, 25 Nov 2008 14:43:52 +0000 (14:43 +0000)]
Rename 'media-providers' directory to 'plugins.

svn path=/trunk/; revision=301

15 years agoFix the root gconf path to reflect the new project name.
Zeeshan Ali (Khattak) [Tue, 25 Nov 2008 14:43:47 +0000 (14:43 +0000)]
Fix the root gconf path to reflect the new project name.

svn path=/trunk/; revision=300

15 years agoRename 'GCONF_PATH' to 'ROOT_GCONF_PATH'.
Zeeshan Ali (Khattak) [Tue, 25 Nov 2008 14:43:42 +0000 (14:43 +0000)]
Rename 'GCONF_PATH' to 'ROOT_GCONF_PATH'.

svn path=/trunk/; revision=299

15 years agoRename 'UPNP_CLASS' in Service classes to 'UPNP_TYPE'.
Zeeshan Ali (Khattak) [Tue, 25 Nov 2008 14:43:38 +0000 (14:43 +0000)]
Rename 'UPNP_CLASS' in Service classes to 'UPNP_TYPE'.

svn path=/trunk/; revision=298

15 years agoset dlna_operation and dlna_flags like rhythmbox-gupnp.
Zeeshan Ali (Khattak) [Tue, 25 Nov 2008 14:43:32 +0000 (14:43 +0000)]
set dlna_operation and dlna_flags like rhythmbox-gupnp.

Patch from Florian Steinel <Florian.Steinel@googlemail.com>.

svn path=/trunk/; revision=297

15 years agoUse the new Tracker interface.
Zeeshan Ali (Khattak) [Tue, 25 Nov 2008 14:43:28 +0000 (14:43 +0000)]
Use the new Tracker interface.

Tracker now has separate objects for separate API. Patch from
Florian Steinel <Florian.Steinel@googlemail.com>.

svn path=/trunk/; revision=296

15 years agoRemove some unnecessary null-checks.
Zeeshan Ali (Khattak) [Tue, 25 Nov 2008 14:43:23 +0000 (14:43 +0000)]
Remove some unnecessary null-checks.

Thanks to Florian Steinel for pointing it out.

svn path=/trunk/; revision=295

15 years agoLink against libgee.
Zeeshan Ali (Khattak) [Tue, 25 Nov 2008 14:43:18 +0000 (14:43 +0000)]
Link against libgee.

svn path=/trunk/; revision=294

15 years agoComplete Redesign: More power to the plugins.
Zeeshan Ali (Khattak) [Tue, 25 Nov 2008 14:43:12 +0000 (14:43 +0000)]
Complete Redesign: More power to the plugins.

List of changes:
* Plugins now loaded into separate Media Servers.
* Plugins can now implement any kind of resources (only services atm).
* Service classes are now exposed to plugins so they can inherit from them.
* MediaTracker now inherits from ContentDirectory rather than ContentProvider.
* ContentProvider is removed.

svn path=/trunk/; revision=293

15 years agoBump-up required vala version to 0.5.2.
Zeeshan Ali (Khattak) [Tue, 25 Nov 2008 14:43:07 +0000 (14:43 +0000)]
Bump-up required vala version to 0.5.2.

svn path=/trunk/; revision=292

15 years agoThe service classes should know their upnp classes themselves.
Zeeshan Ali (Khattak) [Tue, 25 Nov 2008 14:43:03 +0000 (14:43 +0000)]
The service classes should know their upnp classes themselves.

svn path=/trunk/; revision=291

16 years agoRemove the now unneeded methods from TrackerContainer.
Zeeshan Ali (Khattak) [Tue, 18 Nov 2008 21:00:18 +0000 (21:00 +0000)]
Remove the now unneeded methods from TrackerContainer.

Had forgotten to remove add_music_item_from_db and seconds_to_iso8601 methods.

svn path=/trunk/; revision=290

16 years agoVala syntax update:
Zeeshan Ali (Khattak) [Tue, 18 Nov 2008 21:00:10 +0000 (21:00 +0000)]
Vala syntax update:

- structs need to be initialized now.
- struct fields don't need to be initialized to null anymore.
- initialize all variables before using them.

svn path=/trunk/; revision=289

16 years agoOverride GLib.Object.constructed() instead of using 'construct' keyword.
Zeeshan Ali (Khattak) [Tue, 11 Nov 2008 18:24:44 +0000 (18:24 +0000)]
Override GLib.Object.constructed() instead of using 'construct' keyword.

svn path=/trunk/; revision=288

16 years agoAvoid using 'construct' now that we have flexible construction methods.
Zeeshan Ali (Khattak) [Tue, 11 Nov 2008 18:10:05 +0000 (18:10 +0000)]
Avoid using 'construct' now that we have flexible construction methods.

svn path=/trunk/; revision=287

16 years agoDon't keep GUPnP context and D-Bus proxy objects in TrackerItem.
Zeeshan Ali (Khattak) [Tue, 11 Nov 2008 17:42:02 +0000 (17:42 +0000)]
Don't keep GUPnP context and D-Bus proxy objects in TrackerItem.

It can access these from the parent container object.

svn path=/trunk/; revision=286

16 years agoDon't hide GUPnP context and D-Bus proxy objects.
Zeeshan Ali (Khattak) [Tue, 11 Nov 2008 17:42:00 +0000 (17:42 +0000)]
Don't hide GUPnP context and D-Bus proxy objects.

svn path=/trunk/; revision=285

16 years agoRename field/variable "tracker_category" to "category".
Zeeshan Ali (Khattak) [Tue, 11 Nov 2008 17:41:58 +0000 (17:41 +0000)]
Rename field/variable "tracker_category" to "category".

svn path=/trunk/; revision=284

16 years agoRefactor: Put common Tracker item code into a separate abstract class.
Zeeshan Ali (Khattak) [Tue, 11 Nov 2008 17:41:56 +0000 (17:41 +0000)]
Refactor: Put common Tracker item code into a separate abstract class.

All Tracker item classes now inherit from this class.

svn path=/trunk/; revision=283

16 years agoRefactor: Separate classes for each item type.
Zeeshan Ali (Khattak) [Tue, 11 Nov 2008 17:41:54 +0000 (17:41 +0000)]
Refactor: Separate classes for each item type.

These tracker-specific item classes are responsible for fetching their metadata
and serializing it.

svn path=/trunk/; revision=282

16 years agoDeclare private fields as private.
Zeeshan Ali (Khattak) [Tue, 11 Nov 2008 17:41:53 +0000 (17:41 +0000)]
Declare private fields as private.

svn path=/trunk/; revision=281

16 years agoRefactor: Add TrackerContainer.get_file_category().
Zeeshan Ali (Khattak) [Tue, 11 Nov 2008 17:41:51 +0000 (17:41 +0000)]
Refactor: Add TrackerContainer.get_file_category().

Now MediaTracker doesn't talk to tracker directly.

svn path=/trunk/; revision=280

16 years agoMore standard-compliant SCPDs.
Zeeshan Ali (Khattak) [Tue, 11 Nov 2008 17:41:49 +0000 (17:41 +0000)]
More standard-compliant SCPDs.

Based on a patch by Ross Burton <ross@opennedhand.com>.

svn path=/trunk/; revision=279

16 years agoCreate root container after it's children.
Zeeshan Ali (Khattak) [Tue, 11 Nov 2008 17:41:47 +0000 (17:41 +0000)]
Create root container after it's children.

This is to pass the correct number of children to the constructor of the
root container.

svn path=/trunk/; revision=278

16 years agoRefactor: A more intelligent TrackerContainer.
Zeeshan Ali (Khattak) [Mon, 10 Nov 2008 21:33:21 +0000 (21:33 +0000)]
Refactor: A more intelligent TrackerContainer.

As a result, MediaTracker class is now very slim.

svn path=/trunk/; revision=277

16 years agoReplace my non-working "@gstreamer.net" email with "@gnome.org" one.
Zeeshan Ali (Khattak) [Mon, 10 Nov 2008 21:33:19 +0000 (21:33 +0000)]
Replace my non-working "@gstreamer.net" email with "@gnome.org" one.

svn path=/trunk/; revision=276

16 years agoFile.query_info () doesn't return a weak anymore.
Zeeshan Ali (Khattak) [Mon, 10 Nov 2008 21:33:18 +0000 (21:33 +0000)]
File.query_info () doesn't return a weak anymore.

svn path=/trunk/; revision=275

16 years agoAdd MAINTAINERS file.
Zeeshan Ali (Khattak) [Sun, 26 Oct 2008 21:34:24 +0000 (21:34 +0000)]
Add MAINTAINERS file.

svn path=/trunk/; revision=274

16 years agoProject renamed to "Rygel" to be moved to GNOME SVN.
Zeeshan Ali (Khattak) [Sun, 26 Oct 2008 21:34:16 +0000 (21:34 +0000)]
Project renamed to "Rygel" to be moved to GNOME SVN.

svn path=/trunk/; revision=273

16 years agoRefactor: Put plugin stuff into a separate module.
Zeeshan Ali (Khattak) [Wed, 10 Sep 2008 21:21:35 +0000 (21:21 +0000)]
Refactor: Put plugin stuff into a separate module.

svn path=/trunk/; revision=272

16 years agoRefactor: Put TrackerContainer class into a separate module.
Zeeshan Ali (Khattak) [Wed, 10 Sep 2008 21:21:25 +0000 (21:21 +0000)]
Refactor: Put TrackerContainer class into a separate module.

svn path=/trunk/; revision=271

16 years agoRename Tracker.Container to GUPnP.TrackerContainer.
Zeeshan Ali (Khattak) [Wed, 10 Sep 2008 21:21:14 +0000 (21:21 +0000)]
Rename Tracker.Container to GUPnP.TrackerContainer.

svn path=/trunk/; revision=270

16 years agoCreate the root container in the contructor of the media providers.
Zeeshan Ali (Khattak) [Wed, 10 Sep 2008 21:21:05 +0000 (21:21 +0000)]
Create the root container in the contructor of the media providers.

svn path=/trunk/; revision=269

16 years agoRemove the redundant 'title' field from the Tracker.Container class.
Zeeshan Ali (Khattak) [Fri, 29 Aug 2008 21:10:53 +0000 (21:10 +0000)]
Remove the redundant 'title' field from the Tracker.Container class.

svn path=/trunk/; revision=268

16 years agoStart utilizing the MediaContainer class in MediaTracker.
Zeeshan Ali (Khattak) [Fri, 29 Aug 2008 21:10:46 +0000 (21:10 +0000)]
Start utilizing the MediaContainer class in MediaTracker.

svn path=/trunk/; revision=267

16 years agoAdd MediaItem to vapi file and build.
Zeeshan Ali (Khattak) [Fri, 29 Aug 2008 21:10:38 +0000 (21:10 +0000)]
Add MediaItem to vapi file and build.

svn path=/trunk/; revision=266

16 years agoIntroduce a class for media items.
Zeeshan Ali (Khattak) [Fri, 29 Aug 2008 21:10:31 +0000 (21:10 +0000)]
Introduce a class for media items.

svn path=/trunk/; revision=265

16 years agoStart utilizing the MediaContainer class in media providers.
Zeeshan Ali (Khattak) [Fri, 29 Aug 2008 21:10:23 +0000 (21:10 +0000)]
Start utilizing the MediaContainer class in media providers.

svn path=/trunk/; revision=264

16 years agoAdd MediaObject and MediaContainer to vapi file and build.
Zeeshan Ali (Khattak) [Fri, 29 Aug 2008 21:10:14 +0000 (21:10 +0000)]
Add MediaObject and MediaContainer to vapi file and build.

svn path=/trunk/; revision=263

16 years agoIntroduce a class for media containers.
Zeeshan Ali (Khattak) [Fri, 29 Aug 2008 21:10:07 +0000 (21:10 +0000)]
Introduce a class for media containers.

svn path=/trunk/; revision=262

16 years agoIntroduce a new abstract class for media objects.
Zeeshan Ali (Khattak) [Fri, 29 Aug 2008 21:09:59 +0000 (21:09 +0000)]
Introduce a new abstract class for media objects.

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

svn path=/trunk/; revision=261

16 years agoAdd the root_id prefix to container's id at object creation time.
Zeeshan Ali (Khattak) [Fri, 29 Aug 2008 21:09:52 +0000 (21:09 +0000)]
Add the root_id prefix to container's id at object creation time.

svn path=/trunk/; revision=260

16 years agoKeep the parent_id of the container in the Tracker.Container class.
Zeeshan Ali (Khattak) [Fri, 29 Aug 2008 21:09:44 +0000 (21:09 +0000)]
Keep the parent_id of the container in the Tracker.Container class.

svn path=/trunk/; revision=259

16 years agoRemove MediaProvider.get_root_children_count().
Zeeshan Ali (Khattak) [Fri, 29 Aug 2008 21:09:36 +0000 (21:09 +0000)]
Remove MediaProvider.get_root_children_count().

Remove MediaProvider.get_root_children_count() and allow each provider to
add metadata of it's root container to DIDL instead.

svn path=/trunk/; revision=258

16 years agoRename MediaManger's get_root_container_metadata() to add_root_container_metadata().
Zeeshan Ali (Khattak) [Fri, 29 Aug 2008 21:09:27 +0000 (21:09 +0000)]
Rename MediaManger's get_root_container_metadata() to add_root_container_metadata().

svn path=/trunk/; revision=257

16 years agoPut the code and message from exception caught on the action error.
Zeeshan Ali (Khattak) [Fri, 29 Aug 2008 21:09:20 +0000 (21:09 +0000)]
Put the code and message from exception caught on the action error.

svn path=/trunk/; revision=256

16 years agoAssign a specific code (701) to "No such object" error.
Zeeshan Ali (Khattak) [Fri, 29 Aug 2008 21:09:13 +0000 (21:09 +0000)]
Assign a specific code (701) to "No such object" error.

svn path=/trunk/; revision=255

16 years agoRename MediaManager's browse_root_container() to add_root_children().
Zeeshan Ali (Khattak) [Fri, 29 Aug 2008 21:09:04 +0000 (21:09 +0000)]
Rename MediaManager's browse_root_container() to add_root_children().

svn path=/trunk/; revision=254

16 years agoRename MediaProvider's browse() to add_children_metadata().
Zeeshan Ali (Khattak) [Fri, 29 Aug 2008 21:08:56 +0000 (21:08 +0000)]
Rename MediaProvider's browse() to add_children_metadata().

svn path=/trunk/; revision=253

16 years agoRename MediaProvider's get_metadata() to add_metadata().
Zeeshan Ali (Khattak) [Fri, 29 Aug 2008 21:08:46 +0000 (21:08 +0000)]
Rename MediaProvider's get_metadata() to add_metadata().

svn path=/trunk/; revision=252

16 years agoMediaProviders now get a DIDLiteWriter to add metadata to and no longer return didl...
Zeeshan Ali (Khattak) [Fri, 29 Aug 2008 21:08:37 +0000 (21:08 +0000)]
MediaProviders now get a DIDLiteWriter to add metadata to and no longer return didl strings.

svn path=/trunk/; revision=251

16 years agoRemove an unneeded try&catch block.
Zeeshan Ali (Khattak) [Fri, 29 Aug 2008 21:08:26 +0000 (21:08 +0000)]
Remove an unneeded try&catch block.

svn path=/trunk/; revision=250

16 years agoMediaProvider class now requires gupnp-av package.
Zeeshan Ali (Khattak) [Fri, 29 Aug 2008 21:08:20 +0000 (21:08 +0000)]
MediaProvider class now requires gupnp-av package.

svn path=/trunk/; revision=249