2 * Copyright (C) 2010 Red Hat Inc.
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License along
15 * with this program; if not, write to the Free Software Foundation, Inc.,
16 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19 (** The Window module handles all aspects of the main window, menus,
25 method disconnect : GtkSignal.id -> unit
27 (** Signals that can be emitted by window menu items. *)
28 method connect_kvm_signal : callback:(unit -> unit) -> GtkSignal.id
29 method connect_xen_signal : callback:(unit -> unit) -> GtkSignal.id
30 method connect_none_signal : callback:(unit -> unit) -> GtkSignal.id
31 method connect_uri_signal : callback:(unit -> unit) -> GtkSignal.id
32 method open_disk_signal : callback:(unit -> unit) -> GtkSignal.id
33 method reopen_signal : callback:(unit -> unit) -> GtkSignal.id
34 method inspection_signal : callback:(unit -> unit) -> GtkSignal.id
36 method failure : exn -> unit
37 (** This is the global error handling function. It is invoked in
38 the main thread for failures in the slave thread (see
39 {!Slave.set_failure_hook}). *)
41 method throbber_busy : unit -> unit
42 method throbber_idle : unit -> unit
43 (** These are callbacks from the slave thread (invoked in the main
44 thread) which are called whenever the throbber should be
45 animated/busy or idle. *)
47 method set_statusbar : string -> unit
48 (** This callback from the slave thread (invoked in the main thread)
49 updates the status bar when some slave operation starts or
52 method progress : int64 * int64 -> unit
53 (** This called whenever the progress bar should move. *)
55 method tree : Filetree.tree
56 (** Return the filetree contained in the window. *)
58 method connect_to : string option -> unit -> unit
59 (** Connect to the given libvirt URI. *)
61 method open_disk_images : (string * string option) list -> unit
62 (** Open disk image(s) directly. The second part of each pair
63 is the optional disk format. *)
65 method reopen : unit -> unit
66 (** Reopen the libguestfs handle and current guest. *)
68 method run_cli_request : Cmdline.cli_request -> unit
69 (** This function performs the {!Cmdline.cli_request} operation.
70 The actual operation happens asynchronously after this function