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>GDataDocumentsEntry: 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="ch16.html" title="Google Documents/Drive API">
<link rel="prev" href="GDataDocumentsUploadQuery.html" title="GDataDocumentsUploadQuery">
<link rel="next" href="GDataDocumentsDocument.html" title="GDataDocumentsDocument">
<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="#GDataDocumentsEntry.description" class="shortcut">Description</a></span><span id="nav_hierarchy">  <span class="dim">|</span> 
                  <a href="#GDataDocumentsEntry.object-hierarchy" class="shortcut">Object Hierarchy</a></span><span id="nav_interfaces">  <span class="dim">|</span> 
                  <a href="#GDataDocumentsEntry.implemented-interfaces" class="shortcut">Implemented Interfaces</a></span><span id="nav_properties">  <span class="dim">|</span> 
                  <a href="#GDataDocumentsEntry.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="ch16.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
<td><a accesskey="p" href="GDataDocumentsUploadQuery.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
<td><a accesskey="n" href="GDataDocumentsDocument.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
</tr></table>
<div class="refentry">
<a name="GDataDocumentsEntry"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="GDataDocumentsEntry.top_of_page"></a>GDataDocumentsEntry</span></h2>
<p>GDataDocumentsEntry — GData document object abstract class</p>
</td>
<td class="gallery_image" valign="top" align="right"></td>
</tr></table></div>
<div class="refsect1">
<a name="GDataDocumentsEntry.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="GDataDocumentsEntry.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 href="../glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
</td>
<td class="function_name">
<a class="link" href="GDataDocumentsEntry.html#gdata-documents-entry-get-path" title="gdata_documents_entry_get_path ()">gdata_documents_entry_get_path</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="GDataDocumentsEntry.html#gdata-documents-entry-get-resource-id" title="gdata_documents_entry_get_resource_id ()">gdata_documents_entry_get_resource_id</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="GDataDocumentsEntry.html#gdata-documents-entry-get-document-id" title="gdata_documents_entry_get_document_id ()">gdata_documents_entry_get_document_id</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a href="../glib/glib-Basic-Types.html#gint64"><span class="returnvalue">gint64</span></a>
</td>
<td class="function_name">
<a class="link" href="GDataDocumentsEntry.html#gdata-documents-entry-get-edited" title="gdata_documents_entry_get_edited ()">gdata_documents_entry_get_edited</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="GDataAuthor.html" title="GDataAuthor"><span class="returnvalue">GDataAuthor</span></a> *
</td>
<td class="function_name">
<a class="link" href="GDataDocumentsEntry.html#gdata-documents-entry-get-last-modified-by" title="gdata_documents_entry_get_last_modified_by ()">gdata_documents_entry_get_last_modified_by</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a href="../glib/glib-Basic-Types.html#gint64"><span class="returnvalue">gint64</span></a>
</td>
<td class="function_name">
<a class="link" href="GDataDocumentsEntry.html#gdata-documents-entry-get-last-viewed" title="gdata_documents_entry_get_last_viewed ()">gdata_documents_entry_get_last_viewed</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a href="../glib/glib-Basic-Types.html#goffset"><span class="returnvalue">goffset</span></a>
</td>
<td class="function_name">
<a class="link" href="GDataDocumentsEntry.html#gdata-documents-entry-get-quota-used" title="gdata_documents_entry_get_quota_used ()">gdata_documents_entry_get_quota_used</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a href="../glib/glib-Basic-Types.html#goffset"><span class="returnvalue">goffset</span></a>
</td>
<td class="function_name">
<a class="link" href="GDataDocumentsEntry.html#gdata-documents-entry-get-file-size" title="gdata_documents_entry_get_file_size ()">gdata_documents_entry_get_file_size</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
</td>
<td class="function_name">
<a class="link" href="GDataDocumentsEntry.html#gdata-documents-entry-writers-can-invite" title="gdata_documents_entry_writers_can_invite ()">gdata_documents_entry_writers_can_invite</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="GDataDocumentsEntry.html#gdata-documents-entry-set-writers-can-invite" title="gdata_documents_entry_set_writers_can_invite ()">gdata_documents_entry_set_writers_can_invite</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
</td>
<td class="function_name">
<a class="link" href="GDataDocumentsEntry.html#gdata-documents-entry-is-deleted" title="gdata_documents_entry_is_deleted ()">gdata_documents_entry_is_deleted</a> <span class="c_punctuation">()</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect1">
<a name="GDataDocumentsEntry.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="GDataDocumentsEntry.html#GDataDocumentsEntry--document-id" title="The “document-id” property">document-id</a></td>
<td class="property_flags">Read</td>
</tr>
<tr>
<td class="property_type"><a href="../glib/glib-Basic-Types.html#gint64"><span class="type">gint64</span></a></td>
<td class="property_name"><a class="link" href="GDataDocumentsEntry.html#GDataDocumentsEntry--edited" title="The “edited” property">edited</a></td>
<td class="property_flags">Read</td>
</tr>
<tr>
<td class="property_type"><a href="../glib/glib-Basic-Types.html#gint64"><span class="type">gint64</span></a></td>
<td class="property_name"><a class="link" href="GDataDocumentsEntry.html#GDataDocumentsEntry--file-size" title="The “file-size” property">file-size</a></td>
<td class="property_flags">Read</td>
</tr>
<tr>
<td class="property_type"><a href="../glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a></td>
<td class="property_name"><a class="link" href="GDataDocumentsEntry.html#GDataDocumentsEntry--is-deleted" title="The “is-deleted” property">is-deleted</a></td>
<td class="property_flags">Read / Write</td>
</tr>
<tr>
<td class="property_type">
<a class="link" href="GDataAuthor.html" title="GDataAuthor"><span class="type">GDataAuthor</span></a> *</td>
<td class="property_name"><a class="link" href="GDataDocumentsEntry.html#GDataDocumentsEntry--last-modified-by" title="The “last-modified-by” property">last-modified-by</a></td>
<td class="property_flags">Read</td>
</tr>
<tr>
<td class="property_type"><a href="../glib/glib-Basic-Types.html#gint64"><span class="type">gint64</span></a></td>
<td class="property_name"><a class="link" href="GDataDocumentsEntry.html#GDataDocumentsEntry--last-viewed" title="The “last-viewed” property">last-viewed</a></td>
<td class="property_flags">Read</td>
</tr>
<tr>
<td class="property_type"><a href="../glib/glib-Basic-Types.html#gint64"><span class="type">gint64</span></a></td>
<td class="property_name"><a class="link" href="GDataDocumentsEntry.html#GDataDocumentsEntry--quota-used" title="The “quota-used” property">quota-used</a></td>
<td class="property_flags">Read</td>
</tr>
<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="GDataDocumentsEntry.html#GDataDocumentsEntry--resource-id" title="The “resource-id” property">resource-id</a></td>
<td class="property_flags">Read</td>
</tr>
<tr>
<td class="property_type"><a href="../glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a></td>
<td class="property_name"><a class="link" href="GDataDocumentsEntry.html#GDataDocumentsEntry--writers-can-invite" title="The “writers-can-invite” property">writers-can-invite</a></td>
<td class="property_flags">Read / Write</td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect1">
<a name="GDataDocumentsEntry.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="define_keyword">#define</td>
<td class="function_name"><a class="link" href="GDataDocumentsEntry.html#GDATA-DOCUMENTS-ACCESS-ROLE-OWNER:CAPS" title="GDATA_DOCUMENTS_ACCESS_ROLE_OWNER">GDATA_DOCUMENTS_ACCESS_ROLE_OWNER</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="GDataDocumentsEntry.html#GDATA-DOCUMENTS-ACCESS-ROLE-WRITER:CAPS" title="GDATA_DOCUMENTS_ACCESS_ROLE_WRITER">GDATA_DOCUMENTS_ACCESS_ROLE_WRITER</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="GDataDocumentsEntry.html#GDATA-DOCUMENTS-ACCESS-ROLE-READER:CAPS" title="GDATA_DOCUMENTS_ACCESS_ROLE_READER">GDATA_DOCUMENTS_ACCESS_ROLE_READER</a></td>
</tr>
<tr>
<td class="datatype_keyword"> </td>
<td class="function_name"><a class="link" href="GDataDocumentsEntry.html#GDataDocumentsEntry-struct" title="GDataDocumentsEntry">GDataDocumentsEntry</a></td>
</tr>
<tr>
<td class="datatype_keyword"> </td>
<td class="function_name"><a class="link" href="GDataDocumentsEntry.html#GDataDocumentsEntryClass" title="GDataDocumentsEntryClass">GDataDocumentsEntryClass</a></td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect1">
<a name="GDataDocumentsEntry.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> GDataDocumentsEntry
                <span class="lineart">├──</span> <a class="link" href="GDataDocumentsDocument.html" title="GDataDocumentsDocument">GDataDocumentsDocument</a>
                <span class="lineart">╰──</span> <a class="link" href="GDataDocumentsFolder.html" title="GDataDocumentsFolder">GDataDocumentsFolder</a>
