Copyright | Will Thompson and Iñaki García Etxebarria |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | None |
Language | Haskell2010 |
A GDBusObjectProxy
is an object used to represent a remote object
with one or more D-Bus interfaces. Normally, you don’t instantiate
a GDBusObjectProxy
yourself — typically DBusObjectManagerClient
is used to obtain it.
Since: 2.30
Synopsis
- newtype DBusObjectProxy = DBusObjectProxy (ManagedPtr DBusObjectProxy)
- class (GObject o, IsDescendantOf DBusObjectProxy o) => IsDBusObjectProxy o
- toDBusObjectProxy :: (MonadIO m, IsDBusObjectProxy o) => o -> m DBusObjectProxy
- dBusObjectProxyGetConnection :: (HasCallStack, MonadIO m, IsDBusObjectProxy a) => a -> m DBusConnection
- dBusObjectProxyNew :: (HasCallStack, MonadIO m, IsDBusConnection a) => a -> Text -> m DBusObjectProxy
- constructDBusObjectProxyGConnection :: (IsDBusObjectProxy o, MonadIO m, IsDBusConnection a) => a -> m (GValueConstruct o)
- getDBusObjectProxyGConnection :: (MonadIO m, IsDBusObjectProxy o) => o -> m (Maybe DBusConnection)
- constructDBusObjectProxyGObjectPath :: (IsDBusObjectProxy o, MonadIO m) => Text -> m (GValueConstruct o)
- getDBusObjectProxyGObjectPath :: (MonadIO m, IsDBusObjectProxy o) => o -> m (Maybe Text)
Exported types
newtype DBusObjectProxy Source #
Memory-managed wrapper type.
Instances
Eq DBusObjectProxy Source # | |
Defined in GI.Gio.Objects.DBusObjectProxy (==) :: DBusObjectProxy -> DBusObjectProxy -> Bool # (/=) :: DBusObjectProxy -> DBusObjectProxy -> Bool # | |
GObject DBusObjectProxy Source # | |
Defined in GI.Gio.Objects.DBusObjectProxy | |
ManagedPtrNewtype DBusObjectProxy Source # | |
Defined in GI.Gio.Objects.DBusObjectProxy | |
TypedObject DBusObjectProxy Source # | |
Defined in GI.Gio.Objects.DBusObjectProxy | |
HasParentTypes DBusObjectProxy Source # | |
Defined in GI.Gio.Objects.DBusObjectProxy | |
IsGValue (Maybe DBusObjectProxy) Source # | Convert |
Defined in GI.Gio.Objects.DBusObjectProxy gvalueGType_ :: IO GType # gvalueSet_ :: Ptr GValue -> Maybe DBusObjectProxy -> IO () # gvalueGet_ :: Ptr GValue -> IO (Maybe DBusObjectProxy) # | |
type ParentTypes DBusObjectProxy Source # | |
Defined in GI.Gio.Objects.DBusObjectProxy |
class (GObject o, IsDescendantOf DBusObjectProxy o) => IsDBusObjectProxy o Source #
Type class for types which can be safely cast to DBusObjectProxy
, for instance with toDBusObjectProxy
.
Instances
(GObject o, IsDescendantOf DBusObjectProxy o) => IsDBusObjectProxy o Source # | |
Defined in GI.Gio.Objects.DBusObjectProxy |
toDBusObjectProxy :: (MonadIO m, IsDBusObjectProxy o) => o -> m DBusObjectProxy Source #
Cast to DBusObjectProxy
, for types for which this is known to be safe. For general casts, use castTo
.
Methods
Click to display all available methods, including inherited ones
Methods
bindProperty, bindPropertyFull, forceFloating, freezeNotify, getv, isFloating, notify, notifyByPspec, ref, refSink, runDispose, stealData, stealQdata, thawNotify, unref, watchClosure.
Getters
getConnection, getData, getInterface, getInterfaces, getObjectPath, getProperty, getQdata.
Setters
getConnection
dBusObjectProxyGetConnection Source #
:: (HasCallStack, MonadIO m, IsDBusObjectProxy a) | |
=> a |
|
-> m DBusConnection | Returns: A |
Gets the connection that proxy
is for.
Since: 2.30
new
:: (HasCallStack, MonadIO m, IsDBusConnection a) | |
=> a |
|
-> Text |
|
-> m DBusObjectProxy | Returns: a new |
Creates a new DBusObjectProxy
for the given connection and
object path.
Since: 2.30
Properties
gConnection
The connection of the proxy.
Since: 2.30
constructDBusObjectProxyGConnection :: (IsDBusObjectProxy 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
.
getDBusObjectProxyGConnection :: (MonadIO m, IsDBusObjectProxy o) => o -> m (Maybe DBusConnection) Source #
Get the value of the “g-connection
” property.
When overloading is enabled, this is equivalent to
get
dBusObjectProxy #gConnection
gObjectPath
The object path of the proxy.
Since: 2.30
constructDBusObjectProxyGObjectPath :: (IsDBusObjectProxy 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
.
getDBusObjectProxyGObjectPath :: (MonadIO m, IsDBusObjectProxy o) => o -> m (Maybe Text) Source #
Get the value of the “g-object-path
” property.
When overloading is enabled, this is equivalent to
get
dBusObjectProxy #gObjectPath