Top | ![]() |
![]() |
![]() |
![]() |
GDataDocumentsUploadQuery is a collection of parameters for document uploads to Google Documents, allowing various options to be set when uploading a document for the first time. For example, the destination folder for the uploaded document may be specified; or whether to automatically convert the document to a common format.
GDataDocumentsUploadQuery is designed as an object (rather than a fixed struct or set of function arguments) to allow for easy additions of new Google Documents features in the future.
GDataDocumentsUploadQuery *
gdata_documents_upload_query_new (void
);
Constructs a new empty GDataDocumentsUploadQuery.
Since: 0.13.0
gchar *
gdata_documents_upload_query_build_uri
(GDataDocumentsUploadQuery *self
);
Builds an upload URI suitable for passing to gdata_upload_stream_new_resumable()
in order to upload a document to Google Documents as described in
the
Since: 0.13.0
GDataDocumentsFolder *
gdata_documents_upload_query_get_folder
(GDataDocumentsUploadQuery *self
);
Gets “folder”.
Since: 0.13.0
void gdata_documents_upload_query_set_folder (GDataDocumentsUploadQuery *self
,GDataDocumentsFolder *folder
);
Sets “folder” to folder
.
Since: 0.13.0
gboolean
gdata_documents_upload_query_get_convert
(GDataDocumentsUploadQuery *self
);
Gets “convert”.
Since: 0.13.0
void gdata_documents_upload_query_set_convert (GDataDocumentsUploadQuery *self
,gboolean convert
);
Sets “convert” to convert
.
self |
||
convert |
|
Since: 0.13.0
typedef struct _GDataDocumentsUploadQuery GDataDocumentsUploadQuery;
All the fields in the GDataDocumentsUploadQuery structure are private and should never be accessed directly.
Since: 0.13.0
typedef struct { } GDataDocumentsUploadQueryClass;
All the fields in the GDataDocumentsUploadQueryClass structure are private and should never be accessed directly.
Since: 0.13.0
“convert”
property “convert” gboolean
TRUE
to automatically convert the uploaded document into a standard format (such as a text document, spreadsheet, presentation, etc.).
FALSE
to upload the document without converting it; this allows for arbitrary files to be uploaded to Google Documents.
For more information, see the
online documentation.Note that uploading with this property set to FALSE
will only have an effect when using gdata_documents_service_update_document_resumable()
and not gdata_documents_service_update_document()
. Additionally, the GDataDocumentsDocument passed to
gdata_documents_service_update_document_resumable()
must be a GDataDocumentsDocument if this property is FALSE
, and a subclass of it
otherwise.
Flags: Read / Write
Default value: TRUE
Since: 0.13.0
“folder”
property“folder” GDataDocumentsFolder *
Folder to upload the document into. If this is NULL
, the document will be uploaded into the root folder.
Flags: Read / Write
Since: 0.13.0