gi-gdk-4.0.2: Gdk bindings
CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellNone
LanguageHaskell2010

GI.Gdk.Objects.ContentDeserializer

Description

A GdkContentDeserializer is used to deserialize content received via inter-application data transfers.

Synopsis

Exported types

class (GObject o, IsDescendantOf ContentDeserializer o) => IsContentDeserializer o Source #

Type class for types which can be safely cast to ContentDeserializer, for instance with toContentDeserializer.

Instances

Instances details
(GObject o, IsDescendantOf ContentDeserializer o) => IsContentDeserializer o Source # 
Instance details

Defined in GI.Gdk.Objects.ContentDeserializer

toContentDeserializer :: (MonadIO m, IsContentDeserializer o) => o -> m ContentDeserializer Source #

Cast to ContentDeserializer, for types for which this is known to be safe. For general casts, use castTo.

Methods

Overloaded methods

getCancellable

contentDeserializerGetCancellable Source #

Arguments

:: (HasCallStack, MonadIO m, IsContentDeserializer a) 
=> a

deserializer: a ContentDeserializer

-> m Cancellable

Returns: the cancellable for the current operation

Gets the cancellable that was passed to contentDeserializeAsync.

getGtype

contentDeserializerGetGtype Source #

Arguments

:: (HasCallStack, MonadIO m, IsContentDeserializer a) 
=> a

deserializer: a ContentDeserializer

-> m GType

Returns: the GType for the current operation

Gets the GType to create an instance of.

getInputStream

contentDeserializerGetInputStream Source #

Arguments

:: (HasCallStack, MonadIO m, IsContentDeserializer a) 
=> a

deserializer: a ContentDeserializer

-> m InputStream

Returns: the input stream for the current operation

Gets the input stream that was passed to contentDeserializeAsync.

getMimeType

contentDeserializerGetMimeType Source #

Arguments

:: (HasCallStack, MonadIO m, IsContentDeserializer a) 
=> a

deserializer: a ContentDeserializer

-> m Text

Returns: the mime type for the current operation

Gets the mime type to deserialize from.

getPriority

contentDeserializerGetPriority Source #

Arguments

:: (HasCallStack, MonadIO m, IsContentDeserializer a) 
=> a

deserializer: a ContentDeserializer

-> m Int32

Returns: the io priority for the current operation

Gets the io priority that was passed to contentDeserializeAsync.

getTaskData

contentDeserializerGetTaskData Source #

Arguments

:: (HasCallStack, MonadIO m, IsContentDeserializer a) 
=> a

deserializer: a ContentDeserializer

-> m (Ptr ())

Returns: the task data for deserializer

Gets the data that was associated with deserializer via contentDeserializerSetTaskData.

getUserData

contentDeserializerGetUserData Source #

Arguments

:: (HasCallStack, MonadIO m, IsContentDeserializer a) 
=> a

deserializer: a ContentDeserializer

-> m (Ptr ())

Returns: the user data for this deserializer

Gets the user data that was passed when the deserializer was registered.

getValue

contentDeserializerGetValue Source #

Arguments

:: (HasCallStack, MonadIO m, IsContentDeserializer a) 
=> a

deserializer: a ContentDeserializer

-> m GValue

Returns: the Value for the current operation

Gets the Value to store the deserialized object in.

returnError

contentDeserializerReturnError Source #

Arguments

:: (HasCallStack, MonadIO m, IsContentDeserializer a) 
=> a

deserializer: a ContentDeserializer

-> GError

error: a GError

-> m () 

Indicate that the deserialization has ended with an error. This function consumes error.

returnSuccess

contentDeserializerReturnSuccess Source #

Arguments

:: (HasCallStack, MonadIO m, IsContentDeserializer a) 
=> a

deserializer: a ContentDeserializer

-> m () 

Indicate that the deserialization has been successfully completed.

setTaskData

contentDeserializerSetTaskData Source #

Arguments

:: (HasCallStack, MonadIO m, IsContentDeserializer a) 
=> a

deserializer: a ContentDeserializer

-> Ptr ()

data: data to associate with this operation

-> DestroyNotify

notify: destroy notify for data

-> m () 

Associate data with the current deserialization operation.