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.NM.Objects.Object
Description
No description available in the introspection data.
Synopsis
- newtype Object = Object (ManagedPtr Object)
- class (GObject o, IsDescendantOf Object o) => IsObject o
- toObject :: (MonadIO m, IsObject o) => o -> m Object
- objectGetClient :: (HasCallStack, MonadIO m, IsObject a) => a -> m (Ptr ())
- objectGetPath :: (HasCallStack, MonadIO m, IsObject a) => a -> m Text
- getObjectClient :: (MonadIO m, IsObject o) => o -> m (Maybe Client)
- getObjectPath :: (MonadIO m, IsObject o) => o -> m Text
Exported types
Memory-managed wrapper type.
Constructors
Object (ManagedPtr Object) |
Instances
Eq Object Source # | |
GObject Object Source # | |
Defined in GI.NM.Objects.Object | |
ManagedPtrNewtype Object Source # | |
Defined in GI.NM.Objects.Object Methods toManagedPtr :: Object -> ManagedPtr Object # | |
TypedObject Object Source # | |
Defined in GI.NM.Objects.Object | |
HasParentTypes Object Source # | |
Defined in GI.NM.Objects.Object | |
IsGValue (Maybe Object) Source # | Convert |
Defined in GI.NM.Objects.Object | |
type ParentTypes Object Source # | |
Defined in GI.NM.Objects.Object |
class (GObject o, IsDescendantOf Object o) => IsObject o Source #
Instances
(GObject o, IsDescendantOf Object o) => IsObject o Source # | |
Defined in GI.NM.Objects.Object |
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
getClient, getData, getPath, getProperty, getQdata.
Setters
getClient
getPath
Arguments
:: (HasCallStack, MonadIO m, IsObject a) | |
=> a |
|
-> m Text | Returns: the object's path. This is the internal string used by the object, and must not be modified. Note that the D-Bus path of an NMObject never changes, even
if the instance gets removed from the cache. To find out
whether the object is still alive/cached, check |
Gets the DBus path of the Object
.
Properties
client
The NMClient instance as returned by objectGetClient
.
When an NMObject gets removed from the NMClient cache,
the NMObject:path property stays unchanged, but this client
instance gets reset to Nothing
. You can use this property to
track removal of the object from the cache.
Since: 1.34
getObjectClient :: (MonadIO m, IsObject o) => o -> m (Maybe Client) Source #
Get the value of the “client
” property.
When overloading is enabled, this is equivalent to
get
object #client
path
The D-Bus object path.
The D-Bus path of an object instance never changes, even if the object gets removed from the cache. To see whether the object is still in the cache, check NMObject:client.
getObjectPath :: (MonadIO m, IsObject o) => o -> m Text Source #
Get the value of the “path
” property.
When overloading is enabled, this is equivalent to
get
object #path