</pre>
</div>
<div class="refsect1">
<a name="GDataDocumentsEntry.implemented-interfaces"></a><h2>Implemented Interfaces</h2>
<p>
GDataDocumentsEntry implements
 <a class="link" href="GDataAccessHandler.html" title="GDataAccessHandler">GDataAccessHandler</a>.</p>
</div>
<div class="refsect1">
<a name="GDataDocumentsEntry.includes"></a><h2>Includes</h2>
<pre class="synopsis">#include &lt;gdata/services/documents/gdata-documents-entry.h&gt;
</pre>
</div>
<div class="refsect1">
<a name="GDataDocumentsEntry.description"></a><h2>Description</h2>
<p><a class="link" href="GDataDocumentsEntry.html" title="GDataDocumentsEntry"><span class="type">GDataDocumentsEntry</span></a> is a subclass of <a class="link" href="GDataEntry.html" title="GDataEntry"><span class="type">GDataEntry</span></a> to represent a Google Drive entry, which is then further subclassed
to give specific document types.</p>
<p><a class="link" href="GDataDocumentsEntry.html" title="GDataDocumentsEntry"><span class="type">GDataDocumentsEntry</span></a> implements <a class="link" href="GDataAccessHandler.html" title="GDataAccessHandler"><span class="type">GDataAccessHandler</span></a>, meaning the access rules to it can be modified using that interface. As well as the
access roles defined for the base <a class="link" href="GDataAccessRule.html" title="GDataAccessRule"><span class="type">GDataAccessRule</span></a> (e.g. <a class="link" href="GDataAccessRule.html#GDATA-ACCESS-ROLE-NONE:CAPS" title="GDATA_ACCESS_ROLE_NONE"><code class="literal">GDATA_ACCESS_ROLE_NONE</code></a>), <a class="link" href="GDataDocumentsEntry.html" title="GDataDocumentsEntry"><span class="type">GDataDocumentsEntry</span></a> has its own, such as
<a class="link" href="GDataDocumentsEntry.html#GDATA-DOCUMENTS-ACCESS-ROLE-OWNER:CAPS" title="GDATA_DOCUMENTS_ACCESS_ROLE_OWNER"><code class="literal">GDATA_DOCUMENTS_ACCESS_ROLE_OWNER</code></a> and <a class="link" href="GDataDocumentsEntry.html#GDATA-DOCUMENTS-ACCESS-ROLE-READER:CAPS" title="GDATA_DOCUMENTS_ACCESS_ROLE_READER"><code class="literal">GDATA_DOCUMENTS_ACCESS_ROLE_READER</code></a>.</p>
<p>Documents can (confusingly) be referenced by three different types of IDs: their entry ID, their resource ID and their document ID (untyped resource
ID). Each is a substring of the previous ones (i.e. the entry ID contains the resource ID, which in turn contains the document ID). The resource ID
and document ID should almost always be considered as internal, and thus entry IDs (<a class="link" href="GDataEntry.html#GDataEntry--id" title="The “id” property"><span class="type">“id”</span></a>) should normally be used to uniquely identify
documents. For more information, see <a class="link" href="GDataDocumentsEntry.html#GDataDocumentsEntry--resource-id" title="The “resource-id” property"><span class="type">“resource-id”</span></a>.</p>
<p>For more details of Google Drive's GData API, see the</p>
<a class="ulink" href="https://developers.google.com/drive/v2/web/about-sdk" target="_top">online documentation</a>.
<div class="example">
<a name="id-1.5.5.6.10.7"></a><p class="title"><b>Example 32. Moving an Entry Between Folders</b></p>
<div class="example-contents">
  <table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
    <tbody>
      <tr>
        <td class="listing_lines" align="right"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46</pre></td>
        <td class="listing_code"><pre class="programlisting"><span class="usertype">GDataDocumentsService</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">service</span><span class="symbol">;</span>
