Copyright | Will Thompson, Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria (garetxe@gmail.com) |
Safe Haskell | None |
Language | Haskell2010 |
DBusMenuModel
is an implementation of MenuModel
that can be used
as a proxy for a menu model that is exported over D-Bus with
dBusConnectionExportMenuModel
.
- newtype DBusMenuModel = DBusMenuModel (ManagedPtr DBusMenuModel)
- class GObject o => IsDBusMenuModel o
- toDBusMenuModel :: IsDBusMenuModel o => o -> IO DBusMenuModel
- noDBusMenuModel :: Maybe DBusMenuModel
- dBusMenuModelGet :: (HasCallStack, MonadIO m, IsDBusConnection a) => a -> Text -> Text -> m DBusMenuModel
Exported types
newtype DBusMenuModel Source #
GObject DBusMenuModel Source # | |
IsObject DBusMenuModel Source # | |
IsMenuModel DBusMenuModel Source # | |
IsDBusMenuModel DBusMenuModel Source # | |
((~) * info (ResolveDBusMenuModelMethod t DBusMenuModel), MethodInfo * info DBusMenuModel p) => IsLabel t (DBusMenuModel -> p) Source # | |
((~) * info (ResolveDBusMenuModelMethod t DBusMenuModel), MethodInfo * info DBusMenuModel p) => IsLabelProxy t (DBusMenuModel -> p) Source # | |
HasAttributeList * DBusMenuModel Source # | |
type AttributeList DBusMenuModel Source # | |
type SignalList DBusMenuModel Source # | |
class GObject o => IsDBusMenuModel o Source #
toDBusMenuModel :: IsDBusMenuModel o => o -> IO DBusMenuModel Source #
Methods
get
:: (HasCallStack, MonadIO m, IsDBusConnection a) | |
=> a |
|
-> Text |
|
-> Text |
|
-> m DBusMenuModel | Returns: a |
Obtains a DBusMenuModel
for the menu model which is exported
at the given busName
and objectPath
.
The thread default main context is taken at the time of this call. All signals on the menu model (and any linked models) are reported with respect to this context. All calls on the returned menu model (and linked models) must also originate from this same context, with the thread default main context unchanged.
Since: 2.32