Blob Blame History Raw
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>GDataYouTubeComment: GData Reference Manual</title>
<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot">
<link rel="home" href="index.html" title="GData Reference Manual">
<link rel="up" href="ch13.html" title="YouTube API">
<link rel="prev" href="GDataYouTubeVideo.html" title="GDataYouTubeVideo">
<link rel="next" href="ch14.html" title="Google Calendar API">
<meta name="generator" content="GTK-Doc V1.26.1 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
<td width="100%" align="left" class="shortcuts">
<a href="#" class="shortcut">Top</a><span id="nav_description">  <span class="dim">|</span> 
                  <a href="#GDataYouTubeComment.description" class="shortcut">Description</a></span><span id="nav_hierarchy">  <span class="dim">|</span> 
                  <a href="#GDataYouTubeComment.object-hierarchy" class="shortcut">Object Hierarchy</a></span><span id="nav_properties">  <span class="dim">|</span> 
                  <a href="#GDataYouTubeComment.properties" class="shortcut">Properties</a></span>
</td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
<td><a accesskey="u" href="ch13.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
<td><a accesskey="p" href="GDataYouTubeVideo.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
<td><a accesskey="n" href="ch14.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
</tr></table>
<div class="refentry">
<a name="GDataYouTubeComment"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="GDataYouTubeComment.top_of_page"></a>GDataYouTubeComment</span></h2>
<p>GDataYouTubeComment — GData YouTube comment object</p>
</td>
<td class="gallery_image" valign="top" align="right"></td>
</tr></table></div>
<div class="refsect1">
<a name="GDataYouTubeComment.stability-level"></a><h2>Stability Level</h2>
<acronym title="The intention of a Stable interface is to enable arbitrary third parties to
develop applications to these interfaces, release them, and have confidence that
they will run on all minor releases of the product (after the one in which the
interface was introduced, and within the same major release). Even at a major
release, incompatible changes are expected to be rare, and to have strong
justifications.
"><span class="acronym">Stable</span></acronym>, unless otherwise indicated
</div>
<div class="refsect1">
<a name="GDataYouTubeComment.functions"></a><h2>Functions</h2>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="functions_return">
<col class="functions_name">
</colgroup>
<tbody>
<tr>
<td class="function_type">
<a class="link" href="GDataYouTubeComment.html" title="GDataYouTubeComment"><span class="returnvalue">GDataYouTubeComment</span></a> *
</td>
<td class="function_name">
<a class="link" href="GDataYouTubeComment.html#gdata-youtube-comment-new" title="gdata_youtube_comment_new ()">gdata_youtube_comment_new</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">const <a href="../glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
</td>
<td class="function_name">
<a class="link" href="GDataYouTubeComment.html#gdata-youtube-comment-get-parent-comment-uri" title="gdata_youtube_comment_get_parent_comment_uri ()">gdata_youtube_comment_get_parent_comment_uri</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="GDataYouTubeComment.html#gdata-youtube-comment-set-parent-comment-uri" title="gdata_youtube_comment_set_parent_comment_uri ()">gdata_youtube_comment_set_parent_comment_uri</a> <span class="c_punctuation">()</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect1">
<a name="GDataYouTubeComment.properties"></a><h2>Properties</h2>
<div class="informaltable"><table class="informaltable" border="0">
<colgroup>
<col width="150px" class="properties_type">
<col width="300px" class="properties_name">
<col width="200px" class="properties_flags">
</colgroup>
<tbody><tr>
<td class="property_type">
<a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *</td>
<td class="property_name"><a class="link" href="GDataYouTubeComment.html#GDataYouTubeComment--parent-comment-uri" title="The “parent-comment-uri” property">parent-comment-uri</a></td>
<td class="property_flags">Read / Write</td>
</tr></tbody>
</table></div>
</div>
<div class="refsect1">
<a name="GDataYouTubeComment.other"></a><h2>Types and Values</h2>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="name">
<col class="description">
</colgroup>
<tbody>
<tr>
<td class="datatype_keyword"> </td>
<td class="function_name"><a class="link" href="GDataYouTubeComment.html#GDataYouTubeComment-struct" title="GDataYouTubeComment">GDataYouTubeComment</a></td>
</tr>
<tr>
<td class="datatype_keyword"> </td>
<td class="function_name"><a class="link" href="GDataYouTubeComment.html#GDataYouTubeCommentClass" title="GDataYouTubeCommentClass">GDataYouTubeCommentClass</a></td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect1">
<a name="GDataYouTubeComment.object-hierarchy"></a><h2>Object Hierarchy</h2>
<pre class="screen">    <a href="../gobject/gobject-The-Base-Object-Type.html#GObject-struct">GObject</a>
    <span class="lineart">╰──</span> <a class="link" href="GDataParsable.html" title="GDataParsable">GDataParsable</a>
        <span class="lineart">╰──</span> <a class="link" href="GDataEntry.html" title="GDataEntry">GDataEntry</a>
            <span class="lineart">╰──</span> <a class="link" href="GDataComment.html" title="GDataComment">GDataComment</a>
                <span class="lineart">╰──</span> GDataYouTubeComment
