gi-ibus-1.5.2: IBus bindings
CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellNone
LanguageHaskell2010

GI.IBus.Objects.Service

Description

An IBusService is a base class for services.

Synopsis

Exported types

newtype Service Source #

Memory-managed wrapper type.

Constructors

Service (ManagedPtr Service) 

Instances

Instances details
Eq Service Source # 
Instance details

Defined in GI.IBus.Objects.Service

Methods

(==) :: Service -> Service -> Bool

(/=) :: Service -> Service -> Bool

GObject Service Source # 
Instance details

Defined in GI.IBus.Objects.Service

ManagedPtrNewtype Service Source # 
Instance details

Defined in GI.IBus.Objects.Service

Methods

toManagedPtr :: Service -> ManagedPtr Service

TypedObject Service Source # 
Instance details

Defined in GI.IBus.Objects.Service

Methods

glibType :: IO GType

IsGValue Service Source #

Convert Service to and from GValue with toGValue and fromGValue.

Instance details

Defined in GI.IBus.Objects.Service

Methods

toGValue :: Service -> IO GValue

fromGValue :: GValue -> IO Service

HasParentTypes Service Source # 
Instance details

Defined in GI.IBus.Objects.Service

type ParentTypes Service Source # 
Instance details

Defined in GI.IBus.Objects.Service

type ParentTypes Service = '[Object, Object]

class (GObject o, IsDescendantOf Service o) => IsService o Source #

Type class for types which can be safely cast to Service, for instance with toService.

Instances

Instances details
(GObject o, IsDescendantOf Service o) => IsService o Source # 
Instance details

Defined in GI.IBus.Objects.Service

toService :: (MonadIO m, IsService o) => o -> m Service Source #

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

Methods

Overloaded methods

emitSignal

serviceEmitSignal Source #

Arguments

:: (HasCallStack, MonadIO m, IsService a) 
=> a 
-> Text 
-> Text 
-> Text 
-> GVariant 
-> m ()

(Can throw GError)

No description available in the introspection data.

getConnection

serviceGetConnection Source #

Arguments

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

service: An IBusService.

-> m DBusConnection

Returns: A DBusConnection of an Service instance.

Gets a connections.

getObjectPath

serviceGetObjectPath Source #

Arguments

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

service: An IBusService.

-> m Text

Returns: The object path of service

Gets the object path of an IBusService.

new

serviceNew Source #

Arguments

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

connection: A GDBusConnection.

-> Text

path: Object path.

-> m Service

Returns: A newly allocated Service

Creantes a new Service.

register

serviceRegister Source #

Arguments

:: (HasCallStack, MonadIO m, IsService a, IsDBusConnection b) 
=> a

service: An IBusService.

-> b

connection: A GDBusConnection the service will be registered to.

-> m ()

(Can throw GError)

Registers service to a connection.

unregister

serviceUnregister Source #

Arguments

:: (HasCallStack, MonadIO m, IsService a, IsDBusConnection b) 
=> a

service: An IBusService.

-> b

connection: A GDBusConnection the service was registered with.

-> m () 

Unregisters service from a connection.

Properties

connection

The connection of service object.

constructServiceConnection :: (IsService o, MonadIO m, IsDBusConnection a) => a -> m (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “connection” property. This is rarely needed directly, but it is used by new.

getServiceConnection :: (MonadIO m, IsService o) => o -> m DBusConnection Source #

Get the value of the “connection” property. When overloading is enabled, this is equivalent to

get service #connection

objectPath

The path of service object.

constructServiceObjectPath :: (IsService o, MonadIO m) => Text -> m (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “object-path” property. This is rarely needed directly, but it is used by new.

getServiceObjectPath :: (MonadIO m, IsService o) => o -> m Text Source #

Get the value of the “object-path” property. When overloading is enabled, this is equivalent to

get service #objectPath