Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria (inaki@blueleaf.cc) |
Safe Haskell | None |
Language | Haskell2010 |
No description available in the introspection data.
Synopsis
- newtype ApplicationInfo = ApplicationInfo (ManagedPtr ApplicationInfo)
- noApplicationInfo :: Maybe 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.
Instances
BoxedObject ApplicationInfo Source # | |
Defined in GI.WebKit2.Structs.ApplicationInfo boxedType :: ApplicationInfo -> IO GType # |
noApplicationInfo :: Maybe ApplicationInfo Source #
A convenience alias for Nothing
:: Maybe
ApplicationInfo
.
Methods
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