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 |
An IBusProxy is the base of all proxy objects,
which communicate the corresponding IBusServices
on the other end of
IBusConnection.
For example, IBus clients (such as editors, web browsers) invoke the proxy
object,
IBusInputContext to communicate with the InputContext service of the
ibus-daemon.
Almost all services have corresponding proxies, except very simple services.
Synopsis
- newtype Proxy = Proxy (ManagedPtr Proxy)
- class (GObject o, IsDescendantOf Proxy o) => IsProxy o
- toProxy :: (MonadIO m, IsProxy o) => o -> m Proxy
- proxyDestroy :: (HasCallStack, MonadIO m, IsProxy a) => a -> m ()
- type ProxyDestroyCallback = IO ()
- afterProxyDestroy :: (IsProxy a, MonadIO m) => a -> ((?self :: a) => ProxyDestroyCallback) -> m SignalHandlerId
- onProxyDestroy :: (IsProxy a, MonadIO m) => a -> ((?self :: a) => ProxyDestroyCallback) -> m SignalHandlerId
Exported types
Memory-managed wrapper type.
Instances
Eq Proxy Source # | |
GObject Proxy Source # | |
Defined in GI.IBus.Objects.Proxy | |
ManagedPtrNewtype Proxy Source # | |
Defined in GI.IBus.Objects.Proxy toManagedPtr :: Proxy -> ManagedPtr Proxy | |
TypedObject Proxy Source # | |
Defined in GI.IBus.Objects.Proxy | |
HasParentTypes Proxy Source # | |
Defined in GI.IBus.Objects.Proxy | |
IsGValue (Maybe Proxy) Source # | Convert |
Defined in GI.IBus.Objects.Proxy gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe Proxy -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe Proxy) | |
type ParentTypes Proxy Source # | |
Defined in GI.IBus.Objects.Proxy type ParentTypes Proxy = '[DBusProxy, Object, AsyncInitable, DBusInterface, Initable] |
class (GObject o, IsDescendantOf Proxy o) => IsProxy o Source #
Instances
(GObject o, IsDescendantOf Proxy o) => IsProxy o Source # | |
Defined in GI.IBus.Objects.Proxy |
Methods
Click to display all available methods, including inherited ones
Methods
bindProperty, bindPropertyFull, call, callFinish, callSync, callWithUnixFdList, callWithUnixFdListFinish, callWithUnixFdListSync, destroy, forceFloating, freezeNotify, getv, init, initAsync, initFinish, isFloating, notify, notifyByPspec, ref, refSink, runDispose, stealData, stealQdata, thawNotify, unref, watchClosure.
Getters
getCachedProperty, getCachedPropertyNames, getConnection, getData, getDefaultTimeout, getFlags, getInfo, getInterfaceInfo, getInterfaceName, getName, getNameOwner, getObject, getObjectPath, getProperty, getQdata.
Setters
setCachedProperty, setData, setDataFull, setDefaultTimeout, setInterfaceInfo, setObject, setProperty.
destroy
:: (HasCallStack, MonadIO m, IsProxy a) | |
=> a |
|
-> m () |
Dispose the proxy object. If the dbus connection is alive and the own variable above is TRUE (which is the default), org.freedesktop.IBus.Service.Destroy method will be called. Note that "destroy" signal might be emitted when ibus_proxy_destroy is called or the underlying dbus connection for the proxy is terminated. In the callback of the destroy signal, you might have to call something like 'g_object_unref(the_proxy);'.
Signals
destroy
type ProxyDestroyCallback = IO () Source #
Destroy and free an IBusProxy
See also: proxyDestroy
.
<note><para>Argument userData
is ignored in this function.</para></note>
afterProxyDestroy :: (IsProxy a, MonadIO m) => a -> ((?self :: a) => ProxyDestroyCallback) -> m SignalHandlerId Source #
Connect a signal handler for the destroy signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
proxy #destroy 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.
onProxyDestroy :: (IsProxy a, MonadIO m) => a -> ((?self :: a) => ProxyDestroyCallback) -> m SignalHandlerId Source #
Connect a signal handler for the destroy signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
proxy #destroy callback