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.
- public string content_type { get; construct; }
The content type of the file being uploaded (i.
- 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
All known members inherited from class GLib.Object