[libgdata] [picasaweb] Add #defines for PicasaWeb objects



commit 548d9dda255f0f359e04280c0b1512459b7f606b
Author: Philip Withnall <philip tecnocode co uk>
Date:   Sat Mar 27 14:49:41 2010 +0000

    [picasaweb] Add #defines for PicasaWeb objects

 docs/reference/gdata-sections.txt               |    4 ++
 gdata/services/picasaweb/gdata-picasaweb-file.c |    4 +--
 gdata/services/picasaweb/gdata-picasaweb-file.h |   36 +++++++++++++++++++++++
 3 files changed, 41 insertions(+), 3 deletions(-)
---
diff --git a/docs/reference/gdata-sections.txt b/docs/reference/gdata-sections.txt
index 46a93a9..869d734 100644
--- a/docs/reference/gdata-sections.txt
+++ b/docs/reference/gdata-sections.txt
@@ -1418,6 +1418,10 @@ GDataPicasaWebAlbumPrivate
 <SECTION>
 <FILE>gdata-picasaweb-file</FILE>
 <TITLE>GDataPicasaWebFile</TITLE>
+GDATA_PICASAWEB_VIDEO_STATUS_PENDING
+GDATA_PICASAWEB_VIDEO_STATUS_READY
+GDATA_PICASAWEB_VIDEO_STATUS_FINAL
+GDATA_PICASAWEB_VIDEO_STATUS_FAILED
 GDataPicasaWebFile
 GDataPicasaWebFileClass
 gdata_picasaweb_file_new
diff --git a/gdata/services/picasaweb/gdata-picasaweb-file.c b/gdata/services/picasaweb/gdata-picasaweb-file.c
index a12d9c9..30a77b1 100644
--- a/gdata/services/picasaweb/gdata-picasaweb-file.c
+++ b/gdata/services/picasaweb/gdata-picasaweb-file.c
@@ -215,9 +215,7 @@ gdata_picasaweb_file_class_init (GDataPicasaWebFileClass *klass)
 	/**
 	 * GDataPicasaWebFile:video-status:
 	 *
-	 * The status of the file, if it is a video.
-	 *
-	 * Possible values include "pending", "ready", "final", and "failed".
+	 * The status of the file, if it is a video. For example: %GDATA_PICASAWEB_VIDEO_STATUS_PENDING or %GDATA_PICASAWEB_VIDEO_STATUS_FAILED.
 	 *
 	 * For more information, see the <ulink type="http" url="http://code.google.com/apis/picasaweb/reference.html#gphoto_videostatus";>
 	 * gphoto specification</ulink>.
diff --git a/gdata/services/picasaweb/gdata-picasaweb-file.h b/gdata/services/picasaweb/gdata-picasaweb-file.h
index ec85df6..9fb9f82 100644
--- a/gdata/services/picasaweb/gdata-picasaweb-file.h
+++ b/gdata/services/picasaweb/gdata-picasaweb-file.h
@@ -29,6 +29,42 @@
 
 G_BEGIN_DECLS
 
+/**
+ * GDATA_PICASAWEB_VIDEO_STATUS_PENDING:
+ *
+ * The video is still being processed.
+ *
+ * Since: 0.7.0
+ **/
+#define GDATA_PICASAWEB_VIDEO_STATUS_PENDING "pending"
+
+/**
+ * GDATA_PICASAWEB_VIDEO_STATUS_READY:
+ *
+ * The video has been processed, but still needs thumbnailing.
+ *
+ * Since: 0.7.0
+ **/
+#define GDATA_PICASAWEB_VIDEO_STATUS_READY "ready"
+
+/**
+ * GDATA_PICASAWEB_VIDEO_STATUS_FINAL:
+ *
+ * The video has been processed and thumbnailed.
+ *
+ * Since: 0.7.0
+ **/
+#define GDATA_PICASAWEB_VIDEO_STATUS_FINAL "final"
+
+/**
+ * GDATA_PICASAWEB_VIDEO_STATUS_FAILED:
+ *
+ * There was an error while processing or thumbnailing the video and it should be deleted.
+ *
+ * Since: 0.7.0
+ **/
+#define GDATA_PICASAWEB_VIDEO_STATUS_FAILED "failed"
+
 #define GDATA_TYPE_PICASAWEB_FILE 		(gdata_picasaweb_file_get_type ())
 #define GDATA_PICASAWEB_FILE(o)			(G_TYPE_CHECK_INSTANCE_CAST ((o), GDATA_TYPE_PICASAWEB_FILE, GDataPicasaWebFile))
 #define GDATA_PICASAWEB_FILE_CLASS(k)		(G_TYPE_CHECK_CLASS_CAST((k), GDATA_TYPE_PICASAWEB_FILE, GDataPicasaWebFileClass))



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