Zeeshan Ali (Khattak) [Sat, 14 Feb 2009 15:24:53 +0000 (15:24 +0000)]
Container classes fetch the metadata.
svn path=/trunk/; revision=574
Zeeshan Ali (Khattak) [Sat, 14 Feb 2009 15:24:37 +0000 (15:24 +0000)]
fetch_metadata doesn't need to be implemented by every item class.
svn path=/trunk/; revision=573
Zeeshan Ali (Khattak) [Sat, 14 Feb 2009 15:24:24 +0000 (15:24 +0000)]
Each container class implements fetch_item_by_path().
svn path=/trunk/; revision=572
Zeeshan Ali (Khattak) [Sat, 14 Feb 2009 15:24:04 +0000 (15:24 +0000)]
Rename find_item* to fetch_item*.
svn path=/trunk/; revision=571
Zeeshan Ali (Khattak) [Sat, 14 Feb 2009 15:23:49 +0000 (15:23 +0000)]
Item constructors take an optional metadata argument.
This is to avoid each item having to fetch it's metadata from Tracker on
creation if the creator of the item already has it's metadata at hand.
svn path=/trunk/; revision=570
Zeeshan Ali (Khattak) [Sat, 14 Feb 2009 15:23:31 +0000 (15:23 +0000)]
Refactor: Separate function for retreiving the metadata keys.
svn path=/trunk/; revision=569
Zeeshan Ali (Khattak) [Sat, 14 Feb 2009 15:23:16 +0000 (15:23 +0000)]
Refactor: put initialization from metadata into a separate func.
svn path=/trunk/; revision=568
Zeeshan Ali (Khattak) [Sat, 14 Feb 2009 15:23:02 +0000 (15:23 +0000)]
Use Filename.to_string ().
Bastian should be happier now. :)
svn path=/trunk/; revision=567
Zeeshan Ali (Khattak) [Sat, 14 Feb 2009 15:22:43 +0000 (15:22 +0000)]
Turn find_item*() methods private.
svn path=/trunk/; revision=566
Zeeshan Ali (Khattak) [Sat, 14 Feb 2009 15:22:27 +0000 (15:22 +0000)]
Separate classes for all categories.
svn path=/trunk/; revision=565
Zeeshan Ali (Khattak) [Sat, 14 Feb 2009 15:22:11 +0000 (15:22 +0000)]
No need to keep DBus proxy objects 'static'.
svn path=/trunk/; revision=564
Zeeshan Ali (Khattak) [Sat, 14 Feb 2009 15:21:45 +0000 (15:21 +0000)]
Prefix items' IDs with parent container's ID.
This is to recognise the parent of the item without having to ask anything
from Tracker over DBus.
svn path=/trunk/; revision=563
Zeeshan Ali (Khattak) [Mon, 9 Feb 2009 22:29:35 +0000 (22:29 +0000)]
Don't continue handling the browse if parsing of arguments fail.
svn path=/trunk/; revision=562
Zeeshan Ali (Khattak) [Mon, 9 Feb 2009 22:29:30 +0000 (22:29 +0000)]
Utilize generics in AsyncResult so it can hold any type of data.
svn path=/trunk/; revision=561
Zeeshan Ali (Khattak) [Mon, 9 Feb 2009 22:29:25 +0000 (22:29 +0000)]
Make MediaContainer.get_children async.
A GIO-based API divided in two methods get_children and
get_children_finish.
svn path=/trunk/; revision=560
Zeeshan Ali (Khattak) [Mon, 9 Feb 2009 22:29:20 +0000 (22:29 +0000)]
More utilization of state-machine in Browse.
These changes are particularly for ease of move to async
MediaContainer.get_children method when it's there.
svn path=/trunk/; revision=559
Zeeshan Ali (Khattak) [Mon, 9 Feb 2009 22:29:15 +0000 (22:29 +0000)]
Correct the doc comment indentation.
svn path=/trunk/; revision=558
Zeeshan Ali (Khattak) [Mon, 9 Feb 2009 22:29:10 +0000 (22:29 +0000)]
Put SimpleAsyncResult in separate file.
svn path=/trunk/; revision=557
Zeeshan Ali (Khattak) [Mon, 9 Feb 2009 22:29:05 +0000 (22:29 +0000)]
Turn MediaContainer.find_object() async.
A GIO-based API divided in two methods find_object and find_object_finish.
svn path=/trunk/; revision=556
Zeeshan Ali (Khattak) [Mon, 9 Feb 2009 22:29:00 +0000 (22:29 +0000)]
Provide a simple implementation of AsyncResult: SimpleAsyncResult.
svn path=/trunk/; revision=555
Zeeshan Ali (Khattak) [Mon, 9 Feb 2009 22:28:55 +0000 (22:28 +0000)]
Hook to end of response before starting it.
svn path=/trunk/; revision=554
Zeeshan Ali (Khattak) [Mon, 9 Feb 2009 22:28:51 +0000 (22:28 +0000)]
HTTPRequest pauses the message rather than HTTPResponse.
svn path=/trunk/; revision=553
Zeeshan Ali (Khattak) [Mon, 9 Feb 2009 22:28:47 +0000 (22:28 +0000)]
MediaObject now derives from GLib.Object.
svn path=/trunk/; revision=552
Zeeshan Ali (Khattak) [Mon, 9 Feb 2009 22:28:42 +0000 (22:28 +0000)]
Some refactoring to prepare fetch_requested_item for async calls.
svn path=/trunk/; revision=551
Zeeshan Ali (Khattak) [Mon, 9 Feb 2009 22:28:38 +0000 (22:28 +0000)]
Make sure we really found the object.
svn path=/trunk/; revision=550
Zeeshan Ali (Khattak) [Mon, 9 Feb 2009 22:28:33 +0000 (22:28 +0000)]
Some refactoring to prepare fetch_media_object for async calls.
svn path=/trunk/; revision=549
Zeeshan Ali (Khattak) [Mon, 9 Feb 2009 22:28:28 +0000 (22:28 +0000)]
Mark privates fields as private explicitly.
svn path=/trunk/; revision=548
Zeeshan Ali (Khattak) [Mon, 9 Feb 2009 22:28:24 +0000 (22:28 +0000)]
Rename 'metadata' boolean field to 'fetch_metadata'.
svn path=/trunk/; revision=547
Zeeshan Ali (Khattak) [Mon, 9 Feb 2009 22:28:19 +0000 (22:28 +0000)]
'metadata' boolean should be maintained as part of Browse's state.
svn path=/trunk/; revision=546
Zeeshan Ali (Khattak) [Mon, 9 Feb 2009 22:28:14 +0000 (22:28 +0000)]
Rename find_object_by_id to find_object.
svn path=/trunk/; revision=545
Zeeshan Ali (Khattak) [Mon, 9 Feb 2009 22:28:08 +0000 (22:28 +0000)]
ContentDirectory doesn't need to implement find_object_by_id anymore.
svn path=/trunk/; revision=544
Zeeshan Ali (Khattak) [Mon, 9 Feb 2009 22:28:03 +0000 (22:28 +0000)]
Use root container directly whenever possible.
svn path=/trunk/; revision=543
Zeeshan Ali (Khattak) [Mon, 9 Feb 2009 22:27:59 +0000 (22:27 +0000)]
Create root container before HTTP server.
svn path=/trunk/; revision=542
Zeeshan Ali (Khattak) [Mon, 9 Feb 2009 22:27:54 +0000 (22:27 +0000)]
Put HTTP request handling into a separate class: HTTPRequest.
This will allow us to make async calls during the handling of HTTP
requests.
svn path=/trunk/; revision=541
Zeeshan Ali (Khattak) [Mon, 9 Feb 2009 22:27:49 +0000 (22:27 +0000)]
SeekableResponse constructor doesn't need to throw Error.
svn path=/trunk/; revision=540
Zeeshan Ali (Khattak) [Mon, 9 Feb 2009 22:27:44 +0000 (22:27 +0000)]
MediaItem don't need http_server field anymore.
This also simplifies plugins's code since they don't need to pass around
the http_server ref everywhere anymore.
svn path=/trunk/; revision=539
Zeeshan Ali (Khattak) [Mon, 9 Feb 2009 22:27:38 +0000 (22:27 +0000)]
Separate class for serializing the media objects.
svn path=/trunk/; revision=538
Zeeshan Ali (Khattak) [Mon, 9 Feb 2009 22:27:32 +0000 (22:27 +0000)]
Live items provide gst source element creation method.
HTTPServer doesn't need to emit any signals anymore as it can now
just ask the MediaItem to create the gst source element for it.
svn path=/trunk/; revision=537
Zeeshan Ali (Khattak) [Mon, 9 Feb 2009 22:27:26 +0000 (22:27 +0000)]
Don't forget to serialize the MediaObject.
svn path=/trunk/; revision=536
Zeeshan Ali (Khattak) [Mon, 9 Feb 2009 22:27:21 +0000 (22:27 +0000)]
Get rid of HTTPServer.item_requested signal.
Instead of emitting a signal, ask ContentDir to find the item for us.
svn path=/trunk/; revision=535
Zeeshan Ali (Khattak) [Mon, 9 Feb 2009 22:27:15 +0000 (22:27 +0000)]
HTTPServer keeps a weak (for now) ref to ContentDir.
svn path=/trunk/; revision=534
Zeeshan Ali (Khattak) [Mon, 9 Feb 2009 22:27:09 +0000 (22:27 +0000)]
Refactor and clean-up of Browse class.
svn path=/trunk/; revision=533
Zeeshan Ali (Khattak) [Mon, 9 Feb 2009 22:27:03 +0000 (22:27 +0000)]
A bit more docs on new Browse class.
svn path=/trunk/; revision=532
Zeeshan Ali (Khattak) [Mon, 9 Feb 2009 22:26:56 +0000 (22:26 +0000)]
Move 'Browse' handling to a separate class.
svn path=/trunk/; revision=531
Zeeshan Ali (Khattak) [Fri, 30 Jan 2009 10:09:12 +0000 (10:09 +0000)]
GUPnPService::action_invoked.action is now owned by the handler.
svn path=/trunk/; revision=530
Zeeshan Ali (Khattak) [Thu, 29 Jan 2009 12:55:12 +0000 (12:55 +0000)]
MediaContainer keeps it's update_id.
This also implies that system_update_id is now the same as update_id of
the root contianer in the ContentDirectory.
svn path=/trunk/; revision=529
Zeeshan Ali (Khattak) [Thu, 29 Jan 2009 00:02:14 +0000 (00:02 +0000)]
Remove an unneeded null check.
svn path=/trunk/; revision=528
Zeeshan Ali (Khattak) [Thu, 29 Jan 2009 00:02:09 +0000 (00:02 +0000)]
Refactor: remove now unneeded methods of ContentDir.
svn path=/trunk/; revision=527
Zeeshan Ali (Khattak) [Thu, 29 Jan 2009 00:02:04 +0000 (00:02 +0000)]
Minor beautification change.
svn path=/trunk/; revision=526
Zeeshan Ali (Khattak) [Thu, 29 Jan 2009 00:01:59 +0000 (00:01 +0000)]
Only ContentDirectoryError uses the HTTP codes.
svn path=/trunk/; revision=525
Zeeshan Ali (Khattak) [Thu, 29 Jan 2009 00:01:53 +0000 (00:01 +0000)]
MediaContainer is now an abstract class.
svn path=/trunk/; revision=524
Zeeshan Ali (Khattak) [Wed, 28 Jan 2009 12:35:08 +0000 (12:35 +0000)]
Move the "max_count == 0" check into ContentDirectory.
svn path=/trunk/; revision=523
Zeeshan Ali (Khattak) [Wed, 28 Jan 2009 12:35:04 +0000 (12:35 +0000)]
Remove child_count param of Container.get_children().
The user of this API already have access to the container and therefore
it's child_count field.
svn path=/trunk/; revision=522
Zeeshan Ali (Khattak) [Wed, 28 Jan 2009 12:35:00 +0000 (12:35 +0000)]
Containers should initialize child_count at creation time.
svn path=/trunk/; revision=521
Zeeshan Ali (Khattak) [Wed, 28 Jan 2009 12:34:56 +0000 (12:34 +0000)]
MediaContainer.get_children is now nullable.
svn path=/trunk/; revision=520
Zeeshan Ali (Khattak) [Wed, 28 Jan 2009 12:34:52 +0000 (12:34 +0000)]
ContentDir.get_children () returns List<MediaObject>.
svn path=/trunk/; revision=519
Zeeshan Ali (Khattak) [Wed, 28 Jan 2009 12:34:48 +0000 (12:34 +0000)]
MediaContainer.find_item_by_id is now nullable.
This method should just return null if object is not found.
svn path=/trunk/; revision=518
Zeeshan Ali (Khattak) [Wed, 28 Jan 2009 12:34:44 +0000 (12:34 +0000)]
Prefix own calls with 'this' for clarity.
svn path=/trunk/; revision=517
Zeeshan Ali (Khattak) [Wed, 28 Jan 2009 12:34:40 +0000 (12:34 +0000)]
More docs for MediaContainer.
svn path=/trunk/; revision=516
Zeeshan Ali (Khattak) [Wed, 28 Jan 2009 12:34:36 +0000 (12:34 +0000)]
Update ContentDir docs.
svn path=/trunk/; revision=515
Zeeshan Ali (Khattak) [Wed, 28 Jan 2009 12:34:32 +0000 (12:34 +0000)]
No need for all methods in ContentDir to be protected virtual.
svn path=/trunk/; revision=514
Zeeshan Ali (Khattak) [Wed, 28 Jan 2009 12:34:28 +0000 (12:34 +0000)]
Move most of ContentDirectory implementation into the base class.
The only method that derived classes need to implement now is
'create_root_container'.
svn path=/trunk/; revision=513
Zeeshan Ali (Khattak) [Wed, 28 Jan 2009 12:34:24 +0000 (12:34 +0000)]
Separate class for Test root container.
Most implementation is now in this class rather than TestContentDir.
svn path=/trunk/; revision=512
Zeeshan Ali (Khattak) [Wed, 28 Jan 2009 12:34:21 +0000 (12:34 +0000)]
Separate class for Tracker's root container.
Most implementation is now in this class rather than MediaTracker.
svn path=/trunk/; revision=511
Zeeshan Ali (Khattak) [Wed, 28 Jan 2009 12:34:17 +0000 (12:34 +0000)]
Get rid of unused search parser object.
svn path=/trunk/; revision=510
Zeeshan Ali (Khattak) [Wed, 28 Jan 2009 12:34:13 +0000 (12:34 +0000)]
Separate class for DVB's root container.
Most implementation is now in this class rather than DVBContentDirectory.
svn path=/trunk/; revision=509
Zeeshan Ali (Khattak) [Wed, 28 Jan 2009 12:34:09 +0000 (12:34 +0000)]
Add get_children & find_object_by_id methods to MediaContainer.
svn path=/trunk/; revision=508
Zeeshan Ali (Khattak) [Wed, 28 Jan 2009 12:34:05 +0000 (12:34 +0000)]
Create the HTTPServer before Root container.
svn path=/trunk/; revision=507
Zeeshan Ali (Khattak) [Wed, 28 Jan 2009 12:34:01 +0000 (12:34 +0000)]
Root container is now created by ContentDir implementations.
svn path=/trunk/; revision=506
Zeeshan Ali (Khattak) [Wed, 28 Jan 2009 12:33:57 +0000 (12:33 +0000)]
MediaContainer derivates must implement find_object_by_id method.
svn path=/trunk/; revision=505
Zeeshan Ali (Khattak) [Wed, 28 Jan 2009 12:33:53 +0000 (12:33 +0000)]
MediaContainer derivates must implement get_children method.
svn path=/trunk/; revision=504
Zeeshan Ali (Khattak) [Wed, 28 Jan 2009 12:33:49 +0000 (12:33 +0000)]
Fix a typo in last release announcement.
svn path=/trunk/; revision=503
Zeeshan Ali (Khattak) [Wed, 28 Jan 2009 12:33:45 +0000 (12:33 +0000)]
No need to provide any equality function to ArrayList.
svn path=/trunk/; revision=502
Zeeshan Ali (Khattak) [Wed, 28 Jan 2009 12:33:41 +0000 (12:33 +0000)]
DVBChannelGroup:get_channels does the slicing.
DVBChannelGroup:get_channels does the slicing rather than DVBContentDir.
svn path=/trunk/; revision=501
Zeeshan Ali (Khattak) [Wed, 28 Jan 2009 12:33:37 +0000 (12:33 +0000)]
DVBChannelGroup keeps an ArrayList of channels.
svn path=/trunk/; revision=500
Zeeshan Ali (Khattak) [Wed, 28 Jan 2009 12:33:32 +0000 (12:33 +0000)]
Update ContentDirectory docs.
svn path=/trunk/; revision=499
Zeeshan Ali (Khattak) [Wed, 28 Jan 2009 12:33:28 +0000 (12:33 +0000)]
ContentDirectory.get_*_children() returns a Gee.List.
svn path=/trunk/; revision=498
Zeeshan Ali (Khattak) [Wed, 28 Jan 2009 12:33:24 +0000 (12:33 +0000)]
Always slice the browse results.
svn path=/trunk/; revision=497
Zeeshan Ali (Khattak) [Wed, 28 Jan 2009 12:33:20 +0000 (12:33 +0000)]
Drop slice_object_list() in favor of Gee.List.slice().
svn path=/trunk/; revision=496
Zeeshan Ali (Khattak) [Wed, 28 Jan 2009 12:33:16 +0000 (12:33 +0000)]
Remove now unneeded TrackerContainer.add_item_from_db.
svn path=/trunk/; revision=495
Zeeshan Ali (Khattak) [Wed, 28 Jan 2009 12:33:12 +0000 (12:33 +0000)]
Save ContentDir implementations from handling HTTPServer.item_requested.
svn path=/trunk/; revision=494
Zeeshan Ali (Khattak) [Wed, 28 Jan 2009 12:33:08 +0000 (12:33 +0000)]
HTTPServer doesn't print warning when item is not found.
svn path=/trunk/; revision=493
Zeeshan Ali (Khattak) [Wed, 28 Jan 2009 12:33:04 +0000 (12:33 +0000)]
Free ContentDirectory implementations from DIDL-Lite handling.
svn path=/trunk/; revision=492
Zeeshan Ali (Khattak) [Wed, 28 Jan 2009 12:32:59 +0000 (12:32 +0000)]
Separate out search and serialization in Test plugin.
svn path=/trunk/; revision=491
Zeeshan Ali (Khattak) [Wed, 28 Jan 2009 12:32:55 +0000 (12:32 +0000)]
Separate out search and serialization in DVB plugin.
svn path=/trunk/; revision=490
Zeeshan Ali (Khattak) [Wed, 28 Jan 2009 12:32:51 +0000 (12:32 +0000)]
Refactor: Put slicing of ArrayList into a separate method.
This should really be moved to ArrayList implementation.
svn path=/trunk/; revision=489
Zeeshan Ali (Khattak) [Wed, 28 Jan 2009 12:32:47 +0000 (12:32 +0000)]
Remove some forgotten redundant code.
svn path=/trunk/; revision=488
Zeeshan Ali (Khattak) [Wed, 28 Jan 2009 12:32:43 +0000 (12:32 +0000)]
Separate out search and serialization of root container in MediaTracker.
svn path=/trunk/; revision=487
Zeeshan Ali (Khattak) [Wed, 28 Jan 2009 12:32:38 +0000 (12:32 +0000)]
Separate out search and serialization in Tracker plugin.
svn path=/trunk/; revision=486
Zeeshan Ali (Khattak) [Wed, 28 Jan 2009 12:32:34 +0000 (12:32 +0000)]
MediaTracker serializes the children rather than TrackerContainer.
svn path=/trunk/; revision=485
Zeeshan Ali (Khattak) [Wed, 28 Jan 2009 12:32:29 +0000 (12:32 +0000)]
get_children_from_db returns children objects rather than paths.
svn path=/trunk/; revision=484
Zeeshan Ali (Khattak) [Wed, 28 Jan 2009 12:32:23 +0000 (12:32 +0000)]
Minor clean-up/move.
svn path=/trunk/; revision=483
Zeeshan Ali (Khattak) [Wed, 28 Jan 2009 12:32:17 +0000 (12:32 +0000)]
Duplicate common DIDLLiteResource fields in MediaItem.
This is to save typical plugin developer from the knowlege of
DIDLLiteResource. Next we need to make sure he doesn't need to know about
DIDL-Lite at all.
svn path=/trunk/; revision=482
Zeeshan Ali (Khattak) [Wed, 28 Jan 2009 12:32:10 +0000 (12:32 +0000)]
Decide priority based on requested transfer mode.
svn path=/trunk/; revision=481
Zeeshan Ali (Khattak) [Tue, 27 Jan 2009 22:38:34 +0000 (22:38 +0000)]
Revert "Merge branch 'easy-plugin'."
This reverts commit
88acdc44b8a8d97b39427509b3e18f71bce0340a.
Please ignore this and the previous commit. They resulted out of the
combination of my ignorance and git-svn greatness.
svn path=/trunk/; revision=480
Zeeshan Ali (Khattak) [Tue, 27 Jan 2009 17:22:51 +0000 (17:22 +0000)]
Merge branch 'easy-plugin'.
Conflicts:
NEWS
src/plugins/dvb/rygel-dvb-content-dir.vala
src/plugins/test/rygel-test-content-dir.vala
src/plugins/tracker/rygel-media-tracker.vala
src/rygel/rygel-content-directory.vala
src/rygel/rygel-seekable-response.vala
svn path=/trunk/; revision=479
Zeeshan Ali (Khattak) [Sat, 24 Jan 2009 17:20:24 +0000 (17:20 +0000)]
Explicitly build/link against libuuid.
Fixes the build on fedora 10 (bug#568987).
svn path=/trunk/; revision=478
Zeeshan Ali (Khattak) [Tue, 20 Jan 2009 11:21:42 +0000 (11:21 +0000)]
Post release version bump.
svn path=/trunk/; revision=477
Zeeshan Ali (Khattak) [Tue, 20 Jan 2009 11:21:38 +0000 (11:21 +0000)]
Switch back to Tracker trunk API.
This reverts commit
a450ef33135fff17a4701fee955dc6e371b74347.
svn path=/trunk/; revision=476
Zeeshan Ali (Khattak) [Mon, 19 Jan 2009 21:53:43 +0000 (21:53 +0000)]
Minor change in the NEWS file.
svn path=/trunk/; revision=473