[gnome-photos] base-item: Add getters for author, id, mtime, name



commit 8ed9174a4df1f39e73eba080b5bac35caf67139a
Author: Debarshi Ray <debarshir gnome org>
Date:   Mon Apr 30 15:30:30 2012 +0200

    base-item: Add getters for author, id, mtime, name

 src/photos-base-item.c |   35 +++++++++++++++++++++++++++++++++++
 src/photos-base-item.h |   10 ++++++++++
 2 files changed, 45 insertions(+), 0 deletions(-)
---
diff --git a/src/photos-base-item.c b/src/photos-base-item.c
index 471648c..cca3238 100644
--- a/src/photos-base-item.c
+++ b/src/photos-base-item.c
@@ -169,3 +169,38 @@ photos_base_item_class_init (PhotosBaseItemClass *class)
 
   g_type_class_add_private (class, sizeof (PhotosBaseItemPrivate));
 }
+
+
+const gchar *
+photos_base_item_get_author (PhotosBaseItem *self)
+{
+  return self->priv->author;
+}
+
+
+const gchar *
+photos_base_item_get_id (PhotosBaseItem *self)
+{
+  return self->priv->id;
+}
+
+
+glong
+photos_base_item_get_mtime (PhotosBaseItem *self)
+{
+  return self->priv->mtime;
+}
+
+
+const gchar *
+photos_base_item_get_name (PhotosBaseItem *self)
+{
+  return self->priv->name;
+}
+
+
+const gchar *
+photos_base_item_get_uri (PhotosBaseItem *self)
+{
+  return self->priv->uri;
+}
diff --git a/src/photos-base-item.h b/src/photos-base-item.h
index d5327b1..b95f0e5 100644
--- a/src/photos-base-item.h
+++ b/src/photos-base-item.h
@@ -65,6 +65,16 @@ struct _PhotosBaseItemClass
 
 GType               photos_base_item_get_type           (void) G_GNUC_CONST;
 
+const gchar        *photos_base_item_get_author         (PhotosBaseItem *self);
+
+const gchar        *photos_base_item_get_id             (PhotosBaseItem *self);
+
+glong               photos_base_item_get_mtime          (PhotosBaseItem *self);
+
+const gchar        *photos_base_item_get_name           (PhotosBaseItem *self);
+
+const gchar        *photos_base_item_get_uri            (PhotosBaseItem *self);
+
 G_END_DECLS
 
 #endif /* PHOTOS_BASE_ITEM_H */



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