<span class="usertype">GDataDocumentsEntry</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">entry</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">intermediate_entry</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">updated_entry</span><span class="symbol">;</span>
<span class="usertype">GDataDocumentsFolder</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">old_folder</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">new_folder</span><span class="symbol">;</span>
<span class="usertype">GError</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">error </span><span class="symbol">=</span><span class="normal"> <a href="../glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">;</span>

<span class="comment">/* Create a service */</span>
<span class="normal">service </span><span class="symbol">=</span><span class="normal"> </span><span class="function">create_documents_service</span><span class="normal"> </span><span class="symbol">();</span>

<span class="comment">/* Get the entry, the folder it's being moved out of, and the folder it's being moved into. The entry can either be a document or</span>
<span class="comment"> * another folder, allowing hierarchies of folders to be constructed. */</span>
<span class="normal">entry </span><span class="symbol">=</span><span class="normal"> </span><span class="function">query_user_for_entry</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">service</span><span class="symbol">);</span>
<span class="normal">old_folder </span><span class="symbol">=</span><span class="normal"> </span><span class="function">query_user_for_old_folder</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">service</span><span class="symbol">);</span>
<span class="normal">new_folder </span><span class="symbol">=</span><span class="normal"> </span><span class="function">query_user_for_new_folder</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">service</span><span class="symbol">);</span>

<span class="comment">/* Add the entry to the new folder */</span>
<span class="normal">intermediate_entry </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="GDataDocumentsService.html#gdata-documents-service-add-entry-to-folder">gdata_documents_service_add_entry_to_folder</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">service</span><span class="symbol">,</span><span class="normal"> entry</span><span class="symbol">,</span><span class="normal"> new_folder</span><span class="symbol">,</span><span class="normal"> <a href="../glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">&amp;</span><span class="normal">error</span><span class="symbol">);</span>

<span class="function"><a href="../gobject/gobject-The-Base-Object-Type.html#g-object-unref">g_object_unref</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">entry</span><span class="symbol">);</span>
<span class="function"><a href="../gobject/gobject-The-Base-Object-Type.html#g-object-unref">g_object_unref</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">new_folder</span><span class="symbol">);</span>

<span class="keyword">if</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">error </span><span class="symbol">!=</span><span class="normal"> <a href="../glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">)</span><span class="normal"> </span><span class="cbracket">{</span>
<span class="normal">    </span><span class="function"><a href="../glib/glib-Message-Logging.html#g-error">g_error</a></span><span class="normal"> </span><span class="symbol">(</span><span class="string">"Error adding entry to new folder: %s"</span><span class="symbol">,</span><span class="normal"> error</span><span class="symbol">-&gt;</span><span class="normal">message</span><span class="symbol">);</span>
<span class="normal">    </span><span class="function"><a href="../glib/glib-Error-Reporting.html#g-error-free">g_error_free</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">error</span><span class="symbol">);</span>
<span class="normal">    </span><span class="function"><a href="../gobject/gobject-The-Base-Object-Type.html#g-object-unref">g_object_unref</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">old_folder</span><span class="symbol">);</span>
<span class="normal">    </span><span class="function"><a href="../gobject/gobject-The-Base-Object-Type.html#g-object-unref">g_object_unref</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">service</span><span class="symbol">);</span>
<span class="normal">    </span><span class="keyword">return</span><span class="symbol">;</span>
<span class="cbracket">}</span>

<span class="comment">/* Remove the entry from the old folder */</span>
<span class="normal">updated_entry </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="GDataDocumentsService.html#gdata-documents-service-remove-entry-from-folder">gdata_documents_service_remove_entry_from_folder</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">service</span><span class="symbol">,</span><span class="normal"> intermediate_entry</span><span class="symbol">,</span><span class="normal"> old_folder</span><span class="symbol">,</span><span class="normal"> <a href="../glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">&amp;</span><span class="normal">error</span><span class="symbol">);</span>

