1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
2 /*
3  * brasero
4  * Copyright (C) Philippe Rouquier 2007-2008 <bonfire-app@wanadoo.fr>
5  *
6  *  Brasero 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.
10  *
11  * brasero is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14  * See the GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with brasero.  If not, write to:
18  * 	The Free Software Foundation, Inc.,
19  * 	51 Franklin Street, Fifth Floor
20  * 	Boston, MA  02110-1301, USA.
21  */
22 
23 #ifndef _BRASERO_SPLIT_DIALOG_H_
24 #define _BRASERO_SPLIT_DIALOG_H_
25 
26 #include <glib-object.h>
27 
28 #include <gtk/gtk.h>
29 
30 G_BEGIN_DECLS
31 
32 struct _BraseroAudioSlice {
33 	gint64 start;
34 	gint64 end;
35 };
36 typedef struct _BraseroAudioSlice BraseroAudioSlice;
37 
38 #define BRASERO_TYPE_SPLIT_DIALOG             (brasero_split_dialog_get_type ())
39 #define BRASERO_SPLIT_DIALOG(obj)             (G_TYPE_CHECK_INSTANCE_CAST ((obj), BRASERO_TYPE_SPLIT_DIALOG, BraseroSplitDialog))
40 #define BRASERO_SPLIT_DIALOG_CLASS(klass)     (G_TYPE_CHECK_CLASS_CAST ((klass), BRASERO_TYPE_SPLIT_DIALOG, BraseroSplitDialogClass))
41 #define BRASERO_IS_SPLIT_DIALOG(obj)          (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BRASERO_TYPE_SPLIT_DIALOG))
42 #define BRASERO_IS_SPLIT_DIALOG_CLASS(klass)  (G_TYPE_CHECK_CLASS_TYPE ((klass), BRASERO_TYPE_SPLIT_DIALOG))
43 #define BRASERO_SPLIT_DIALOG_GET_CLASS(obj)   (G_TYPE_INSTANCE_GET_CLASS ((obj), BRASERO_TYPE_SPLIT_DIALOG, BraseroSplitDialogClass))
44 
45 typedef struct _BraseroSplitDialogClass BraseroSplitDialogClass;
46 typedef struct _BraseroSplitDialog BraseroSplitDialog;
47 
48 struct _BraseroSplitDialogClass
49 {
50 	GtkDialogClass parent_class;
51 };
52 
53 struct _BraseroSplitDialog
54 {
55 	GtkDialog parent_instance;
56 };
57 
58 GType brasero_split_dialog_get_type (void) G_GNUC_CONST;
59 
60 GtkWidget *
61 brasero_split_dialog_new (void);
62 
63 void
64 brasero_split_dialog_set_uri (BraseroSplitDialog *dialog,
65 			      const gchar *uri,
66                               const gchar *title,
67                               const gchar *artist);
68 void
69 brasero_split_dialog_set_boundaries (BraseroSplitDialog *dialog,
70 				     gint64 start,
71 				     gint64 end);
72 
73 GSList *
74 brasero_split_dialog_get_slices (BraseroSplitDialog *self);
75 
76 G_END_DECLS
77 
78 #endif /* _BRASERO_SPLIT_DIALOG_H_ */
79