Virtual Method

Gdk.ContentProvider.write_mime_type_async

Declaration [src]

void
write_mime_type_async (
  GdkContentProvider* provider,
  const char* mime_type,
  GOutputStream* stream,
  int io_priority,
  GCancellable* cancellable,
  GAsyncReadyCallback callback,
  gpointer user_data
)

Description [src]

Asynchronously writes the contents of provider to stream in the given mime_type.

When the operation is finished callback will be called. You must then call gdk_content_provider_write_mime_type_finish() to get the result of the operation.

The given mime type does not need to be listed in the formats returned by gdk_content_provider_ref_formats(). However, if the given GType is not supported, #G_IO_ERROR_NOT_SUPPORTED will be reported.

The given stream will not be closed.

Parameters

mime_type const char*
 

the mime type to provide the data in

 Ownership is not transferred to the callee
 The string is a NUL terminated UTF-8 string
stream GOutputStream*
 

the GOutputStream to write to

 Ownership is not transferred to the callee
io_priority int
 

I/O priority of the request.

cancellable GCancellable*
 

optional GCancellable object, NULL to ignore.

 Can be NULL
 Ownership is not transferred to the callee
callback GAsyncReadyCallback
 

callback to call when the request is satisfied

user_data gpointer
 

the data to pass to callback function