gi-nm-1.0.1: NM bindings
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellNone
LanguageHaskell2010

GI.NM.Objects.Object

Description

No description available in the introspection data.

Synopsis

Exported types

newtype Object Source #

Memory-managed wrapper type.

Constructors

Object (ManagedPtr Object) 

Instances

Instances details
Eq Object Source # 
Instance details

Defined in GI.NM.Objects.Object

Methods

(==) :: Object -> Object -> Bool #

(/=) :: Object -> Object -> Bool #

GObject Object Source # 
Instance details

Defined in GI.NM.Objects.Object

ManagedPtrNewtype Object Source # 
Instance details

Defined in GI.NM.Objects.Object

TypedObject Object Source # 
Instance details

Defined in GI.NM.Objects.Object

Methods

glibType :: IO GType #

HasParentTypes Object Source # 
Instance details

Defined in GI.NM.Objects.Object

IsGValue (Maybe Object) Source #

Convert Object to and from GValue. See toGValue and fromGValue.

Instance details

Defined in GI.NM.Objects.Object

type ParentTypes Object Source # 
Instance details

Defined in GI.NM.Objects.Object

class (GObject o, IsDescendantOf Object o) => IsObject o Source #

Type class for types which can be safely cast to Object, for instance with toObject.

Instances

Instances details
(GObject o, IsDescendantOf Object o) => IsObject o Source # 
Instance details

Defined in GI.NM.Objects.Object

toObject :: (MonadIO m, IsObject o) => o -> m Object Source #

Cast to Object, for types for which this is known to be safe. For general casts, use castTo.

Methods

getClient

objectGetClient Source #

Arguments

:: (HasCallStack, MonadIO m, IsObject a) 
=> a

object: a Object

-> m (Ptr ())

Returns: the Client cache in which the object can be found, or Nothing if the object is no longer cached.

Returns the Client instance in which object is cached. Also, if the object got removed from the client cached, this returns Nothing. So it can be used to check whether the object is still alive.

Since: 1.24

getPath

objectGetPath Source #

Arguments

:: (HasCallStack, MonadIO m, IsObject a) 
=> a

object: a Object

-> 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 objectGetClient.

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