~ubuntu-branches/debian/experimental/brasero/experimental

« back to all changes in this revision

Viewing changes to src/burn-session.h

  • Committer: Bazaar Package Importer
  • Author(s): Josselin Mouette, Pedro Fragoso, Luca Bruno, Josselin Mouette, Emilio Pozuelo Monfort
  • Date: 2009-06-24 18:59:46 UTC
  • mfrom: (1.2.13 upstream)
  • Revision ID: james.westby@ubuntu.com-20090624185946-iyxkgf3gjptir5y3
Tags: 2.26.2-1
[ Pedro Fragoso ]
* Add myself to Maintainer field
  - Thanks Ondřej Surý
* New upstream version (Closes: #528945)
  - Split package into brasero, libbrasero-media0 and libbrasero-dev
  - Add Replaces to libbrasero-media0
  - Bump libgtk to 2.14.0
  - Remove libnotify Build-dep
  - Add Build-dep libnautilus-extension-dev (>= 2.22.2)
    and install it.
  - Add Build-dep to libsm-dev
  - Add Build-dep on intltool
* Install omf files to prevent crash on Help
* Move gstreamer0.10-plugins-bad to Suggests, and add
  dvdauthor and vcdimager
* Recommends gvfs (Closes: #491827)
* Pass --disable-scrollkeeper in DEB_CONFIGURE_EXTRA_FLAGS
* debian/patches/007-fix-gnome-doc-utils-path.patch:
  - Removed, not needed anymore
* debian/patches/008-fix-volume-identifier-crash.patch:
  - Removed, merged upstream
* debian/patches/011_nautilus_menu_move.patch:
 - Move CD/DVD Creator Menu to Acessories, taken from Ubuntu

[ Luca Bruno ]
* debian/control.in:
  - Add Build-Depend gtk-doc-tools 1.9.
* debian/patches/006-fix-libdvdcss.patch:
  - Removed as applied upstream.

[ Josselin Mouette ]
* New upstream release.
* Update build-dependencies.
* Move the translations and data to a new brasero-common package.
* Rewrite the descriptions.
* Add -dev depends to the development package.
* Remove inappropriate recommends in the library package.
* Let’s not forget dvd+rw-tools so that we can write DVDs too.
* Rework dependencies accordingly.
* Put the nautilus extension in brasero.
* Conflict against nautilus-cd-burner to avoid having two burning 
  extensions.
* Include clean-la.mk and gnome-version.mk; build-depend on 
  gnome-pkg-tools 0.7.
* Don’t run dh_makeshlibs on brasero and libbrasero-plugins.
* 011_nautilus_menu_move.patch: add NoDisplay=true, this icon is 
  duplicating existing functionality (brasero icon in sound&video 
  menu, and nautilus autorun).
* Update list of copyright holders.

[ Emilio Pozuelo Monfort ]
* debian/copyright: updated.

[ Josselin Mouette ]
* copyright: improve indentation, and point to versioned LGPL.
* 090_relibtoolize.patch: add a relibtoolization patch to avoid the 
  rpath crap.

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
 ***************************************************************************/
8
8
 
9
9
/*
10
 
 *  This program is free software; you can redistribute it and/or modify
 
10
 *  Brasero is free software; you can redistribute it and/or modify
11
11
 *  it under the terms of the GNU General Public License as published by
12
12
 *  the Free Software Foundation; either version 2 of the License, or
13
13
 *  (at your option) any later version.
14
14
 *
15
 
 *  This program is distributed in the hope that it will be useful,
 
15
 *  Brasero is distributed in the hope that it will be useful,
16
16
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
17
17
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18
18
 *  GNU Library General Public License for more details.
19
19
 *
20
20
 *  You should have received a copy of the GNU General Public License
21
 
 *  along with this program; if not, write to the Free Software
22
 
 *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
21
 *  along with this program; if not, write to:
 
22
 *      The Free Software Foundation, Inc.,
 
23
 *      51 Franklin Street, Fifth Floor
 
24
 *      Boston, MA  02110-1301, USA.
23
25
 */
24
26
 
25
27
#ifndef BURN_SESSION_H
30
32
 
31
33
#include "burn-basics.h"
32
34
#include "burn-track.h"
33
 
#include "burn-drive.h"
 
35
#include "brasero-drive.h"
34
36
 
35
37
G_BEGIN_DECLS
36
38
 
37
 
#define BRASERO_DRIVE_PROPERTIES_KEY            "/apps/brasero/drives"
38
39
 
39
40
#define BRASERO_TYPE_BURN_SESSION         (brasero_burn_session_get_type ())
40
41
#define BRASERO_BURN_SESSION(o)           (G_TYPE_CHECK_INSTANCE_CAST ((o), BRASERO_TYPE_BURN_SESSION, BraseroBurnSession))
59
60
         * it's better to have one global signal and dialogs asking for
60
61
         * the session properties they are interested in.
61
62
         */
62
 
        void    (*input_changed)                (BraseroBurnSession *session);
63
 
 
64
 
        void    (*output_changed)               (BraseroBurnSession *session);
 
63
        void                    (*input_changed)        (BraseroBurnSession *session);
 
64
        void                    (*output_changed)       (BraseroBurnSession *session);
65
65
};
66
66
 
67
67
GType brasero_burn_session_get_type ();
76
76
BraseroBurnResult
77
77
brasero_burn_session_add_track (BraseroBurnSession *session,
78
78
                                BraseroTrack *track);
 
79
void
 
80
brasero_burn_session_clear_current_track (BraseroBurnSession *session);
79
81
 
80
82
GSList *
81
83
brasero_burn_session_get_tracks (BraseroBurnSession *session);
88
90
brasero_burn_session_get_input_type (BraseroBurnSession *session,
89
91
                                     BraseroTrackType *type);
90
92
 
91
 
const gchar *
92
 
brasero_burn_session_get_label (BraseroBurnSession *session);
93
 
 
94
 
void
95
 
brasero_burn_session_set_label (BraseroBurnSession *session,
96
 
                                const gchar *label);
 
93
/**
 
94
 * This is to set additional arbitrary information
 
95
 */
97
96
 
98
97
BraseroBurnResult
99
98
brasero_burn_session_tag_lookup (BraseroBurnSession *session,
104
103
brasero_burn_session_tag_add (BraseroBurnSession *session,
105
104
                              const gchar *tag,
106
105
                              GValue *value);
 
106
 
 
107
BraseroBurnResult
 
108
brasero_burn_session_tag_remove (BraseroBurnSession *session,
 
109
                                 const gchar *tag);
 
110
 
107
111
/**
108
 
 * 
 
112
 * Destination 
109
113
 */
110
114
 
111
 
BraseroBurnResult
112
 
brasero_burn_session_set_rate (BraseroBurnSession *session,
113
 
                               guint64 rate);
114
 
 
115
 
guint64
116
 
brasero_burn_session_get_rate (BraseroBurnSession *session);
117
 
 
118
 
void
119
 
brasero_burn_session_set_num_copies (BraseroBurnSession *session,
120
 
                                     guint copies);
121
 
 
122
 
guint
123
 
brasero_burn_session_get_num_copies (BraseroBurnSession *session);
124
 
 
125
115
BraseroDrive *
126
116
brasero_burn_session_get_burner (BraseroBurnSession *session);
127
117
 
135
125
                                 BraseroDrive *burner);
136
126
 
137
127
BraseroBurnResult
138
 
brasero_burn_session_set_image_output (BraseroBurnSession *session,
139
 
                                       BraseroImageFormat format,
140
 
                                       const gchar *path);
141
 
 
142
 
BraseroBurnResult
143
128
brasero_burn_session_set_image_output_full (BraseroBurnSession *session,
144
129
                                            BraseroImageFormat format,
145
130
                                            const gchar *image,
156
141
 
157
142
 
158
143
/**
159
 
 * Used to deal with the temporary files
 
144
 * Session flags
 
145
 */
 
146
 
 
147
void
 
148
brasero_burn_session_set_flags (BraseroBurnSession *session,
 
149
                                BraseroBurnFlag flag);
 
150
 
 
151
void
 
152
brasero_burn_session_add_flag (BraseroBurnSession *session,
 
153
                               BraseroBurnFlag flag);
 
154
 
 
155
void
 
156
brasero_burn_session_remove_flag (BraseroBurnSession *session,
 
157
                                  BraseroBurnFlag flag);
 
158
 
 
159
BraseroBurnFlag
 
160
brasero_burn_session_get_flags (BraseroBurnSession *session);
 
161
 
 
162
 
 
163
/**
 
164
 * Used to deal with the temporary files (mostly used by plugins)
160
165
 */
161
166
 
162
167
BraseroBurnResult
184
189
                                  GError **error);
185
190
 
186
191
/**
187
 
 * Session flags
188
 
 */
189
 
 
190
 
void
191
 
brasero_burn_session_set_flags (BraseroBurnSession *session,
192
 
                                BraseroBurnFlag flag);
193
 
 
194
 
void
195
 
brasero_burn_session_add_flag (BraseroBurnSession *session,
196
 
                               BraseroBurnFlag flag);
197
 
 
198
 
void
199
 
brasero_burn_session_remove_flag (BraseroBurnSession *session,
200
 
                                  BraseroBurnFlag flag);
201
 
 
202
 
BraseroBurnFlag
203
 
brasero_burn_session_get_flags (BraseroBurnSession *session);
204
 
 
205
 
 
206
 
/**
207
192
 * Allow to save a whole session settings/source and restore it later.
 
193
 * (mostly used internally)
208
194
 */
209
195
 
210
196
void
217
203
void
218
204
brasero_burn_session_pop_tracks (BraseroBurnSession *session);
219
205
 
220
 
 
221
206
/**
222
 
 * Some convenient functions
 
207
 * Some convenience functions
 
208
 * FIXME: maybe they should be put into a brasero burn session helper file?
223
209
 */
224
210
 
225
 
gchar *
226
 
brasero_burn_session_get_config_key (BraseroBurnSession *session,
227
 
                                     const gchar *property);
228
 
 
229
 
gboolean
230
 
brasero_burn_session_same_src_dest_drive (BraseroBurnSession *session);
231
 
 
232
211
BraseroMedia
233
212
brasero_burn_session_get_dest_media (BraseroBurnSession *session);
234
213
 
241
220
gboolean
242
221
brasero_burn_session_is_dest_file (BraseroBurnSession *session);
243
222
 
 
223
gboolean
 
224
brasero_burn_session_same_src_dest_drive (BraseroBurnSession *session);
244
225
 
245
226
#define BRASERO_BURN_SESSION_EJECT(session)                                     \
246
227
(brasero_burn_session_get_flags ((session)) & BRASERO_BURN_FLAG_EJECT)
259
240
 
260
241
 
261
242
/**
262
 
 * Used to report wrong checksum
263
 
 */
264
 
 
265
 
void
266
 
brasero_burn_session_add_wrong_checksum (BraseroBurnSession *session,
267
 
                                         const gchar *path);
268
 
 
269
 
GSList *
270
 
brasero_burn_session_get_wrong_checksums (BraseroBurnSession *session);
271
 
 
272
 
 
273
 
/**
274
243
 * This is to log a session
275
244
 */
276
245
 
295
264
                          const gchar *format,
296
265
                          ...);
297
266
 
 
267
/**
 
268
 * These should be converted to tags
 
269
 */
 
270
 
 
271
const gchar *
 
272
brasero_burn_session_get_label (BraseroBurnSession *session);
 
273
 
 
274
void
 
275
brasero_burn_session_set_label (BraseroBurnSession *session,
 
276
                                const gchar *label);
 
277
 
 
278
BraseroBurnResult
 
279
brasero_burn_session_set_rate (BraseroBurnSession *session,
 
280
                               guint64 rate);
 
281
 
 
282
guint64
 
283
brasero_burn_session_get_rate (BraseroBurnSession *session);
 
284
 
298
285
G_END_DECLS
299
286
 
300
287
#endif /* BURN_SESSION_H */