UploadStream
Object Hierarchy:
Description:
[ CCode ( type_id = "gdata_upload_stream_get_type ()" ) ]
[ Version ( since = "0.5.0" ) ]
public class UploadStream : OutputStream
All the fields in the UploadStream structure are private and should never be accessed directly.
Content:
Properties:
- public AuthorizationDomain authorization_domain { get; construct; }
The authorization domain for the upload, against which the
authorizer for the
service should be authorized.
- public Cancellable cancellable { get; construct; }
An optional cancellable used to cancel the entire upload operation.
- public int64 content_length { get; construct; }
The content length (in bytes) of the file being uploaded (i.e. as
returned by get_size).
- public string content_type { get; construct; }
The content type of the file being uploaded (i.e. as returned by
get_content_type).
- public Entry entry { get; construct; }
The entry used for metadata to upload.
- public string method { get; construct; }
The HTTP request method to use when uploading the file.
- public Service service { get; construct; }
The service which is used to authorize the upload, and to which the
upload relates.
- public string slug { get; construct; }
The slug of the file being uploaded.
- public string upload_uri { get; construct; }
The URI to upload the data and metadata to.
Creation methods:
- public UploadStream (Service service, AuthorizationDomain? domain, string method, string upload_uri, Entry? entry, string slug, string content_type, Cancellable? cancellable = null)
Creates a new UploadStream, allowing a file
to be uploaded from a GData service using standard OutputStream API.
- public UploadStream.resumable (Service service, AuthorizationDomain? domain, string method, string upload_uri, Entry? entry, string slug, string content_type, int64 content_length, Cancellable? cancellable = null)
Creates a new resumable UploadStream,
allowing a file to be uploaded from a GData service using standard OutputStream API.
Methods:
Inherited Members:
All known members inherited from class GLib.OutputStream
- clear_pending
- close
- close_async
- flush
- flush_async
- has_pending
- is_closed
- is_closing
- printf
- set_pending
- splice
- splice_async
- vprintf
- write
- write_all
- write_all_async
- write_async
- write_bytes
- write_bytes_async
- writev
- writev_all
- writev_all_async
- writev_async
All known members inherited from class GLib.Object
- @get
- @new
- @ref
- @set
- add_toggle_ref
- add_weak_pointer
- bind_property
- connect
- constructed
- disconnect
- dispose
- dup_data
- dup_qdata
- force_floating
- freeze_notify
- get_class
- get_data
- get_property
- get_qdata
- get_type
- getv
- interface_find_property
- interface_install_property
- interface_list_properties
- is_floating
- new_valist
- new_with_properties
- newv
- notify
- notify_property
- ref_count
- ref_sink
- remove_toggle_ref
- remove_weak_pointer
- replace_data
- replace_qdata
- set_data
- set_data_full
- set_property
- set_qdata
- set_qdata_full
- set_valist
- setv
- steal_data
- steal_qdata
- thaw_notify
- unref
- watch_closure
- weak_ref
- weak_unref