[rygel] tracker: Handle item creation error
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [rygel] tracker: Handle item creation error
- Date: Fri, 16 Oct 2009 16:33:22 +0000 (UTC)
commit d64a807079e1ba8aea3b14f5737ee9c9edbed0a1
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Sun Oct 4 17:18:42 2009 +0300
tracker: Handle item creation error
src/plugins/tracker/rygel-tracker-image-item.vala | 3 ++-
src/plugins/tracker/rygel-tracker-item.vala | 3 ++-
src/plugins/tracker/rygel-tracker-music-item.vala | 3 ++-
.../tracker/rygel-tracker-search-container.vala | 3 ++-
src/plugins/tracker/rygel-tracker-video-item.vala | 3 ++-
5 files changed, 10 insertions(+), 5 deletions(-)
---
diff --git a/src/plugins/tracker/rygel-tracker-image-item.vala b/src/plugins/tracker/rygel-tracker-image-item.vala
index 361ca63..3abaf55 100644
--- a/src/plugins/tracker/rygel-tracker-image-item.vala
+++ b/src/plugins/tracker/rygel-tracker-image-item.vala
@@ -33,7 +33,8 @@ public class Rygel.TrackerImageItem : Rygel.TrackerItem {
public TrackerImageItem (string id,
string path,
TrackerSearchContainer parent,
- string[] metadata) {
+ string[] metadata)
+ throws GLib.Error {
base (id, path, parent, MediaItem.IMAGE_CLASS, metadata);
if (metadata[Metadata.IMAGE_TITLE] != "")
diff --git a/src/plugins/tracker/rygel-tracker-item.vala b/src/plugins/tracker/rygel-tracker-item.vala
index 7abd1c8..8a76e6f 100644
--- a/src/plugins/tracker/rygel-tracker-item.vala
+++ b/src/plugins/tracker/rygel-tracker-item.vala
@@ -67,7 +67,8 @@ public abstract class Rygel.TrackerItem : Rygel.MediaItem {
string path,
TrackerSearchContainer parent,
string upnp_class,
- string[] metadata) {
+ string[] metadata)
+ throws GLib.Error {
base (id, parent, "", upnp_class);
this.path = path;
diff --git a/src/plugins/tracker/rygel-tracker-music-item.vala b/src/plugins/tracker/rygel-tracker-music-item.vala
index 62ff7a5..d7903ad 100644
--- a/src/plugins/tracker/rygel-tracker-music-item.vala
+++ b/src/plugins/tracker/rygel-tracker-music-item.vala
@@ -33,7 +33,8 @@ public class Rygel.TrackerMusicItem : Rygel.TrackerItem {
public TrackerMusicItem (string id,
string path,
TrackerSearchContainer parent,
- string[] metadata) {
+ string[] metadata)
+ throws GLib.Error {
base (id, path, parent, MediaItem.MUSIC_CLASS, metadata);
if (metadata[Metadata.AUDIO_TITLE] != "")
diff --git a/src/plugins/tracker/rygel-tracker-search-container.vala b/src/plugins/tracker/rygel-tracker-search-container.vala
index c11e4cd..0e04890 100644
--- a/src/plugins/tracker/rygel-tracker-search-container.vala
+++ b/src/plugins/tracker/rygel-tracker-search-container.vala
@@ -160,7 +160,8 @@ public class Rygel.TrackerSearchContainer : Rygel.MediaContainer {
public MediaItem? create_item (string service,
string path,
- string[] metadata) {
+ string[] metadata)
+ throws GLib.Error {
var id = service + ":" + this.id + ":" + path;
if (service == TrackerVideoItem.SERVICE) {
diff --git a/src/plugins/tracker/rygel-tracker-video-item.vala b/src/plugins/tracker/rygel-tracker-video-item.vala
index 8000bfd..d87ec08 100644
--- a/src/plugins/tracker/rygel-tracker-video-item.vala
+++ b/src/plugins/tracker/rygel-tracker-video-item.vala
@@ -33,7 +33,8 @@ public class Rygel.TrackerVideoItem : Rygel.TrackerItem {
public TrackerVideoItem (string id,
string path,
TrackerSearchContainer parent,
- string[] metadata) {
+ string[] metadata)
+ throws GLib.Error {
base (id, path, parent, MediaItem.VIDEO_CLASS, metadata);
if (metadata[Metadata.VIDEO_TITLE] != "")
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]