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 an application running in automation mode.
Synopsis
- newtype ApplicationInfo = ApplicationInfo (ManagedPtr ApplicationInfo)
- applicationInfoGetName :: (HasCallStack, MonadIO m) => ApplicationInfo -> m Text
- applicationInfoGetVersion :: (HasCallStack, MonadIO m) => ApplicationInfo -> m (Word64, Word64, Word64)
- applicationInfoNew :: (HasCallStack, MonadIO m) => m ApplicationInfo
- applicationInfoRef :: (HasCallStack, MonadIO m) => ApplicationInfo -> m ApplicationInfo
- applicationInfoSetName :: (HasCallStack, MonadIO m) => ApplicationInfo -> Text -> m ()
- applicationInfoSetVersion :: (HasCallStack, MonadIO m) => ApplicationInfo -> Word64 -> Word64 -> Word64 -> m ()
- applicationInfoUnref :: (HasCallStack, MonadIO m) => ApplicationInfo -> m ()
Exported types
newtype ApplicationInfo Source #
Memory-managed wrapper type.
ApplicationInfo (ManagedPtr ApplicationInfo) |
Instances
Eq ApplicationInfo Source # | |
Defined in GI.WebKit2.Structs.ApplicationInfo (==) :: ApplicationInfo -> ApplicationInfo -> Bool # (/=) :: ApplicationInfo -> ApplicationInfo -> Bool # | |
GBoxed ApplicationInfo Source # | |
Defined in GI.WebKit2.Structs.ApplicationInfo | |
ManagedPtrNewtype ApplicationInfo Source # | |
Defined in GI.WebKit2.Structs.ApplicationInfo toManagedPtr :: ApplicationInfo -> ManagedPtr ApplicationInfo | |
TypedObject ApplicationInfo Source # | |
Defined in GI.WebKit2.Structs.ApplicationInfo | |
HasParentTypes ApplicationInfo Source # | |
Defined in GI.WebKit2.Structs.ApplicationInfo | |
IsGValue (Maybe ApplicationInfo) Source # | Convert |
Defined in GI.WebKit2.Structs.ApplicationInfo gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe ApplicationInfo -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe ApplicationInfo) | |
type ParentTypes ApplicationInfo Source # | |
Defined in GI.WebKit2.Structs.ApplicationInfo |
Methods
Click to display all available methods, including inherited ones
getName
applicationInfoGetName Source #
:: (HasCallStack, MonadIO m) | |
=> ApplicationInfo |
|
-> m Text | Returns: the application name |
Get the name of the application.
If applicationInfoSetName
hasn't been
called with a valid name, this returns getPrgname
.
Since: 2.18
getVersion
applicationInfoGetVersion Source #
:: (HasCallStack, MonadIO m) | |
=> ApplicationInfo |
|
-> m (Word64, Word64, Word64) |
Get the application version previously set with applicationInfoSetVersion
.
Since: 2.18
new
:: (HasCallStack, MonadIO m) | |
=> m ApplicationInfo | Returns: the newly created |
Creates a new ApplicationInfo
Since: 2.18
ref
:: (HasCallStack, MonadIO m) | |
=> ApplicationInfo |
|
-> m ApplicationInfo | Returns: The passed in |
Atomically increments the reference count of info
by one.
This function is MT-safe and may be called from any thread.
Since: 2.18
setName
applicationInfoSetName Source #
:: (HasCallStack, MonadIO m) | |
=> ApplicationInfo |
|
-> Text |
|
-> m () |
Set the name of the application.
If not provided, or Nothing
is passed,
getPrgname
will be used.
Since: 2.18
setVersion
applicationInfoSetVersion Source #
:: (HasCallStack, MonadIO m) | |
=> ApplicationInfo |
|
-> Word64 |
|
-> Word64 |
|
-> Word64 |
|
-> m () |
Set the application version.
If the application doesn't use the format major.minor.micro you can pass 0 as the micro to use major.minor, or pass 0 as both micro and minor to use only major number. Any other format must be converted to major.minor.micro so that it can be used in version comparisons.
Since: 2.18
unref
:: (HasCallStack, MonadIO m) | |
=> ApplicationInfo |
|
-> m () |
Atomically decrements the reference count of info
by one.
If the
reference count drops to 0, all memory allocated by the ApplicationInfo
is
released. This function is MT-safe and may be called from any
thread.
Since: 2.18