gi-webkit2-4.0.30: WebKit2 bindings
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellSafe-Inferred
LanguageHaskell2010

GI.WebKit2.Structs.MimeInfo

Description

Information about a MIME type.

Synopsis

Exported types

newtype MimeInfo Source #

Memory-managed wrapper type.

Constructors

MimeInfo (ManagedPtr MimeInfo) 

Instances

Instances details
Eq MimeInfo Source # 
Instance details

Defined in GI.WebKit2.Structs.MimeInfo

GBoxed MimeInfo Source # 
Instance details

Defined in GI.WebKit2.Structs.MimeInfo

ManagedPtrNewtype MimeInfo Source # 
Instance details

Defined in GI.WebKit2.Structs.MimeInfo

Methods

toManagedPtr :: MimeInfo -> ManagedPtr MimeInfo

TypedObject MimeInfo Source # 
Instance details

Defined in GI.WebKit2.Structs.MimeInfo

Methods

glibType :: IO GType

HasParentTypes MimeInfo Source # 
Instance details

Defined in GI.WebKit2.Structs.MimeInfo

IsGValue (Maybe MimeInfo) Source #

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

Instance details

Defined in GI.WebKit2.Structs.MimeInfo

Methods

gvalueGType_ :: IO GType

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

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

type ParentTypes MimeInfo Source # 
Instance details

Defined in GI.WebKit2.Structs.MimeInfo

type ParentTypes MimeInfo = '[] :: [Type]

Methods

Click to display all available methods, including inherited ones

Expand

Methods

ref, unref.

Getters

getDescription, getExtensions, getMimeType.

Setters

None.

getDescription

mimeInfoGetDescription Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> MimeInfo

info: a MimeInfo

-> m (Maybe Text)

Returns: description, as a string.

Deprecated: (Since version 2.32)

Gets the description of the MIME type.

getExtensions

mimeInfoGetExtensions Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> MimeInfo

info: a MimeInfo

-> m [Text]

Returns: a Nothing-terminated array of strings

Deprecated: (Since version 2.32)

Get the list of file extensions associated to the MIME type.

getMimeType

mimeInfoGetMimeType Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> MimeInfo

info: a MimeInfo

-> m Text

Returns: MIME type, as a string.

Deprecated: (Since version 2.32)

Gets the MIME type.

ref

mimeInfoRef Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> MimeInfo

info: a MimeInfo

-> m MimeInfo

Returns: The passed in MimeInfo

Deprecated: (Since version 2.32)

Atomically increments the reference count of info by one.

This function is MT-safe and may be called from any thread.

unref

mimeInfoUnref Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> MimeInfo

info: a MimeInfo

-> m () 

Deprecated: (Since version 2.32)

Atomically decrements the reference count of info by one.

If the reference count drops to 0, all memory allocated by the MimeInfo is released. This function is MT-safe and may be called from any thread.