1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
|
/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
/*
* Brasero
* Copyright (C) Philippe Rouquier 2005-2009 <bonfire-app@wanadoo.fr>
*
* Brasero is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* brasero is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with brasero. If not, write to:
* The Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor
* Boston, MA 02110-1301, USA.
*/
#ifndef _BRASERO_APP_H_
#define _BRASERO_APP_H_
#include <glib-object.h>
#include <gtk/gtk.h>
#include "brasero-session-cfg.h"
G_BEGIN_DECLS
#define BRASERO_TYPE_APP (brasero_app_get_type ())
#define BRASERO_APP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BRASERO_TYPE_APP, BraseroApp))
#define BRASERO_APP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BRASERO_TYPE_APP, BraseroAppClass))
#define BRASERO_IS_APP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BRASERO_TYPE_APP))
#define BRASERO_IS_APP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BRASERO_TYPE_APP))
#define BRASERO_APP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BRASERO_TYPE_APP, BraseroAppClass))
typedef struct _BraseroAppClass BraseroAppClass;
typedef struct _BraseroApp BraseroApp;
struct _BraseroAppClass
{
GtkWindowClass parent_class;
};
struct _BraseroApp
{
GtkWindow parent_instance;
};
GType brasero_app_get_type (void) G_GNUC_CONST;
BraseroApp *
brasero_app_new (void);
BraseroApp *
brasero_app_get_default (void);
void
brasero_app_set_parent (BraseroApp *app,
guint xid);
void
brasero_app_set_toplevel (BraseroApp *app, GtkWindow *window);
void
brasero_app_create_mainwin (BraseroApp *app);
gboolean
brasero_app_run_mainwin (BraseroApp *app);
gboolean
brasero_app_is_running (BraseroApp *app);
GtkWidget *
brasero_app_dialog (BraseroApp *app,
const gchar *primary_message,
GtkButtonsType button_type,
GtkMessageType msg_type);
void
brasero_app_alert (BraseroApp *app,
const gchar *primary_message,
const gchar *secondary_message,
GtkMessageType type);
gboolean
brasero_app_burn (BraseroApp *app,
BraseroBurnSession *session);
gboolean
brasero_app_burn_options (BraseroApp *app,
BraseroSessionCfg *session);
void
brasero_app_burn_image (BraseroApp *app,
const gchar *uri);
void
brasero_app_copy_disc (BraseroApp *app,
const gchar *device,
const gchar *cover);
void
brasero_app_blank (BraseroApp *app,
const gchar *device);
void
brasero_app_check (BraseroApp *app,
const gchar *device);
GtkWidget *
brasero_app_get_statusbar1 (BraseroApp *app);
GtkWidget *
brasero_app_get_statusbar2 (BraseroApp *app);
GtkUIManager *
brasero_app_get_ui_manager (BraseroApp *app);
GtkWidget *
brasero_app_get_project_manager (BraseroApp *app);
/**
* Session management
*/
#define BRASERO_SESSION_TMP_PROJECT_PATH "brasero-tmp-project"
const gchar *
brasero_app_get_saved_contents (BraseroApp *app);
gboolean
brasero_app_save_contents (BraseroApp *app,
gboolean cancellable);
void
brasero_app_save_window_state (BraseroApp *app);
G_END_DECLS
#endif /* _BRASERO_APP_H_ */
|