Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | None |
Language | Haskell2010 |
A GdkContentDeserializer is used to deserialize content received via inter-application data transfers.
Synopsis
- newtype ContentDeserializer = ContentDeserializer (ManagedPtr ContentDeserializer)
- class (GObject o, IsDescendantOf ContentDeserializer o) => IsContentDeserializer o
- toContentDeserializer :: (MonadIO m, IsContentDeserializer o) => o -> m ContentDeserializer
- contentDeserializerGetCancellable :: (HasCallStack, MonadIO m, IsContentDeserializer a) => a -> m Cancellable
- contentDeserializerGetGtype :: (HasCallStack, MonadIO m, IsContentDeserializer a) => a -> m GType
- contentDeserializerGetInputStream :: (HasCallStack, MonadIO m, IsContentDeserializer a) => a -> m InputStream
- contentDeserializerGetMimeType :: (HasCallStack, MonadIO m, IsContentDeserializer a) => a -> m Text
- contentDeserializerGetPriority :: (HasCallStack, MonadIO m, IsContentDeserializer a) => a -> m Int32
- contentDeserializerGetTaskData :: (HasCallStack, MonadIO m, IsContentDeserializer a) => a -> m (Ptr ())
- contentDeserializerGetUserData :: (HasCallStack, MonadIO m, IsContentDeserializer a) => a -> m (Ptr ())
- contentDeserializerGetValue :: (HasCallStack, MonadIO m, IsContentDeserializer a) => a -> m GValue
- contentDeserializerReturnError :: (HasCallStack, MonadIO m, IsContentDeserializer a) => a -> GError -> m ()
- contentDeserializerReturnSuccess :: (HasCallStack, MonadIO m, IsContentDeserializer a) => a -> m ()
- contentDeserializerSetTaskData :: (HasCallStack, MonadIO m, IsContentDeserializer a) => a -> Ptr () -> DestroyNotify -> m ()
Exported types
newtype ContentDeserializer Source #
Memory-managed wrapper type.
Instances
Eq ContentDeserializer Source # | |
Defined in GI.Gdk.Objects.ContentDeserializer (==) :: ContentDeserializer -> ContentDeserializer -> Bool # (/=) :: ContentDeserializer -> ContentDeserializer -> Bool # | |
IsGValue ContentDeserializer Source # | Convert |
Defined in GI.Gdk.Objects.ContentDeserializer toGValue :: ContentDeserializer -> IO GValue # fromGValue :: GValue -> IO ContentDeserializer # | |
ManagedPtrNewtype ContentDeserializer Source # | |
TypedObject ContentDeserializer Source # | |
Defined in GI.Gdk.Objects.ContentDeserializer | |
GObject ContentDeserializer Source # | |
Defined in GI.Gdk.Objects.ContentDeserializer | |
HasParentTypes ContentDeserializer Source # | |
Defined in GI.Gdk.Objects.ContentDeserializer | |
type ParentTypes ContentDeserializer Source # | |
Defined in GI.Gdk.Objects.ContentDeserializer |
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
(GObject o, IsDescendantOf ContentDeserializer o) => IsContentDeserializer o Source # | |
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 #
:: (HasCallStack, MonadIO m, IsContentDeserializer a) | |
=> a |
|
-> m Cancellable | Returns: the cancellable for the current operation |
Gets the cancellable that was passed to contentDeserializeAsync
.
getGtype
contentDeserializerGetGtype Source #
:: (HasCallStack, MonadIO m, IsContentDeserializer a) | |
=> a |
|
-> m GType | Returns: the GType for the current operation |
Gets the GType to create an instance of.
getInputStream
contentDeserializerGetInputStream Source #
:: (HasCallStack, MonadIO m, IsContentDeserializer a) | |
=> a |
|
-> m InputStream | Returns: the input stream for the current operation |
Gets the input stream that was passed to contentDeserializeAsync
.
getMimeType
contentDeserializerGetMimeType Source #
:: (HasCallStack, MonadIO m, IsContentDeserializer a) | |
=> a |
|
-> m Text | Returns: the mime type for the current operation |
Gets the mime type to deserialize from.
getPriority
contentDeserializerGetPriority Source #
:: (HasCallStack, MonadIO m, IsContentDeserializer a) | |
=> a |
|
-> m Int32 | Returns: the io priority for the current operation |
Gets the io priority that was passed to contentDeserializeAsync
.
getTaskData
contentDeserializerGetTaskData Source #
:: (HasCallStack, MonadIO m, IsContentDeserializer a) | |
=> a |
|
-> m (Ptr ()) | Returns: the task data for |
Gets the data that was associated with deserializer
via contentDeserializerSetTaskData
.
getUserData
contentDeserializerGetUserData Source #
:: (HasCallStack, MonadIO m, IsContentDeserializer a) | |
=> a |
|
-> m (Ptr ()) | Returns: the user data for this deserializer |
Gets the user data that was passed when the deserializer was registered.
getValue
contentDeserializerGetValue Source #
:: (HasCallStack, MonadIO m, IsContentDeserializer a) | |
=> a |
|
-> m GValue | Returns: the |
Gets the Value
to store the deserialized object in.
returnError
contentDeserializerReturnError Source #
:: (HasCallStack, MonadIO m, IsContentDeserializer a) | |
=> a |
|
-> GError |
|
-> m () |
Indicate that the deserialization has ended with an error.
This function consumes error
.
returnSuccess
contentDeserializerReturnSuccess Source #
:: (HasCallStack, MonadIO m, IsContentDeserializer a) | |
=> a |
|
-> m () |
Indicate that the deserialization has been successfully completed.
setTaskData
contentDeserializerSetTaskData Source #
:: (HasCallStack, MonadIO m, IsContentDeserializer a) | |
=> a |
|
-> Ptr () |
|
-> DestroyNotify |
|
-> m () |
Associate data with the current deserialization operation.