Class: YakuakeController::YakuakeDBus

Inherits:
Object
  • Object
show all
Defined in:
lib/yakuake_controller/yakuake_dbus.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeYakuakeDBus

Returns a new instance of YakuakeDBus.



13
14
15
16
17
18
19
20
21
22
# File 'lib/yakuake_controller/yakuake_dbus.rb', line 13

def initialize
  bus = DBus.session_bus
  service = bus['org.kde.yakuake']
  sessions_proxy = service.object '/yakuake/sessions'
  sessions_proxy.introspect
  tabs_proxy = service.object '/yakuake/tabs'
  tabs_proxy.introspect
  @sessions_interface = sessions_proxy['org.kde.yakuake']
  @tabs_interface = tabs_proxy['org.kde.yakuake']
end

Instance Attribute Details

#sessions_interfaceObject (readonly)

Returns the value of attribute sessions_interface.



11
12
13
# File 'lib/yakuake_controller/yakuake_dbus.rb', line 11

def sessions_interface
  @sessions_interface
end

#tabs_interfaceObject (readonly)

Returns the value of attribute tabs_interface.



11
12
13
# File 'lib/yakuake_controller/yakuake_dbus.rb', line 11

def tabs_interface
  @tabs_interface
end