View Single Post
SPARTAN563's Avatar
Posts: 92 | Thanked: 92 times | Joined on May 2011 @ Stellenbosch, South Africa
#29
Okay, excellent news. I have spent the better part of this morning working on v0.2.2 which aims to fix a whole lot of problems and make the daemon a lot more powerful.
This was after I discovered that typing a name on the keyboard opened the contacts list without locking the phone (even though it was blacklisted).

The changes aren't really all that noticeable unless you look at the DBus methods now available on the Daemon. There are now 2 new methods, the first is AddApp(string Name, string Path) and the second AddSearch(string Name, string DBus, string Search).

The AddSearch method adds a search filter to the specified DBus, currently only the Session bus is available, which is structured the same way as a watch expression in dbus-monitor. This allows you to listen for any method calls (signal and method_return support will be added soon) to any interface and any method.

To demonstrate how this works you can try entering this into a terminal when running v0.2.2:
Code:
dbus-send --dest=com.sierrasoftworks.AppLock /com/sierrasoftworks/AppLock com.sierrasoftworks.AppLock.Daemon.AddSearch string:ContactsSearch string:session string:"type='method_call',interface='com.nokia.osso_addressbook',member='search_append'"
This will then cause the phone to lock whenever you start searching through your addressbook from your desktop.

There is also the com.nokia.CallUI.ShowDialpad method which shows the phone when you enter a number, it can be watched in a similar fashion.

Additionally, adding a program to the application while the daemon is running will now take effect almost immediately (there is a 5 second delay) and now all the commands that are processed by the command line are handled on the daemon using DBus. This means I am one step closed to having a usable UI to work with.
__________________
Sierra Softworks