~mfisch/brasero/update-to-3.8.0

« back to all changes in this revision

Viewing changes to src/burn-session.h

  • Committer: Bazaar Package Importer
  • Author(s): Pedro Fragoso
  • Date: 2008-11-18 11:30:50 UTC
  • mto: (1.4.1 experimental)
  • mto: This revision was merged to the branch mainline in revision 29.
  • Revision ID: james.westby@ubuntu.com-20081118113050-yhrskmatlel0gzfm
Tags: upstream-0.8.3
ImportĀ upstreamĀ versionĀ 0.8.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
 
37
37
G_BEGIN_DECLS
38
38
 
39
 
#define BRASERO_DRIVE_PROPERTIES_KEY            "/apps/brasero/drives"
40
39
 
41
40
#define BRASERO_TYPE_BURN_SESSION         (brasero_burn_session_get_type ())
42
41
#define BRASERO_BURN_SESSION(o)           (G_TYPE_CHECK_INSTANCE_CAST ((o), BRASERO_TYPE_BURN_SESSION, BraseroBurnSession))
61
60
         * it's better to have one global signal and dialogs asking for
62
61
         * the session properties they are interested in.
63
62
         */
64
 
        void    (*input_changed)                (BraseroBurnSession *session);
65
 
 
66
 
        void    (*output_changed)               (BraseroBurnSession *session);
 
63
        void                    (*input_changed)        (BraseroBurnSession *session);
 
64
        void                    (*output_changed)       (BraseroBurnSession *session);
67
65
};
68
66
 
69
67
GType brasero_burn_session_get_type ();
92
90
brasero_burn_session_get_input_type (BraseroBurnSession *session,
93
91
                                     BraseroTrackType *type);
94
92
 
95
 
const gchar *
96
 
brasero_burn_session_get_label (BraseroBurnSession *session);
97
 
 
98
 
void
99
 
brasero_burn_session_set_label (BraseroBurnSession *session,
100
 
                                const gchar *label);
 
93
/**
 
94
 * This is to set additional arbitrary information
 
95
 */
101
96
 
102
97
BraseroBurnResult
103
98
brasero_burn_session_tag_lookup (BraseroBurnSession *session,
114
109
                                 const gchar *tag);
115
110
 
116
111
/**
117
 
 * 
 
112
 * Destination 
118
113
 */
119
114
 
120
 
BraseroBurnResult
121
 
brasero_burn_session_set_rate (BraseroBurnSession *session,
122
 
                               guint64 rate);
123
 
 
124
 
guint64
125
 
brasero_burn_session_get_rate (BraseroBurnSession *session);
126
 
 
127
 
void
128
 
brasero_burn_session_set_num_copies (BraseroBurnSession *session,
129
 
                                     guint copies);
130
 
 
131
 
guint
132
 
brasero_burn_session_get_num_copies (BraseroBurnSession *session);
133
 
 
134
115
BraseroDrive *
135
116
brasero_burn_session_get_burner (BraseroBurnSession *session);
136
117
 
160
141
 
161
142
 
162
143
/**
163
 
 * 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)
164
165
 */
165
166
 
166
167
BraseroBurnResult
188
189
                                  GError **error);
189
190
 
190
191
/**
191
 
 * Session flags
192
 
 */
193
 
 
194
 
void
195
 
brasero_burn_session_set_flags (BraseroBurnSession *session,
196
 
                                BraseroBurnFlag flag);
197
 
 
198
 
void
199
 
brasero_burn_session_add_flag (BraseroBurnSession *session,
200
 
                               BraseroBurnFlag flag);
201
 
 
202
 
void
203
 
brasero_burn_session_remove_flag (BraseroBurnSession *session,
204
 
                                  BraseroBurnFlag flag);
205
 
 
206
 
BraseroBurnFlag
207
 
brasero_burn_session_get_flags (BraseroBurnSession *session);
208
 
 
209
 
 
210
 
/**
211
192
 * Allow to save a whole session settings/source and restore it later.
 
193
 * (mostly used internally)
212
194
 */
213
195
 
214
196
void
221
203
void
222
204
brasero_burn_session_pop_tracks (BraseroBurnSession *session);
223
205
 
224
 
 
225
206
/**
226
 
 * Some convenient functions
 
207
 * Some convenience functions
 
208
 * FIXME: maybe they should be put into a brasero burn session helper file?
227
209
 */
228
210
 
229
 
gchar *
230
 
brasero_burn_session_get_config_key (BraseroBurnSession *session,
231
 
                                     const gchar *property);
232
 
 
233
 
gboolean
234
 
brasero_burn_session_same_src_dest_drive (BraseroBurnSession *session);
235
 
 
236
211
BraseroMedia
237
212
brasero_burn_session_get_dest_media (BraseroBurnSession *session);
238
213
 
245
220
gboolean
246
221
brasero_burn_session_is_dest_file (BraseroBurnSession *session);
247
222
 
 
223
gboolean
 
224
brasero_burn_session_same_src_dest_drive (BraseroBurnSession *session);
248
225
 
249
226
#define BRASERO_BURN_SESSION_EJECT(session)                                     \
250
227
(brasero_burn_session_get_flags ((session)) & BRASERO_BURN_FLAG_EJECT)
263
240
 
264
241
 
265
242
/**
266
 
 * Used to report wrong checksum
267
 
 */
268
 
 
269
 
void
270
 
brasero_burn_session_add_wrong_checksum (BraseroBurnSession *session,
271
 
                                         const gchar *path);
272
 
 
273
 
GSList *
274
 
brasero_burn_session_get_wrong_checksums (BraseroBurnSession *session);
275
 
 
276
 
 
277
 
/**
278
243
 * This is to log a session
279
244
 */
280
245
 
299
264
                          const gchar *format,
300
265
                          ...);
301
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
 
 
285
void
 
286
brasero_burn_session_set_num_copies (BraseroBurnSession *session,
 
287
                                     guint copies);
 
288
 
 
289
guint
 
290
brasero_burn_session_get_num_copies (BraseroBurnSession *session);
 
291
 
302
292
G_END_DECLS
303
293
 
304
294
#endif /* BURN_SESSION_H */