</pre>
</div>
<div class="refsect1">
<a name="GDataYouTubeComment.includes"></a><h2>Includes</h2>
<pre class="synopsis">#include &lt;gdata/services/youtube/gdata-youtube-comment.h&gt;
</pre>
</div>
<div class="refsect1">
<a name="GDataYouTubeComment.description"></a><h2>Description</h2>
<p><a class="link" href="GDataYouTubeComment.html" title="GDataYouTubeComment"><span class="type">GDataYouTubeComment</span></a> is a subclass of <a class="link" href="GDataComment.html" title="GDataComment"><span class="type">GDataComment</span></a> to represent a comment on a <a class="link" href="GDataYouTubeVideo.html" title="GDataYouTubeVideo"><span class="type">GDataYouTubeVideo</span></a>. It is returned by the <a class="link" href="GDataCommentable.html" title="GDataCommentable"><span class="type">GDataCommentable</span></a>
interface implementation on <a class="link" href="GDataYouTubeVideo.html" title="GDataYouTubeVideo"><span class="type">GDataYouTubeVideo</span></a>.</p>
<p>It's possible to query for and add <a class="link" href="GDataYouTubeComment.html" title="GDataYouTubeComment"><span class="type">GDataYouTubeComment</span></a>s, but it is not possible to delete <a class="link" href="GDataYouTubeComment.html" title="GDataYouTubeComment"><span class="type">GDataYouTubeComment</span></a>s from any video
using the GData API.</p>
<p>Comments on YouTube videos can be arranged in a hierarchy by their <a class="link" href="GDataYouTubeComment.html#GDataYouTubeComment--parent-comment-uri" title="The “parent-comment-uri” property"><span class="type">“parent-comment-uri”</span></a>s. If a
<a class="link" href="GDataYouTubeComment.html" title="GDataYouTubeComment"><span class="type">GDataYouTubeComment</span></a>'s parent comment URI is non-<a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, it should match the <a class="link" href="GDataLink.html#GDATA-LINK-SELF:CAPS" title="GDATA_LINK_SELF"><code class="literal">GDATA_LINK_SELF</code></a> <a class="link" href="GDataLink.html" title="GDataLink"><span class="type">GDataLink</span></a> of another <a class="link" href="GDataYouTubeComment.html" title="GDataYouTubeComment"><span class="type">GDataYouTubeComment</span></a> on
the same video (as retrieved using <a class="link" href="GDataEntry.html#gdata-entry-look-up-link" title="gdata_entry_look_up_link ()"><code class="function">gdata_entry_look_up_link()</code></a> on the comments). Comments with <a class="link" href="GDataYouTubeComment.html#GDataYouTubeComment--parent-comment-uri" title="The “parent-comment-uri” property"><span class="type">“parent-comment-uri”</span></a> set to <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
are top-level comments.</p>
</div>
<div class="refsect1">
<a name="GDataYouTubeComment.functions_details"></a><h2>Functions</h2>
<div class="refsect2">
<a name="gdata-youtube-comment-new"></a><h3>gdata_youtube_comment_new ()</h3>
<pre class="programlisting"><a class="link" href="GDataYouTubeComment.html" title="GDataYouTubeComment"><span class="returnvalue">GDataYouTubeComment</span></a> *
gdata_youtube_comment_new (<em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *id</code></em>);</pre>
<p>Creates a new <a class="link" href="GDataYouTubeComment.html" title="GDataYouTubeComment"><span class="type">GDataYouTubeComment</span></a> with the given ID and default properties.</p>
<div class="refsect3">
<a name="gdata-youtube-comment-new.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>id</p></td>
<td class="parameter_description"><p>the comment's ID, or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a></p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gdata-youtube-comment-new.returns"></a><h4>Returns</h4>
<p> a new <a class="link" href="GDataYouTubeComment.html" title="GDataYouTubeComment"><span class="type">GDataYouTubeComment</span></a>; unref with <a href="../gobject/gobject-The-Base-Object-Type.html#g-object-unref"><code class="function">g_object_unref()</code></a></p>
</div>
<p class="since">Since: <a class="link" href="ix13.html#api-index-0.10.0">0.10.0</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gdata-youtube-comment-get-parent-comment-uri"></a><h3>gdata_youtube_comment_get_parent_comment_uri ()</h3>
<pre class="programlisting">const <a href="../glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
gdata_youtube_comment_get_parent_comment_uri
                               (<em class="parameter"><code><a class="link" href="GDataYouTubeComment.html" title="GDataYouTubeComment"><span class="type">GDataYouTubeComment</span></a> *self</code></em>);</pre>
