Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | None |
Language | Haskell2010 |
- Exported types
- Methods
- Overloaded methods
- addMatch
- addMatchAsync
- addMatchAsyncFinish
- createInputContext
- createInputContextAsync
- createInputContextAsyncFinish
- currentInputContext
- currentInputContextAsync
- currentInputContextAsyncFinish
- exit
- exitAsync
- exitAsyncFinish
- getConfig
- getConnection
- getEnginesByNames
- getGlobalEngine
- getGlobalEngineAsync
- getGlobalEngineAsyncFinish
- getIbusProperty
- getIbusPropertyAsync
- getIbusPropertyAsyncFinish
- getNameOwner
- getNameOwnerAsync
- getNameOwnerAsyncFinish
- getServiceName
- getUseGlobalEngine
- getUseGlobalEngineAsync
- getUseGlobalEngineAsyncFinish
- getUseSysLayout
- getUseSysLayoutAsync
- getUseSysLayoutAsyncFinish
- hello
- isConnected
- isGlobalEngineEnabled
- isGlobalEngineEnabledAsync
- isGlobalEngineEnabledAsyncFinish
- listActiveEngines
- listActiveEnginesAsync
- listActiveEnginesAsyncFinish
- listEngines
- listEnginesAsync
- listEnginesAsyncFinish
- listNames
- listQueuedOwners
- nameHasOwner
- nameHasOwnerAsync
- nameHasOwnerAsyncFinish
- new
- newAsync
- newAsyncClient
- preloadEngines
- preloadEnginesAsync
- preloadEnginesAsyncFinish
- registerComponent
- registerComponentAsync
- registerComponentAsyncFinish
- releaseName
- releaseNameAsync
- releaseNameAsyncFinish
- removeMatch
- removeMatchAsync
- removeMatchAsyncFinish
- requestName
- requestNameAsync
- requestNameAsyncFinish
- setGlobalEngine
- setGlobalEngineAsync
- setGlobalEngineAsyncFinish
- setIbusProperty
- setIbusPropertyAsync
- setIbusPropertyAsyncFinish
- setWatchDbusSignal
- setWatchIbusSignal
- Properties
- Signals
An IBusBus connects with IBus daemon.
Synopsis
- newtype Bus = Bus (ManagedPtr Bus)
- class (GObject o, IsDescendantOf Bus o) => IsBus o
- toBus :: (MonadIO m, IsBus o) => o -> m Bus
- busAddMatch :: (HasCallStack, MonadIO m, IsBus a) => a -> Text -> m Bool
- busAddMatchAsync :: (HasCallStack, MonadIO m, IsBus a, IsCancellable b) => a -> Text -> Int32 -> Maybe b -> Maybe AsyncReadyCallback -> m ()
- busAddMatchAsyncFinish :: (HasCallStack, MonadIO m, IsBus a, IsAsyncResult b) => a -> b -> m ()
- busCreateInputContext :: (HasCallStack, MonadIO m, IsBus a) => a -> Text -> m InputContext
- busCreateInputContextAsync :: (HasCallStack, MonadIO m, IsBus a, IsCancellable b) => a -> Text -> Int32 -> Maybe b -> Maybe AsyncReadyCallback -> m ()
- busCreateInputContextAsyncFinish :: (HasCallStack, MonadIO m, IsBus a, IsAsyncResult b) => a -> b -> m InputContext
- busCurrentInputContext :: (HasCallStack, MonadIO m, IsBus a) => a -> m Text
- busCurrentInputContextAsync :: (HasCallStack, MonadIO m, IsBus a, IsCancellable b) => a -> Int32 -> Maybe b -> Maybe AsyncReadyCallback -> m ()
- busCurrentInputContextAsyncFinish :: (HasCallStack, MonadIO m, IsBus a, IsAsyncResult b) => a -> b -> m Text
- busExit :: (HasCallStack, MonadIO m, IsBus a) => a -> Bool -> m Bool
- busExitAsync :: (HasCallStack, MonadIO m, IsBus a, IsCancellable b) => a -> Bool -> Int32 -> Maybe b -> Maybe AsyncReadyCallback -> m ()
- busExitAsyncFinish :: (HasCallStack, MonadIO m, IsBus a, IsAsyncResult b) => a -> b -> m ()
- busGetConfig :: (HasCallStack, MonadIO m, IsBus a) => a -> m Config
- busGetConnection :: (HasCallStack, MonadIO m, IsBus a) => a -> m DBusConnection
- busGetEnginesByNames :: (HasCallStack, MonadIO m, IsBus a) => a -> [Text] -> m [EngineDesc]
- busGetGlobalEngine :: (HasCallStack, MonadIO m, IsBus a) => a -> m EngineDesc
- busGetGlobalEngineAsync :: (HasCallStack, MonadIO m, IsBus a, IsCancellable b) => a -> Int32 -> Maybe b -> Maybe AsyncReadyCallback -> m ()
- busGetGlobalEngineAsyncFinish :: (HasCallStack, MonadIO m, IsBus a, IsAsyncResult b) => a -> b -> m EngineDesc
- busGetIbusProperty :: (HasCallStack, MonadIO m, IsBus a) => a -> Text -> m GVariant
- busGetIbusPropertyAsync :: (HasCallStack, MonadIO m, IsBus a, IsCancellable b) => a -> Text -> Int32 -> Maybe b -> Maybe AsyncReadyCallback -> m ()
- busGetIbusPropertyAsyncFinish :: (HasCallStack, MonadIO m, IsBus a, IsAsyncResult b) => a -> b -> m GVariant
- busGetNameOwner :: (HasCallStack, MonadIO m, IsBus a) => a -> Text -> m Text
- busGetNameOwnerAsync :: (HasCallStack, MonadIO m, IsBus a, IsCancellable b) => a -> Text -> Int32 -> Maybe b -> Maybe AsyncReadyCallback -> m ()
- busGetNameOwnerAsyncFinish :: (HasCallStack, MonadIO m, IsBus a, IsAsyncResult b) => a -> b -> m Text
- busGetServiceName :: (HasCallStack, MonadIO m, IsBus a) => a -> m Text
- busGetUseGlobalEngine :: (HasCallStack, MonadIO m, IsBus a) => a -> m Bool
- busGetUseGlobalEngineAsync :: (HasCallStack, MonadIO m, IsBus a, IsCancellable b) => a -> Int32 -> Maybe b -> Maybe AsyncReadyCallback -> m ()
- busGetUseGlobalEngineAsyncFinish :: (HasCallStack, MonadIO m, IsBus a, IsAsyncResult b) => a -> b -> m ()
- busGetUseSysLayout :: (HasCallStack, MonadIO m, IsBus a) => a -> m Bool
- busGetUseSysLayoutAsync :: (HasCallStack, MonadIO m, IsBus a, IsCancellable b) => a -> Int32 -> Maybe b -> Maybe AsyncReadyCallback -> m ()
- busGetUseSysLayoutAsyncFinish :: (HasCallStack, MonadIO m, IsBus a, IsAsyncResult b) => a -> b -> m ()
- busHello :: (HasCallStack, MonadIO m, IsBus a) => a -> m Text
- busIsConnected :: (HasCallStack, MonadIO m, IsBus a) => a -> m Bool
- busIsGlobalEngineEnabled :: (HasCallStack, MonadIO m, IsBus a) => a -> m Bool
- busIsGlobalEngineEnabledAsync :: (HasCallStack, MonadIO m, IsBus a, IsCancellable b) => a -> Int32 -> Maybe b -> Maybe AsyncReadyCallback -> m ()
- busIsGlobalEngineEnabledAsyncFinish :: (HasCallStack, MonadIO m, IsBus a, IsAsyncResult b) => a -> b -> m ()
- busListActiveEngines :: (HasCallStack, MonadIO m, IsBus a) => a -> m [EngineDesc]
- busListActiveEnginesAsync :: (HasCallStack, MonadIO m, IsBus a, IsCancellable b) => a -> Int32 -> Maybe b -> Maybe AsyncReadyCallback -> m ()
- busListActiveEnginesAsyncFinish :: (HasCallStack, MonadIO m, IsBus a, IsAsyncResult b) => a -> b -> m [EngineDesc]
- busListEngines :: (HasCallStack, MonadIO m, IsBus a) => a -> m [EngineDesc]
- busListEnginesAsync :: (HasCallStack, MonadIO m, IsBus a, IsCancellable b) => a -> Int32 -> Maybe b -> Maybe AsyncReadyCallback -> m ()
- busListEnginesAsyncFinish :: (HasCallStack, MonadIO m, IsBus a, IsAsyncResult b) => a -> b -> m [EngineDesc]
- busListNames :: (HasCallStack, MonadIO m, IsBus a) => a -> m [Text]
- busListQueuedOwners :: (HasCallStack, MonadIO m, IsBus a) => a -> Text -> m [Text]
- busNameHasOwner :: (HasCallStack, MonadIO m, IsBus a) => a -> Text -> m Bool
- busNameHasOwnerAsync :: (HasCallStack, MonadIO m, IsBus a, IsCancellable b) => a -> Text -> Int32 -> Maybe b -> Maybe AsyncReadyCallback -> m ()
- busNameHasOwnerAsyncFinish :: (HasCallStack, MonadIO m, IsBus a, IsAsyncResult b) => a -> b -> m ()
- busNew :: (HasCallStack, MonadIO m) => m Bus
- busNewAsync :: (HasCallStack, MonadIO m) => m Bus
- busNewAsyncClient :: (HasCallStack, MonadIO m) => m Bus
- busPreloadEngines :: (HasCallStack, MonadIO m, IsBus a) => a -> [Text] -> m Bool
- busPreloadEnginesAsync :: (HasCallStack, MonadIO m, IsBus a, IsCancellable b) => a -> [Text] -> Int32 -> Maybe b -> Maybe AsyncReadyCallback -> m ()
- busPreloadEnginesAsyncFinish :: (HasCallStack, MonadIO m, IsBus a, IsAsyncResult b) => a -> b -> m ()
- busRegisterComponent :: (HasCallStack, MonadIO m, IsBus a, IsComponent b) => a -> b -> m Bool
- busRegisterComponentAsync :: (HasCallStack, MonadIO m, IsBus a, IsComponent b, IsCancellable c) => a -> b -> Int32 -> Maybe c -> Maybe AsyncReadyCallback -> m ()
- busRegisterComponentAsyncFinish :: (HasCallStack, MonadIO m, IsBus a, IsAsyncResult b) => a -> b -> m ()
- busReleaseName :: (HasCallStack, MonadIO m, IsBus a) => a -> Text -> m Word32
- busReleaseNameAsync :: (HasCallStack, MonadIO m, IsBus a, IsCancellable b) => a -> Text -> Int32 -> Maybe b -> Maybe AsyncReadyCallback -> m ()
- busReleaseNameAsyncFinish :: (HasCallStack, MonadIO m, IsBus a, IsAsyncResult b) => a -> b -> m Word32
- busRemoveMatch :: (HasCallStack, MonadIO m, IsBus a) => a -> Text -> m Bool
- busRemoveMatchAsync :: (HasCallStack, MonadIO m, IsBus a, IsCancellable b) => a -> Text -> Int32 -> Maybe b -> Maybe AsyncReadyCallback -> m ()
- busRemoveMatchAsyncFinish :: (HasCallStack, MonadIO m, IsBus a, IsAsyncResult b) => a -> b -> m ()
- busRequestName :: (HasCallStack, MonadIO m, IsBus a) => a -> Text -> Word32 -> m Word32
- busRequestNameAsync :: (HasCallStack, MonadIO m, IsBus a, IsCancellable b) => a -> Text -> Word32 -> Int32 -> Maybe b -> Maybe AsyncReadyCallback -> m ()
- busRequestNameAsyncFinish :: (HasCallStack, MonadIO m, IsBus a, IsAsyncResult b) => a -> b -> m Word32
- busSetGlobalEngine :: (HasCallStack, MonadIO m, IsBus a) => a -> Text -> m Bool
- busSetGlobalEngineAsync :: (HasCallStack, MonadIO m, IsBus a, IsCancellable b) => a -> Text -> Int32 -> Maybe b -> Maybe AsyncReadyCallback -> m ()
- busSetGlobalEngineAsyncFinish :: (HasCallStack, MonadIO m, IsBus a, IsAsyncResult b) => a -> b -> m ()
- busSetIbusProperty :: (HasCallStack, MonadIO m, IsBus a) => a -> Text -> GVariant -> m ()
- busSetIbusPropertyAsync :: (HasCallStack, MonadIO m, IsBus a, IsCancellable b) => a -> Text -> GVariant -> Int32 -> Maybe b -> Maybe AsyncReadyCallback -> m ()
- busSetIbusPropertyAsyncFinish :: (HasCallStack, MonadIO m, IsBus a, IsAsyncResult b) => a -> b -> m ()
- busSetWatchDbusSignal :: (HasCallStack, MonadIO m, IsBus a) => a -> Bool -> m ()
- busSetWatchIbusSignal :: (HasCallStack, MonadIO m, IsBus a) => a -> Bool -> m ()
- constructBusClientOnly :: (IsBus o, MonadIO m) => Bool -> m (GValueConstruct o)
- getBusClientOnly :: (MonadIO m, IsBus o) => o -> m Bool
- constructBusConnectAsync :: (IsBus o, MonadIO m) => Bool -> m (GValueConstruct o)
- getBusConnectAsync :: (MonadIO m, IsBus o) => o -> m Bool
- type BusConnectedCallback = IO ()
- type C_BusConnectedCallback = Ptr () -> Ptr () -> IO ()
- afterBusConnected :: (IsBus a, MonadIO m) => a -> BusConnectedCallback -> m SignalHandlerId
- genClosure_BusConnected :: MonadIO m => BusConnectedCallback -> m (GClosure C_BusConnectedCallback)
- mk_BusConnectedCallback :: C_BusConnectedCallback -> IO (FunPtr C_BusConnectedCallback)
- noBusConnectedCallback :: Maybe BusConnectedCallback
- onBusConnected :: (IsBus a, MonadIO m) => a -> BusConnectedCallback -> m SignalHandlerId
- wrap_BusConnectedCallback :: BusConnectedCallback -> C_BusConnectedCallback
- type BusDisconnectedCallback = IO ()
- type C_BusDisconnectedCallback = Ptr () -> Ptr () -> IO ()
- afterBusDisconnected :: (IsBus a, MonadIO m) => a -> BusDisconnectedCallback -> m SignalHandlerId
- genClosure_BusDisconnected :: MonadIO m => BusDisconnectedCallback -> m (GClosure C_BusDisconnectedCallback)
- mk_BusDisconnectedCallback :: C_BusDisconnectedCallback -> IO (FunPtr C_BusDisconnectedCallback)
- noBusDisconnectedCallback :: Maybe BusDisconnectedCallback
- onBusDisconnected :: (IsBus a, MonadIO m) => a -> BusDisconnectedCallback -> m SignalHandlerId
- wrap_BusDisconnectedCallback :: BusDisconnectedCallback -> C_BusDisconnectedCallback
- type BusGlobalEngineChangedCallback = Text -> IO ()
- type C_BusGlobalEngineChangedCallback = Ptr () -> CString -> Ptr () -> IO ()
- afterBusGlobalEngineChanged :: (IsBus a, MonadIO m) => a -> BusGlobalEngineChangedCallback -> m SignalHandlerId
- genClosure_BusGlobalEngineChanged :: MonadIO m => BusGlobalEngineChangedCallback -> m (GClosure C_BusGlobalEngineChangedCallback)
- mk_BusGlobalEngineChangedCallback :: C_BusGlobalEngineChangedCallback -> IO (FunPtr C_BusGlobalEngineChangedCallback)
- noBusGlobalEngineChangedCallback :: Maybe BusGlobalEngineChangedCallback
- onBusGlobalEngineChanged :: (IsBus a, MonadIO m) => a -> BusGlobalEngineChangedCallback -> m SignalHandlerId
- wrap_BusGlobalEngineChangedCallback :: BusGlobalEngineChangedCallback -> C_BusGlobalEngineChangedCallback
- type BusNameOwnerChangedCallback = Text -> Text -> Text -> IO ()
- type C_BusNameOwnerChangedCallback = Ptr () -> CString -> CString -> CString -> Ptr () -> IO ()
- afterBusNameOwnerChanged :: (IsBus a, MonadIO m) => a -> BusNameOwnerChangedCallback -> m SignalHandlerId
- genClosure_BusNameOwnerChanged :: MonadIO m => BusNameOwnerChangedCallback -> m (GClosure C_BusNameOwnerChangedCallback)
- mk_BusNameOwnerChangedCallback :: C_BusNameOwnerChangedCallback -> IO (FunPtr C_BusNameOwnerChangedCallback)
- noBusNameOwnerChangedCallback :: Maybe BusNameOwnerChangedCallback
- onBusNameOwnerChanged :: (IsBus a, MonadIO m) => a -> BusNameOwnerChangedCallback -> m SignalHandlerId
- wrap_BusNameOwnerChangedCallback :: BusNameOwnerChangedCallback -> C_BusNameOwnerChangedCallback
Exported types
Memory-managed wrapper type.
Bus (ManagedPtr Bus) |
Instances
Eq Bus Source # | |
IsGValue Bus Source # | Convert |
GObject Bus Source # | |
Defined in GI.IBus.Objects.Bus gobjectType :: IO GType # | |
HasParentTypes Bus Source # | |
Defined in GI.IBus.Objects.Bus | |
type ParentTypes Bus Source # | |
Defined in GI.IBus.Objects.Bus |
class (GObject o, IsDescendantOf Bus o) => IsBus o Source #
Instances
(GObject o, IsDescendantOf Bus o) => IsBus o Source # | |
Defined in GI.IBus.Objects.Bus |
Methods
Overloaded methods
addMatch
:: (HasCallStack, MonadIO m, IsBus a) | |
=> a |
|
-> Text |
|
-> m Bool | Returns: |
Add a match rule to an Bus
synchronously.
addMatchAsync
:: (HasCallStack, MonadIO m, IsBus a, IsCancellable b) | |
=> a |
|
-> Text |
|
-> Int32 |
|
-> Maybe b |
|
-> Maybe AsyncReadyCallback |
|
-> m () |
Add a match rule to an Bus
asynchronously.
addMatchAsyncFinish
busAddMatchAsyncFinish Source #
:: (HasCallStack, MonadIO m, IsBus a, IsAsyncResult b) | |
=> a |
|
-> b |
|
-> m () | (Can throw |
Finishes an operation started with busAddMatchAsync
.
createInputContext
busCreateInputContext Source #
:: (HasCallStack, MonadIO m, IsBus a) | |
=> a |
|
-> Text |
|
-> m InputContext | Returns: A newly allocated |
Create an input context for client synchronously.
createInputContextAsync
busCreateInputContextAsync Source #
:: (HasCallStack, MonadIO m, IsBus a, IsCancellable b) | |
=> a |
|
-> Text |
|
-> Int32 |
|
-> Maybe b |
|
-> Maybe AsyncReadyCallback |
|
-> m () |
Create an input context for client asynchronously.
createInputContextAsyncFinish
busCreateInputContextAsyncFinish Source #
:: (HasCallStack, MonadIO m, IsBus a, IsAsyncResult b) | |
=> a |
|
-> b |
|
-> m InputContext | Returns: A newly allocated |
Finishes an operation started with busCreateInputContextAsync
.
currentInputContext
busCurrentInputContext Source #
:: (HasCallStack, MonadIO m, IsBus a) | |
=> a |
|
-> m Text | Returns: Name of the currently focused |
Get the current focused input context synchronously.
currentInputContextAsync
busCurrentInputContextAsync Source #
:: (HasCallStack, MonadIO m, IsBus a, IsCancellable b) | |
=> a |
|
-> Int32 |
|
-> Maybe b |
|
-> Maybe AsyncReadyCallback |
|
-> m () |
Get the current focused input context asynchronously.
currentInputContextAsyncFinish
busCurrentInputContextAsyncFinish Source #
:: (HasCallStack, MonadIO m, IsBus a, IsAsyncResult b) | |
=> a |
|
-> b |
|
-> m Text | Returns: Name of the currently focused IBusInputContext if the
"CurrentInputContext" call succeeded, |
Finishes an operation started with busCurrentInputContextAsync
.
exit
:: (HasCallStack, MonadIO m, IsBus a) | |
=> a |
|
-> Bool |
|
-> m Bool | Returns: |
Exit or restart ibus-daemon synchronously.
exitAsync
:: (HasCallStack, MonadIO m, IsBus a, IsCancellable b) | |
=> a |
|
-> Bool |
|
-> Int32 |
|
-> Maybe b |
|
-> Maybe AsyncReadyCallback |
|
-> m () |
Exit or restart ibus-daemon asynchronously.
exitAsyncFinish
:: (HasCallStack, MonadIO m, IsBus a, IsAsyncResult b) | |
=> a |
|
-> b |
|
-> m () | (Can throw |
Finishes an operation started with busExitAsync
.
getConfig
:: (HasCallStack, MonadIO m, IsBus a) | |
=> a |
|
-> m Config | Returns: An |
Get the config instance from Bus
.
getConnection
:: (HasCallStack, MonadIO m, IsBus a) | |
=> a |
|
-> m DBusConnection | Returns: A |
Gets a DBusConnection
of an Bus
instance.
getEnginesByNames
:: (HasCallStack, MonadIO m, IsBus a) | |
=> a |
|
-> [Text] |
|
-> m [EngineDesc] | Returns:
A |
Get engines by given names synchronously. If some engine names do not exist, this function will simply ignore them, and return rest of engines. TODO(penghuang): add asynchronous version
getGlobalEngine
:: (HasCallStack, MonadIO m, IsBus a) | |
=> a |
|
-> m EngineDesc | Returns: The description of current global engine,
or |
Get the description of current global engine synchronously.
getGlobalEngineAsync
busGetGlobalEngineAsync Source #
:: (HasCallStack, MonadIO m, IsBus a, IsCancellable b) | |
=> a |
|
-> Int32 |
|
-> Maybe b |
|
-> Maybe AsyncReadyCallback |
|
-> m () |
Get the description of current global engine asynchronously.
getGlobalEngineAsyncFinish
busGetGlobalEngineAsyncFinish Source #
:: (HasCallStack, MonadIO m, IsBus a, IsAsyncResult b) | |
=> a |
|
-> b |
|
-> m EngineDesc | Returns: The description of current global engine,
or |
Finishes an operation started with busGetGlobalEngineAsyncFinish
.
getIbusProperty
:: (HasCallStack, MonadIO m, IsBus a) | |
=> a |
|
-> Text |
|
-> m GVariant | Returns: The value in org.freedesktop.DBus.Properties.Get
The returned value must be freed with |
Get org.freedesktop.DBus.Properties.
getIbusPropertyAsync
busGetIbusPropertyAsync Source #
:: (HasCallStack, MonadIO m, IsBus a, IsCancellable b) | |
=> a |
|
-> Text |
|
-> Int32 |
|
-> Maybe b |
|
-> Maybe AsyncReadyCallback |
|
-> m () |
Get org.freedesktop.DBus.Properties asynchronously.
getIbusPropertyAsyncFinish
busGetIbusPropertyAsyncFinish Source #
:: (HasCallStack, MonadIO m, IsBus a, IsAsyncResult b) | |
=> a |
|
-> b |
|
-> m GVariant | Returns: The value in org.freedesktop.DBus.Properties.Get
The returned value must be freed with |
Finishes an operation started with busGetIbusPropertyAsync
.
getNameOwner
:: (HasCallStack, MonadIO m, IsBus a) | |
=> a |
|
-> Text |
|
-> m Text | Returns: Owner of the name. The returned value must be freed with |
Return the name owner synchronously.
getNameOwnerAsync
:: (HasCallStack, MonadIO m, IsBus a, IsCancellable b) | |
=> a |
|
-> Text |
|
-> Int32 |
|
-> Maybe b |
|
-> Maybe AsyncReadyCallback |
|
-> m () |
Return the name owner asynchronously.
getNameOwnerAsyncFinish
busGetNameOwnerAsyncFinish Source #
:: (HasCallStack, MonadIO m, IsBus a, IsAsyncResult b) | |
=> a |
|
-> b |
|
-> m Text | Returns: Owner of the name. The returned value must be freed with |
Finishes an operation started with busGetNameOwnerAsync
.
getServiceName
:: (HasCallStack, MonadIO m, IsBus a) | |
=> a |
|
-> m Text | Returns: at dbus name. |
Return the main service name to use for calls on the ibus connection.
getUseGlobalEngine
busGetUseGlobalEngine Source #
:: (HasCallStack, MonadIO m, IsBus a) | |
=> a |
|
-> m Bool | Returns: TRUE if "use_global_engine" option is enabled. |
Deprecated: (Since version 1.5.3)Currently global engine is always used.
Check if the bus's "use_global_engine" option is enabled or not synchronously.
getUseGlobalEngineAsync
busGetUseGlobalEngineAsync Source #
:: (HasCallStack, MonadIO m, IsBus a, IsCancellable b) | |
=> a |
|
-> Int32 |
|
-> Maybe b |
|
-> Maybe AsyncReadyCallback |
|
-> m () |
Deprecated: (Since version 1.5.3)Currently global engine is always used.
Check if the bus's "use_global_engine" option is enabled or not asynchronously.
getUseGlobalEngineAsyncFinish
busGetUseGlobalEngineAsyncFinish Source #
:: (HasCallStack, MonadIO m, IsBus a, IsAsyncResult b) | |
=> a |
|
-> b |
|
-> m () | (Can throw |
Deprecated: (Since version 1.5.3)Currently global engine is always used.
Finishes an operation started with busGetUseGlobalEngineAsync
.
getUseSysLayout
:: (HasCallStack, MonadIO m, IsBus a) | |
=> a |
|
-> m Bool | Returns: |
Deprecated: (Since version 1.5.3)Read dconf value/desktop/ibus/general/use_system_keyboard_layout instead.
Check if the bus's "use_sys_layout" option is enabled or not synchronously.
getUseSysLayoutAsync
busGetUseSysLayoutAsync Source #
:: (HasCallStack, MonadIO m, IsBus a, IsCancellable b) | |
=> a |
|
-> Int32 |
|
-> Maybe b |
|
-> Maybe AsyncReadyCallback |
|
-> m () |
Deprecated: (Since version 1.5.3)Read dconf value/desktop/ibus/general/use_system_keyboard_layout instead.
Check if the bus's "use_sys_layout" option is enabled or not asynchronously.
getUseSysLayoutAsyncFinish
busGetUseSysLayoutAsyncFinish Source #
:: (HasCallStack, MonadIO m, IsBus a, IsAsyncResult b) | |
=> a |
|
-> b |
|
-> m () | (Can throw |
Deprecated: (Since version 1.5.3)Read dconf value/desktop/ibus/general/use_system_keyboard_layout instead.
Finishes an operation started with busGetUseSysLayoutAsync
.
hello
:: (HasCallStack, MonadIO m, IsBus a) | |
=> a |
|
-> m Text | Returns: The unique name of IBus process in DBus. |
This function sends a "HELLO" message to DBus daemon, which replies the unique name of current IBus process.
isConnected
:: (HasCallStack, MonadIO m, IsBus a) | |
=> a |
|
-> m Bool | Returns: |
Return True
if bus
is connected to IBus daemon.
isGlobalEngineEnabled
busIsGlobalEngineEnabled Source #
:: (HasCallStack, MonadIO m, IsBus a) | |
=> a |
|
-> m Bool | Returns: |
Deprecated: (Since version 1.5.3)Probably this would be used for Chrome OS only.Currently global engine is always used and busGetGlobalEngine
returns NULL until the first global engine is assigned.You can use setLogHandler
to disable a warning whenbusGetGlobalEngine
returns NULL.
Check if the current global engine is enabled or not synchronously.
isGlobalEngineEnabledAsync
busIsGlobalEngineEnabledAsync Source #
:: (HasCallStack, MonadIO m, IsBus a, IsCancellable b) | |
=> a |
|
-> Int32 |
|
-> Maybe b |
|
-> Maybe AsyncReadyCallback |
|
-> m () |
Deprecated: (Since version 1.5.3)Probably this would be used for Chrome OS only.Currently global engine is always used and busGetGlobalEngine
returns NULL until the first global engine is assigned.You can use setLogHandler
to disable a warning whenbusGetGlobalEngine
returns NULL.
Check if the current global engine is enabled or not asynchronously.
isGlobalEngineEnabledAsyncFinish
busIsGlobalEngineEnabledAsyncFinish Source #
:: (HasCallStack, MonadIO m, IsBus a, IsAsyncResult b) | |
=> a |
|
-> b |
|
-> m () | (Can throw |
Deprecated: (Since version 1.5.3)Probably this would be used for Chrome OS only.Currently global engine is always used and busGetGlobalEngine
returns NULL until the first global engine is assigned.You can use setLogHandler
to disable a warning whenbusGetGlobalEngine
returns NULL.
Finishes an operation started with busIsGlobalEngineEnabledAsync
.
listActiveEngines
:: (HasCallStack, MonadIO m, IsBus a) | |
=> a |
|
-> m [EngineDesc] | Returns: A List of active engines. |
Deprecated: (Since version 1.5.3)Read dconf value/desktop/ibus/general/preload-engines instead.
List active engines synchronously.
listActiveEnginesAsync
busListActiveEnginesAsync Source #
:: (HasCallStack, MonadIO m, IsBus a, IsCancellable b) | |
=> a |
|
-> Int32 |
|
-> Maybe b |
|
-> Maybe AsyncReadyCallback |
|
-> m () |
Deprecated: (Since version 1.5.3)Read dconf value/desktop/ibus/general/preload-engines instead.
List active engines asynchronously.
listActiveEnginesAsyncFinish
busListActiveEnginesAsyncFinish Source #
:: (HasCallStack, MonadIO m, IsBus a, IsAsyncResult b) | |
=> a |
|
-> b |
|
-> m [EngineDesc] | Returns:
A List of active engines. (Can throw |
Deprecated: (Since version 1.5.3)Read dconf value/desktop/ibus/general/preload-engines instead.
Finishes an operation started with busListActiveEnginesAsync
.
listEngines
:: (HasCallStack, MonadIO m, IsBus a) | |
=> a |
|
-> m [EngineDesc] | Returns: A List of engines. |
List engines synchronously.
listEnginesAsync
:: (HasCallStack, MonadIO m, IsBus a, IsCancellable b) | |
=> a |
|
-> Int32 |
|
-> Maybe b |
|
-> Maybe AsyncReadyCallback |
|
-> m () |
List engines asynchronously.
listEnginesAsyncFinish
busListEnginesAsyncFinish Source #
:: (HasCallStack, MonadIO m, IsBus a, IsAsyncResult b) | |
=> a |
|
-> b |
|
-> m [EngineDesc] | Returns:
A List of engines. (Can throw |
Finishes an operation started with busListEnginesAsync
.
listNames
:: (HasCallStack, MonadIO m, IsBus a) | |
=> a |
|
-> m [Text] | Returns: Lists that attached to |
Return lists that attached to bus
.
<note><para>[FixMe] Not implemented yet, only return Nothing
.</para></note>
<note><para>[FixMe] Add async version.</para></note>
listQueuedOwners
:: (HasCallStack, MonadIO m, IsBus a) | |
=> a |
|
-> Text |
|
-> m [Text] | Returns:
The unique bus names of connections currently queued for |
Lists the unique bus names of connections currently queued for a bus name. FIXME add an asynchronous version.
nameHasOwner
:: (HasCallStack, MonadIO m, IsBus a) | |
=> a |
|
-> Text |
|
-> m Bool | Returns: |
Checks whether the name has owner synchronously.
nameHasOwnerAsync
:: (HasCallStack, MonadIO m, IsBus a, IsCancellable b) | |
=> a |
|
-> Text |
|
-> Int32 |
|
-> Maybe b |
|
-> Maybe AsyncReadyCallback |
|
-> m () |
Checks whether the name has owner asynchronously.
nameHasOwnerAsyncFinish
busNameHasOwnerAsyncFinish Source #
:: (HasCallStack, MonadIO m, IsBus a, IsAsyncResult b) | |
=> a |
|
-> b |
|
-> m () | (Can throw |
Finishes an operation started with busNameHasOwnerAsync
.
new
:: (HasCallStack, MonadIO m) | |
=> m Bus | Returns: A newly allocated |
Creates a new Bus
instance.
newAsync
:: (HasCallStack, MonadIO m) | |
=> m Bus | Returns: A newly allocated |
Creates a new Bus
instance. The instance will asynchronously connect
to the IBus daemon.
newAsyncClient
:: (HasCallStack, MonadIO m) | |
=> m Bus | Returns: A newly allocated |
Creates a new Bus
instance for client use only. It will possibly
be limited in what it can do.
The instance will asynchronously connect to the IBus daemon.
preloadEngines
:: (HasCallStack, MonadIO m, IsBus a) | |
=> a |
|
-> [Text] |
|
-> m Bool | Returns: |
Start bus components by engine names synchronously.
preloadEnginesAsync
busPreloadEnginesAsync Source #
:: (HasCallStack, MonadIO m, IsBus a, IsCancellable b) | |
=> a |
|
-> [Text] |
|
-> Int32 |
|
-> Maybe b |
|
-> Maybe AsyncReadyCallback |
|
-> m () |
Start bus components by engine names asynchronously.
preloadEnginesAsyncFinish
busPreloadEnginesAsyncFinish Source #
:: (HasCallStack, MonadIO m, IsBus a, IsAsyncResult b) | |
=> a |
|
-> b |
|
-> m () | (Can throw |
Finishes an operation started with busPreloadEnginesAsync
.
registerComponent
:: (HasCallStack, MonadIO m, IsBus a, IsComponent b) | |
=> a |
|
-> b |
|
-> m Bool | Returns: |
Register a component to an Bus
synchronously.
registerComponentAsync
busRegisterComponentAsync Source #
:: (HasCallStack, MonadIO m, IsBus a, IsComponent b, IsCancellable c) | |
=> a |
|
-> b |
|
-> Int32 |
|
-> Maybe c |
|
-> Maybe AsyncReadyCallback |
|
-> m () |
Register a component to an Bus
asynchronously.
registerComponentAsyncFinish
busRegisterComponentAsyncFinish Source #
:: (HasCallStack, MonadIO m, IsBus a, IsAsyncResult b) | |
=> a |
|
-> b |
|
-> m () | (Can throw |
Finishes an operation started with busRegisterComponentAsync
.
releaseName
:: (HasCallStack, MonadIO m, IsBus a) | |
=> a |
|
-> Text |
|
-> m Word32 | Returns: 0 if failed; positive number otherwise. |
Release a name to IBus daemon synchronously.
releaseNameAsync
:: (HasCallStack, MonadIO m, IsBus a, IsCancellable b) | |
=> a |
|
-> Text |
|
-> Int32 |
|
-> Maybe b |
|
-> Maybe AsyncReadyCallback |
|
-> m () |
Release a name to IBus daemon asynchronously.
releaseNameAsyncFinish
busReleaseNameAsyncFinish Source #
:: (HasCallStack, MonadIO m, IsBus a, IsAsyncResult b) | |
=> a |
|
-> b |
|
-> m Word32 | Returns: 0 if failed; positive number otherwise. (Can throw |
Finishes an operation started with busReleaseNameAsync
.
removeMatch
:: (HasCallStack, MonadIO m, IsBus a) | |
=> a |
|
-> Text |
|
-> m Bool | Returns: |
Remove a match rule to an Bus
synchronously.
removeMatchAsync
:: (HasCallStack, MonadIO m, IsBus a, IsCancellable b) | |
=> a |
|
-> Text |
|
-> Int32 |
|
-> Maybe b |
|
-> Maybe AsyncReadyCallback |
|
-> m () |
Remove a match rule to an IBusBus asynchronously.
removeMatchAsyncFinish
busRemoveMatchAsyncFinish Source #
:: (HasCallStack, MonadIO m, IsBus a, IsAsyncResult b) | |
=> a |
|
-> b |
|
-> m () | (Can throw |
Finishes an operation started with busRemoveMatchAsync
.
requestName
:: (HasCallStack, MonadIO m, IsBus a) | |
=> a |
|
-> Text |
|
-> Word32 |
|
-> m Word32 | Returns: 0 if failed; IBusBusRequestNameReply otherwise. |
Request a name from IBus daemon synchronously.
requestNameAsync
:: (HasCallStack, MonadIO m, IsBus a, IsCancellable b) | |
=> a |
|
-> Text |
|
-> Word32 |
|
-> Int32 |
|
-> Maybe b |
|
-> Maybe AsyncReadyCallback |
|
-> m () |
Request a name from IBus daemon asynchronously.
requestNameAsyncFinish
busRequestNameAsyncFinish Source #
:: (HasCallStack, MonadIO m, IsBus a, IsAsyncResult b) | |
=> a |
|
-> b |
|
-> m Word32 | Returns: 0 if failed; positive number otherwise. (Can throw |
Finishes an operation started with busRequestNameAsync
.
setGlobalEngine
:: (HasCallStack, MonadIO m, IsBus a) | |
=> a |
|
-> Text |
|
-> m Bool | Returns: |
Set current global engine synchronously.
setGlobalEngineAsync
busSetGlobalEngineAsync Source #
:: (HasCallStack, MonadIO m, IsBus a, IsCancellable b) | |
=> a |
|
-> Text |
|
-> Int32 |
|
-> Maybe b |
|
-> Maybe AsyncReadyCallback |
|
-> m () |
Set current global engine asynchronously.
setGlobalEngineAsyncFinish
busSetGlobalEngineAsyncFinish Source #
:: (HasCallStack, MonadIO m, IsBus a, IsAsyncResult b) | |
=> a |
|
-> b |
|
-> m () | (Can throw |
Finishes an operation started with busSetGlobalEngineAsync
.
setIbusProperty
:: (HasCallStack, MonadIO m, IsBus a) | |
=> a |
|
-> Text |
|
-> GVariant |
|
-> m () |
Set org.freedesktop.DBus.Properties.
setIbusPropertyAsync
busSetIbusPropertyAsync Source #
:: (HasCallStack, MonadIO m, IsBus a, IsCancellable b) | |
=> a |
|
-> Text |
|
-> GVariant |
|
-> Int32 |
|
-> Maybe b |
|
-> Maybe AsyncReadyCallback |
|
-> m () |
Set org.freedesktop.DBus.Properties asynchronously.
setIbusPropertyAsyncFinish
busSetIbusPropertyAsyncFinish Source #
:: (HasCallStack, MonadIO m, IsBus a, IsAsyncResult b) | |
=> a |
|
-> b |
|
-> m () | (Can throw |
Finishes an operation started with busSetIbusPropertyAsync
.
setWatchDbusSignal
busSetWatchDbusSignal Source #
:: (HasCallStack, MonadIO m, IsBus a) | |
=> a |
|
-> Bool |
|
-> m () |
Start or stop watching the NameOwnerChanged DBus signal.
setWatchIbusSignal
busSetWatchIbusSignal Source #
:: (HasCallStack, MonadIO m, IsBus a) | |
=> a |
|
-> Bool |
|
-> m () |
Start or stop watching the GlobalEngineChanged IBus signal.
Properties
clientOnly
Whether the Bus
object is for client use only.
constructBusClientOnly :: (IsBus o, MonadIO m) => Bool -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “client-only
” property. This is rarely needed directly, but it is used by new
.
getBusClientOnly :: (MonadIO m, IsBus o) => o -> m Bool Source #
Get the value of the “client-only
” property.
When overloading is enabled, this is equivalent to
get
bus #clientOnly
connectAsync
Whether the Bus
object should connect asynchronously to the bus.
constructBusConnectAsync :: (IsBus o, MonadIO m) => Bool -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “connect-async
” property. This is rarely needed directly, but it is used by new
.
getBusConnectAsync :: (MonadIO m, IsBus o) => o -> m Bool Source #
Get the value of the “connect-async
” property.
When overloading is enabled, this is equivalent to
get
bus #connectAsync
Signals
connected
type BusConnectedCallback = IO () Source #
Emitted when Bus
is connected to ibus-daemon.
type C_BusConnectedCallback = Ptr () -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
afterBusConnected :: (IsBus a, MonadIO m) => a -> BusConnectedCallback -> m SignalHandlerId Source #
Connect a signal handler for the connected signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
bus #connected callback
genClosure_BusConnected :: MonadIO m => BusConnectedCallback -> m (GClosure C_BusConnectedCallback) Source #
Wrap the callback into a GClosure
.
mk_BusConnectedCallback :: C_BusConnectedCallback -> IO (FunPtr C_BusConnectedCallback) Source #
Generate a function pointer callable from C code, from a C_BusConnectedCallback
.
noBusConnectedCallback :: Maybe BusConnectedCallback Source #
A convenience synonym for
.Nothing
:: Maybe
BusConnectedCallback
onBusConnected :: (IsBus a, MonadIO m) => a -> BusConnectedCallback -> m SignalHandlerId Source #
Connect a signal handler for the connected signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
bus #connected callback
wrap_BusConnectedCallback :: BusConnectedCallback -> C_BusConnectedCallback Source #
Wrap a BusConnectedCallback
into a C_BusConnectedCallback
.
disconnected
type BusDisconnectedCallback = IO () Source #
Emitted when Bus
is disconnected from ibus-daemon.
type C_BusDisconnectedCallback = Ptr () -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
afterBusDisconnected :: (IsBus a, MonadIO m) => a -> BusDisconnectedCallback -> m SignalHandlerId Source #
Connect a signal handler for the disconnected signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
bus #disconnected callback
genClosure_BusDisconnected :: MonadIO m => BusDisconnectedCallback -> m (GClosure C_BusDisconnectedCallback) Source #
Wrap the callback into a GClosure
.
mk_BusDisconnectedCallback :: C_BusDisconnectedCallback -> IO (FunPtr C_BusDisconnectedCallback) Source #
Generate a function pointer callable from C code, from a C_BusDisconnectedCallback
.
noBusDisconnectedCallback :: Maybe BusDisconnectedCallback Source #
A convenience synonym for
.Nothing
:: Maybe
BusDisconnectedCallback
onBusDisconnected :: (IsBus a, MonadIO m) => a -> BusDisconnectedCallback -> m SignalHandlerId Source #
Connect a signal handler for the disconnected signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
bus #disconnected callback
wrap_BusDisconnectedCallback :: BusDisconnectedCallback -> C_BusDisconnectedCallback Source #
Wrap a BusDisconnectedCallback
into a C_BusDisconnectedCallback
.
globalEngineChanged
type BusGlobalEngineChangedCallback Source #
= Text |
|
-> IO () |
Emitted when global engine is changed.
type C_BusGlobalEngineChangedCallback = Ptr () -> CString -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
afterBusGlobalEngineChanged :: (IsBus a, MonadIO m) => a -> BusGlobalEngineChangedCallback -> m SignalHandlerId Source #
Connect a signal handler for the globalEngineChanged signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
bus #globalEngineChanged callback
genClosure_BusGlobalEngineChanged :: MonadIO m => BusGlobalEngineChangedCallback -> m (GClosure C_BusGlobalEngineChangedCallback) Source #
Wrap the callback into a GClosure
.
mk_BusGlobalEngineChangedCallback :: C_BusGlobalEngineChangedCallback -> IO (FunPtr C_BusGlobalEngineChangedCallback) Source #
Generate a function pointer callable from C code, from a C_BusGlobalEngineChangedCallback
.
noBusGlobalEngineChangedCallback :: Maybe BusGlobalEngineChangedCallback Source #
A convenience synonym for
.Nothing
:: Maybe
BusGlobalEngineChangedCallback
onBusGlobalEngineChanged :: (IsBus a, MonadIO m) => a -> BusGlobalEngineChangedCallback -> m SignalHandlerId Source #
Connect a signal handler for the globalEngineChanged signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
bus #globalEngineChanged callback
wrap_BusGlobalEngineChangedCallback :: BusGlobalEngineChangedCallback -> C_BusGlobalEngineChangedCallback Source #
Wrap a BusGlobalEngineChangedCallback
into a C_BusGlobalEngineChangedCallback
.
nameOwnerChanged
type BusNameOwnerChangedCallback Source #
= Text |
|
-> Text |
|
-> Text |
|
-> IO () |
Emitted when D-Bus name owner is changed.
type C_BusNameOwnerChangedCallback = Ptr () -> CString -> CString -> CString -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
afterBusNameOwnerChanged :: (IsBus a, MonadIO m) => a -> BusNameOwnerChangedCallback -> m SignalHandlerId Source #
Connect a signal handler for the nameOwnerChanged signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
bus #nameOwnerChanged callback
genClosure_BusNameOwnerChanged :: MonadIO m => BusNameOwnerChangedCallback -> m (GClosure C_BusNameOwnerChangedCallback) Source #
Wrap the callback into a GClosure
.
mk_BusNameOwnerChangedCallback :: C_BusNameOwnerChangedCallback -> IO (FunPtr C_BusNameOwnerChangedCallback) Source #
Generate a function pointer callable from C code, from a C_BusNameOwnerChangedCallback
.
noBusNameOwnerChangedCallback :: Maybe BusNameOwnerChangedCallback Source #
A convenience synonym for
.Nothing
:: Maybe
BusNameOwnerChangedCallback
onBusNameOwnerChanged :: (IsBus a, MonadIO m) => a -> BusNameOwnerChangedCallback -> m SignalHandlerId Source #
Connect a signal handler for the nameOwnerChanged signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
bus #nameOwnerChanged callback