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 |
Information about a MIME type.
Synopsis
- newtype MimeInfo = MimeInfo (ManagedPtr MimeInfo)
- mimeInfoGetDescription :: (HasCallStack, MonadIO m) => MimeInfo -> m (Maybe Text)
- mimeInfoGetExtensions :: (HasCallStack, MonadIO m) => MimeInfo -> m [Text]
- mimeInfoGetMimeType :: (HasCallStack, MonadIO m) => MimeInfo -> m Text
- mimeInfoRef :: (HasCallStack, MonadIO m) => MimeInfo -> m MimeInfo
- mimeInfoUnref :: (HasCallStack, MonadIO m) => MimeInfo -> m ()
Exported types
Memory-managed wrapper type.
Instances
Eq MimeInfo Source # | |
GBoxed MimeInfo Source # | |
Defined in GI.WebKit2.Structs.MimeInfo | |
ManagedPtrNewtype MimeInfo Source # | |
Defined in GI.WebKit2.Structs.MimeInfo toManagedPtr :: MimeInfo -> ManagedPtr MimeInfo | |
TypedObject MimeInfo Source # | |
Defined in GI.WebKit2.Structs.MimeInfo | |
HasParentTypes MimeInfo Source # | |
Defined in GI.WebKit2.Structs.MimeInfo | |
IsGValue (Maybe MimeInfo) Source # | Convert |
Defined in GI.WebKit2.Structs.MimeInfo gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe MimeInfo -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe MimeInfo) | |
type ParentTypes MimeInfo Source # | |
Defined in GI.WebKit2.Structs.MimeInfo |
Methods
Click to display all available methods, including inherited ones
getDescription
mimeInfoGetDescription Source #
:: (HasCallStack, MonadIO m) | |
=> MimeInfo |
|
-> m (Maybe Text) | Returns: description, as a string. |
Deprecated: (Since version 2.32)
Gets the description of the MIME type.
getExtensions
mimeInfoGetExtensions Source #
:: (HasCallStack, MonadIO m) | |
=> MimeInfo |
|
-> m [Text] | Returns: a
|
Deprecated: (Since version 2.32)
Get the list of file extensions associated to the MIME type.
getMimeType
:: (HasCallStack, MonadIO m) | |
=> MimeInfo |
|
-> m Text | Returns: MIME type, as a string. |
Deprecated: (Since version 2.32)
Gets the MIME type.
ref
:: (HasCallStack, MonadIO m) | |
=> MimeInfo |
|
-> m MimeInfo | Returns: The passed in |
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
:: (HasCallStack, MonadIO m) | |
=> 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.