Merge branch 'master' into 'master'
[brasero.git] / libbrasero-media / brasero-medium.h
blob64f2fec4c5e14109f67179d90b6284b723ab135e
1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
2 /*
3 * Libbrasero-media
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 #include <glib-object.h>
33 #include <brasero-media.h>
35 #ifndef _BURN_MEDIUM_H_
36 #define _BURN_MEDIUM_H_
38 G_BEGIN_DECLS
40 #define BRASERO_TYPE_MEDIUM (brasero_medium_get_type ())
41 #define BRASERO_MEDIUM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BRASERO_TYPE_MEDIUM, BraseroMedium))
42 #define BRASERO_MEDIUM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BRASERO_TYPE_MEDIUM, BraseroMediumClass))
43 #define BRASERO_IS_MEDIUM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BRASERO_TYPE_MEDIUM))
44 #define BRASERO_IS_MEDIUM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BRASERO_TYPE_MEDIUM))
45 #define BRASERO_MEDIUM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BRASERO_TYPE_MEDIUM, BraseroMediumClass))
47 typedef struct _BraseroMediumClass BraseroMediumClass;
49 /**
50 * BraseroMedium:
52 * Represents a physical medium currently inserted in a #BraseroDrive.
53 **/
54 typedef struct _BraseroMedium BraseroMedium;
56 /**
57 * BraseroDrive:
59 * Represents a physical drive currently connected.
60 **/
61 typedef struct _BraseroDrive BraseroDrive;
63 struct _BraseroMediumClass
65 GObjectClass parent_class;
68 struct _BraseroMedium
70 GObject parent_instance;
73 GType brasero_medium_get_type (void) G_GNUC_CONST;
76 BraseroMedia
77 brasero_medium_get_status (BraseroMedium *medium);
79 guint64
80 brasero_medium_get_max_write_speed (BraseroMedium *medium);
82 guint64 *
83 brasero_medium_get_write_speeds (BraseroMedium *medium);
85 void
86 brasero_medium_get_free_space (BraseroMedium *medium,
87 goffset *bytes,
88 goffset *blocks);
90 void
91 brasero_medium_get_capacity (BraseroMedium *medium,
92 goffset *bytes,
93 goffset *blocks);
95 void
96 brasero_medium_get_data_size (BraseroMedium *medium,
97 goffset *bytes,
98 goffset *blocks);
100 gint64
101 brasero_medium_get_next_writable_address (BraseroMedium *medium);
103 gboolean
104 brasero_medium_can_be_rewritten (BraseroMedium *medium);
106 gboolean
107 brasero_medium_can_be_written (BraseroMedium *medium);
109 const gchar *
110 brasero_medium_get_CD_TEXT_title (BraseroMedium *medium);
112 const gchar *
113 brasero_medium_get_type_string (BraseroMedium *medium);
115 gchar *
116 brasero_medium_get_tooltip (BraseroMedium *medium);
118 BraseroDrive *
119 brasero_medium_get_drive (BraseroMedium *medium);
121 guint
122 brasero_medium_get_track_num (BraseroMedium *medium);
124 gboolean
125 brasero_medium_get_last_data_track_space (BraseroMedium *medium,
126 goffset *bytes,
127 goffset *sectors);
129 gboolean
130 brasero_medium_get_last_data_track_address (BraseroMedium *medium,
131 goffset *bytes,
132 goffset *sectors);
134 gboolean
135 brasero_medium_get_track_space (BraseroMedium *medium,
136 guint num,
137 goffset *bytes,
138 goffset *sectors);
140 gboolean
141 brasero_medium_get_track_address (BraseroMedium *medium,
142 guint num,
143 goffset *bytes,
144 goffset *sectors);
146 gboolean
147 brasero_medium_can_use_dummy_for_sao (BraseroMedium *medium);
149 gboolean
150 brasero_medium_can_use_dummy_for_tao (BraseroMedium *medium);
152 gboolean
153 brasero_medium_can_use_burnfree (BraseroMedium *medium);
155 gboolean
156 brasero_medium_can_use_sao (BraseroMedium *medium);
158 gboolean
159 brasero_medium_can_use_tao (BraseroMedium *medium);
161 G_END_DECLS
163 #endif /* _BURN_MEDIUM_H_ */