Merge branch 'master' into 'master'
[brasero.git] / libbrasero-media / brasero-volume.h
blob91a4a9dc9e85a3107287965945921add899a1fff
1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
2 /*
3 * Brasero
4 * Copyright (C) Philippe Rouquier 2005-2009 <bonfire-app@wanadoo.fr>
6 * Libbrasero-media is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * The Libbrasero-media authors hereby grant permission for non-GPL compatible
12 * GStreamer plugins to be used and distributed together with GStreamer
13 * and Libbrasero-media. This permission is above and beyond the permissions granted
14 * by the GPL license by which Libbrasero-media is covered. If you modify this code
15 * you may extend this exception to your version of the code, but you are not
16 * obligated to do so. If you do not wish to do so, delete this exception
17 * statement from your version.
19 * Libbrasero-media is distributed in the hope that it will be useful,
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 * GNU Library General Public License for more details.
24 * You should have received a copy of the GNU General Public License
25 * along with this program; if not, write to:
26 * The Free Software Foundation, Inc.,
27 * 51 Franklin Street, Fifth Floor
28 * Boston, MA 02110-1301, USA.
31 #ifndef _BRASERO_VOLUME_H_
32 #define _BRASERO_VOLUME_H_
34 #include <glib-object.h>
35 #include <gio/gio.h>
36 #include <gtk/gtk.h>
37 #include <brasero-drive.h>
39 G_BEGIN_DECLS
41 #define BRASERO_TYPE_VOLUME (brasero_volume_get_type ())
42 #define BRASERO_VOLUME(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BRASERO_TYPE_VOLUME, BraseroVolume))
43 #define BRASERO_VOLUME_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BRASERO_TYPE_VOLUME, BraseroVolumeClass))
44 #define BRASERO_IS_VOLUME(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BRASERO_TYPE_VOLUME))
45 #define BRASERO_IS_VOLUME_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BRASERO_TYPE_VOLUME))
46 #define BRASERO_VOLUME_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BRASERO_TYPE_VOLUME, BraseroVolumeClass))
48 typedef struct _BraseroVolumeClass BraseroVolumeClass;
49 typedef struct _BraseroVolume BraseroVolume;
51 struct _BraseroVolumeClass
53 BraseroMediumClass parent_class;
56 struct _BraseroVolume
58 BraseroMedium parent_instance;
61 GType brasero_volume_get_type (void) G_GNUC_CONST;
63 gchar *
64 brasero_volume_get_name (BraseroVolume *volume);
66 GIcon *
67 brasero_volume_get_icon (BraseroVolume *volume);
69 GVolume *
70 brasero_volume_get_gvolume (BraseroVolume *volume);
72 gboolean
73 brasero_volume_is_mounted (BraseroVolume *volume);
75 gchar *
76 brasero_volume_get_mount_point (BraseroVolume *volume,
77 GError **error);
79 gboolean
80 brasero_volume_umount (BraseroVolume *volume,
81 gboolean wait,
82 GError **error);
84 gboolean
85 brasero_volume_mount (BraseroVolume *volume,
86 GtkWindow *parent_window,
87 gboolean wait,
88 GError **error);
90 void
91 brasero_volume_cancel_current_operation (BraseroVolume *volume);
93 G_END_DECLS
95 #endif /* _BRASERO_VOLUME_H_ */