Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria (garetxe@gmail.com) |
Safe Haskell | None |
Language | Haskell2010 |
This object allows you to query information about the plugins found
by the engine while scanning the usual directories. You can then
use the WebPlugin
objects to get more information or
enable/disable individual plugins.
- newtype WebPluginDatabase = WebPluginDatabase (ManagedPtr WebPluginDatabase)
- class GObject o => IsWebPluginDatabase o
- toWebPluginDatabase :: (MonadIO m, IsWebPluginDatabase o) => o -> m WebPluginDatabase
- noWebPluginDatabase :: Maybe WebPluginDatabase
- webPluginDatabaseGetPluginForMimetype :: (HasCallStack, MonadIO m, IsWebPluginDatabase a) => a -> Text -> m WebPlugin
- webPluginDatabaseGetPlugins :: (HasCallStack, MonadIO m, IsWebPluginDatabase a) => a -> m [WebPlugin]
- webPluginDatabasePluginsListFree :: (HasCallStack, MonadIO m, IsWebPlugin a) => [a] -> m ()
- webPluginDatabaseRefresh :: (HasCallStack, MonadIO m, IsWebPluginDatabase a) => a -> m ()
Exported types
newtype WebPluginDatabase Source #
class GObject o => IsWebPluginDatabase o Source #
toWebPluginDatabase :: (MonadIO m, IsWebPluginDatabase o) => o -> m WebPluginDatabase Source #
Methods
getPluginForMimetype
webPluginDatabaseGetPluginForMimetype Source #
:: (HasCallStack, MonadIO m, IsWebPluginDatabase a) | |
=> a |
|
-> Text |
|
-> m WebPlugin | Returns: a |
getPlugins
webPluginDatabaseGetPlugins Source #
:: (HasCallStack, MonadIO m, IsWebPluginDatabase a) | |
=> a |
|
-> m [WebPlugin] |
Returns all WebPlugin
available in database
.
The returned list must be freed with webPluginDatabasePluginsListFree
Since: 1.3.8
pluginsListFree
webPluginDatabasePluginsListFree Source #
:: (HasCallStack, MonadIO m, IsWebPlugin a) | |
=> [a] | |
-> m () |
Frees list
.
Since: 1.3.8
refresh
webPluginDatabaseRefresh Source #
:: (HasCallStack, MonadIO m, IsWebPluginDatabase a) | |
=> a |
|
-> m () |
Refreshes database
adding new plugins that are now in use and
removing those that have been disabled or are otherwise no longer
available.
Since: 1.3.8