<span class="function"><a href="../gobject/gobject-The-Base-Object-Type.html#g-object-unref">g_object_unref</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">intermediate_entry</span><span class="symbol">);</span>
<span class="function"><a href="../gobject/gobject-The-Base-Object-Type.html#g-object-unref">g_object_unref</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">old_folder</span><span class="symbol">);</span>
<span class="function"><a href="../gobject/gobject-The-Base-Object-Type.html#g-object-unref">g_object_unref</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">service</span><span class="symbol">);</span>

<span class="keyword">if</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">error </span><span class="symbol">!=</span><span class="normal"> <a href="../glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">)</span><span class="normal"> </span><span class="cbracket">{</span>
<span class="normal">    </span><span class="comment">/* Note that you might want to attempt to remove the intermediate_entry from the new_folder in this error case, so that</span>
<span class="comment">     * the operation is aborted cleanly. */</span>
<span class="normal">    </span><span class="function"><a href="../glib/glib-Message-Logging.html#g-error">g_error</a></span><span class="normal"> </span><span class="symbol">(</span><span class="string">"Error removing entry from previous folder: %s"</span><span class="symbol">,</span><span class="normal"> error</span><span class="symbol">-&gt;</span><span class="normal">message</span><span class="symbol">);</span>
<span class="normal">    </span><span class="function"><a href="../glib/glib-Error-Reporting.html#g-error-free">g_error_free</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">error</span><span class="symbol">);</span>
<span class="normal">    </span><span class="keyword">return</span><span class="symbol">;</span>
<span class="cbracket">}</span>

<span class="comment">/* Do something with the updated entry */</span>

<span class="function"><a href="../gobject/gobject-The-Base-Object-Type.html#g-object-unref">g_object_unref</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">updated_entry</span><span class="symbol">);</span></pre></td>
      </tr>
    </tbody>
  </table>
</div>

</div>
<br class="example-break">
</div>
<div class="refsect1">
<a name="GDataDocumentsEntry.functions_details"></a><h2>Functions</h2>
<div class="refsect2">
<a name="gdata-documents-entry-get-path"></a><h3>gdata_documents_entry_get_path ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
gdata_documents_entry_get_path (<em class="parameter"><code><a class="link" href="GDataDocumentsEntry.html" title="GDataDocumentsEntry"><span class="type">GDataDocumentsEntry</span></a> *self</code></em>);</pre>
<p>Builds a path for the <a class="link" href="GDataDocumentsEntry.html" title="GDataDocumentsEntry"><span class="type">GDataDocumentsEntry</span></a>, starting from a root node and traversing the folders containing the document, then ending with the
document's ID.</p>
<p>An example path would be: <code class="literal">/folder_id1/folder_id2/document_id</code>.</p>
<p>Note: the path is based on the entry/document IDs of the folders (<a class="link" href="GDataEntry.html#GDataEntry--id" title="The “id” property"><span class="type">“id”</span></a>) and document (<a class="link" href="GDataDocumentsEntry.html#GDataDocumentsEntry--document-id" title="The “document-id” property"><span class="type">“document-id”</span></a>),
and not the entries' human-readable names (<a class="link" href="GDataEntry.html#GDataEntry--title" title="The “title” property"><span class="type">“title”</span></a>).</p>
<div class="refsect3">
<a name="gdata-documents-entry-get-path.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="GDataDocumentsEntry.html" title="GDataDocumentsEntry"><span class="type">GDataDocumentsEntry</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gdata-documents-entry-get-path.returns"></a><h4>Returns</h4>
<p> the folder hierarchy path containing the document, or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>; free with <a href="../glib/glib-Memory-Allocation.html#g-free"><code class="function">g_free()</code></a></p>
</div>
<p class="since">Since: <a class="link" href="ix06.html#api-index-0.4.0">0.4.0</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gdata-documents-entry-get-resource-id"></a><h3>gdata_documents_entry_get_resource_id ()</h3>
<pre class="programlisting">const <a href="../glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
gdata_documents_entry_get_resource_id (<em class="parameter"><code><a class="link" href="GDataDocumentsEntry.html" title="GDataDocumentsEntry"><span class="type">GDataDocumentsEntry</span></a> *self</code></em>);</pre>
<p>Gets the <a class="link" href="GDataDocumentsEntry.html#GDataDocumentsEntry--resource-id" title="The “resource-id” property"><span class="type">“resource-id”</span></a> property.</p>
<div class="refsect3">
<a name="gdata-documents-entry-get-resource-id.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="GDataDocumentsEntry.html" title="GDataDocumentsEntry"><span class="type">GDataDocumentsEntry</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gdata-documents-entry-get-resource-id.returns"></a><h4>Returns</h4>
<p> the document's resource ID</p>
</div>
<p class="since">Since: <a class="link" href="ix14.html#api-index-0.11.0">0.11.0</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gdata-documents-entry-get-document-id"></a><h3>gdata_documents_entry_get_document_id ()</h3>
<pre class="programlisting">const <a href="../glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
gdata_documents_entry_get_document_id (<em class="parameter"><code><a class="link" href="GDataDocumentsEntry.html" title="GDataDocumentsEntry"><span class="type">GDataDocumentsEntry</span></a> *self</code></em>);</pre>
<div class="warning">
<p><code class="literal">gdata_documents_entry_get_document_id</code> has been deprecated since version 0.11.0 and should not be used in newly-written code.</p>
<p>Use <a class="link" href="GDataDocumentsEntry.html#gdata-documents-entry-get-resource-id" title="gdata_documents_entry_get_resource_id ()"><code class="function">gdata_documents_entry_get_resource_id()</code></a> instead. See <a class="link" href="GDataDocumentsEntry.html#GDataDocumentsEntry--document-id" title="The “document-id” property"><span class="type">“document-id”</span></a>.</p>
</div>
<p>Gets the <a class="link" href="GDataDocumentsEntry.html#GDataDocumentsEntry--document-id" title="The “document-id” property"><span class="type">“document-id”</span></a> property. The</p>
<a class="ulink" href="https://developers.google.com/google-apps/documents-list/#terminology_used_in_this_guide" target="_top">online GData Documentation</a><p>refers to these as “untyped resource IDs”.</p>
<div class="refsect3">
<a name="gdata-documents-entry-get-document-id.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="GDataDocumentsEntry.html" title="GDataDocumentsEntry"><span class="type">GDataDocumentsEntry</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gdata-documents-entry-get-document-id.returns"></a><h4>Returns</h4>
<p> the document's document ID</p>
</div>
<p class="since">Since: <a class="link" href="ix06.html#api-index-0.4.0">0.4.0</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gdata-documents-entry-get-edited"></a><h3>gdata_documents_entry_get_edited ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gint64"><span class="returnvalue">gint64</span></a>
gdata_documents_entry_get_edited (<em class="parameter"><code><a class="link" href="GDataDocumentsEntry.html" title="GDataDocumentsEntry"><span class="type">GDataDocumentsEntry</span></a> *self</code></em>);</pre>
<div class="warning">
<p><code class="literal">gdata_documents_entry_get_edited</code> has been deprecated since version 0.17.0 and should not be used in newly-written code.</p>
<p>Use <a class="link" href="GDataEntry.html#gdata-entry-get-updated" title="gdata_entry_get_updated ()"><code class="function">gdata_entry_get_updated()</code></a> instead. See <a class="link" href="GDataDocumentsEntry.html#GDataDocumentsEntry--edited" title="The “edited” property"><span class="type">“edited”</span></a>.</p>
</div>
<p>Gets the <a class="link" href="GDataDocumentsEntry.html#GDataDocumentsEntry--edited" title="The “edited” property"><span class="type">“edited”</span></a> property. If the property is unset, <code class="code">-1</code> will be returned.</p>
<div class="refsect3">
<a name="gdata-documents-entry-get-edited.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="GDataDocumentsEntry.html" title="GDataDocumentsEntry"><span class="type">GDataDocumentsEntry</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gdata-documents-entry-get-edited.returns"></a><h4>Returns</h4>
<p> the UNIX timestamp for the time the document was last edited, or <code class="code">-1</code></p>
</div>
<p class="since">Since: <a class="link" href="ix06.html#api-index-0.4.0">0.4.0</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gdata-documents-entry-get-last-modified-by"></a><h3>gdata_documents_entry_get_last_modified_by ()</h3>
<pre class="programlisting"><a class="link" href="GDataAuthor.html" title="GDataAuthor"><span class="returnvalue">GDataAuthor</span></a> *
gdata_documents_entry_get_last_modified_by
                               (<em class="parameter"><code><a class="link" href="GDataDocumentsEntry.html" title="GDataDocumentsEntry"><span class="type">GDataDocumentsEntry</span></a> *self</code></em>);</pre>
