~ubuntu-branches/ubuntu/saucy/gnome-control-center/saucy-proposed

« back to all changes in this revision

Viewing changes to panels/sound-nua/gvc-mixer-stream.h

  • Committer: Package Import Robot
  • Author(s): Sebastien Bacher, Sebastien Bacher, Robert Ancell, Iain Lane, Edward Donovan, Rico Tzschichholz, Jeremy Bicha, David Henningsson
  • Date: 2012-11-21 19:32:45 UTC
  • mfrom: (1.1.63)
  • Revision ID: package-import@ubuntu.com-20121121193245-mj61nzz1z4fk3z25
Tags: 1:3.6.3-0ubuntu1
[ Sebastien Bacher ]
* New upstream version
* debian/control.in: recommends libcanberra-pulse (lp: #1004973)
* debian/patches/58_ubuntu_icon_views_redesign.patch:
  - drop most of the changes, keep the different grid size though
    to fit on screen with our extra icons
* debian/patches/91_dont_show_in_unity.patch:
  - dropped, show the upstream printer panel and the layout tab
* debian/patches/revert_git_keyboard_gsettings.patch,
  debian/patches/revert_git_stop_using_gconf.patch:
  - dropped the gconf->gsettings reverts

[ Robert Ancell ]
* New upstream release (LP: #1010317)
* debian/control:
  - Bump build-depends on libgnome-desktop-3-dev, libwacom-dev
  - Add build-depends on libclutter-1.0-dev, libclutter-gtk-1.0-dev,
    libpwquality-dev
  - Drop build-depends on libgnomekbd-dev
* debian/patches/60_ubuntu_nav_bar.patch:
  - Disabled for now, doesn't apply
* debian/patches/revert_ua_gsettings.patch:
  - We can use GSettings for universal access now
* debian/patches/00git_online_accounts_gtkgrid.patch:
* debian/patches/00git_online_accounts_layout.part:
* debian/patches/git_wacom_translations.patch:
  - Applied upstream

[ Iain Lane ]
* Add Build-Depends on libxkbfile-dev
* New upstream release.
* Refresh all patches to apply cleanly.

[ Edward Donovan ]
* debian/source_gnome-control-center.py: Fix for Python 3. (LP: #1013171)

[ Rico Tzschichholz ]
* debian/control.in:
  - Build-depend on gtk-doc-tools instead of docbook directly
  - Bump minimum glib-2.0, gnome-desktop3, gnome-settings-daemon
     and gsettings-desktop-schemas

[ Jeremy Bicha ]
* Dropped more patches applied in new version:
  - git_unmute_sound_event.patch
  - git_fix_big_editable_labels.patch
  - 96_sound_nua_panel.patch
* debian/patches/04_new_appearance_settings.patch:
  - Dropped, this is now packaged separately as gnome-control-center-unity
* debian/patches/10_keyboard_layout_on_unity.patch:
  - Don't change the keyboard panel name when not running Unity
* debian/patches/52_ubuntu_language_list_mods.patch:
  - Don't disable adding current language to the list. While this
    fix shows the current language twice, at least it avoids the
    "Ubuntu suddenly in Chinese" bug (LP: #1035219)
* debian/patches/53_use_ubuntu_help.patch:
  - Only show Ubuntu help when running Unity
* debian/patches/58_hide_gdm_notifications.patch:
  - Hide "Show notifications when locked" settings when running Unity
    since it's a GNOME Shell-specific feature
* debian/patches/63_normal_scrollbar_in_a11y.patch:
  - Drop, overlay-scrollbars should handle this instead
* debian/patches/91_dont_show_in_unity.patch:
  - Hide Printers & Region panels in Unity until we're ready to switch
    to them.
* debian/patches/fix-crash-on-user-panel.patch:
  - Dropped, GNOME says it's obsolete
* debian/rules:
  - Build with -z,defs again
  - Explicitly disable ibus support since ibus 1.4 isn't supported in
    this version
* debian/control.in:
  - Drop ubuntu-docs and gnome-user-guide from recommends to suggests
  - Don't recommend indicators; let's leave that to Unity

[ David Henningsson ]
* sound_nua_panel.patch: Rebase to gnome 3.6 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*-
2
 
 *
3
 
 * Copyright (C) 2008 Red Hat, Inc.
4
 
 *
5
 
 * This program is free software; you can redistribute it and/or modify
6
 
 * it under the terms of the GNU General Public License as published by
7
 
 * the Free Software Foundation; either version 2 of the License, or
8
 
 * (at your option) any later version.
9
 
 *
10
 
 * This program is distributed in the hope that it will be useful,
11
 
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
 
 * GNU General Public License for more details.
14
 
 *
15
 
 * You should have received a copy of the GNU General Public License
16
 
 * along with this program; if not, write to the Free Software
17
 
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18
 
 *
19
 
 */
20
 
 
21
 
#ifndef __GVC_MIXER_STREAM_H
22
 
#define __GVC_MIXER_STREAM_H
23
 
 
24
 
#include <glib-object.h>
25
 
#include "gvc-pulseaudio-fake.h"
26
 
#include "gvc-channel-map.h"
27
 
#include <gio/gio.h>
28
 
 
29
 
G_BEGIN_DECLS
30
 
 
31
 
#define GVC_TYPE_MIXER_STREAM         (gvc_mixer_stream_get_type ())
32
 
#define GVC_MIXER_STREAM(o)           (G_TYPE_CHECK_INSTANCE_CAST ((o), GVC_TYPE_MIXER_STREAM, GvcMixerStream))
33
 
#define GVC_MIXER_STREAM_CLASS(k)     (G_TYPE_CHECK_CLASS_CAST((k), GVC_TYPE_MIXER_STREAM, GvcMixerStreamClass))
34
 
#define GVC_IS_MIXER_STREAM(o)        (G_TYPE_CHECK_INSTANCE_TYPE ((o), GVC_TYPE_MIXER_STREAM))
35
 
#define GVC_IS_MIXER_STREAM_CLASS(k)  (G_TYPE_CHECK_CLASS_TYPE ((k), GVC_TYPE_MIXER_STREAM))
36
 
#define GVC_MIXER_STREAM_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GVC_TYPE_MIXER_STREAM, GvcMixerStreamClass))
37
 
 
38
 
typedef struct GvcMixerStreamPrivate GvcMixerStreamPrivate;
39
 
 
40
 
typedef struct
41
 
{
42
 
        GObject                parent;
43
 
        GvcMixerStreamPrivate *priv;
44
 
} GvcMixerStream;
45
 
 
46
 
typedef struct
47
 
{
48
 
        GObjectClass           parent_class;
49
 
 
50
 
        /* vtable */
51
 
        gboolean (*push_volume)     (GvcMixerStream *stream,
52
 
                                     gpointer *operation);
53
 
        gboolean (*change_is_muted) (GvcMixerStream *stream,
54
 
                                     gboolean        is_muted);
55
 
        gboolean (*change_port)     (GvcMixerStream *stream,
56
 
                                     const char     *port);
57
 
} GvcMixerStreamClass;
58
 
 
59
 
typedef struct
60
 
{
61
 
        char *port;
62
 
        char *human_port;
63
 
        guint priority;
64
 
        gboolean available;        
65
 
} GvcMixerStreamPort;
66
 
 
67
 
GType               gvc_mixer_stream_get_type        (void);
68
 
 
69
 
guint               gvc_mixer_stream_get_index       (GvcMixerStream *stream);
70
 
guint               gvc_mixer_stream_get_id          (GvcMixerStream *stream);
71
 
const GvcChannelMap *gvc_mixer_stream_get_channel_map(GvcMixerStream *stream);
72
 
const GvcMixerStreamPort *gvc_mixer_stream_get_port  (GvcMixerStream *stream);
73
 
const GList *       gvc_mixer_stream_get_ports       (GvcMixerStream *stream);
74
 
gboolean            gvc_mixer_stream_change_port     (GvcMixerStream *stream,
75
 
                                                      const char     *port);
76
 
 
77
 
pa_volume_t         gvc_mixer_stream_get_volume      (GvcMixerStream *stream);
78
 
gdouble             gvc_mixer_stream_get_decibel     (GvcMixerStream *stream);
79
 
gboolean            gvc_mixer_stream_push_volume     (GvcMixerStream *stream);
80
 
pa_volume_t         gvc_mixer_stream_get_base_volume (GvcMixerStream *stream);
81
 
 
82
 
gboolean            gvc_mixer_stream_get_is_muted    (GvcMixerStream *stream);
83
 
gboolean            gvc_mixer_stream_get_can_decibel (GvcMixerStream *stream);
84
 
gboolean            gvc_mixer_stream_change_is_muted (GvcMixerStream *stream,
85
 
                                                      gboolean        is_muted);
86
 
gboolean            gvc_mixer_stream_is_running      (GvcMixerStream *stream);
87
 
const char *        gvc_mixer_stream_get_name        (GvcMixerStream *stream);
88
 
const char *        gvc_mixer_stream_get_icon_name   (GvcMixerStream *stream);
89
 
GIcon *             gvc_mixer_stream_get_gicon       (GvcMixerStream *stream);
90
 
const char *        gvc_mixer_stream_get_description (GvcMixerStream *stream);
91
 
const char *        gvc_mixer_stream_get_application_id (GvcMixerStream *stream);
92
 
gboolean            gvc_mixer_stream_is_event_stream (GvcMixerStream *stream);
93
 
gboolean            gvc_mixer_stream_is_virtual      (GvcMixerStream *stream);
94
 
gint                gvc_mixer_stream_get_card_index  (GvcMixerStream *stream);
95
 
 
96
 
/* private */
97
 
gboolean            gvc_mixer_stream_set_volume      (GvcMixerStream *stream,
98
 
                                                      pa_volume_t     volume);
99
 
gboolean            gvc_mixer_stream_set_decibel     (GvcMixerStream *stream,
100
 
                                                      gdouble         db);
101
 
gboolean            gvc_mixer_stream_set_is_muted    (GvcMixerStream *stream,
102
 
                                                      gboolean        is_muted);
103
 
gboolean            gvc_mixer_stream_set_can_decibel (GvcMixerStream *stream,
104
 
                                                      gboolean        can_decibel);
105
 
gboolean            gvc_mixer_stream_set_name        (GvcMixerStream *stream,
106
 
                                                      const char     *name);
107
 
gboolean            gvc_mixer_stream_set_description (GvcMixerStream *stream,
108
 
                                                      const char     *description);
109
 
gboolean            gvc_mixer_stream_set_icon_name   (GvcMixerStream *stream,
110
 
                                                      const char     *name);
111
 
gboolean            gvc_mixer_stream_set_is_event_stream (GvcMixerStream *stream,
112
 
                                                          gboolean is_event_stream);
113
 
gboolean            gvc_mixer_stream_set_is_virtual  (GvcMixerStream *stream,
114
 
                                                      gboolean is_event_stream);
115
 
gboolean            gvc_mixer_stream_set_application_id (GvcMixerStream *stream,
116
 
                                                         const char *application_id);
117
 
gboolean            gvc_mixer_stream_set_base_volume (GvcMixerStream *stream,
118
 
                                                      pa_volume_t     base_volume);
119
 
gboolean            gvc_mixer_stream_set_port        (GvcMixerStream *stream,
120
 
                                                      const char     *port);
121
 
gboolean            gvc_mixer_stream_set_ports       (GvcMixerStream *stream,
122
 
                                                      GList          *ports);
123
 
gboolean            gvc_mixer_stream_set_card_index  (GvcMixerStream *stream,
124
 
                                                      gint            card_index);
125
 
 
126
 
G_END_DECLS
127
 
 
128
 
#endif /* __GVC_MIXER_STREAM_H */