]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/hbugs/client/hbugs_client.mli
- added a destroy callback
[helm.git] / helm / hbugs / client / hbugs_client.mli
index 3bc34a8e2078a2e6eaf93ce439f4977bb991b7c6..87e11e968501ca75183785b5d04f69a7328cf575 100644 (file)
@@ -4,19 +4,20 @@ open Hbugs_types
 exception Invalid_URL of string
 
 class hbugsClient :
-  on_use_hint: (hint -> unit) ->
-  ?on_exit: (unit -> unit) ->
+  ?use_hint_callback: (hint -> unit) -> (* default = do nothing *)
+  ?destroy_callback: (unit -> unit) ->  (* default = do nothing *)
   unit ->
     object
 
       method show : unit -> unit
       method hide : unit -> unit
 
+      method setUseHintCallback : (hint -> unit) -> unit
       method registerToBroker : unit -> unit
       method unregisterFromBroker : unit -> unit
       method subscribeAll : unit -> unit
 
-      method stateChange : state -> unit
+      method stateChange : state option -> unit
 
         (** @return an hint by index *)
       method hint : int -> hint