Module: RBus
- Defined in:
- lib/rbus/etc/types.rb,
lib/rbus/bus/bus.rb,
lib/rbus/etc/log.rb,
lib/rbus/auth/auth.rb,
lib/rbus/bus/proxy.rb,
lib/rbus/auth/dummy.rb,
lib/rbus/etc/version.rb,
lib/rbus/auth/external.rb,
lib/rbus/bus/transport.rb,
lib/rbus/etc/exception.rb,
lib/rbus/mainloop/glib.rb,
lib/rbus/etc/blankslate.rb,
lib/rbus/message/reader.rb,
lib/rbus/message/writer.rb,
lib/rbus/mainloop/thread.rb,
lib/rbus/message/marshal.rb,
lib/rbus/message/message.rb,
lib/rbus/mainloop/mainloop.rb,
lib/rbus/message/constants.rb,
lib/rbus/auth/state_machine.rb,
lib/rbus/auth/dbus_cookie_sha1.rb,
lib/rbus/message/serial_generator.rb
Overview
–
R-Bus is a native Ruby implementation of the D-Bus protocol. Copyright © 2007 Kristoffer Lundén ([email protected])
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. A copy of the GNU General Public License is also available at www.gnu.org/copyleft/gpl.html.
++
Defined Under Namespace
Modules: Auth, MarshalMixin, Message, VERSION Classes: AuthException, BlankSlate, Bus, Error, Exception, IllegalEndianException, InvalidAddressException, InvalidNameException, InvalidProtocolException, InvalidTransportException, Log, Mainloop, MessageException, MethodCall, MethodReturn, NotImplementedError, ObjectPath, Proxy, SessionBus, Signal, SystemBus, Transport, TypeException, Variant
Constant Summary collapse
- VALID_METHOD_NAME =
/^[A-Za-z_][A-Za-z0-9_]{0,254}$/
- PREFIX_TO_SIG =
{ 'byte' => 'y', 'boolean' => 'b', 'int16' => 'n', 'uint16' => 'q', 'int32' => 'i', 'uint32' => 'u', 'int64' => 'x', 'uint64' => 't', 'double' => 'd', 'string' => 's', 'objpath' => 'o', 'signature' => 'g', 'variant' => 'v', 'array' => 'a', 'dict' => 'a{', }
Class Method Summary collapse
-
.get_bus(address) ⇒ Object
Get Bus with specific address.
-
.mainloop ⇒ Object
Start idle mainloop, overridden by different implementations.
-
.session_bus ⇒ Object
Get the session bus.
-
.system_bus ⇒ Object
Get the system bus.
Class Method Details
.get_bus(address) ⇒ Object
Get Bus with specific address
41 42 43 |
# File 'lib/rbus/bus/bus.rb', line 41 def self.get_bus(address) Bus.new(address) end |
.mainloop ⇒ Object
Start idle mainloop, overridden by different implementations.
74 75 76 |
# File 'lib/rbus/mainloop/glib.rb', line 74 def self.mainloop # :nodoc: Gtk.main end |
.session_bus ⇒ Object
Get the session bus
31 32 33 |
# File 'lib/rbus/bus/bus.rb', line 31 def self.session_bus SessionBus.instance end |
.system_bus ⇒ Object
Get the system bus
36 37 38 |
# File 'lib/rbus/bus/bus.rb', line 36 def self.system_bus SystemBus.instance end |