~mfisch/brasero/update-to-3.8.0

« back to all changes in this revision

Viewing changes to libbrasero-burn/brasero-app-indicator.h

  • Committer: Bazaar Package Importer
  • Author(s): Robert Ancell
  • Date: 2010-07-09 17:19:09 UTC
  • mfrom: (1.2.10 sid)
  • Revision ID: james.westby@ubuntu.com-20100709171909-3s0wu8h2cdvjrya7
Tags: 2.30.2-1ubuntu1
* Merge with Debian unstable, remaining Ubuntu changes:
* debian/control.in:
  - Use dh-autoreconf to launch autoreconf on build
  - Set build-depend version on libgconf2-dev
  - Build-depend on libappindicator-dev
  - Build-depend on liblaunchpad-integration-dev
  - Add Vcs-Bzr info
  - libbrasero-media0 suggests instead of recommends gstreamer0.10-plugins-ugly
    and cdrdao
  - libbrasero-media0 suggests gstreamer0.10-fluendo-mp3
  - Bump libbrasero-media-dev depends for libglib2.0-dev and libgtk2.0-dev
  - libbrasero-media0 replaces brasero (plugins moved from this package)
* debian/rules:
  - Run autoconf on build
* debian/patches/010_lpi.patch:
  - Add launchpad-integration
* debian/patches/012_appindicator.patch:
  - Support application indicator
* debian/patches/90_relibtoolize.patch:
  - Not required, running autotools on build
* debian/watch:
  - Watch for unstable versions

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
 
2
/*
 
3
 * Libbrasero-burn
 
4
 * Copyright (C) Canonical 2010
 
5
 *
 
6
 * Libbrasero-burn 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
 * The Libbrasero-burn authors hereby grant permission for non-GPL compatible
 
12
 * GStreamer plugins to be used and distributed together with GStreamer
 
13
 * and Libbrasero-burn. This permission is above and beyond the permissions granted
 
14
 * by the GPL license by which Libbrasero-burn is covered. If you modify this code
 
15
 * you may extend this exception to your version of the code, but you are not
 
16
 * obligated to do so. If you do not wish to do so, delete this exception
 
17
 * statement from your version.
 
18
 * 
 
19
 * Libbrasero-burn is distributed in the hope that it will be useful,
 
20
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
21
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
22
 * GNU Library General Public License for more details.
 
23
 * 
 
24
 * You should have received a copy of the GNU General Public License
 
25
 * along with this program; if not, write to:
 
26
 *      The Free Software Foundation, Inc.,
 
27
 *      51 Franklin Street, Fifth Floor
 
28
 *      Boston, MA  02110-1301, USA.
 
29
 */
 
30
 
 
31
#ifndef APP_INDICATOR_H
 
32
#define APP_INDICATOR_H
 
33
 
 
34
#include <glib.h>
 
35
#include <glib-object.h>
 
36
 
 
37
#include <gtk/gtk.h>
 
38
 
 
39
#include "burn-basics.h"
 
40
 
 
41
G_BEGIN_DECLS
 
42
 
 
43
#define BRASERO_TYPE_APPINDICATOR         (brasero_app_indicator_get_type ())
 
44
#define BRASERO_APPINDICATOR(o)           (G_TYPE_CHECK_INSTANCE_CAST ((o), BRASERO_TYPE_APPINDICATOR, BraseroAppIndicator))
 
45
#define BRASERO_APPINDICATOR_CLASS(k)     (G_TYPE_CHECK_CLASS_CAST((k), BRASERO_TYPE_APPINDICATOR, BraseroAppIndicatorClass))
 
46
#define BRASERO_IS_APPINDICATOR(o)        (G_TYPE_CHECK_INSTANCE_TYPE ((o), BRASERO_TYPE_APPINDICATOR))
 
47
#define BRASERO_IS_APPINDICATOR_CLASS(k)  (G_TYPE_CHECK_CLASS_TYPE ((k), BRASERO_TYPE_APPINDICATOR))
 
48
#define BRASERO_APPINDICATOR_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), BRASERO_TYPE_APPINDICATOR, BraseroAppIndicatorClass))
 
49
 
 
50
typedef struct BraseroAppIndicatorPrivate BraseroAppIndicatorPrivate;
 
51
 
 
52
typedef struct {
 
53
        GObject parent;
 
54
        BraseroAppIndicatorPrivate *priv;
 
55
} BraseroAppIndicator;
 
56
 
 
57
typedef struct {
 
58
        GObjectClass parent_class;
 
59
 
 
60
        void            (*show_dialog)          (BraseroAppIndicator *indicator, gboolean show);
 
61
        void            (*close_after)          (BraseroAppIndicator *indicator, gboolean close);
 
62
        void            (*cancel)               (BraseroAppIndicator *indicator);
 
63
 
 
64
} BraseroAppIndicatorClass;
 
65
 
 
66
GType brasero_app_indicator_get_type (void);
 
67
BraseroAppIndicator *brasero_app_indicator_new (void);
 
68
 
 
69
void
 
70
brasero_app_indicator_set_progress (BraseroAppIndicator *indicator,
 
71
                                    gdouble fraction,
 
72
                                    long remaining);
 
73
 
 
74
void
 
75
brasero_app_indicator_set_action (BraseroAppIndicator *indicator,
 
76
                                  BraseroBurnAction action,
 
77
                                  const gchar *string);
 
78
 
 
79
void
 
80
brasero_app_indicator_set_show_dialog (BraseroAppIndicator *indicator,
 
81
                                       gboolean show);
 
82
 
 
83
void
 
84
brasero_app_indicator_hide (BraseroAppIndicator *indicator);
 
85
 
 
86
G_END_DECLS
 
87
 
 
88
#endif /* APP_INDICATOR_H */