<p>Gets the <a class="link" href="GDataYouTubeComment.html#GDataYouTubeComment--parent-comment-uri" title="The “parent-comment-uri” property"><span class="type">“parent-comment-uri”</span></a> property.</p>
<div class="refsect3">
<a name="gdata-youtube-comment-get-parent-comment-uri.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>self</p></td>
<td class="parameter_description"><p>a <a class="link" href="GDataYouTubeComment.html" title="GDataYouTubeComment"><span class="type">GDataYouTubeComment</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gdata-youtube-comment-get-parent-comment-uri.returns"></a><h4>Returns</h4>
<p> the parent comment URI, or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a></p>
</div>
<p class="since">Since: <a class="link" href="ix13.html#api-index-0.10.0">0.10.0</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gdata-youtube-comment-set-parent-comment-uri"></a><h3>gdata_youtube_comment_set_parent_comment_uri ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
gdata_youtube_comment_set_parent_comment_uri
                               (<em class="parameter"><code><a class="link" href="GDataYouTubeComment.html" title="GDataYouTubeComment"><span class="type">GDataYouTubeComment</span></a> *self</code></em>,
                                <em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *parent_comment_uri</code></em>);</pre>
<p>Sets the <a class="link" href="GDataYouTubeComment.html#GDataYouTubeComment--parent-comment-uri" title="The “parent-comment-uri” property"><span class="type">“parent-comment-uri”</span></a> property to <em class="parameter"><code>parent_comment_uri</code></em>
.</p>
<p>Set <em class="parameter"><code>parent_comment_uri</code></em>
 to <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to unset the <a class="link" href="GDataYouTubeComment.html#GDataYouTubeComment--parent-comment-uri" title="The “parent-comment-uri” property"><span class="type">“parent-comment-uri”</span></a> property in the comment (i.e. make the comment a top-level
comment).</p>
<p>See the <a class="ulink" href="http://code.google.com/apis/youtube/2.0/developers_guide_protocol_comments.html#Retrieve_comments" target="_top">online
documentation</a> for more information.</p>
<div class="refsect3">
<a name="gdata-youtube-comment-set-parent-comment-uri.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>self</p></td>
<td class="parameter_description"><p>a <a class="link" href="GDataYouTubeComment.html" title="GDataYouTubeComment"><span class="type">GDataYouTubeComment</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>parent_comment_uri</p></td>
<td class="parameter_description"><p>a new parent comment URI, or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<p class="since">Since: <a class="link" href="ix13.html#api-index-0.10.0">0.10.0</a></p>
</div>
</div>
<div class="refsect1">
<a name="GDataYouTubeComment.other_details"></a><h2>Types and Values</h2>
<div class="refsect2">
<a name="GDataYouTubeComment-struct"></a><h3>GDataYouTubeComment</h3>
<pre class="programlisting">typedef struct _GDataYouTubeComment GDataYouTubeComment;</pre>
<p>All the fields in the <a class="link" href="GDataYouTubeComment.html" title="GDataYouTubeComment"><span class="type">GDataYouTubeComment</span></a> structure are private and should never be accessed directly.</p>
<p class="since">Since: <a class="link" href="ix13.html#api-index-0.10.0">0.10.0</a></p>
</div>
<hr>
<div class="refsect2">
<a name="GDataYouTubeCommentClass"></a><h3>GDataYouTubeCommentClass</h3>
<pre class="programlisting">typedef struct {
} GDataYouTubeCommentClass;
</pre>
<p>All the fields in the <a class="link" href="GDataYouTubeComment.html#GDataYouTubeCommentClass" title="GDataYouTubeCommentClass"><span class="type">GDataYouTubeCommentClass</span></a> structure are private and should never be accessed directly.</p>
<p class="since">Since: <a class="link" href="ix13.html#api-index-0.10.0">0.10.0</a></p>
</div>
</div>
<div class="refsect1">
<a name="GDataYouTubeComment.property-details"></a><h2>Property Details</h2>
<div class="refsect2">
<a name="GDataYouTubeComment--parent-comment-uri"></a><h3>The <code class="literal">“parent-comment-uri”</code> property</h3>
<pre class="programlisting">  “parent-comment-uri”       <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *</pre>
<p>The URI of the parent comment to this one, or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if this comment is a top-level comment.</p>
<p>See the documentation for <a class="link" href="GDataYouTubeComment.html" title="GDataYouTubeComment"><span class="type">GDataYouTubeComment</span></a> for an explanation of the semantics of parent comment URIs.</p>
<p>Flags: Read / Write</p>
<p>Default value: NULL</p>
<p class="since">Since: <a class="link" href="ix13.html#api-index-0.10.0">0.10.0</a></p>
</div>
</div>
</div>
<div class="footer">
<hr>Generated by GTK-Doc V1.26.1</div>
</body>
</html>