<p>Gets the <a class="link" href="GDataDocumentsEntry.html#GDataDocumentsEntry--last-modified-by" title="The “last-modified-by” property"><span class="type">“last-modified-by”</span></a> property.</p>
<div class="refsect3">
<a name="gdata-documents-entry-get-last-modified-by.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="GDataDocumentsEntry.html" title="GDataDocumentsEntry"><span class="type">GDataDocumentsEntry</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gdata-documents-entry-get-last-modified-by.returns"></a><h4>Returns</h4>
<p>the author who last modified the document. </p>
<p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
</div>
<p class="since">Since: <a class="link" href="ix06.html#api-index-0.4.0">0.4.0</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gdata-documents-entry-get-last-viewed"></a><h3>gdata_documents_entry_get_last_viewed ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gint64"><span class="returnvalue">gint64</span></a>
gdata_documents_entry_get_last_viewed (<em class="parameter"><code><a class="link" href="GDataDocumentsEntry.html" title="GDataDocumentsEntry"><span class="type">GDataDocumentsEntry</span></a> *self</code></em>);</pre>
<div class="warning"><p><code class="literal">gdata_documents_entry_get_last_viewed</code> is deprecated and should not be used in newly-written code.</p></div>
<p>Gets the <a class="link" href="GDataDocumentsEntry.html#GDataDocumentsEntry--last-viewed" title="The “last-viewed” property"><span class="type">“last-viewed”</span></a> property. If the property is unset, <code class="code">-1</code> will be returned.</p>
<div class="refsect3">
<a name="gdata-documents-entry-get-last-viewed.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="GDataDocumentsEntry.html" title="GDataDocumentsEntry"><span class="type">GDataDocumentsEntry</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gdata-documents-entry-get-last-viewed.returns"></a><h4>Returns</h4>
<p> the UNIX timestamp for the time the document was last viewed, or <code class="code">-1</code></p>
</div>
<p class="since">Since: <a class="link" href="ix06.html#api-index-0.4.0">0.4.0</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gdata-documents-entry-get-quota-used"></a><h3>gdata_documents_entry_get_quota_used ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#goffset"><span class="returnvalue">goffset</span></a>
gdata_documents_entry_get_quota_used (<em class="parameter"><code><a class="link" href="GDataDocumentsEntry.html" title="GDataDocumentsEntry"><span class="type">GDataDocumentsEntry</span></a> *self</code></em>);</pre>
<p>Gets the <a class="link" href="GDataDocumentsEntry.html#GDataDocumentsEntry--quota-used" title="The “quota-used” property"><span class="type">“quota-used”</span></a> property.</p>
<div class="refsect3">
<a name="gdata-documents-entry-get-quota-used.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="GDataDocumentsEntry.html" title="GDataDocumentsEntry"><span class="type">GDataDocumentsEntry</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gdata-documents-entry-get-quota-used.returns"></a><h4>Returns</h4>
<p> the number of quota bytes used by the document</p>
</div>
<p class="since">Since: <a class="link" href="ix15.html#api-index-0.13.0">0.13.0</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gdata-documents-entry-get-file-size"></a><h3>gdata_documents_entry_get_file_size ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#goffset"><span class="returnvalue">goffset</span></a>
gdata_documents_entry_get_file_size (<em class="parameter"><code><a class="link" href="GDataDocumentsEntry.html" title="GDataDocumentsEntry"><span class="type">GDataDocumentsEntry</span></a> *self</code></em>);</pre>
<p>Gets the <a class="link" href="GDataDocumentsEntry.html#GDataDocumentsEntry--file-size" title="The “file-size” property"><span class="type">“file-size”</span></a> property.</p>
<div class="refsect3">
<a name="gdata-documents-entry-get-file-size.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="GDataDocumentsEntry.html" title="GDataDocumentsEntry"><span class="type">GDataDocumentsEntry</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gdata-documents-entry-get-file-size.returns"></a><h4>Returns</h4>
<p> the size of the document in bytes</p>
</div>
<p class="since">Since: <a class="link" href="ix24.html#api-index-0.17.7">0.17.7</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gdata-documents-entry-writers-can-invite"></a><h3>gdata_documents_entry_writers_can_invite ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
gdata_documents_entry_writers_can_invite
                               (<em class="parameter"><code><a class="link" href="GDataDocumentsEntry.html" title="GDataDocumentsEntry"><span class="type">GDataDocumentsEntry</span></a> *self</code></em>);</pre>
