~mfisch/brasero/update-to-3.8.0

« back to all changes in this revision

Viewing changes to src/brasero-tool-dialog.h

  • Committer: Bazaar Package Importer
  • Author(s): Robert Ancell
  • Date: 2009-06-03 10:36:30 UTC
  • mfrom: (1.1.23 upstream)
  • Revision ID: james.westby@ubuntu.com-20090603103630-2r72408gk45sc0ws
Tags: 2.27.2-0ubuntu1
* New upstream release (LP: #380850)
  - Split burning backend into a new library called libbrasero-burn
  - Split some utilities into a new library called libbrasero-utils
  - Use Brasero as a single instance application using libunique
  - Data spanning
  - Memleak fixes
  - Bug Fixes
  - String fixes
  - Use autogenerated Changelog via git
  - Translation Updates
  - Fixes (LP: #360671)
* Bump GTK+ requirement and add libunique requirement

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/***************************************************************************
2
 
 *            brasero-tool-dialog.h
3
 
 *
4
 
 *  ven sep  1 19:45:01 2006
5
 
 *  Copyright  2006  Rouquier Philippe
6
 
 *  bonfire-app@wanadoo.fr
7
 
 ***************************************************************************/
8
 
 
9
 
/*
10
 
 *  Brasero is free software; you can redistribute it and/or modify
11
 
 *  it under the terms of the GNU General Public License as published by
12
 
 *  the Free Software Foundation; either version 2 of the License, or
13
 
 *  (at your option) any later version.
14
 
 *
15
 
 *  Brasero is distributed in the hope that it will be useful,
16
 
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
17
 
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18
 
 *  GNU Library General Public License for more details.
19
 
 *
20
 
 *  You should have received a copy of the GNU General Public License
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.
25
 
 */
26
 
 
27
 
#ifndef BRASERO_TOOL_DIALOG_H
28
 
#define BRASERO_TOOL_DIALOG_H
29
 
 
30
 
#include <glib.h>
31
 
#include <glib-object.h>
32
 
 
33
 
#include <gtk/gtk.h>
34
 
 
35
 
#include "burn-basics.h"
36
 
#include "burn-job.h"
37
 
#include "burn.h"
38
 
#include "brasero-medium.h"
39
 
#include "burn-session.h"
40
 
#include "brasero-medium-monitor.h"
41
 
 
42
 
G_BEGIN_DECLS
43
 
 
44
 
#define BRASERO_TYPE_TOOL_DIALOG         (brasero_tool_dialog_get_type ())
45
 
#define BRASERO_TOOL_DIALOG(o)           (G_TYPE_CHECK_INSTANCE_CAST ((o), BRASERO_TYPE_TOOL_DIALOG, BraseroToolDialog))
46
 
#define BRASERO_TOOL_DIALOG_CLASS(k)     (G_TYPE_CHECK_CLASS_CAST((k), BRASERO_TYPE_TOOL_DIALOG, BraseroToolDialogClass))
47
 
#define BRASERO_IS_TOOL_DIALOG(o)        (G_TYPE_CHECK_INSTANCE_TYPE ((o), BRASERO_TYPE_TOOL_DIALOG))
48
 
#define BRASERO_IS_TOOL_DIALOG_CLASS(k)  (G_TYPE_CHECK_CLASS_TYPE ((k), BRASERO_TYPE_TOOL_DIALOG))
49
 
#define BRASERO_TOOL_DIALOG_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), BRASERO_TYPE_TOOL_DIALOG, BraseroToolDialogClass))
50
 
 
51
 
typedef struct _BraseroToolDialog BraseroToolDialog;
52
 
typedef struct _BraseroToolDialogPrivate BraseroToolDialogPrivate;
53
 
typedef struct _BraseroToolDialogClass BraseroToolDialogClass;
54
 
 
55
 
struct _BraseroToolDialog {
56
 
        GtkDialog parent;
57
 
        BraseroToolDialogPrivate *priv;
58
 
};
59
 
 
60
 
struct _BraseroToolDialogClass {
61
 
        GtkDialogClass parent_class;
62
 
 
63
 
        gboolean        (*activate)             (BraseroToolDialog *dialog,
64
 
                                                 BraseroMedium *medium);
65
 
        gboolean        (*cancel)               (BraseroToolDialog *dialog);
66
 
        void            (*drive_changed)        (BraseroToolDialog *dialog,
67
 
                                                 BraseroMedium *medium);
68
 
};
69
 
 
70
 
GType brasero_tool_dialog_get_type ();
71
 
 
72
 
gboolean
73
 
brasero_tool_dialog_cancel (BraseroToolDialog *self);
74
 
 
75
 
void
76
 
brasero_tool_dialog_pack_options (BraseroToolDialog *dialog, ...);
77
 
 
78
 
void
79
 
brasero_tool_dialog_set_button (BraseroToolDialog *dialog,
80
 
                                const gchar *text,
81
 
                                const gchar *image,
82
 
                                const gchar *theme);
83
 
void
84
 
brasero_tool_dialog_set_valid (BraseroToolDialog *dialog,
85
 
                               gboolean valid);
86
 
void
87
 
brasero_tool_dialog_set_medium_type_shown (BraseroToolDialog *dialog,
88
 
                                           BraseroMediaType media_type);
89
 
void
90
 
brasero_tool_dialog_set_progress (BraseroToolDialog *dialog,
91
 
                                  gdouble overall_progress,
92
 
                                  gdouble task_progress,
93
 
                                  glong remaining,
94
 
                                  gint size_mb,
95
 
                                  gint written_mb);
96
 
void
97
 
brasero_tool_dialog_set_action (BraseroToolDialog *dialog,
98
 
                                BraseroBurnAction action,
99
 
                                const gchar *string);
100
 
 
101
 
BraseroBurn *
102
 
brasero_tool_dialog_get_burn (BraseroToolDialog *dialog);
103
 
 
104
 
BraseroMedium *
105
 
brasero_tool_dialog_get_medium (BraseroToolDialog *dialog);
106
 
 
107
 
void
108
 
brasero_tool_dialog_set_medium (BraseroToolDialog *dialog,
109
 
                                BraseroMedium *medium);
110
 
 
111
 
G_END_DECLS
112
 
 
113
 
#endif /* BRASERO_TOOL_DIALOG_H */