Class: YakuakeController::YakuakeDBus
- Inherits:
-
Object
- Object
- YakuakeController::YakuakeDBus
- Defined in:
- lib/yakuake_controller/yakuake_dbus.rb
Instance Attribute Summary collapse
-
#sessions_interface ⇒ Object
readonly
Returns the value of attribute sessions_interface.
-
#tabs_interface ⇒ Object
readonly
Returns the value of attribute tabs_interface.
Instance Method Summary collapse
-
#initialize ⇒ YakuakeDBus
constructor
A new instance of YakuakeDBus.
Constructor Details
#initialize ⇒ YakuakeDBus
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_interface ⇒ Object (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_interface ⇒ Object (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 |