Home > comp > gb.dbus > dbusproxy 
 en fr de es it nl pl pt pt_BR mk sq ca 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 
DBusProxy (gb.dbus)
This class is a proxy to a D-Bus object exported by another application.

Symbols
This class is creatable.

Properties 
Children   

To call a method, read or write a property on the D-Bus object, just apply them on the proxy object:

Beware that method and property names are case sensitive!

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]