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 |
GI.IBus.Objects.Bus
Contents
- Exported types
- 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
- setGlobalShortcutKeys
- setGlobalShortcutKeysAsync
- setGlobalShortcutKeysAsyncFinish
- setIbusProperty
- setIbusPropertyAsync
- setIbusPropertyAsyncFinish
- setWatchDbusSignal
- setWatchIbusSignal
- Properties
- Signals
Description
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 ()
- busSetGlobalShortcutKeys :: (HasCallStack, MonadIO m, IsBus a) => a -> BusGlobalBindingType -> [ProcessKeyEventData] -> m Bool
- busSetGlobalShortcutKeysAsync :: (HasCallStack, MonadIO m, IsBus a, IsCancellable b) => a -> BusGlobalBindingType -> [ProcessKeyEventData] -> Int32 -> Maybe b -> Maybe AsyncReadyCallback -> m ()
- busSetGlobalShortcutKeysAsyncFinish :: (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 ()
- afterBusConnected :: (IsBus a, MonadIO m) => a -> ((?self :: a) => BusConnectedCallback) -> m SignalHandlerId
- onBusConnected :: (IsBus a, MonadIO m) => a -> ((?self :: a) => BusConnectedCallback) -> m SignalHandlerId
- type BusDisconnectedCallback = IO ()
- afterBusDisconnected :: (IsBus a, MonadIO m) => a -> ((?self :: a) => BusDisconnectedCallback) -> m SignalHandlerId
- onBusDisconnected :: (IsBus a, MonadIO m) => a -> ((?self :: a) => BusDisconnectedCallback) -> m SignalHandlerId
- type BusGlobalEngineChangedCallback = Text -> IO ()
- afterBusGlobalEngineChanged :: (IsBus a, MonadIO m) => a -> ((?self :: a) => BusGlobalEngineChangedCallback) -> m SignalHandlerId
- onBusGlobalEngineChanged :: (IsBus a, MonadIO m) => a -> ((?self :: a) => BusGlobalEngineChangedCallback) -> m SignalHandlerId
- type BusGlobalShortcutKeyRespondedCallback = Word8 -> Bool -> Bool -> IO ()
- afterBusGlobalShortcutKeyResponded :: (IsBus a, MonadIO m) => a -> ((?self :: a) => BusGlobalShortcutKeyRespondedCallback) -> m SignalHandlerId
- onBusGlobalShortcutKeyResponded :: (IsBus a, MonadIO m) => a -> ((?self :: a) => BusGlobalShortcutKeyRespondedCallback) -> m SignalHandlerId
- type BusNameOwnerChangedCallback = Text -> Text -> Text -> IO ()
- afterBusNameOwnerChanged :: (IsBus a, MonadIO m) => a -> ((?self :: a) => BusNameOwnerChangedCallback) -> m SignalHandlerId
- onBusNameOwnerChanged :: (IsBus a, MonadIO m) => a -> ((?self :: a) => BusNameOwnerChangedCallback) -> m SignalHandlerId
Exported types
Memory-managed wrapper type.
Instances
Eq Bus Source # | |
GObject Bus Source # | |
Defined in GI.IBus.Objects.Bus | |
ManagedPtrNewtype Bus Source # | |
Defined in GI.IBus.Objects.Bus Methods toManagedPtr :: Bus -> ManagedPtr Bus | |
TypedObject Bus Source # | |
Defined in GI.IBus.Objects.Bus | |
HasParentTypes Bus Source # | |
Defined in GI.IBus.Objects.Bus | |
IsGValue (Maybe Bus) Source # | Convert |
Defined in GI.IBus.Objects.Bus Methods gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe Bus -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe 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
Click to display all available methods, including inherited ones
Methods
addMatch, addMatchAsync, addMatchAsyncFinish, bindProperty, bindPropertyFull, createInputContext, createInputContextAsync, createInputContextAsyncFinish, currentInputContext, currentInputContextAsync, currentInputContextAsyncFinish, destroy, exit, exitAsync, exitAsyncFinish, forceFloating, freezeNotify, getv, hello, isConnected, isFloating, isGlobalEngineEnabled, isGlobalEngineEnabledAsync, isGlobalEngineEnabledAsyncFinish, listActiveEngines, listActiveEnginesAsync, listActiveEnginesAsyncFinish, listEngines, listEnginesAsync, listEnginesAsyncFinish, listNames, listQueuedOwners, nameHasOwner, nameHasOwnerAsync, nameHasOwnerAsyncFinish, notify, notifyByPspec, preloadEngines, preloadEnginesAsync, preloadEnginesAsyncFinish, ref, refSink, registerComponent, registerComponentAsync, registerComponentAsyncFinish, releaseName, releaseNameAsync, releaseNameAsyncFinish, removeMatch, removeMatchAsync, removeMatchAsyncFinish, requestName, requestNameAsync, requestNameAsyncFinish, runDispose, stealData, stealQdata, thawNotify, unref, watchClosure.
Getters
getConfig, getConnection, getData, getEnginesByNames, getGlobalEngine, getGlobalEngineAsync, getGlobalEngineAsyncFinish, getIbusProperty, getIbusPropertyAsync, getIbusPropertyAsyncFinish, getNameOwner, getNameOwnerAsync, getNameOwnerAsyncFinish, getProperty, getQdata, getServiceName, getUseGlobalEngine, getUseGlobalEngineAsync, getUseGlobalEngineAsyncFinish, getUseSysLayout, getUseSysLayoutAsync, getUseSysLayoutAsyncFinish.
Setters
setData, setDataFull, setGlobalEngine, setGlobalEngineAsync, setGlobalEngineAsyncFinish, setGlobalShortcutKeys, setGlobalShortcutKeysAsync, setGlobalShortcutKeysAsyncFinish, setIbusProperty, setIbusPropertyAsync, setIbusPropertyAsyncFinish, setProperty, setWatchDbusSignal, setWatchIbusSignal.
addMatch
Add a match rule to an Bus
synchronously.
addMatchAsync
Arguments
:: (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 #
Arguments
:: (HasCallStack, MonadIO m, IsBus a, IsAsyncResult b) | |
=> a |
|
-> b |
|
-> m () | (Can throw |
Finishes an operation started with busAddMatchAsync
.
createInputContext
busCreateInputContext Source #
Arguments
:: (HasCallStack, MonadIO m, IsBus a) | |
=> a |
|
-> Text |
|
-> m InputContext | Returns: A newly allocated |
Create an input context for client synchronously.
createInputContextAsync
busCreateInputContextAsync Source #
Arguments
:: (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 #
Arguments
:: (HasCallStack, MonadIO m, IsBus a, IsAsyncResult b) | |
=> a |
|
-> b |
|
-> m InputContext | Returns: A newly allocated |
Finishes an operation started with busCreateInputContextAsync
.
currentInputContext
busCurrentInputContext Source #
Arguments
:: (HasCallStack, MonadIO m, IsBus a) | |
=> a |
|
-> m Text | Returns: Name of the currently focused |
Get the current focused input context synchronously.
currentInputContextAsync
busCurrentInputContextAsync Source #
Arguments
:: (HasCallStack, MonadIO m, IsBus a, IsCancellable b) | |
=> a |
|
-> Int32 |
|
-> Maybe b |
|
-> Maybe AsyncReadyCallback |
|
-> m () |
Get the current focused input context asynchronously.
currentInputContextAsyncFinish
busCurrentInputContextAsyncFinish Source #
Arguments
:: (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
Arguments
:: (HasCallStack, MonadIO m, IsBus a) | |
=> a |
|
-> Bool |
|
-> m Bool | Returns: |
Exit or restart ibus-daemon synchronously.
exitAsync
Arguments
:: (HasCallStack, MonadIO m, IsBus a, IsCancellable b) | |
=> a |
|
-> Bool |
|
-> Int32 |
|
-> Maybe b |
|
-> Maybe AsyncReadyCallback |
|
-> m () |
Exit or restart ibus-daemon asynchronously.
exitAsyncFinish
Arguments
:: (HasCallStack, MonadIO m, IsBus a, IsAsyncResult b) | |
=> a |
|
-> b |
|
-> m () | (Can throw |
Finishes an operation started with busExitAsync
.
getConfig
Arguments
:: (HasCallStack, MonadIO m, IsBus a) | |
=> a |
|
-> m Config | Returns: An |
Get the config instance from Bus
.
getConnection
Arguments
:: (HasCallStack, MonadIO m, IsBus a) | |
=> a |
|
-> m DBusConnection | Returns: A |
Gets a DBusConnection
of an Bus
instance.
getEnginesByNames
Arguments
:: (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
Arguments
:: (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 #
Arguments
:: (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 #
Arguments
:: (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
Arguments
:: (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 #
Arguments
:: (HasCallStack, MonadIO m, IsBus a, IsCancellable b) | |
=> a |
|
-> Text |
|
-> Int32 |
|
-> Maybe b |
|
-> Maybe AsyncReadyCallback |
|
-> m () |
Get org.freedesktop.DBus.Properties asynchronously.
getIbusPropertyAsyncFinish
busGetIbusPropertyAsyncFinish Source #
Arguments
:: (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
Arguments
:: (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
Arguments
:: (HasCallStack, MonadIO m, IsBus a, IsCancellable b) | |
=> a |
|
-> Text |
|
-> Int32 |
|
-> Maybe b |
|
-> Maybe AsyncReadyCallback |
|
-> m () |
Return the name owner asynchronously.
getNameOwnerAsyncFinish
busGetNameOwnerAsyncFinish Source #
Arguments
:: (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
Arguments
:: (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 #
Arguments
:: (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 #
Arguments
:: (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 #
Arguments
:: (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
Arguments
:: (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 #
Arguments
:: (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 #
Arguments
:: (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
Arguments
:: (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
Arguments
:: (HasCallStack, MonadIO m, IsBus a) | |
=> a |
|
-> m Bool |
Return True
if bus
is connected to IBus daemon.
isGlobalEngineEnabled
busIsGlobalEngineEnabled Source #
Arguments
:: (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 #
Arguments
:: (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 #
Arguments
:: (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
Arguments
:: (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 #
Arguments
:: (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 #
Arguments
:: (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
Arguments
:: (HasCallStack, MonadIO m, IsBus a) | |
=> a |
|
-> m [EngineDesc] | Returns: A List of engines. |
List engines synchronously.
listEnginesAsync
Arguments
:: (HasCallStack, MonadIO m, IsBus a, IsCancellable b) | |
=> a |
|
-> Int32 |
|
-> Maybe b |
|
-> Maybe AsyncReadyCallback |
|
-> m () |
List engines asynchronously.
listEnginesAsyncFinish
busListEnginesAsyncFinish Source #
Arguments
:: (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
Arguments
:: (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
Arguments
:: (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
Arguments
:: (HasCallStack, MonadIO m, IsBus a) | |
=> a |
|
-> Text |
|
-> m Bool |
Checks whether the name has owner synchronously.
nameHasOwnerAsync
Arguments
:: (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 #
Arguments
:: (HasCallStack, MonadIO m, IsBus a, IsAsyncResult b) | |
=> a |
|
-> b |
|
-> m () | (Can throw |
Finishes an operation started with busNameHasOwnerAsync
.
new
Arguments
:: (HasCallStack, MonadIO m) | |
=> m Bus | Returns: A newly allocated |
Creates a new Bus
instance.
newAsync
Arguments
:: (HasCallStack, MonadIO m) | |
=> m Bus | Returns: A newly allocated |
Creates a new Bus
instance. The instance will asynchronously connect
to the IBus daemon.
newAsyncClient
Arguments
:: (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
Arguments
:: (HasCallStack, MonadIO m, IsBus a) | |
=> a |
|
-> [Text] |
|
-> m Bool |
Start bus components by engine names synchronously.
preloadEnginesAsync
busPreloadEnginesAsync Source #
Arguments
:: (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 #
Arguments
:: (HasCallStack, MonadIO m, IsBus a, IsAsyncResult b) | |
=> a |
|
-> b |
|
-> m () | (Can throw |
Finishes an operation started with busPreloadEnginesAsync
.
registerComponent
Arguments
:: (HasCallStack, MonadIO m, IsBus a, IsComponent b) | |
=> a |
|
-> b |
|
-> m Bool | Returns: |
Register a component to an Bus
synchronously.
registerComponentAsync
busRegisterComponentAsync Source #
Arguments
:: (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 #
Arguments
:: (HasCallStack, MonadIO m, IsBus a, IsAsyncResult b) | |
=> a |
|
-> b |
|
-> m () | (Can throw |
Finishes an operation started with busRegisterComponentAsync
.
releaseName
Arguments
:: (HasCallStack, MonadIO m, IsBus a) | |
=> a |
|
-> Text |
|
-> m Word32 | Returns: 0 if failed; positive number otherwise. |
Release a name to IBus daemon synchronously.
releaseNameAsync
Arguments
:: (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 #
Arguments
:: (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
Remove a match rule to an Bus
synchronously.
removeMatchAsync
Arguments
:: (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 #
Arguments
:: (HasCallStack, MonadIO m, IsBus a, IsAsyncResult b) | |
=> a |
|
-> b |
|
-> m () | (Can throw |
Finishes an operation started with busRemoveMatchAsync
.
requestName
Arguments
:: (HasCallStack, MonadIO m, IsBus a) | |
=> a |
|
-> Text |
|
-> Word32 |
|
-> m Word32 | Returns: 0 if failed; IBusBusRequestNameReply otherwise. |
Request a name from IBus daemon synchronously.
requestNameAsync
Arguments
:: (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 #
Arguments
:: (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
Arguments
:: (HasCallStack, MonadIO m, IsBus a) | |
=> a |
|
-> Text |
|
-> m Bool | Returns: |
Set current global engine synchronously.
setGlobalEngineAsync
busSetGlobalEngineAsync Source #
Arguments
:: (HasCallStack, MonadIO m, IsBus a, IsCancellable b) | |
=> a |
|
-> Text |
|
-> Int32 |
|
-> Maybe b |
|
-> Maybe AsyncReadyCallback |
|
-> m () |
Set current global engine asynchronously.
setGlobalEngineAsyncFinish
busSetGlobalEngineAsyncFinish Source #
Arguments
:: (HasCallStack, MonadIO m, IsBus a, IsAsyncResult b) | |
=> a |
|
-> b |
|
-> m () | (Can throw |
Finishes an operation started with busSetGlobalEngineAsync
.
setGlobalShortcutKeys
busSetGlobalShortcutKeys Source #
Arguments
:: (HasCallStack, MonadIO m, IsBus a) | |
=> a |
|
-> BusGlobalBindingType |
|
-> [ProcessKeyEventData] |
|
-> m Bool | Returns: |
Set global shorcut keys for the Wayland session.
Since: 1.5.29
setGlobalShortcutKeysAsync
busSetGlobalShortcutKeysAsync Source #
Arguments
:: (HasCallStack, MonadIO m, IsBus a, IsCancellable b) | |
=> a |
|
-> BusGlobalBindingType |
|
-> [ProcessKeyEventData] |
|
-> Int32 |
|
-> Maybe b |
|
-> Maybe AsyncReadyCallback |
|
-> m () |
Sete global shorcut keys for the Wayland session asynchronously.
Since: 1.5.29
setGlobalShortcutKeysAsyncFinish
busSetGlobalShortcutKeysAsyncFinish Source #
Arguments
:: (HasCallStack, MonadIO m, IsBus a, IsAsyncResult b) | |
=> a |
|
-> b |
|
-> m () | (Can throw |
Finishes an operation started with busSetGlobalShortcutKeysAsync
.
Since: 1.5.29
setIbusProperty
Arguments
:: (HasCallStack, MonadIO m, IsBus a) | |
=> a |
|
-> Text |
|
-> GVariant |
|
-> m () |
Set org.freedesktop.DBus.Properties.
setIbusPropertyAsync
busSetIbusPropertyAsync Source #
Arguments
:: (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 #
Arguments
:: (HasCallStack, MonadIO m, IsBus a, IsAsyncResult b) | |
=> a |
|
-> b |
|
-> m () | (Can throw |
Finishes an operation started with busSetIbusPropertyAsync
.
setWatchDbusSignal
busSetWatchDbusSignal Source #
Arguments
:: (HasCallStack, MonadIO m, IsBus a) | |
=> a |
|
-> Bool |
|
-> m () |
Start or stop watching the NameOwnerChanged DBus signal.
setWatchIbusSignal
busSetWatchIbusSignal Source #
Arguments
:: (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.
afterBusConnected :: (IsBus a, MonadIO m) => a -> ((?self :: 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
By default the object invoking the signal is not passed to the callback.
If you need to access it, you can use the implit ?self
parameter.
Note that this requires activating the ImplicitParams
GHC extension.
onBusConnected :: (IsBus a, MonadIO m) => a -> ((?self :: 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
disconnected
type BusDisconnectedCallback = IO () Source #
Emitted when Bus
is disconnected from ibus-daemon.
afterBusDisconnected :: (IsBus a, MonadIO m) => a -> ((?self :: 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
By default the object invoking the signal is not passed to the callback.
If you need to access it, you can use the implit ?self
parameter.
Note that this requires activating the ImplicitParams
GHC extension.
onBusDisconnected :: (IsBus a, MonadIO m) => a -> ((?self :: 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
globalEngineChanged
type BusGlobalEngineChangedCallback Source #
Emitted when global engine is changed.
afterBusGlobalEngineChanged :: (IsBus a, MonadIO m) => a -> ((?self :: 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
By default the object invoking the signal is not passed to the callback.
If you need to access it, you can use the implit ?self
parameter.
Note that this requires activating the ImplicitParams
GHC extension.
onBusGlobalEngineChanged :: (IsBus a, MonadIO m) => a -> ((?self :: 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
globalShortcutKeyResponded
type BusGlobalShortcutKeyRespondedCallback Source #
Arguments
= Word8 |
|
-> Bool |
|
-> Bool |
|
-> IO () |
Emitted when global shortcut key is responded.
afterBusGlobalShortcutKeyResponded :: (IsBus a, MonadIO m) => a -> ((?self :: a) => BusGlobalShortcutKeyRespondedCallback) -> m SignalHandlerId Source #
Connect a signal handler for the globalShortcutKeyResponded signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
bus #globalShortcutKeyResponded callback
By default the object invoking the signal is not passed to the callback.
If you need to access it, you can use the implit ?self
parameter.
Note that this requires activating the ImplicitParams
GHC extension.
onBusGlobalShortcutKeyResponded :: (IsBus a, MonadIO m) => a -> ((?self :: a) => BusGlobalShortcutKeyRespondedCallback) -> m SignalHandlerId Source #
Connect a signal handler for the globalShortcutKeyResponded signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
bus #globalShortcutKeyResponded callback
nameOwnerChanged
type BusNameOwnerChangedCallback Source #
Arguments
= Text |
|
-> Text |
|
-> Text |
|
-> IO () |
Emitted when D-Bus name owner is changed.
afterBusNameOwnerChanged :: (IsBus a, MonadIO m) => a -> ((?self :: 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
By default the object invoking the signal is not passed to the callback.
If you need to access it, you can use the implit ?self
parameter.
Note that this requires activating the ImplicitParams
GHC extension.
onBusNameOwnerChanged :: (IsBus a, MonadIO m) => a -> ((?self :: 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