1 /*
2  * Copyright (c) 2006 Jean-François Wauthy (pollux@xfce.org)
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation; either version 2 of the License, or
7  * (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12  * GNU Library General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software
16  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17  */
18 
19 #ifndef __XFBURN_ADDING_PROGRESS_H__
20 #define __XFBURN_ADDING_PROGRESS_H__
21 
22 #ifdef HAVE_CONFIG_H
23 #include <config.h>
24 #endif
25 
26 #include <gtk/gtk.h>
27 
28 #include "xfburn-data-composition.h"
29 
30 G_BEGIN_DECLS
31 #define XFBURN_TYPE_ADDING_PROGRESS            (xfburn_adding_progress_get_type ())
32 #define XFBURN_ADDING_PROGRESS(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), XFBURN_TYPE_ADDING_PROGRESS, XfburnAddingProgress))
33 #define XFBURN_ADDING_PROGRESS_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), XFBURN_TYPE_ADDING_PROGRESS, XfburnAddingProgressClass))
34 #define XFBURN_IS_ADDING_PROGRESS(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), XFBURN_TYPE_ADDING_PROGRESS))
35 #define XFBURN_IS_ADDING_PROGRESS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), XFBURN_TYPE_ADDING_PROGRESS))
36 #define XFBURN_ADDING_PROGRESS_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj), XFBURN_TYPE_ADDING_PROGRESS, XfburnAddingProgressClass))
37 
38 typedef struct
39 {
40   GtkWindow window;
41 } XfburnAddingProgress;
42 
43 typedef struct
44 {
45   GtkWindowClass parent_class;
46   void (*adding_done) (XfburnAddingProgress *progress, XfburnDataComposition *dc);
47 } XfburnAddingProgressClass;
48 
49 GType xfburn_adding_progress_get_type (void);
50 
51 XfburnAddingProgress *xfburn_adding_progress_new (void);
52 void xfburn_adding_progress_pulse (XfburnAddingProgress *adding_progress);
53 void xfburn_adding_progress_wait_until_done (XfburnAddingProgress *adding_progress);
54 void xfburn_adding_progress_done (XfburnAddingProgress *adding_progress);
55 gboolean xfburn_adding_progress_is_aborted (XfburnAddingProgress *adding_progress);
56 void xfburn_adding_progress_show (XfburnAddingProgress *adding_progress);
57 
58 G_END_DECLS
59 #endif
60