Copyright | Will Thompson and Iñaki García Etxebarria |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
GI.IBus.Objects.Service
Description
An IBusService is a base class for services.
Synopsis
- newtype Service = Service (ManagedPtr Service)
- class (GObject o, IsDescendantOf Service o) => IsService o
- toService :: (MonadIO m, IsService o) => o -> m Service
- serviceEmitSignal :: (HasCallStack, MonadIO m, IsService a) => a -> Text -> Text -> Text -> GVariant -> m ()
- serviceGetConnection :: (HasCallStack, MonadIO m, IsService a) => a -> m DBusConnection
- serviceGetObjectPath :: (HasCallStack, MonadIO m, IsService a) => a -> m Text
- serviceNew :: (HasCallStack, MonadIO m, IsDBusConnection a) => a -> Text -> m Service
- serviceRegister :: (HasCallStack, MonadIO m, IsService a, IsDBusConnection b) => a -> b -> m ()
- serviceUnregister :: (HasCallStack, MonadIO m, IsService a, IsDBusConnection b) => a -> b -> m ()
- clearServiceConnection :: (MonadIO m, IsService o) => o -> m ()
- constructServiceConnection :: (IsService o, MonadIO m, IsDBusConnection a) => a -> m (GValueConstruct o)
- getServiceConnection :: (MonadIO m, IsService o) => o -> m DBusConnection
- setServiceConnection :: (MonadIO m, IsService o, IsDBusConnection a) => o -> a -> m ()
- constructServiceObjectPath :: (IsService o, MonadIO m) => Text -> m (GValueConstruct o)
- getServiceObjectPath :: (MonadIO m, IsService o) => o -> m Text
Exported types
Memory-managed wrapper type.
Instances
Eq Service Source # | |
GObject Service Source # | |
Defined in GI.IBus.Objects.Service | |
ManagedPtrNewtype Service Source # | |
Defined in GI.IBus.Objects.Service Methods toManagedPtr :: Service -> ManagedPtr Service | |
TypedObject Service Source # | |
Defined in GI.IBus.Objects.Service | |
HasParentTypes Service Source # | |
Defined in GI.IBus.Objects.Service | |
IsGValue (Maybe Service) Source # | Convert |
Defined in GI.IBus.Objects.Service Methods gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe Service -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe Service) | |
type ParentTypes Service Source # | |
Defined in GI.IBus.Objects.Service |
class (GObject o, IsDescendantOf Service o) => IsService o Source #
Instances
(GObject o, IsDescendantOf Service o) => IsService o Source # | |
Defined in GI.IBus.Objects.Service |
Methods
Click to display all available methods, including inherited ones
Methods
bindProperty, bindPropertyFull, destroy, emitSignal, forceFloating, freezeNotify, getv, isFloating, notify, notifyByPspec, ref, refSink, register, runDispose, stealData, stealQdata, thawNotify, unref, unregister, watchClosure.
Getters
getConnection, getData, getObjectPath, getProperty, getQdata.
Setters
emitSignal
Arguments
:: (HasCallStack, MonadIO m, IsService a) | |
=> a | |
-> Text | |
-> Text | |
-> Text | |
-> GVariant | |
-> m () | (Can throw |
No description available in the introspection data.
getConnection
Arguments
:: (HasCallStack, MonadIO m, IsService a) | |
=> a |
|
-> m DBusConnection | Returns: A |
Gets a connections.
getObjectPath
Arguments
:: (HasCallStack, MonadIO m, IsService a) | |
=> a |
|
-> m Text | Returns: The object path of |
Gets the object path of an IBusService.
new
Arguments
:: (HasCallStack, MonadIO m, IsDBusConnection a) | |
=> a |
|
-> Text |
|
-> m Service | Returns: A newly allocated |
Creantes a new Service
.
register
Arguments
:: (HasCallStack, MonadIO m, IsService a, IsDBusConnection b) | |
=> a |
|
-> b |
|
-> m () | (Can throw |
Registers service to a connection.
unregister
Arguments
:: (HasCallStack, MonadIO m, IsService a, IsDBusConnection b) | |
=> a |
|
-> b |
|
-> m () |
Unregisters service from a connection.
Properties
connection
The connection of service object.
clearServiceConnection :: (MonadIO m, IsService o) => o -> m () Source #
Set the value of the “connection
” property to Nothing
.
When overloading is enabled, this is equivalent to
clear
#connection
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
setServiceConnection :: (MonadIO m, IsService o, IsDBusConnection a) => o -> a -> m () Source #
Set the value of the “connection
” property.
When overloading is enabled, this is equivalent to
set
service [ #connection:=
value ]
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