~mfisch/brasero/update-to-3.8.0

« back to all changes in this revision

Viewing changes to libbrasero-burn/brasero-track-disc.c

  • Committer: Bazaar Package Importer
  • Author(s): Andreas Moog
  • Date: 2009-07-28 01:12:27 UTC
  • mto: (1.4.1 experimental)
  • mto: This revision was merged to the branch mainline in revision 46.
  • Revision ID: james.westby@ubuntu.com-20090728011227-tiva9yorc5d1r5hs
Tags: upstream-2.27.5
ImportĀ upstreamĀ versionĀ 2.27.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
52
52
 
53
53
G_DEFINE_TYPE (BraseroTrackDisc, brasero_track_disc, BRASERO_TYPE_TRACK);
54
54
 
55
 
/**
56
 
 * brasero_track_disc_set_track_num:
57
 
 * @track: a #BraseroTrackDisc
58
 
 * @num: a #guint
59
 
 *
60
 
 * Sets a track number which can be used
61
 
 * to copy only one specific session on a multisession disc
62
 
 *
63
 
 * Return value: a #BraseroBurnResult.
64
 
 * BRASERO_BURN_OK if it was successful,
65
 
 * BRASERO_BURN_ERR otherwise.
66
 
 **/
67
55
 
68
56
BraseroBurnResult
69
57
brasero_track_disc_set_track_num (BraseroTrackDisc *track,
79
67
        return BRASERO_BURN_OK;
80
68
}
81
69
 
82
 
/**
83
 
 * brasero_track_disc_get_track_num:
84
 
 * @track: a #BraseroTrackDisc
85
 
 *
86
 
 * Gets the track number which will be used
87
 
 * to copy only one specific session on a multisession disc
88
 
 *
89
 
 * Return value: a #guint. 0 if none is set, any other number otherwise.
90
 
 **/
91
 
 
92
70
guint
93
71
brasero_track_disc_get_track_num (BraseroTrackDisc *track)
94
72
{
131
109
        brasero_track_changed (track);
132
110
}
133
111
 
134
 
/**
135
 
 * brasero_track_disc_set_drive:
136
 
 * @track: a #BraseroTrackDisc
137
 
 * @drive: a #BraseroDrive
138
 
 *
139
 
 * Sets @drive to be the #BraseroDrive that will be used
140
 
 * as the source when copying
141
 
 *
142
 
 * Return value: a #BraseroBurnResult.
143
 
 * BRASERO_BURN_OK if it was successful,
144
 
 * BRASERO_BURN_ERR otherwise.
145
 
 **/
146
 
 
147
112
BraseroBurnResult
148
113
brasero_track_disc_set_drive (BraseroTrackDisc *track,
149
114
                              BraseroDrive *drive)
177
142
        return BRASERO_BURN_OK;
178
143
}
179
144
 
180
 
/**
181
 
 * brasero_track_disc_get_drive:
182
 
 * @track: a #BraseroTrackDisc
183
 
 *
184
 
 * Gets the #BraseroDrive object that will be used as
185
 
 * the source when copying.
186
 
 *
187
 
 * Return value: a #BraseroDrive or NULL
188
 
 **/
189
 
 
190
145
BraseroDrive *
191
146
brasero_track_disc_get_drive (BraseroTrackDisc *track)
192
147
{
198
153
        return priv->drive;
199
154
}
200
155
 
201
 
/**
202
 
 * brasero_track_disc_get_medium_type:
203
 
 * @track: a #BraseroTrackDisc
204
 
 *
205
 
 * Gets the #BraseroMedia for the medium that is
206
 
 * currently inserted into the drive assigned for @track
207
 
 * with brasero_track_disc_set_drive ().
208
 
 *
209
 
 * Return value: a #BraseroMedia.
210
 
 **/
211
 
 
212
156
BraseroMedia
213
157
brasero_track_disc_get_medium_type (BraseroTrackDisc *track)
214
158
{
297
241
        track_class->get_type = brasero_track_disc_get_track_type;
298
242
}
299
243
 
300
 
/**
301
 
 * brasero_track_disc_new:
302
 
 *
303
 
 * Creates a new #BraseroTrackDisc object.
304
 
 *
305
 
 * This type of tracks is used to copy media either
306
 
 * to a disc image file or to another medium.
307
 
 *
308
 
 * Return value: a #BraseroTrackDisc.
309
 
 **/
310
 
 
311
244
BraseroTrackDisc *
312
245
brasero_track_disc_new (void)
313
246
{