1 (* virt-manager-like graphical management tool.
2 (C) Copyright 2007 Richard W.M. Jones, Red Hat Inc.
4 $Id: mlvirtmanager_connections.mli,v 1.1 2007/08/06 10:16:53 rjones Exp $
6 Handle connections and the complicated GtkTreeView which
7 displays the connections / domains.
10 (** Get the list of current connections. *)
11 val get_conns : unit -> (int * Libvirt.rw Libvirt.Connect.t) list
13 (** The current/previous state last time repopulate was called. The
14 repopulate function uses this state to determine what has changed
15 (eg. domains added, removed) since last time.
19 type columns = string GTree.column * string GTree.column * string GTree.column * string GTree.column * string GTree.column * int GTree.column
21 (** This function should be called once per second in order to
22 redraw the GtkTreeView.
24 Takes the previous state as a parameter and returns the new state.
26 val repopulate : GTree.view -> GTree.tree_store -> columns -> state -> state
28 (** Create the GtkTreeView. Returns the widget itself, the model,
29 the list of columns, and the initial state.
31 val make_treeview : ?packing:(GObj.widget -> unit) -> unit -> GTree.view * GTree.tree_store * columns * state
33 (** This callback creates the Connect to hypervisor dialog. *)
34 val open_connection : unit -> unit