Home > comp > gb.dbus 
 en fr de es it nl pl pt pt_BR mk ca hu cs tr ar fa id vi ko ja ru zh zh_TW eo
Previous  Next  Edit  Rename  Undo  Search  Administration  
Documentation  
Warning! This page is not translated.  See english version 
gb.dbus
This Përbërës allows to take part in the D-Bus system.

Classes
DBus
DBusApplication
DBusConnection
DBusObject
DBusObserver
DBusProxy
DBusSignal
DBusVariant

By using this component, you will be able to:

For more information, see http://dbus.freedesktop.org.

Example

' Lock the screen
DBus["org.kde.krunner"]["/ScreenSaver"].lock()

' Check if compositing is active
If DBus["org.kde.kwin"]["/KWin"].compositingActive() Then Print "Compositing is active!"

' Get a password from KDE wallet
Dim sLocalWallet As String = DBus["org.kde.kwalletd"]["/modules/kwalletd"].localWallet()
Dim sWalletId As String = DBus["org.kde.kwalletd"]["/modules/kwalletd"].open(sLocalWallet, Application.Title)
Dim sPassword As String = DBus["org.kde.kwalletd"]["/modules/kwalletd"].readPassword(Application.Name, sWalletId, "login", Application.Title)

' Set the geometry of the KMail window
DBus["org.kde.kmail"]["/kmail/kmail_mainwindow_1"].geometry = [0, 24, 1024, 768]

See also

DBus and Gambas