[gnome-photos/wip/foo: 14/20] base-item: Add getters for identifier and resource_urn



commit 200a9a601e492ed8f03c9bcb9b348881710f8b6b
Author: Debarshi Ray <debarshir gnome org>
Date:   Sun Mar 31 04:16:12 2013 +0200

    base-item: Add getters for identifier and resource_urn

 src/photos-base-item.c |   14 ++++++++++++++
 src/photos-base-item.h |    6 +++++-
 2 files changed, 19 insertions(+), 1 deletions(-)
---
diff --git a/src/photos-base-item.c b/src/photos-base-item.c
index 57d09e7..381702a 100644
--- a/src/photos-base-item.c
+++ b/src/photos-base-item.c
@@ -821,6 +821,13 @@ photos_base_item_get_id (PhotosBaseItem *self)
 
 
 const gchar *
+photos_base_item_get_identifier (PhotosBaseItem *self)
+{
+  return self->priv->identifier;
+}
+
+
+const gchar *
 photos_base_item_get_mime_type (PhotosBaseItem *self)
 {
   return self->priv->mime_type;
@@ -842,6 +849,13 @@ photos_base_item_get_name (PhotosBaseItem *self)
 
 
 const gchar *
+photos_base_item_get_resource_urn (PhotosBaseItem *self)
+{
+  return self->priv->resource_urn;
+}
+
+
+const gchar *
 photos_base_item_get_type_description (PhotosBaseItem *self)
 {
   return self->priv->type_description;
diff --git a/src/photos-base-item.h b/src/photos-base-item.h
index 5e563a3..24d1f00 100644
--- a/src/photos-base-item.h
+++ b/src/photos-base-item.h
@@ -1,6 +1,6 @@
 /*
  * Photos - access, organize and share your photos on GNOME
- * Copyright © 2012 Red Hat, Inc.
+ * Copyright © 2012, 2013 Red Hat, Inc.
  *
  * This program is free software; you can redistribute it and/or
  * modify it under the terms of the GNU General Public License
@@ -94,12 +94,16 @@ GdkPixbuf          *photos_base_item_get_icon           (PhotosBaseItem *self);
 
 const gchar        *photos_base_item_get_id             (PhotosBaseItem *self);
 
+const gchar        *photos_base_item_get_identifier     (PhotosBaseItem *self);
+
 const gchar        *photos_base_item_get_mime_type      (PhotosBaseItem *self);
 
 gint64              photos_base_item_get_mtime          (PhotosBaseItem *self);
 
 const gchar        *photos_base_item_get_name           (PhotosBaseItem *self);
 
+const gchar        *photos_base_item_get_resource_urn   (PhotosBaseItem *self);
+
 const gchar        *photos_base_item_get_type_description (PhotosBaseItem *self);
 
 const gchar        *photos_base_item_get_uri            (PhotosBaseItem *self);


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