[Gambas-user] Creating a D-Bus interface
T Lee Davidson
t.lee.davidson at gmail.com
Sat Feb 24 20:22:09 CET 2018
On 02/24/2018 11:03 AM, Hans Lehmann wrote:
> Hello,
>
> I refer to the page http://gambaswiki.org/wiki/comp/gb.dbus/dbusconnection/register in the documentation. I don't understand how
> to create an interface, following the example. An example would be helpful.
>
> With kind regards
>
> Honsek
>
' Gambas class file
Inherits DBusObject
Public Function Greet() As String
Return "Hello World!"
End
------
' Gambas module file
Public Sub Main()
Dim hObject As New Hello
DBus.Session.Register(hObject, "/")
End
------
See http://gambaswiki.org/wiki/doc/dbus at "Exporting Gambas object to other applications".
---
Lee
More information about the User
mailing list