Copyright | Will Thompson and Iñaki García Etxebarria |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | None |
Language | Haskell2010 |
GI.Gio.Objects.DBusProxy
Contents
- Exported types
- Methods
- call
- callFinish
- callSync
- callWithUnixFdList
- callWithUnixFdListFinish
- callWithUnixFdListSync
- getCachedProperty
- getCachedPropertyNames
- getConnection
- getDefaultTimeout
- getFlags
- getInterfaceInfo
- getInterfaceName
- getName
- getNameOwner
- getObjectPath
- new
- newFinish
- newForBus
- newForBusFinish
- newForBusSync
- newSync
- setCachedProperty
- setDefaultTimeout
- setInterfaceInfo
- Properties
- Signals
Description
GDBusProxy
is a base class used for proxies to access a D-Bus
interface on a remote object. A GDBusProxy
can be constructed for
both well-known and unique names.
By default, GDBusProxy
will cache all properties (and listen to
changes) of the remote object, and proxy all signals that get
emitted. This behaviour can be changed by passing suitable
[flagsgio
.DBusProxyFlags] when the proxy is created. If the proxy is for a
well-known name, the property cache is flushed when the name owner
vanishes and reloaded when a name owner appears.
The unique name owner of the proxy’s name is tracked and can be read from
DBusProxy:gNameOwner. Connect to the
Object::notify signal to get notified of changes.
Additionally, only signals and property changes emitted from the current name
owner are considered and calls are always sent to the current name owner.
This avoids a number of race conditions when the name is lost by one owner
and claimed by another. However, if no name owner currently exists,
then calls will be sent to the well-known name which may result in
the message bus launching an owner (unless
G_DBUS_PROXY_FLAGS_DO_NOT_AUTO_START
is set).
If the proxy is for a stateless D-Bus service, where the name owner may
be started and stopped between calls, the
DBusProxy:gNameOwner tracking of GDBusProxy
will cause the
proxy to drop signal and property changes from the service after it has
restarted for the first time. When interacting with a stateless D-Bus
service, do not use GDBusProxy
— use direct D-Bus method calls and signal
connections.
The generic DBusProxy::gPropertiesChanged and
DBusProxy::gSignal signals are not very convenient to work
with. Therefore, the recommended way of working with proxies is to subclass
GDBusProxy
, and have more natural properties and signals in your derived
class. This example shows how
this can easily be done using the `gdbus-codegen` tool.
A GDBusProxy
instance can be used from multiple threads but note
that all signals (e.g. DBusProxy::gSignal,
DBusProxy::gPropertiesChanged and
Object::notify) are emitted in the thread-default main
context (see mainContextPushThreadDefault
) of the thread
where the instance was constructed.
A watch proxy example
An example using a proxy for a well-known name can be found in `gdbus-example-watch-proxy.c`.
Since: 2.26
Synopsis
- newtype DBusProxy = DBusProxy (ManagedPtr DBusProxy)
- class (GObject o, IsDescendantOf DBusProxy o) => IsDBusProxy o
- toDBusProxy :: (MonadIO m, IsDBusProxy o) => o -> m DBusProxy
- type family ResolveDBusProxyMethod (t :: Symbol) o where ...
- data DBusProxyCallMethodInfo
- dBusProxyCall :: (HasCallStack, MonadIO m, IsDBusProxy a, IsCancellable b) => a -> Text -> Maybe GVariant -> [DBusCallFlags] -> Int32 -> Maybe b -> Maybe AsyncReadyCallback -> m ()
- data DBusProxyCallFinishMethodInfo
- dBusProxyCallFinish :: (HasCallStack, MonadIO m, IsDBusProxy a, IsAsyncResult b) => a -> b -> m GVariant
- data DBusProxyCallSyncMethodInfo
- dBusProxyCallSync :: (HasCallStack, MonadIO m, IsDBusProxy a, IsCancellable b) => a -> Text -> Maybe GVariant -> [DBusCallFlags] -> Int32 -> Maybe b -> m GVariant
- data DBusProxyCallWithUnixFdListMethodInfo
- dBusProxyCallWithUnixFdList :: (HasCallStack, MonadIO m, IsDBusProxy a, IsUnixFDList b, IsCancellable c) => a -> Text -> Maybe GVariant -> [DBusCallFlags] -> Int32 -> Maybe b -> Maybe c -> Maybe AsyncReadyCallback -> m ()
- data DBusProxyCallWithUnixFdListFinishMethodInfo
- dBusProxyCallWithUnixFdListFinish :: (HasCallStack, MonadIO m, IsDBusProxy a, IsAsyncResult b) => a -> b -> m (GVariant, Maybe UnixFDList)
- data DBusProxyCallWithUnixFdListSyncMethodInfo
- dBusProxyCallWithUnixFdListSync :: (HasCallStack, MonadIO m, IsDBusProxy a, IsUnixFDList b, IsCancellable c) => a -> Text -> Maybe GVariant -> [DBusCallFlags] -> Int32 -> Maybe b -> Maybe c -> m (GVariant, Maybe UnixFDList)
- data DBusProxyGetCachedPropertyMethodInfo
- dBusProxyGetCachedProperty :: (HasCallStack, MonadIO m, IsDBusProxy a) => a -> Text -> m (Maybe GVariant)
- data DBusProxyGetCachedPropertyNamesMethodInfo
- dBusProxyGetCachedPropertyNames :: (HasCallStack, MonadIO m, IsDBusProxy a) => a -> m (Maybe [Text])
- data DBusProxyGetConnectionMethodInfo
- dBusProxyGetConnection :: (HasCallStack, MonadIO m, IsDBusProxy a) => a -> m DBusConnection
- data DBusProxyGetDefaultTimeoutMethodInfo
- dBusProxyGetDefaultTimeout :: (HasCallStack, MonadIO m, IsDBusProxy a) => a -> m Int32
- data DBusProxyGetFlagsMethodInfo
- dBusProxyGetFlags :: (HasCallStack, MonadIO m, IsDBusProxy a) => a -> m [DBusProxyFlags]
- data DBusProxyGetInterfaceInfoMethodInfo
- dBusProxyGetInterfaceInfo :: (HasCallStack, MonadIO m, IsDBusProxy a) => a -> m (Maybe DBusInterfaceInfo)
- data DBusProxyGetInterfaceNameMethodInfo
- dBusProxyGetInterfaceName :: (HasCallStack, MonadIO m, IsDBusProxy a) => a -> m Text
- data DBusProxyGetNameMethodInfo
- dBusProxyGetName :: (HasCallStack, MonadIO m, IsDBusProxy a) => a -> m (Maybe Text)
- data DBusProxyGetNameOwnerMethodInfo
- dBusProxyGetNameOwner :: (HasCallStack, MonadIO m, IsDBusProxy a) => a -> m (Maybe Text)
- data DBusProxyGetObjectPathMethodInfo
- dBusProxyGetObjectPath :: (HasCallStack, MonadIO m, IsDBusProxy a) => a -> m Text
- dBusProxyNew :: (HasCallStack, MonadIO m, IsDBusConnection a, IsCancellable b) => a -> [DBusProxyFlags] -> Maybe DBusInterfaceInfo -> Maybe Text -> Text -> Text -> Maybe b -> Maybe AsyncReadyCallback -> m ()
- dBusProxyNewFinish :: (HasCallStack, MonadIO m, IsAsyncResult a) => a -> m DBusProxy
- dBusProxyNewForBus :: (HasCallStack, MonadIO m, IsCancellable a) => BusType -> [DBusProxyFlags] -> Maybe DBusInterfaceInfo -> Text -> Text -> Text -> Maybe a -> Maybe AsyncReadyCallback -> m ()
- dBusProxyNewForBusFinish :: (HasCallStack, MonadIO m, IsAsyncResult a) => a -> m DBusProxy
- dBusProxyNewForBusSync :: (HasCallStack, MonadIO m, IsCancellable a) => BusType -> [DBusProxyFlags] -> Maybe DBusInterfaceInfo -> Text -> Text -> Text -> Maybe a -> m DBusProxy
- dBusProxyNewSync :: (HasCallStack, MonadIO m, IsDBusConnection a, IsCancellable b) => a -> [DBusProxyFlags] -> Maybe DBusInterfaceInfo -> Maybe Text -> Text -> Text -> Maybe b -> m DBusProxy
- data DBusProxySetCachedPropertyMethodInfo
- dBusProxySetCachedProperty :: (HasCallStack, MonadIO m, IsDBusProxy a) => a -> Text -> Maybe GVariant -> m ()
- data DBusProxySetDefaultTimeoutMethodInfo
- dBusProxySetDefaultTimeout :: (HasCallStack, MonadIO m, IsDBusProxy a) => a -> Int32 -> m ()
- data DBusProxySetInterfaceInfoMethodInfo
- dBusProxySetInterfaceInfo :: (HasCallStack, MonadIO m, IsDBusProxy a) => a -> Maybe DBusInterfaceInfo -> m ()
- data DBusProxyGBusTypePropertyInfo
- constructDBusProxyGBusType :: (IsDBusProxy o, MonadIO m) => BusType -> m (GValueConstruct o)
- dBusProxyGBusType :: AttrLabelProxy "gBusType"
- data DBusProxyGConnectionPropertyInfo
- constructDBusProxyGConnection :: (IsDBusProxy o, MonadIO m, IsDBusConnection a) => a -> m (GValueConstruct o)
- dBusProxyGConnection :: AttrLabelProxy "gConnection"
- getDBusProxyGConnection :: (MonadIO m, IsDBusProxy o) => o -> m (Maybe DBusConnection)
- data DBusProxyGDefaultTimeoutPropertyInfo
- constructDBusProxyGDefaultTimeout :: (IsDBusProxy o, MonadIO m) => Int32 -> m (GValueConstruct o)
- dBusProxyGDefaultTimeout :: AttrLabelProxy "gDefaultTimeout"
- getDBusProxyGDefaultTimeout :: (MonadIO m, IsDBusProxy o) => o -> m Int32
- setDBusProxyGDefaultTimeout :: (MonadIO m, IsDBusProxy o) => o -> Int32 -> m ()
- data DBusProxyGFlagsPropertyInfo
- constructDBusProxyGFlags :: (IsDBusProxy o, MonadIO m) => [DBusProxyFlags] -> m (GValueConstruct o)
- dBusProxyGFlags :: AttrLabelProxy "gFlags"
- getDBusProxyGFlags :: (MonadIO m, IsDBusProxy o) => o -> m [DBusProxyFlags]
- data DBusProxyGInterfaceInfoPropertyInfo
- clearDBusProxyGInterfaceInfo :: (MonadIO m, IsDBusProxy o) => o -> m ()
- constructDBusProxyGInterfaceInfo :: (IsDBusProxy o, MonadIO m) => DBusInterfaceInfo -> m (GValueConstruct o)
- dBusProxyGInterfaceInfo :: AttrLabelProxy "gInterfaceInfo"
- getDBusProxyGInterfaceInfo :: (MonadIO m, IsDBusProxy o) => o -> m (Maybe DBusInterfaceInfo)
- setDBusProxyGInterfaceInfo :: (MonadIO m, IsDBusProxy o) => o -> DBusInterfaceInfo -> m ()
- data DBusProxyGInterfaceNamePropertyInfo
- constructDBusProxyGInterfaceName :: (IsDBusProxy o, MonadIO m) => Text -> m (GValueConstruct o)
- dBusProxyGInterfaceName :: AttrLabelProxy "gInterfaceName"
- getDBusProxyGInterfaceName :: (MonadIO m, IsDBusProxy o) => o -> m (Maybe Text)
- data DBusProxyGNamePropertyInfo
- constructDBusProxyGName :: (IsDBusProxy o, MonadIO m) => Text -> m (GValueConstruct o)
- dBusProxyGName :: AttrLabelProxy "gName"
- getDBusProxyGName :: (MonadIO m, IsDBusProxy o) => o -> m (Maybe Text)
- data DBusProxyGNameOwnerPropertyInfo
- dBusProxyGNameOwner :: AttrLabelProxy "gNameOwner"
- getDBusProxyGNameOwner :: (MonadIO m, IsDBusProxy o) => o -> m (Maybe Text)
- data DBusProxyGObjectPathPropertyInfo
- constructDBusProxyGObjectPath :: (IsDBusProxy o, MonadIO m) => Text -> m (GValueConstruct o)
- dBusProxyGObjectPath :: AttrLabelProxy "gObjectPath"
- getDBusProxyGObjectPath :: (MonadIO m, IsDBusProxy o) => o -> m (Maybe Text)
- type DBusProxyGPropertiesChangedCallback = GVariant -> [Text] -> IO ()
- data DBusProxyGPropertiesChangedSignalInfo
- afterDBusProxyGPropertiesChanged :: (IsDBusProxy a, MonadIO m) => a -> ((?self :: a) => DBusProxyGPropertiesChangedCallback) -> m SignalHandlerId
- onDBusProxyGPropertiesChanged :: (IsDBusProxy a, MonadIO m) => a -> ((?self :: a) => DBusProxyGPropertiesChangedCallback) -> m SignalHandlerId
- type DBusProxyGSignalCallback = Maybe Text -> Text -> GVariant -> IO ()
- data DBusProxyGSignalSignalInfo
- afterDBusProxyGSignal :: (IsDBusProxy a, MonadIO m) => a -> Maybe Text -> ((?self :: a) => DBusProxyGSignalCallback) -> m SignalHandlerId
- onDBusProxyGSignal :: (IsDBusProxy a, MonadIO m) => a -> Maybe Text -> ((?self :: a) => DBusProxyGSignalCallback) -> m SignalHandlerId
Exported types
Memory-managed wrapper type.
Constructors
DBusProxy (ManagedPtr DBusProxy) |
Instances
class (GObject o, IsDescendantOf DBusProxy o) => IsDBusProxy o Source #
Type class for types which can be safely cast to DBusProxy
, for instance with toDBusProxy
.
Instances
(GObject o, IsDescendantOf DBusProxy o) => IsDBusProxy o Source # | |
Defined in GI.Gio.Objects.DBusProxy |
toDBusProxy :: (MonadIO m, IsDBusProxy o) => o -> m DBusProxy Source #
Methods
Click to display all available methods, including inherited ones
Methods
bindProperty, bindPropertyFull, call, callFinish, callSync, callWithUnixFdList, callWithUnixFdListFinish, callWithUnixFdListSync, 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.
type family ResolveDBusProxyMethod (t :: Symbol) o where ... Source #
Equations
call
data DBusProxyCallMethodInfo Source #
Instances
(signature ~ (Text -> Maybe GVariant -> [DBusCallFlags] -> Int32 -> Maybe b -> Maybe AsyncReadyCallback -> m ()), MonadIO m, IsDBusProxy a, IsCancellable b) => OverloadedMethod DBusProxyCallMethodInfo a signature Source # | |
Defined in GI.Gio.Objects.DBusProxy Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo DBusProxyCallMethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Objects.DBusProxy Methods |
Arguments
:: (HasCallStack, MonadIO m, IsDBusProxy a, IsCancellable b) | |
=> a |
|
-> Text |
|
-> Maybe GVariant |
|
-> [DBusCallFlags] |
|
-> Int32 |
|
-> Maybe b |
|
-> Maybe AsyncReadyCallback |
|
-> m () |
Asynchronously invokes the methodName
method on proxy
.
If methodName
contains any dots, then name
is split into interface and
method name parts. This allows using proxy
for invoking methods on
other interfaces.
If the DBusConnection
associated with proxy
is closed then
the operation will fail with IOErrorEnumClosed
. If
cancellable
is canceled, the operation will fail with
IOErrorEnumCancelled
. If parameters
contains a value not
compatible with the D-Bus protocol, the operation fails with
IOErrorEnumInvalidArgument
.
If the parameters
GVariant
is floating, it is consumed. This allows
convenient 'inline' use of g_variant_new()
, e.g.:
C code
g_dbus_proxy_call (proxy, "TwoStrings", g_variant_new ("(ss)", "Thing One", "Thing Two"), G_DBUS_CALL_FLAGS_NONE, -1, NULL, (GAsyncReadyCallback) two_strings_done, &data);
If proxy
has an expected interface (see
DBusProxy:gInterfaceInfo) and methodName
is referenced by it,
then the return value is checked against the return type.
This is an asynchronous method. When the operation is finished,
callback
will be invoked in the thread-default main context
(see mainContextPushThreadDefault
)
of the thread you are calling this method from.
You can then call dBusProxyCallFinish
to get the result of
the operation. See dBusProxyCallSync
for the synchronous
version of this method.
If callback
is Nothing
then the D-Bus method call message will be sent with
the DBusMessageFlagsNoReplyExpected
flag set.
Since: 2.26
callFinish
data DBusProxyCallFinishMethodInfo Source #
Instances
(signature ~ (b -> m GVariant), MonadIO m, IsDBusProxy a, IsAsyncResult b) => OverloadedMethod DBusProxyCallFinishMethodInfo a signature Source # | |
Defined in GI.Gio.Objects.DBusProxy Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo DBusProxyCallFinishMethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Objects.DBusProxy Methods |
Arguments
:: (HasCallStack, MonadIO m, IsDBusProxy a, IsAsyncResult b) | |
=> a |
|
-> b |
|
-> m GVariant | Returns: |
Finishes an operation started with dBusProxyCall
.
Since: 2.26
callSync
data DBusProxyCallSyncMethodInfo Source #
Instances
(signature ~ (Text -> Maybe GVariant -> [DBusCallFlags] -> Int32 -> Maybe b -> m GVariant), MonadIO m, IsDBusProxy a, IsCancellable b) => OverloadedMethod DBusProxyCallSyncMethodInfo a signature Source # | |
Defined in GI.Gio.Objects.DBusProxy Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo DBusProxyCallSyncMethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Objects.DBusProxy Methods |
Arguments
:: (HasCallStack, MonadIO m, IsDBusProxy a, IsCancellable b) | |
=> a |
|
-> Text |
|
-> Maybe GVariant |
|
-> [DBusCallFlags] |
|
-> Int32 |
|
-> Maybe b |
|
-> m GVariant | Returns: |
Synchronously invokes the methodName
method on proxy
.
If methodName
contains any dots, then name
is split into interface and
method name parts. This allows using proxy
for invoking methods on
other interfaces.
If the DBusConnection
associated with proxy
is disconnected then
the operation will fail with IOErrorEnumClosed
. If
cancellable
is canceled, the operation will fail with
IOErrorEnumCancelled
. If parameters
contains a value not
compatible with the D-Bus protocol, the operation fails with
IOErrorEnumInvalidArgument
.
If the parameters
GVariant
is floating, it is consumed. This allows
convenient 'inline' use of g_variant_new()
, e.g.:
C code
g_dbus_proxy_call_sync (proxy, "TwoStrings", g_variant_new ("(ss)", "Thing One", "Thing Two"), G_DBUS_CALL_FLAGS_NONE, -1, NULL, &error);
The calling thread is blocked until a reply is received. See
dBusProxyCall
for the asynchronous version of this
method.
If proxy
has an expected interface (see
DBusProxy:gInterfaceInfo) and methodName
is referenced by it,
then the return value is checked against the return type.
Since: 2.26
callWithUnixFdList
data DBusProxyCallWithUnixFdListMethodInfo Source #
Instances
(signature ~ (Text -> Maybe GVariant -> [DBusCallFlags] -> Int32 -> Maybe b -> Maybe c -> Maybe AsyncReadyCallback -> m ()), MonadIO m, IsDBusProxy a, IsUnixFDList b, IsCancellable c) => OverloadedMethod DBusProxyCallWithUnixFdListMethodInfo a signature Source # | |
Defined in GI.Gio.Objects.DBusProxy Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo DBusProxyCallWithUnixFdListMethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Objects.DBusProxy Methods |
dBusProxyCallWithUnixFdList Source #
Arguments
:: (HasCallStack, MonadIO m, IsDBusProxy a, IsUnixFDList b, IsCancellable c) | |
=> a |
|
-> Text |
|
-> Maybe GVariant |
|
-> [DBusCallFlags] |
|
-> Int32 |
|
-> Maybe b |
|
-> Maybe c |
|
-> Maybe AsyncReadyCallback |
|
-> m () |
Like dBusProxyCall
but also takes a UnixFDList
object.
This method is only available on UNIX.
Since: 2.30
callWithUnixFdListFinish
data DBusProxyCallWithUnixFdListFinishMethodInfo Source #
Instances
(signature ~ (b -> m (GVariant, Maybe UnixFDList)), MonadIO m, IsDBusProxy a, IsAsyncResult b) => OverloadedMethod DBusProxyCallWithUnixFdListFinishMethodInfo a signature Source # | |
Defined in GI.Gio.Objects.DBusProxy Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo DBusProxyCallWithUnixFdListFinishMethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Objects.DBusProxy Methods |
dBusProxyCallWithUnixFdListFinish Source #
Arguments
:: (HasCallStack, MonadIO m, IsDBusProxy a, IsAsyncResult b) | |
=> a |
|
-> b |
|
-> m (GVariant, Maybe UnixFDList) | Returns: |
Finishes an operation started with dBusProxyCallWithUnixFdList
.
Since: 2.30
callWithUnixFdListSync
data DBusProxyCallWithUnixFdListSyncMethodInfo Source #
Instances
(signature ~ (Text -> Maybe GVariant -> [DBusCallFlags] -> Int32 -> Maybe b -> Maybe c -> m (GVariant, Maybe UnixFDList)), MonadIO m, IsDBusProxy a, IsUnixFDList b, IsCancellable c) => OverloadedMethod DBusProxyCallWithUnixFdListSyncMethodInfo a signature Source # | |
Defined in GI.Gio.Objects.DBusProxy Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo DBusProxyCallWithUnixFdListSyncMethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Objects.DBusProxy Methods |
dBusProxyCallWithUnixFdListSync Source #
Arguments
:: (HasCallStack, MonadIO m, IsDBusProxy a, IsUnixFDList b, IsCancellable c) | |
=> a |
|
-> Text |
|
-> Maybe GVariant |
|
-> [DBusCallFlags] |
|
-> Int32 |
|
-> Maybe b |
|
-> Maybe c |
|
-> m (GVariant, Maybe UnixFDList) | Returns: |
Like dBusProxyCallSync
but also takes and returns UnixFDList
objects.
This method is only available on UNIX.
Since: 2.30
getCachedProperty
data DBusProxyGetCachedPropertyMethodInfo Source #
Instances
(signature ~ (Text -> m (Maybe GVariant)), MonadIO m, IsDBusProxy a) => OverloadedMethod DBusProxyGetCachedPropertyMethodInfo a signature Source # | |
Defined in GI.Gio.Objects.DBusProxy Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo DBusProxyGetCachedPropertyMethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Objects.DBusProxy Methods |
dBusProxyGetCachedProperty Source #
Arguments
:: (HasCallStack, MonadIO m, IsDBusProxy a) | |
=> a |
|
-> Text |
|
-> m (Maybe GVariant) | Returns: A reference to the |
Looks up the value for a property from the cache. This call does no blocking IO.
If proxy
has an expected interface (see
DBusProxy:gInterfaceInfo) and propertyName
is referenced by
it, then value
is checked against the type of the property.
Since: 2.26
getCachedPropertyNames
data DBusProxyGetCachedPropertyNamesMethodInfo Source #
Instances
(signature ~ m (Maybe [Text]), MonadIO m, IsDBusProxy a) => OverloadedMethod DBusProxyGetCachedPropertyNamesMethodInfo a signature Source # | |
Defined in GI.Gio.Objects.DBusProxy Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo DBusProxyGetCachedPropertyNamesMethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Objects.DBusProxy Methods |
dBusProxyGetCachedPropertyNames Source #
Arguments
:: (HasCallStack, MonadIO m, IsDBusProxy a) | |
=> a |
|
-> m (Maybe [Text]) | Returns: A
|
Gets the names of all cached properties on proxy
.
Since: 2.26
getConnection
data DBusProxyGetConnectionMethodInfo Source #
Instances
(signature ~ m DBusConnection, MonadIO m, IsDBusProxy a) => OverloadedMethod DBusProxyGetConnectionMethodInfo a signature Source # | |
Defined in GI.Gio.Objects.DBusProxy Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo DBusProxyGetConnectionMethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Objects.DBusProxy Methods |
dBusProxyGetConnection Source #
Arguments
:: (HasCallStack, MonadIO m, IsDBusProxy a) | |
=> a |
|
-> m DBusConnection | Returns: A |
Gets the connection proxy
is for.
Since: 2.26
getDefaultTimeout
data DBusProxyGetDefaultTimeoutMethodInfo Source #
Instances
(signature ~ m Int32, MonadIO m, IsDBusProxy a) => OverloadedMethod DBusProxyGetDefaultTimeoutMethodInfo a signature Source # | |
Defined in GI.Gio.Objects.DBusProxy Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo DBusProxyGetDefaultTimeoutMethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Objects.DBusProxy Methods |
dBusProxyGetDefaultTimeout Source #
Arguments
:: (HasCallStack, MonadIO m, IsDBusProxy a) | |
=> a |
|
-> m Int32 | Returns: Timeout to use for |
Gets the timeout to use if -1 (specifying default timeout) is
passed as timeoutMsec
in the dBusProxyCall
and
dBusProxyCallSync
functions.
See the DBusProxy:gDefaultTimeout property for more details.
Since: 2.26
getFlags
data DBusProxyGetFlagsMethodInfo Source #
Instances
(signature ~ m [DBusProxyFlags], MonadIO m, IsDBusProxy a) => OverloadedMethod DBusProxyGetFlagsMethodInfo a signature Source # | |
Defined in GI.Gio.Objects.DBusProxy Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo DBusProxyGetFlagsMethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Objects.DBusProxy Methods |
Arguments
:: (HasCallStack, MonadIO m, IsDBusProxy a) | |
=> a |
|
-> m [DBusProxyFlags] | Returns: Flags from the |
Gets the flags that proxy
was constructed with.
Since: 2.26
getInterfaceInfo
data DBusProxyGetInterfaceInfoMethodInfo Source #
Instances
(signature ~ m (Maybe DBusInterfaceInfo), MonadIO m, IsDBusProxy a) => OverloadedMethod DBusProxyGetInterfaceInfoMethodInfo a signature Source # | |
Defined in GI.Gio.Objects.DBusProxy Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo DBusProxyGetInterfaceInfoMethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Objects.DBusProxy Methods |
dBusProxyGetInterfaceInfo Source #
Arguments
:: (HasCallStack, MonadIO m, IsDBusProxy a) | |
=> a |
|
-> m (Maybe DBusInterfaceInfo) | Returns: A |
Returns the DBusInterfaceInfo
, if any, specifying the interface
that proxy
conforms to. See the DBusProxy:gInterfaceInfo
property for more details.
Since: 2.26
getInterfaceName
data DBusProxyGetInterfaceNameMethodInfo Source #
Instances
(signature ~ m Text, MonadIO m, IsDBusProxy a) => OverloadedMethod DBusProxyGetInterfaceNameMethodInfo a signature Source # | |
Defined in GI.Gio.Objects.DBusProxy Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo DBusProxyGetInterfaceNameMethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Objects.DBusProxy Methods |
dBusProxyGetInterfaceName Source #
Arguments
:: (HasCallStack, MonadIO m, IsDBusProxy a) | |
=> a |
|
-> m Text | Returns: A string owned by |
Gets the D-Bus interface name proxy
is for.
Since: 2.26
getName
data DBusProxyGetNameMethodInfo Source #
Instances
(signature ~ m (Maybe Text), MonadIO m, IsDBusProxy a) => OverloadedMethod DBusProxyGetNameMethodInfo a signature Source # | |
Defined in GI.Gio.Objects.DBusProxy Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo DBusProxyGetNameMethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Objects.DBusProxy Methods |
Arguments
:: (HasCallStack, MonadIO m, IsDBusProxy a) | |
=> a |
|
-> m (Maybe Text) | Returns: A string owned by |
getNameOwner
data DBusProxyGetNameOwnerMethodInfo Source #
Instances
(signature ~ m (Maybe Text), MonadIO m, IsDBusProxy a) => OverloadedMethod DBusProxyGetNameOwnerMethodInfo a signature Source # | |
Defined in GI.Gio.Objects.DBusProxy Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo DBusProxyGetNameOwnerMethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Objects.DBusProxy Methods |
dBusProxyGetNameOwner Source #
Arguments
:: (HasCallStack, MonadIO m, IsDBusProxy a) | |
=> a |
|
-> m (Maybe Text) | Returns: The name owner or |
The unique name that owns the name that proxy
is for or Nothing
if
no-one currently owns that name. You may connect to the
Object::notify signal to track changes to the
DBusProxy:gNameOwner property.
Since: 2.26
getObjectPath
data DBusProxyGetObjectPathMethodInfo Source #
Instances
(signature ~ m Text, MonadIO m, IsDBusProxy a) => OverloadedMethod DBusProxyGetObjectPathMethodInfo a signature Source # | |
Defined in GI.Gio.Objects.DBusProxy Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo DBusProxyGetObjectPathMethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Objects.DBusProxy Methods |
dBusProxyGetObjectPath Source #
Arguments
:: (HasCallStack, MonadIO m, IsDBusProxy a) | |
=> a |
|
-> m Text | Returns: A string owned by |
Gets the object path proxy
is for.
Since: 2.26
new
Arguments
:: (HasCallStack, MonadIO m, IsDBusConnection a, IsCancellable b) | |
=> a |
|
-> [DBusProxyFlags] |
|
-> Maybe DBusInterfaceInfo |
|
-> Maybe Text |
|
-> Text |
|
-> Text |
|
-> Maybe b |
|
-> Maybe AsyncReadyCallback |
|
-> m () |
Creates a proxy for accessing interfaceName
on the remote object
at objectPath
owned by name
at connection
and asynchronously
loads D-Bus properties unless the
DBusProxyFlagsDoNotLoadProperties
flag is used. Connect to
the DBusProxy::gPropertiesChanged signal to get notified about
property changes.
If the DBusProxyFlagsDoNotConnectSignals
flag is not set, also sets up
match rules for signals. Connect to the DBusProxy::gSignal signal
to handle signals from the remote object.
If both DBusProxyFlagsDoNotLoadProperties
and
DBusProxyFlagsDoNotConnectSignals
are set, this constructor is
guaranteed to complete immediately without blocking.
If name
is a well-known name and the
DBusProxyFlagsDoNotAutoStart
and DBusProxyFlagsDoNotAutoStartAtConstruction
flags aren't set and no name owner currently exists, the message bus
will be requested to launch a name owner for the name.
This is a failable asynchronous constructor - when the proxy is
ready, callback
will be invoked and you can use
dBusProxyNewFinish
to get the result.
See dBusProxyNewSync
and for a synchronous version of this constructor.
DBusProxy
is used in this [example][classgio
.DBusProxya
-watch-proxy-example].
Since: 2.26
newFinish
Arguments
:: (HasCallStack, MonadIO m, IsAsyncResult a) | |
=> a |
|
-> m DBusProxy | Returns: A |
Finishes creating a DBusProxy
.
Since: 2.26
newForBus
Arguments
:: (HasCallStack, MonadIO m, IsCancellable a) | |
=> BusType |
|
-> [DBusProxyFlags] |
|
-> Maybe DBusInterfaceInfo |
|
-> Text |
|
-> Text |
|
-> Text |
|
-> Maybe a |
|
-> Maybe AsyncReadyCallback |
|
-> m () |
Like dBusProxyNew
but takes a BusType
instead of a DBusConnection
.
DBusProxy
is used in this [example][classgio
.DBusProxya
-watch-proxy-example].
Since: 2.26
newForBusFinish
dBusProxyNewForBusFinish Source #
Arguments
:: (HasCallStack, MonadIO m, IsAsyncResult a) | |
=> a |
|
-> m DBusProxy | Returns: A |
Finishes creating a DBusProxy
.
Since: 2.26
newForBusSync
dBusProxyNewForBusSync Source #
Arguments
:: (HasCallStack, MonadIO m, IsCancellable a) | |
=> BusType |
|
-> [DBusProxyFlags] |
|
-> Maybe DBusInterfaceInfo |
|
-> Text |
|
-> Text |
|
-> Text |
|
-> Maybe a |
|
-> m DBusProxy | Returns: A |
Like dBusProxyNewSync
but takes a BusType
instead of a DBusConnection
.
DBusProxy
is used in this [example][classgio
.DBusProxya
-watch-proxy-example].
Since: 2.26
newSync
Arguments
:: (HasCallStack, MonadIO m, IsDBusConnection a, IsCancellable b) | |
=> a |
|
-> [DBusProxyFlags] |
|
-> Maybe DBusInterfaceInfo |
|
-> Maybe Text |
|
-> Text |
|
-> Text |
|
-> Maybe b |
|
-> m DBusProxy | Returns: A |
Creates a proxy for accessing interfaceName
on the remote object
at objectPath
owned by name
at connection
and synchronously
loads D-Bus properties unless the
DBusProxyFlagsDoNotLoadProperties
flag is used.
If the DBusProxyFlagsDoNotConnectSignals
flag is not set, also sets up
match rules for signals. Connect to the DBusProxy::gSignal signal
to handle signals from the remote object.
If both DBusProxyFlagsDoNotLoadProperties
and
DBusProxyFlagsDoNotConnectSignals
are set, this constructor is
guaranteed to return immediately without blocking.
If name
is a well-known name and the
DBusProxyFlagsDoNotAutoStart
and DBusProxyFlagsDoNotAutoStartAtConstruction
flags aren't set and no name owner currently exists, the message bus
will be requested to launch a name owner for the name.
This is a synchronous failable constructor. See dBusProxyNew
and dBusProxyNewFinish
for the asynchronous version.
DBusProxy
is used in this [example][classgio
.DBusProxya
-watch-proxy-example].
Since: 2.26
setCachedProperty
data DBusProxySetCachedPropertyMethodInfo Source #
Instances
(signature ~ (Text -> Maybe GVariant -> m ()), MonadIO m, IsDBusProxy a) => OverloadedMethod DBusProxySetCachedPropertyMethodInfo a signature Source # | |
Defined in GI.Gio.Objects.DBusProxy Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo DBusProxySetCachedPropertyMethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Objects.DBusProxy Methods |
dBusProxySetCachedProperty Source #
Arguments
:: (HasCallStack, MonadIO m, IsDBusProxy a) | |
=> a |
|
-> Text |
|
-> Maybe GVariant |
|
-> m () |
If value
is not Nothing
, sets the cached value for the property with
name propertyName
to the value in value
.
If value
is Nothing
, then the cached value is removed from the
property cache.
If proxy
has an expected interface (see
DBusProxy:gInterfaceInfo) and propertyName
is referenced by
it, then value
is checked against the type of the property.
If the value
GVariant
is floating, it is consumed. This allows
convenient 'inline' use of g_variant_new()
, e.g.
C code
g_dbus_proxy_set_cached_property (proxy, "SomeProperty", g_variant_new ("(si)", "A String", 42));
Normally you will not need to use this method since proxy
is tracking changes using the
org.freedesktop.DBus.Properties.PropertiesChanged
D-Bus signal. However, for performance reasons an object may
decide to not use this signal for some properties and instead
use a proprietary out-of-band mechanism to transmit changes.
As a concrete example, consider an object with a property
ChatroomParticipants
which is an array of strings. Instead of
transmitting the same (long) array every time the property changes,
it is more efficient to only transmit the delta using e.g. signals
ChatroomParticipantJoined(String name)
and
ChatroomParticipantParted(String name)
.
Since: 2.26
setDefaultTimeout
data DBusProxySetDefaultTimeoutMethodInfo Source #
Instances
(signature ~ (Int32 -> m ()), MonadIO m, IsDBusProxy a) => OverloadedMethod DBusProxySetDefaultTimeoutMethodInfo a signature Source # | |
Defined in GI.Gio.Objects.DBusProxy Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo DBusProxySetDefaultTimeoutMethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Objects.DBusProxy Methods |
dBusProxySetDefaultTimeout Source #
Arguments
:: (HasCallStack, MonadIO m, IsDBusProxy a) | |
=> a |
|
-> Int32 |
|
-> m () |
Sets the timeout to use if -1 (specifying default timeout) is
passed as timeoutMsec
in the dBusProxyCall
and
dBusProxyCallSync
functions.
See the DBusProxy:gDefaultTimeout property for more details.
Since: 2.26
setInterfaceInfo
data DBusProxySetInterfaceInfoMethodInfo Source #
Instances
(signature ~ (Maybe DBusInterfaceInfo -> m ()), MonadIO m, IsDBusProxy a) => OverloadedMethod DBusProxySetInterfaceInfoMethodInfo a signature Source # | |
Defined in GI.Gio.Objects.DBusProxy Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo DBusProxySetInterfaceInfoMethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Objects.DBusProxy Methods |
dBusProxySetInterfaceInfo Source #
Arguments
:: (HasCallStack, MonadIO m, IsDBusProxy a) | |
=> a |
|
-> Maybe DBusInterfaceInfo |
|
-> m () |
Ensure that interactions with proxy
conform to the given
interface. See the DBusProxy:gInterfaceInfo property for more
details.
Since: 2.26
Properties
gBusType
If this property is not BusTypeNone
, then
DBusProxy:gConnection must be Nothing
and will be set to the
DBusConnection
obtained by calling busGet
with the value
of this property.
Since: 2.26
data DBusProxyGBusTypePropertyInfo Source #
Instances
constructDBusProxyGBusType :: (IsDBusProxy o, MonadIO m) => BusType -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “g-bus-type
” property. This is rarely needed directly, but it is used by new
.
dBusProxyGBusType :: AttrLabelProxy "gBusType" Source #
gConnection
The DBusConnection
the proxy is for.
Since: 2.26
data DBusProxyGConnectionPropertyInfo Source #
Instances
AttrInfo DBusProxyGConnectionPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gio.Objects.DBusProxy Associated Types
Methods attrGet :: AttrBaseTypeConstraint DBusProxyGConnectionPropertyInfo o => o -> IO (AttrGetType DBusProxyGConnectionPropertyInfo) # attrSet :: (AttrBaseTypeConstraint DBusProxyGConnectionPropertyInfo o, AttrSetTypeConstraint DBusProxyGConnectionPropertyInfo b) => o -> b -> IO () # attrClear :: AttrBaseTypeConstraint DBusProxyGConnectionPropertyInfo o => o -> IO () # attrConstruct :: (AttrBaseTypeConstraint DBusProxyGConnectionPropertyInfo o, AttrSetTypeConstraint DBusProxyGConnectionPropertyInfo b) => b -> IO (GValueConstruct o) # attrTransfer :: (AttrBaseTypeConstraint DBusProxyGConnectionPropertyInfo o, AttrTransferTypeConstraint DBusProxyGConnectionPropertyInfo b) => Proxy o -> b -> IO (AttrTransferType DBusProxyGConnectionPropertyInfo) # | |||||||||||||||||||||||||||||||||
type AttrAllowedOps DBusProxyGConnectionPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gio.Objects.DBusProxy | |||||||||||||||||||||||||||||||||
type AttrBaseTypeConstraint DBusProxyGConnectionPropertyInfo Source # | |||||||||||||||||||||||||||||||||
type AttrGetType DBusProxyGConnectionPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gio.Objects.DBusProxy | |||||||||||||||||||||||||||||||||
type AttrLabel DBusProxyGConnectionPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gio.Objects.DBusProxy | |||||||||||||||||||||||||||||||||
type AttrOrigin DBusProxyGConnectionPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gio.Objects.DBusProxy | |||||||||||||||||||||||||||||||||
type AttrSetTypeConstraint DBusProxyGConnectionPropertyInfo Source # | |||||||||||||||||||||||||||||||||
type AttrTransferType DBusProxyGConnectionPropertyInfo Source # | |||||||||||||||||||||||||||||||||
type AttrTransferTypeConstraint DBusProxyGConnectionPropertyInfo Source # | |||||||||||||||||||||||||||||||||
constructDBusProxyGConnection :: (IsDBusProxy o, MonadIO m, IsDBusConnection a) => a -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “g-connection
” property. This is rarely needed directly, but it is used by new
.
dBusProxyGConnection :: AttrLabelProxy "gConnection" Source #
getDBusProxyGConnection :: (MonadIO m, IsDBusProxy o) => o -> m (Maybe DBusConnection) Source #
Get the value of the “g-connection
” property.
When overloading is enabled, this is equivalent to
get
dBusProxy #gConnection
gDefaultTimeout
The timeout to use if -1 (specifying default timeout) is passed
as timeoutMsec
in the dBusProxyCall
and
dBusProxyCallSync
functions.
This allows applications to set a proxy-wide timeout for all
remote method invocations on the proxy. If this property is -1,
the default timeout (typically 25 seconds) is used. If set to
G_MAXINT
, then no timeout is used.
Since: 2.26
data DBusProxyGDefaultTimeoutPropertyInfo Source #
Instances
AttrInfo DBusProxyGDefaultTimeoutPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gio.Objects.DBusProxy Associated Types
Methods attrGet :: AttrBaseTypeConstraint DBusProxyGDefaultTimeoutPropertyInfo o => o -> IO (AttrGetType DBusProxyGDefaultTimeoutPropertyInfo) # attrSet :: (AttrBaseTypeConstraint DBusProxyGDefaultTimeoutPropertyInfo o, AttrSetTypeConstraint DBusProxyGDefaultTimeoutPropertyInfo b) => o -> b -> IO () # attrClear :: AttrBaseTypeConstraint DBusProxyGDefaultTimeoutPropertyInfo o => o -> IO () # attrConstruct :: (AttrBaseTypeConstraint DBusProxyGDefaultTimeoutPropertyInfo o, AttrSetTypeConstraint DBusProxyGDefaultTimeoutPropertyInfo b) => b -> IO (GValueConstruct o) # attrTransfer :: (AttrBaseTypeConstraint DBusProxyGDefaultTimeoutPropertyInfo o, AttrTransferTypeConstraint DBusProxyGDefaultTimeoutPropertyInfo b) => Proxy o -> b -> IO (AttrTransferType DBusProxyGDefaultTimeoutPropertyInfo) # | |||||||||||||||||||||||||||||||||
type AttrAllowedOps DBusProxyGDefaultTimeoutPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gio.Objects.DBusProxy | |||||||||||||||||||||||||||||||||
type AttrBaseTypeConstraint DBusProxyGDefaultTimeoutPropertyInfo Source # | |||||||||||||||||||||||||||||||||
type AttrGetType DBusProxyGDefaultTimeoutPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gio.Objects.DBusProxy | |||||||||||||||||||||||||||||||||
type AttrLabel DBusProxyGDefaultTimeoutPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gio.Objects.DBusProxy | |||||||||||||||||||||||||||||||||
type AttrOrigin DBusProxyGDefaultTimeoutPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gio.Objects.DBusProxy | |||||||||||||||||||||||||||||||||
type AttrSetTypeConstraint DBusProxyGDefaultTimeoutPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gio.Objects.DBusProxy | |||||||||||||||||||||||||||||||||
type AttrTransferType DBusProxyGDefaultTimeoutPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gio.Objects.DBusProxy | |||||||||||||||||||||||||||||||||
type AttrTransferTypeConstraint DBusProxyGDefaultTimeoutPropertyInfo Source # | |||||||||||||||||||||||||||||||||
constructDBusProxyGDefaultTimeout :: (IsDBusProxy o, MonadIO m) => Int32 -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “g-default-timeout
” property. This is rarely needed directly, but it is used by new
.
dBusProxyGDefaultTimeout :: AttrLabelProxy "gDefaultTimeout" Source #
getDBusProxyGDefaultTimeout :: (MonadIO m, IsDBusProxy o) => o -> m Int32 Source #
Get the value of the “g-default-timeout
” property.
When overloading is enabled, this is equivalent to
get
dBusProxy #gDefaultTimeout
setDBusProxyGDefaultTimeout :: (MonadIO m, IsDBusProxy o) => o -> Int32 -> m () Source #
Set the value of the “g-default-timeout
” property.
When overloading is enabled, this is equivalent to
set
dBusProxy [ #gDefaultTimeout:=
value ]
gFlags
Flags from the DBusProxyFlags
enumeration.
Since: 2.26
data DBusProxyGFlagsPropertyInfo Source #
Instances
AttrInfo DBusProxyGFlagsPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gio.Objects.DBusProxy Associated Types
Methods attrGet :: AttrBaseTypeConstraint DBusProxyGFlagsPropertyInfo o => o -> IO (AttrGetType DBusProxyGFlagsPropertyInfo) # attrSet :: (AttrBaseTypeConstraint DBusProxyGFlagsPropertyInfo o, AttrSetTypeConstraint DBusProxyGFlagsPropertyInfo b) => o -> b -> IO () # attrClear :: AttrBaseTypeConstraint DBusProxyGFlagsPropertyInfo o => o -> IO () # attrConstruct :: (AttrBaseTypeConstraint DBusProxyGFlagsPropertyInfo o, AttrSetTypeConstraint DBusProxyGFlagsPropertyInfo b) => b -> IO (GValueConstruct o) # attrTransfer :: (AttrBaseTypeConstraint DBusProxyGFlagsPropertyInfo o, AttrTransferTypeConstraint DBusProxyGFlagsPropertyInfo b) => Proxy o -> b -> IO (AttrTransferType DBusProxyGFlagsPropertyInfo) # | |||||||||||||||||||||||||||||||||
type AttrAllowedOps DBusProxyGFlagsPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gio.Objects.DBusProxy | |||||||||||||||||||||||||||||||||
type AttrBaseTypeConstraint DBusProxyGFlagsPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gio.Objects.DBusProxy | |||||||||||||||||||||||||||||||||
type AttrGetType DBusProxyGFlagsPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gio.Objects.DBusProxy | |||||||||||||||||||||||||||||||||
type AttrLabel DBusProxyGFlagsPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gio.Objects.DBusProxy | |||||||||||||||||||||||||||||||||
type AttrOrigin DBusProxyGFlagsPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gio.Objects.DBusProxy | |||||||||||||||||||||||||||||||||
type AttrSetTypeConstraint DBusProxyGFlagsPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gio.Objects.DBusProxy | |||||||||||||||||||||||||||||||||
type AttrTransferType DBusProxyGFlagsPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gio.Objects.DBusProxy | |||||||||||||||||||||||||||||||||
type AttrTransferTypeConstraint DBusProxyGFlagsPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gio.Objects.DBusProxy |
constructDBusProxyGFlags :: (IsDBusProxy o, MonadIO m) => [DBusProxyFlags] -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “g-flags
” property. This is rarely needed directly, but it is used by new
.
dBusProxyGFlags :: AttrLabelProxy "gFlags" Source #
getDBusProxyGFlags :: (MonadIO m, IsDBusProxy o) => o -> m [DBusProxyFlags] Source #
Get the value of the “g-flags
” property.
When overloading is enabled, this is equivalent to
get
dBusProxy #gFlags
gInterfaceInfo
Ensure that interactions with this proxy conform to the given
interface. This is mainly to ensure that malformed data received
from the other peer is ignored. The given DBusInterfaceInfo
is
said to be the "expected interface".
The checks performed are:
* When completing a method call, if the type signature of
the reply message isn't what's expected, the reply is
discarded and the GError
is set to IOErrorEnumInvalidArgument
.
* Received signals that have a type signature mismatch are dropped and
a warning is logged via g_warning()
.
* Properties received via the initial GetAll()
call or via the
::PropertiesChanged
signal (on the
org.freedesktop.DBus.Properties
interface) or set using dBusProxySetCachedProperty
with a type signature mismatch are ignored and a warning is
logged via g_warning()
.
Note that these checks are never done on methods, signals and
properties that are not referenced in the given
DBusInterfaceInfo
, since extending a D-Bus interface on the
service-side is not considered an ABI break.
Since: 2.26
data DBusProxyGInterfaceInfoPropertyInfo Source #
Instances
AttrInfo DBusProxyGInterfaceInfoPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gio.Objects.DBusProxy Associated Types
Methods attrGet :: AttrBaseTypeConstraint DBusProxyGInterfaceInfoPropertyInfo o => o -> IO (AttrGetType DBusProxyGInterfaceInfoPropertyInfo) # attrSet :: (AttrBaseTypeConstraint DBusProxyGInterfaceInfoPropertyInfo o, AttrSetTypeConstraint DBusProxyGInterfaceInfoPropertyInfo b) => o -> b -> IO () # attrClear :: AttrBaseTypeConstraint DBusProxyGInterfaceInfoPropertyInfo o => o -> IO () # attrConstruct :: (AttrBaseTypeConstraint DBusProxyGInterfaceInfoPropertyInfo o, AttrSetTypeConstraint DBusProxyGInterfaceInfoPropertyInfo b) => b -> IO (GValueConstruct o) # attrTransfer :: (AttrBaseTypeConstraint DBusProxyGInterfaceInfoPropertyInfo o, AttrTransferTypeConstraint DBusProxyGInterfaceInfoPropertyInfo b) => Proxy o -> b -> IO (AttrTransferType DBusProxyGInterfaceInfoPropertyInfo) # | |||||||||||||||||||||||||||||||||
type AttrAllowedOps DBusProxyGInterfaceInfoPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gio.Objects.DBusProxy type AttrAllowedOps DBusProxyGInterfaceInfoPropertyInfo = '['AttrSet, 'AttrConstruct, 'AttrGet, 'AttrClear] | |||||||||||||||||||||||||||||||||
type AttrBaseTypeConstraint DBusProxyGInterfaceInfoPropertyInfo Source # | |||||||||||||||||||||||||||||||||
type AttrGetType DBusProxyGInterfaceInfoPropertyInfo Source # | |||||||||||||||||||||||||||||||||
type AttrLabel DBusProxyGInterfaceInfoPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gio.Objects.DBusProxy | |||||||||||||||||||||||||||||||||
type AttrOrigin DBusProxyGInterfaceInfoPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gio.Objects.DBusProxy | |||||||||||||||||||||||||||||||||
type AttrSetTypeConstraint DBusProxyGInterfaceInfoPropertyInfo Source # | |||||||||||||||||||||||||||||||||
type AttrTransferType DBusProxyGInterfaceInfoPropertyInfo Source # | |||||||||||||||||||||||||||||||||
type AttrTransferTypeConstraint DBusProxyGInterfaceInfoPropertyInfo Source # | |||||||||||||||||||||||||||||||||
clearDBusProxyGInterfaceInfo :: (MonadIO m, IsDBusProxy o) => o -> m () Source #
Set the value of the “g-interface-info
” property to Nothing
.
When overloading is enabled, this is equivalent to
clear
#gInterfaceInfo
constructDBusProxyGInterfaceInfo :: (IsDBusProxy o, MonadIO m) => DBusInterfaceInfo -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “g-interface-info
” property. This is rarely needed directly, but it is used by new
.
dBusProxyGInterfaceInfo :: AttrLabelProxy "gInterfaceInfo" Source #
getDBusProxyGInterfaceInfo :: (MonadIO m, IsDBusProxy o) => o -> m (Maybe DBusInterfaceInfo) Source #
Get the value of the “g-interface-info
” property.
When overloading is enabled, this is equivalent to
get
dBusProxy #gInterfaceInfo
setDBusProxyGInterfaceInfo :: (MonadIO m, IsDBusProxy o) => o -> DBusInterfaceInfo -> m () Source #
Set the value of the “g-interface-info
” property.
When overloading is enabled, this is equivalent to
set
dBusProxy [ #gInterfaceInfo:=
value ]
gInterfaceName
The D-Bus interface name the proxy is for.
Since: 2.26
data DBusProxyGInterfaceNamePropertyInfo Source #
Instances
AttrInfo DBusProxyGInterfaceNamePropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gio.Objects.DBusProxy Associated Types
Methods attrGet :: AttrBaseTypeConstraint DBusProxyGInterfaceNamePropertyInfo o => o -> IO (AttrGetType DBusProxyGInterfaceNamePropertyInfo) # attrSet :: (AttrBaseTypeConstraint DBusProxyGInterfaceNamePropertyInfo o, AttrSetTypeConstraint DBusProxyGInterfaceNamePropertyInfo b) => o -> b -> IO () # attrClear :: AttrBaseTypeConstraint DBusProxyGInterfaceNamePropertyInfo o => o -> IO () # attrConstruct :: (AttrBaseTypeConstraint DBusProxyGInterfaceNamePropertyInfo o, AttrSetTypeConstraint DBusProxyGInterfaceNamePropertyInfo b) => b -> IO (GValueConstruct o) # attrTransfer :: (AttrBaseTypeConstraint DBusProxyGInterfaceNamePropertyInfo o, AttrTransferTypeConstraint DBusProxyGInterfaceNamePropertyInfo b) => Proxy o -> b -> IO (AttrTransferType DBusProxyGInterfaceNamePropertyInfo) # | |||||||||||||||||||||||||||||||||
type AttrAllowedOps DBusProxyGInterfaceNamePropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gio.Objects.DBusProxy | |||||||||||||||||||||||||||||||||
type AttrBaseTypeConstraint DBusProxyGInterfaceNamePropertyInfo Source # | |||||||||||||||||||||||||||||||||
type AttrGetType DBusProxyGInterfaceNamePropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gio.Objects.DBusProxy | |||||||||||||||||||||||||||||||||
type AttrLabel DBusProxyGInterfaceNamePropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gio.Objects.DBusProxy | |||||||||||||||||||||||||||||||||
type AttrOrigin DBusProxyGInterfaceNamePropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gio.Objects.DBusProxy | |||||||||||||||||||||||||||||||||
type AttrSetTypeConstraint DBusProxyGInterfaceNamePropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gio.Objects.DBusProxy | |||||||||||||||||||||||||||||||||
type AttrTransferType DBusProxyGInterfaceNamePropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gio.Objects.DBusProxy | |||||||||||||||||||||||||||||||||
type AttrTransferTypeConstraint DBusProxyGInterfaceNamePropertyInfo Source # | |||||||||||||||||||||||||||||||||
constructDBusProxyGInterfaceName :: (IsDBusProxy o, MonadIO m) => Text -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “g-interface-name
” property. This is rarely needed directly, but it is used by new
.
dBusProxyGInterfaceName :: AttrLabelProxy "gInterfaceName" Source #
getDBusProxyGInterfaceName :: (MonadIO m, IsDBusProxy o) => o -> m (Maybe Text) Source #
Get the value of the “g-interface-name
” property.
When overloading is enabled, this is equivalent to
get
dBusProxy #gInterfaceName
gName
The well-known or unique name that the proxy is for.
Since: 2.26
data DBusProxyGNamePropertyInfo Source #
Instances
AttrInfo DBusProxyGNamePropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gio.Objects.DBusProxy Associated Types
Methods attrGet :: AttrBaseTypeConstraint DBusProxyGNamePropertyInfo o => o -> IO (AttrGetType DBusProxyGNamePropertyInfo) # attrSet :: (AttrBaseTypeConstraint DBusProxyGNamePropertyInfo o, AttrSetTypeConstraint DBusProxyGNamePropertyInfo b) => o -> b -> IO () # attrClear :: AttrBaseTypeConstraint DBusProxyGNamePropertyInfo o => o -> IO () # attrConstruct :: (AttrBaseTypeConstraint DBusProxyGNamePropertyInfo o, AttrSetTypeConstraint DBusProxyGNamePropertyInfo b) => b -> IO (GValueConstruct o) # attrTransfer :: (AttrBaseTypeConstraint DBusProxyGNamePropertyInfo o, AttrTransferTypeConstraint DBusProxyGNamePropertyInfo b) => Proxy o -> b -> IO (AttrTransferType DBusProxyGNamePropertyInfo) # | |||||||||||||||||||||||||||||||||
type AttrAllowedOps DBusProxyGNamePropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gio.Objects.DBusProxy | |||||||||||||||||||||||||||||||||
type AttrBaseTypeConstraint DBusProxyGNamePropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gio.Objects.DBusProxy | |||||||||||||||||||||||||||||||||
type AttrGetType DBusProxyGNamePropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gio.Objects.DBusProxy | |||||||||||||||||||||||||||||||||
type AttrLabel DBusProxyGNamePropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gio.Objects.DBusProxy | |||||||||||||||||||||||||||||||||
type AttrOrigin DBusProxyGNamePropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gio.Objects.DBusProxy | |||||||||||||||||||||||||||||||||
type AttrSetTypeConstraint DBusProxyGNamePropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gio.Objects.DBusProxy | |||||||||||||||||||||||||||||||||
type AttrTransferType DBusProxyGNamePropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gio.Objects.DBusProxy | |||||||||||||||||||||||||||||||||
type AttrTransferTypeConstraint DBusProxyGNamePropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gio.Objects.DBusProxy |
constructDBusProxyGName :: (IsDBusProxy o, MonadIO m) => Text -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “g-name
” property. This is rarely needed directly, but it is used by new
.
dBusProxyGName :: AttrLabelProxy "gName" Source #
getDBusProxyGName :: (MonadIO m, IsDBusProxy o) => o -> m (Maybe Text) Source #
Get the value of the “g-name
” property.
When overloading is enabled, this is equivalent to
get
dBusProxy #gName
gNameOwner
The unique name that owns DBusProxy:gName or Nothing
if no-one
currently owns that name. You may connect to Object::notify signal to
track changes to this property.
Since: 2.26
data DBusProxyGNameOwnerPropertyInfo Source #
Instances
AttrInfo DBusProxyGNameOwnerPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gio.Objects.DBusProxy Associated Types
Methods attrGet :: AttrBaseTypeConstraint DBusProxyGNameOwnerPropertyInfo o => o -> IO (AttrGetType DBusProxyGNameOwnerPropertyInfo) # attrSet :: (AttrBaseTypeConstraint DBusProxyGNameOwnerPropertyInfo o, AttrSetTypeConstraint DBusProxyGNameOwnerPropertyInfo b) => o -> b -> IO () # attrClear :: AttrBaseTypeConstraint DBusProxyGNameOwnerPropertyInfo o => o -> IO () # attrConstruct :: (AttrBaseTypeConstraint DBusProxyGNameOwnerPropertyInfo o, AttrSetTypeConstraint DBusProxyGNameOwnerPropertyInfo b) => b -> IO (GValueConstruct o) # attrTransfer :: (AttrBaseTypeConstraint DBusProxyGNameOwnerPropertyInfo o, AttrTransferTypeConstraint DBusProxyGNameOwnerPropertyInfo b) => Proxy o -> b -> IO (AttrTransferType DBusProxyGNameOwnerPropertyInfo) # | |||||||||||||||||||||||||||||||||
type AttrAllowedOps DBusProxyGNameOwnerPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gio.Objects.DBusProxy | |||||||||||||||||||||||||||||||||
type AttrBaseTypeConstraint DBusProxyGNameOwnerPropertyInfo Source # | |||||||||||||||||||||||||||||||||
type AttrGetType DBusProxyGNameOwnerPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gio.Objects.DBusProxy | |||||||||||||||||||||||||||||||||
type AttrLabel DBusProxyGNameOwnerPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gio.Objects.DBusProxy | |||||||||||||||||||||||||||||||||
type AttrOrigin DBusProxyGNameOwnerPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gio.Objects.DBusProxy | |||||||||||||||||||||||||||||||||
type AttrSetTypeConstraint DBusProxyGNameOwnerPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gio.Objects.DBusProxy | |||||||||||||||||||||||||||||||||
type AttrTransferType DBusProxyGNameOwnerPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gio.Objects.DBusProxy | |||||||||||||||||||||||||||||||||
type AttrTransferTypeConstraint DBusProxyGNameOwnerPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gio.Objects.DBusProxy |
dBusProxyGNameOwner :: AttrLabelProxy "gNameOwner" Source #
getDBusProxyGNameOwner :: (MonadIO m, IsDBusProxy o) => o -> m (Maybe Text) Source #
Get the value of the “g-name-owner
” property.
When overloading is enabled, this is equivalent to
get
dBusProxy #gNameOwner
gObjectPath
The object path the proxy is for.
Since: 2.26
data DBusProxyGObjectPathPropertyInfo Source #
Instances
AttrInfo DBusProxyGObjectPathPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gio.Objects.DBusProxy Associated Types
Methods attrGet :: AttrBaseTypeConstraint DBusProxyGObjectPathPropertyInfo o => o -> IO (AttrGetType DBusProxyGObjectPathPropertyInfo) # attrSet :: (AttrBaseTypeConstraint DBusProxyGObjectPathPropertyInfo o, AttrSetTypeConstraint DBusProxyGObjectPathPropertyInfo b) => o -> b -> IO () # attrClear :: AttrBaseTypeConstraint DBusProxyGObjectPathPropertyInfo o => o -> IO () # attrConstruct :: (AttrBaseTypeConstraint DBusProxyGObjectPathPropertyInfo o, AttrSetTypeConstraint DBusProxyGObjectPathPropertyInfo b) => b -> IO (GValueConstruct o) # attrTransfer :: (AttrBaseTypeConstraint DBusProxyGObjectPathPropertyInfo o, AttrTransferTypeConstraint DBusProxyGObjectPathPropertyInfo b) => Proxy o -> b -> IO (AttrTransferType DBusProxyGObjectPathPropertyInfo) # | |||||||||||||||||||||||||||||||||
type AttrAllowedOps DBusProxyGObjectPathPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gio.Objects.DBusProxy | |||||||||||||||||||||||||||||||||
type AttrBaseTypeConstraint DBusProxyGObjectPathPropertyInfo Source # | |||||||||||||||||||||||||||||||||
type AttrGetType DBusProxyGObjectPathPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gio.Objects.DBusProxy | |||||||||||||||||||||||||||||||||
type AttrLabel DBusProxyGObjectPathPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gio.Objects.DBusProxy | |||||||||||||||||||||||||||||||||
type AttrOrigin DBusProxyGObjectPathPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gio.Objects.DBusProxy | |||||||||||||||||||||||||||||||||
type AttrSetTypeConstraint DBusProxyGObjectPathPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gio.Objects.DBusProxy | |||||||||||||||||||||||||||||||||
type AttrTransferType DBusProxyGObjectPathPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gio.Objects.DBusProxy | |||||||||||||||||||||||||||||||||
type AttrTransferTypeConstraint DBusProxyGObjectPathPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gio.Objects.DBusProxy |
constructDBusProxyGObjectPath :: (IsDBusProxy o, MonadIO m) => Text -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “g-object-path
” property. This is rarely needed directly, but it is used by new
.
dBusProxyGObjectPath :: AttrLabelProxy "gObjectPath" Source #
getDBusProxyGObjectPath :: (MonadIO m, IsDBusProxy o) => o -> m (Maybe Text) Source #
Get the value of the “g-object-path
” property.
When overloading is enabled, this is equivalent to
get
dBusProxy #gObjectPath
Signals
gPropertiesChanged
type DBusProxyGPropertiesChangedCallback Source #
Arguments
= GVariant |
|
-> [Text] |
|
-> IO () |
Emitted when one or more D-Bus properties on proxy
changes. The
local cache has already been updated when this signal fires. Note
that both changedProperties
and invalidatedProperties
are
guaranteed to never be Nothing
(either may be empty though).
If the proxy has the flag
DBusProxyFlagsGetInvalidatedProperties
set, then
invalidatedProperties
will always be empty.
This signal corresponds to the
PropertiesChanged
D-Bus signal on the
org.freedesktop.DBus.Properties
interface.
Since: 2.26
data DBusProxyGPropertiesChangedSignalInfo Source #
Instances
SignalInfo DBusProxyGPropertiesChangedSignalInfo Source # | |||||
Defined in GI.Gio.Objects.DBusProxy Associated Types
Methods connectSignal :: GObject o => o -> (o -> HaskellCallbackType DBusProxyGPropertiesChangedSignalInfo) -> SignalConnectMode -> Maybe Text -> IO SignalHandlerId # | |||||
type HaskellCallbackType DBusProxyGPropertiesChangedSignalInfo Source # | |||||
afterDBusProxyGPropertiesChanged :: (IsDBusProxy a, MonadIO m) => a -> ((?self :: a) => DBusProxyGPropertiesChangedCallback) -> m SignalHandlerId Source #
Connect a signal handler for the gPropertiesChanged signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
dBusProxy #gPropertiesChanged 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.
onDBusProxyGPropertiesChanged :: (IsDBusProxy a, MonadIO m) => a -> ((?self :: a) => DBusProxyGPropertiesChangedCallback) -> m SignalHandlerId Source #
Connect a signal handler for the gPropertiesChanged signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
dBusProxy #gPropertiesChanged callback
gSignal
type DBusProxyGSignalCallback Source #
Arguments
= Maybe Text |
|
-> Text |
|
-> GVariant |
|
-> IO () |
Emitted when a signal from the remote object and interface that proxy
is for, has been received.
Since 2.72 this signal supports detailed connections. You can connect to
the detailed signal g-signal::x
in order to receive callbacks only when
signal x
is received from the remote object.
Since: 2.26
data DBusProxyGSignalSignalInfo Source #
Instances
SignalInfo DBusProxyGSignalSignalInfo Source # | |||||
Defined in GI.Gio.Objects.DBusProxy Associated Types
Methods connectSignal :: GObject o => o -> (o -> HaskellCallbackType DBusProxyGSignalSignalInfo) -> SignalConnectMode -> Maybe Text -> IO SignalHandlerId # | |||||
type HaskellCallbackType DBusProxyGSignalSignalInfo Source # | |||||
afterDBusProxyGSignal :: (IsDBusProxy a, MonadIO m) => a -> Maybe Text -> ((?self :: a) => DBusProxyGSignalCallback) -> m SignalHandlerId Source #
Connect a signal handler for the gSignal signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
dBusProxy #gSignal callback
This signal admits a optional parameter detail
.
If it's not Nothing
, we will connect to “g-signal::detail
” instead.
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.
onDBusProxyGSignal :: (IsDBusProxy a, MonadIO m) => a -> Maybe Text -> ((?self :: a) => DBusProxyGSignalCallback) -> m SignalHandlerId Source #
Connect a signal handler for the gSignal signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
dBusProxy #gSignal callback
This signal admits a optional parameter detail
.
If it's not Nothing
, we will connect to “g-signal::detail
” instead.