<p>Gets the <a class="link" href="GDataDocumentsEntry.html#GDataDocumentsEntry--writers-can-invite" title="The “writers-can-invite” property"><span class="type">“writers-can-invite”</span></a> property.</p>
<div class="refsect3">
<a name="gdata-documents-entry-writers-can-invite.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="GDataDocumentsEntry.html" title="GDataDocumentsEntry"><span class="type">GDataDocumentsEntry</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gdata-documents-entry-writers-can-invite.returns"></a><h4>Returns</h4>
<p> <a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if writers can invite other people to edit the document, <a href="../glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> otherwise</p>
</div>
<p class="since">Since: <a class="link" href="ix06.html#api-index-0.4.0">0.4.0</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gdata-documents-entry-set-writers-can-invite"></a><h3>gdata_documents_entry_set_writers_can_invite ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
gdata_documents_entry_set_writers_can_invite
                               (<em class="parameter"><code><a class="link" href="GDataDocumentsEntry.html" title="GDataDocumentsEntry"><span class="type">GDataDocumentsEntry</span></a> *self</code></em>,
                                <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> writers_can_invite</code></em>);</pre>
<p>Sets the <a class="link" href="GDataDocumentsEntry.html#GDataDocumentsEntry--writers-can-invite" title="The “writers-can-invite” property"><span class="type">“writers-can-invite”</span></a> property to <em class="parameter"><code>writers_can_invite</code></em>
.</p>
<div class="refsect3">
<a name="gdata-documents-entry-set-writers-can-invite.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="GDataDocumentsEntry.html" title="GDataDocumentsEntry"><span class="type">GDataDocumentsEntry</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>writers_can_invite</p></td>
<td class="parameter_description"><p><a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if writers can invite other people to edit the document, <a href="../glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> otherwise</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<p class="since">Since: <a class="link" href="ix06.html#api-index-0.4.0">0.4.0</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gdata-documents-entry-is-deleted"></a><h3>gdata_documents_entry_is_deleted ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
gdata_documents_entry_is_deleted (<em class="parameter"><code><a class="link" href="GDataDocumentsEntry.html" title="GDataDocumentsEntry"><span class="type">GDataDocumentsEntry</span></a> *self</code></em>);</pre>
<p>Gets the <a class="link" href="GDataDocumentsEntry.html#GDataDocumentsEntry--is-deleted" title="The “is-deleted” property"><span class="type">“is-deleted”</span></a> property.</p>
<div class="refsect3">
<a name="gdata-documents-entry-is-deleted.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="GDataDocumentsEntry.html" title="GDataDocumentsEntry"><span class="type">GDataDocumentsEntry</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gdata-documents-entry-is-deleted.returns"></a><h4>Returns</h4>
<p> <a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the document has been deleted, <a href="../glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> otherwise</p>
</div>
<p class="since">Since: <a class="link" href="ix07.html#api-index-0.5.0">0.5.0</a></p>
</div>
</div>
<div class="refsect1">
<a name="GDataDocumentsEntry.other_details"></a><h2>Types and Values</h2>
<div class="refsect2">
<a name="GDATA-DOCUMENTS-ACCESS-ROLE-OWNER:CAPS"></a><h3>GDATA_DOCUMENTS_ACCESS_ROLE_OWNER</h3>
<pre class="programlisting">#define GDATA_DOCUMENTS_ACCESS_ROLE_OWNER "owner"
</pre>
<p>The users specified by the <a class="link" href="GDataAccessRule.html" title="GDataAccessRule"><span class="type">GDataAccessRule</span></a> have full owner access to the document. This allows them to modify the access rules and delete
the document, amongst other things.</p>
<p class="since">Since: <a class="link" href="ix09.html#api-index-0.7.0">0.7.0</a></p>
</div>
<hr>
<div class="refsect2">
<a name="GDATA-DOCUMENTS-ACCESS-ROLE-WRITER:CAPS"></a><h3>GDATA_DOCUMENTS_ACCESS_ROLE_WRITER</h3>
<pre class="programlisting">#define GDATA_DOCUMENTS_ACCESS_ROLE_WRITER "writer"
</pre>
<p>The users specified by the <a class="link" href="GDataAccessRule.html" title="GDataAccessRule"><span class="type">GDataAccessRule</span></a> have write access to the document. They cannot modify the access rules or delete the document.</p>
<p class="since">Since: <a class="link" href="ix09.html#api-index-0.7.0">0.7.0</a></p>
</div>
<hr>
<div class="refsect2">
<a name="GDATA-DOCUMENTS-ACCESS-ROLE-READER:CAPS"></a><h3>GDATA_DOCUMENTS_ACCESS_ROLE_READER</h3>
<pre class="programlisting">#define GDATA_DOCUMENTS_ACCESS_ROLE_READER "reader"
</pre>
<p>The users specified by the <a class="link" href="GDataAccessRule.html" title="GDataAccessRule"><span class="type">GDataAccessRule</span></a> have read-only access to the document.</p>
<p class="since">Since: <a class="link" href="ix09.html#api-index-0.7.0">0.7.0</a></p>
</div>
<hr>
<div class="refsect2">
<a name="GDataDocumentsEntry-struct"></a><h3>GDataDocumentsEntry</h3>
<pre class="programlisting">typedef struct _GDataDocumentsEntry GDataDocumentsEntry;</pre>
<p>All the fields in the <a class="link" href="GDataDocumentsEntry.html" title="GDataDocumentsEntry"><span class="type">GDataDocumentsEntry</span></a> structure are private and should never be accessed directly.</p>
<p class="since">Since: <a class="link" href="ix06.html#api-index-0.4.0">0.4.0</a></p>
</div>
<hr>
<div class="refsect2">
<a name="GDataDocumentsEntryClass"></a><h3>GDataDocumentsEntryClass</h3>
<pre class="programlisting">typedef struct {
} GDataDocumentsEntryClass;
</pre>
<p>All the fields in the <a class="link" href="GDataDocumentsEntry.html#GDataDocumentsEntryClass" title="GDataDocumentsEntryClass"><span class="type">GDataDocumentsEntryClass</span></a> structure are private and should never be accessed directly.</p>
<p class="since">Since: <a class="link" href="ix06.html#api-index-0.4.0">0.4.0</a></p>
</div>
</div>
<div class="refsect1">
<a name="GDataDocumentsEntry.property-details"></a><h2>Property Details</h2>
<div class="refsect2">
<a name="GDataDocumentsEntry--document-id"></a><h3>The <code class="literal">“document-id”</code> property</h3>
<pre class="programlisting">  “document-id”              <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *</pre>
<p>The document ID of the document, which is different from its entry ID (GDataEntry:id). The</p>
<a class="ulink" href="https://developers.google.com/google-apps/documents-list/#terminology_used_in_this_guide" target="_top">online GData
Documentation</a> refers to these as “untyped resource IDs”.
<div class="warning">
<p><code class="literal">GDataDocumentsEntry:document-id</code> has been deprecated since version 0.11.0 and should not be used in newly-written code.</p>
<p>This a substring of the <a class="link" href="GDataDocumentsEntry.html#GDataDocumentsEntry--resource-id" title="The “resource-id” property"><span class="type">“resource-id”</span></a>, which is more general and should be used instead.</p>
</div>
<p>Flags: Read</p>
<p>Default value: NULL</p>
<p class="since">Since: <a class="link" href="ix06.html#api-index-0.4.0">0.4.0</a></p>
</div>
<hr>
<div class="refsect2">
<a name="GDataDocumentsEntry--edited"></a><h3>The <code class="literal">“edited”</code> property</h3>
<pre class="programlisting">  “edited”                   <a href="../glib/glib-Basic-Types.html#gint64"><span class="type">gint64</span></a></pre>
<p>The last time the document was edited. If the document has not been edited yet, the content indicates the time it was created.</p>
<div class="warning">
<p><code class="literal">GDataDocumentsEntry:edited</code> has been deprecated since version 0.17.0 and should not be used in newly-written code.</p>
<p>This is identical to <a class="link" href="GDataEntry.html#GDataEntry--updated" title="The “updated” property"><span class="type">“updated”</span></a>.</p>
</div>
<p>Flags: Read</p>
<p>Allowed values: &gt;= -1</p>
<p>Default value: -1</p>
<p class="since">Since: <a class="link" href="ix06.html#api-index-0.4.0">0.4.0</a></p>
</div>
<hr>
<div class="refsect2">
<a name="GDataDocumentsEntry--file-size"></a><h3>The <code class="literal">“file-size”</code> property</h3>
<pre class="programlisting">  “file-size”                <a href="../glib/glib-Basic-Types.html#gint64"><span class="type">gint64</span></a></pre>
<p>The size of the document. This is only set for non-document files.
Standard formats, such as <a class="link" href="GDataDocumentsText.html" title="GDataDocumentsText"><span class="type">GDataDocumentsText</span></a>,
<a class="link" href="GDataDocumentsSpreadsheet.html" title="GDataDocumentsSpreadsheet"><span class="type">GDataDocumentsSpreadsheet</span></a> and <a class="link" href="GDataDocumentsFolder.html" title="GDataDocumentsFolder"><span class="type">GDataDocumentsFolder</span></a> are not binary
data and so have no size. Measured in bytes.</p>
<p>Flags: Read</p>
<p>Allowed values: &gt;= 0</p>
<p>Default value: 0</p>
<p class="since">Since: <a class="link" href="ix24.html#api-index-0.17.7">0.17.7</a></p>
</div>
<hr>
<div class="refsect2">
<a name="GDataDocumentsEntry--is-deleted"></a><h3>The <code class="literal">“is-deleted”</code> property</h3>
<pre class="programlisting">  “is-deleted”               <a href="../glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a></pre>
<p>Indicates whether the document entry has been deleted (moved to the trash). Deleted documents will only
appear in query results if the <a class="link" href="GDataDocumentsQuery.html#GDataDocumentsQuery--show-deleted" title="The “show-deleted” property"><span class="type">“show-deleted”</span></a> property is <a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a>.</p>
<p>Flags: Read / Write</p>
<p>Default value: FALSE</p>
<p class="since">Since: <a class="link" href="ix07.html#api-index-0.5.0">0.5.0</a></p>
</div>
<hr>
<div class="refsect2">
<a name="GDataDocumentsEntry--last-modified-by"></a><h3>The <code class="literal">“last-modified-by”</code> property</h3>
<pre class="programlisting">  “last-modified-by”         <a class="link" href="GDataAuthor.html" title="GDataAuthor"><span class="type">GDataAuthor</span></a> *</pre>
<p>Indicates the author of the last modification.</p>
<p>Flags: Read</p>
<p class="since">Since: <a class="link" href="ix06.html#api-index-0.4.0">0.4.0</a></p>
</div>
<hr>
<div class="refsect2">
<a name="GDataDocumentsEntry--last-viewed"></a><h3>The <code class="literal">“last-viewed”</code> property</h3>
<pre class="programlisting">  “last-viewed”              <a href="../glib/glib-Basic-Types.html#gint64"><span class="type">gint64</span></a></pre>
<p>The last time the document was viewed.</p>
<p>Flags: Read</p>
<p>Allowed values: &gt;= -1</p>
<p>Default value: -1</p>
<p class="since">Since: <a class="link" href="ix06.html#api-index-0.4.0">0.4.0</a></p>
</div>
<hr>
<div class="refsect2">
<a name="GDataDocumentsEntry--quota-used"></a><h3>The <code class="literal">“quota-used”</code> property</h3>
<pre class="programlisting">  “quota-used”               <a href="../glib/glib-Basic-Types.html#gint64"><span class="type">gint64</span></a></pre>
<p>The amount of user quota the document is occupying. Currently, only arbitrary files consume file space quota (whereas standard document
formats, such as <a class="link" href="GDataDocumentsText.html" title="GDataDocumentsText"><span class="type">GDataDocumentsText</span></a>, <a class="link" href="GDataDocumentsSpreadsheet.html" title="GDataDocumentsSpreadsheet"><span class="type">GDataDocumentsSpreadsheet</span></a> and <a class="link" href="GDataDocumentsFolder.html" title="GDataDocumentsFolder"><span class="type">GDataDocumentsFolder</span></a> don't). Measured in bytes.</p>
<p>This property will be <code class="code">0</code> for documents which aren't consuming any quota.</p>
<p>Flags: Read</p>
<p>Allowed values: &gt;= 0</p>
<p>Default value: 0</p>
<p class="since">Since: <a class="link" href="ix15.html#api-index-0.13.0">0.13.0</a></p>
</div>
<hr>
<div class="refsect2">
<a name="GDataDocumentsEntry--resource-id"></a><h3>The <code class="literal">“resource-id”</code> property</h3>
<pre class="programlisting">  “resource-id”              <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *</pre>
<p>The resource ID of the document. This should not normally need to be used in client code, and is mostly for internal use. To uniquely
identify a given document or folder, use its <a class="link" href="GDataEntry.html#GDataEntry--id" title="The “id” property"><span class="type">“id”</span></a>.</p>
<p>Resource IDs have the form:
<code class="literal"><em class="replaceable"><code>document|drawing|pdf|spreadsheet|presentation|folder</code></em>:<em class="replaceable"><code>untyped resource ID</code></em></code>; whereas
entry IDs have the form:
<code class="literal">https://docs.google.com/feeds/id/<em class="replaceable"><code>resource ID</code></em></code> in version 3 of the API.</p>
<p>For more information, see the</p>
<a class="ulink" href="https://developers.google.com/google-apps/documents-list/#resource_ids_explained" target="_top">Google Documents
API reference</a>.
<p>Flags: Read</p>
<p>Default value: NULL</p>
<p class="since">Since: <a class="link" href="ix14.html#api-index-0.11.0">0.11.0</a></p>
</div>
<hr>
<div class="refsect2">
<a name="GDataDocumentsEntry--writers-can-invite"></a><h3>The <code class="literal">“writers-can-invite”</code> property</h3>
<pre class="programlisting">  “writers-can-invite”       <a href="../glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a></pre>
<p>Indicates whether the document entry writers can invite others to edit the document.</p>
<p>Flags: Read / Write</p>
<p>Default value: FALSE</p>
<p class="since">Since: <a class="link" href="ix06.html#api-index-0.4.0">0.4.0</a></p>
</div>
</div>
</div>
<div class="footer">
<hr>Generated by GTK-Doc V1.26.1</div>
</body>
</html>