Copyright | Will Thompson and Iñaki García Etxebarria |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
No description available in the introspection data.
Synopsis
- newtype Attachment = Attachment (ManagedPtr Attachment)
- class (GObject o, IsDescendantOf Attachment o) => IsAttachment o
- toAttachment :: (MonadIO m, IsAttachment o) => o -> m Attachment
- attachmentGetChecksum :: (HasCallStack, MonadIO m, IsAttachment a) => a -> m String
- attachmentGetCtime :: (HasCallStack, MonadIO m, IsAttachment a) => a -> m (Maybe DateTime)
- attachmentGetDescription :: (HasCallStack, MonadIO m, IsAttachment a) => a -> m Text
- attachmentGetMtime :: (HasCallStack, MonadIO m, IsAttachment a) => a -> m (Maybe DateTime)
- attachmentGetName :: (HasCallStack, MonadIO m, IsAttachment a) => a -> m Text
- attachmentGetSize :: (HasCallStack, MonadIO m, IsAttachment a) => a -> m Word64
- attachmentSave :: (HasCallStack, MonadIO m, IsAttachment a) => a -> Text -> m ()
- attachmentSaveToCallback :: (HasCallStack, MonadIO m, IsAttachment a) => a -> FunPtr C_AttachmentSaveFunc -> m ()
- attachmentSaveToFd :: (HasCallStack, MonadIO m, IsAttachment a) => a -> Int32 -> m ()
Exported types
newtype Attachment Source #
Memory-managed wrapper type.
Attachment (ManagedPtr Attachment) |
Instances
Eq Attachment Source # | |
Defined in GI.Poppler.Objects.Attachment (==) :: Attachment -> Attachment -> Bool # (/=) :: Attachment -> Attachment -> Bool # | |
GObject Attachment Source # | |
Defined in GI.Poppler.Objects.Attachment | |
ManagedPtrNewtype Attachment Source # | |
Defined in GI.Poppler.Objects.Attachment toManagedPtr :: Attachment -> ManagedPtr Attachment | |
TypedObject Attachment Source # | |
Defined in GI.Poppler.Objects.Attachment | |
HasParentTypes Attachment Source # | |
Defined in GI.Poppler.Objects.Attachment | |
IsGValue (Maybe Attachment) Source # | Convert |
Defined in GI.Poppler.Objects.Attachment gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe Attachment -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe Attachment) | |
type ParentTypes Attachment Source # | |
Defined in GI.Poppler.Objects.Attachment type ParentTypes Attachment = '[Object] |
class (GObject o, IsDescendantOf Attachment o) => IsAttachment o Source #
Type class for types which can be safely cast to Attachment
, for instance with toAttachment
.
Instances
(GObject o, IsDescendantOf Attachment o) => IsAttachment o Source # | |
Defined in GI.Poppler.Objects.Attachment |
toAttachment :: (MonadIO m, IsAttachment o) => o -> m Attachment Source #
Cast to Attachment
, for types for which this is known to be safe. For general casts, use castTo
.
Methods
Click to display all available methods, including inherited ones
Methods
bindProperty, bindPropertyFull, forceFloating, freezeNotify, getv, isFloating, notify, notifyByPspec, ref, refSink, runDispose, save, saveToCallback, saveToFd, stealData, stealQdata, thawNotify, unref, watchClosure.
Getters
getChecksum, getCtime, getData, getDescription, getMtime, getName, getProperty, getQdata, getSize.
Setters
getChecksum
attachmentGetChecksum Source #
:: (HasCallStack, MonadIO m, IsAttachment a) | |
=> a |
|
-> m String | Returns: The attachment's checksum. |
No description available in the introspection data.
Since: 20.09.0
getCtime
:: (HasCallStack, MonadIO m, IsAttachment a) | |
=> a |
|
-> m (Maybe DateTime) | Returns: The attachment's creation date and time
as a |
No description available in the introspection data.
Since: 20.09.0
getDescription
attachmentGetDescription Source #
:: (HasCallStack, MonadIO m, IsAttachment a) | |
=> a |
|
-> m Text | Returns: The attachment's descriptive text. |
No description available in the introspection data.
Since: 20.09.0
getMtime
:: (HasCallStack, MonadIO m, IsAttachment a) | |
=> a |
|
-> m (Maybe DateTime) | Returns: The attachment's modification date and
time as a |
No description available in the introspection data.
Since: 20.09.0
getName
:: (HasCallStack, MonadIO m, IsAttachment a) | |
=> a |
|
-> m Text | Returns: The attachment's name. |
No description available in the introspection data.
Since: 20.09.0
getSize
:: (HasCallStack, MonadIO m, IsAttachment a) | |
=> a |
|
-> m Word64 | Returns: The attachment's size. |
No description available in the introspection data.
Since: 20.09.0
save
:: (HasCallStack, MonadIO m, IsAttachment a) | |
=> a |
|
-> Text |
|
-> m () | (Can throw |
Saves attachment
to a file indicated by filename
. If error
is set, False
will be returned. Possible errors include those in the G_FILE_ERROR
domain
and whatever the save function generates.
saveToCallback
attachmentSaveToCallback Source #
:: (HasCallStack, MonadIO m, IsAttachment a) | |
=> a |
|
-> FunPtr C_AttachmentSaveFunc |
|
-> m () | (Can throw |
Saves attachment
by feeding the produced data to saveFunc
. Can be used
when you want to store the attachment to something other than a file, such as
an in-memory buffer or a socket. If error
is set, False
will be
returned. Possible errors include those in the G_FILE_ERROR
domain and
whatever the save function generates.
saveToFd
:: (HasCallStack, MonadIO m, IsAttachment a) | |
=> a |
|
-> Int32 |
|
-> m () | (Can throw |
Saves attachment
to a file referred to by fd
. If error
is set, False
will be returned. Possible errors include those in the G_FILE_ERROR
domain
and whatever the save function generates.
Note that this function takes ownership of fd
; you must not operate on it
again, nor close it.
Since: 21.12.0