gi-poppler-0.18.27: Poppler bindings
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellSafe-Inferred
LanguageHaskell2010

GI.Poppler.Objects.Attachment

Description

No description available in the introspection data.

Synopsis

Exported types

newtype Attachment Source #

Memory-managed wrapper type.

Constructors

Attachment (ManagedPtr Attachment) 

Instances

Instances details
Eq Attachment Source # 
Instance details

Defined in GI.Poppler.Objects.Attachment

GObject Attachment Source # 
Instance details

Defined in GI.Poppler.Objects.Attachment

ManagedPtrNewtype Attachment Source # 
Instance details

Defined in GI.Poppler.Objects.Attachment

Methods

toManagedPtr :: Attachment -> ManagedPtr Attachment

TypedObject Attachment Source # 
Instance details

Defined in GI.Poppler.Objects.Attachment

Methods

glibType :: IO GType

HasParentTypes Attachment Source # 
Instance details

Defined in GI.Poppler.Objects.Attachment

IsGValue (Maybe Attachment) Source #

Convert Attachment to and from GValue. See toGValue and fromGValue.

Instance details

Defined in GI.Poppler.Objects.Attachment

Methods

gvalueGType_ :: IO GType

gvalueSet_ :: Ptr GValue -> Maybe Attachment -> IO ()

gvalueGet_ :: Ptr GValue -> IO (Maybe Attachment)

type ParentTypes Attachment Source # 
Instance details

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

Instances details
(GObject o, IsDescendantOf Attachment o) => IsAttachment o Source # 
Instance details

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

getChecksum

attachmentGetChecksum Source #

Arguments

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

attachment: a Attachment

-> m String

Returns: The attachment's checksum.

No description available in the introspection data.

Since: 20.09.0

getCtime

attachmentGetCtime Source #

Arguments

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

attachment: a Attachment

-> m (Maybe DateTime)

Returns: The attachment's creation date and time as a DateTime, or Nothing if the creation date and time is not available.

No description available in the introspection data.

Since: 20.09.0

getDescription

attachmentGetDescription Source #

Arguments

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

attachment: a Attachment

-> m Text

Returns: The attachment's descriptive text.

No description available in the introspection data.

Since: 20.09.0

getMtime

attachmentGetMtime Source #

Arguments

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

attachment: a Attachment

-> m (Maybe DateTime)

Returns: The attachment's modification date and time as a DateTime, or Nothing if the modification date and time is not available.

No description available in the introspection data.

Since: 20.09.0

getName

attachmentGetName Source #

Arguments

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

attachment: a Attachment

-> m Text

Returns: The attachment's name.

No description available in the introspection data.

Since: 20.09.0

getSize

attachmentGetSize Source #

Arguments

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

attachment: a Attachment

-> m Word64

Returns: The attachment's size.

No description available in the introspection data.

Since: 20.09.0

save

attachmentSave Source #

Arguments

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

attachment: A Attachment.

-> Text

filename: name of file to save

-> m ()

(Can throw GError)

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 #

Arguments

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

attachment: A Attachment.

-> FunPtr C_AttachmentSaveFunc

saveFunc: a function that is called to save each block of data that the save routine generates.

-> m ()

(Can throw GError)

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

attachmentSaveToFd Source #

Arguments

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

attachment: A Attachment.

-> Int32

fd: a valid file descriptor open for writing

-> m ()

(Can throw GError)

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