namespace PipeTap.DBus {
    public class Server : ServerIface, Object {
        public int focus {
            get { message ("Gett"); return Logic.find_ctrl (Logic.Ctrl.CtrlType.Focus).value; }
            set { message ("Sett %d", value); Logic.find_ctrl (Logic.Ctrl.CtrlType.Focus).value = value; }
        }
    }
    public Server server;
    public void init (GLib.DBusConnection conn, string path) {
        server = new Server ();
        message ("DBUS connection is %snull", conn != null ? "not " : "");
        conn.register_object<ServerIface> (path, server);
    }
}
