~nathwill-deactivatedaccount-deactivatedaccount/ubuntu/precise/gnome-control-center/fix-lp-978118

« back to all changes in this revision

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

  • Committer: Package Import Robot
  • Author(s): Ken VanDine, Didier Roche, Ken VanDine
  • Date: 2012-02-09 16:44:44 UTC
  • Revision ID: package-import@ubuntu.com-20120209164444-nvlkg36obi95y6n0
Tags: 1:3.2.2-2ubuntu7
[ Didier Roche ]
* debian/patches/04_new_appearance_settings.patch:
  - fix a typo (LP: #929070)
  - new reveal sensitivity default is now 2.0

[ Ken VanDine ]
* debian/patches/96_sound_nua_panel.patch
  - Adding the new sound-nua panel for sound settings, only displayed 
    in Unity, the old sound panel will load in GNOME

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- */
 
2
/*
 
3
 * Copyright (C) Conor Curran 2011 <conor.curran@canonical.com>
 
4
 * 
 
5
 * This is free software: you can redistribute it and/or modify it
 
6
 * under the terms of the GNU General Public License as published by the
 
7
 * Free Software Foundation, either version 3 of the License, or
 
8
 * (at your option) any later version.
 
9
 * 
 
10
 * gvc-mixer-output.c is distributed in the hope that it will be useful, but
 
11
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 
12
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 
13
 * See the GNU General Public License for more details.
 
14
 * 
 
15
 * You should have received a copy of the GNU General Public License along
 
16
 * with this program.  If not, see <http://www.gnu.org/licenses/>.
 
17
 */
 
18
 
 
19
#ifndef _GVC_MIXER_UI_DEVICE_H_
 
20
#define _GVC_MIXER_UI_DEVICE_H_
 
21
 
 
22
#include <glib-object.h>
 
23
 
 
24
 
 
25
G_BEGIN_DECLS
 
26
 
 
27
#define GVC_TYPE_MIXER_UI_DEVICE             (gvc_mixer_ui_device_get_type ())
 
28
#define GVC_MIXER_UI_DEVICE(obj)             (G_TYPE_CHECK_INSTANCE_CAST ((obj), GVC_TYPE_MIXER_UI_DEVICE, GvcMixerUIDevice))
 
29
#define GVC_MIXER_UI_DEVICE_CLASS(klass)     (G_TYPE_CHECK_CLASS_CAST ((klass), GVC_TYPE_MIXER_UI_DEVICE, GvcMixerUIDeviceClass))
 
30
#define GVC_IS_MIXER_UI_DEVICE(obj)          (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GVC_TYPE_MIXER_UI_DEVICE))
 
31
#define GVC_IS_MIXER_UI_DEVICE_CLASS(klass)  (G_TYPE_CHECK_CLASS_TYPE ((klass), GVC_TYPE_MIXER_UI_DEVICE))
 
32
#define GVC_MIXER_UI_DEVICE_GET_CLASS(obj)   (G_TYPE_INSTANCE_GET_CLASS ((obj), GVC_TYPE_MIXER_UI_DEVICE, GvcMixerUIDeviceClass))
 
33
#define GVC_MIXER_UI_DEVICE_INVALID          -1
 
34
 
 
35
typedef struct GvcMixerUIDevicePrivate GvcMixerUIDevicePrivate;
 
36
 
 
37
typedef struct
 
38
{
 
39
        GObjectClass parent_class;
 
40
}GvcMixerUIDeviceClass;
 
41
 
 
42
typedef struct
 
43
{
 
44
        GObject parent_instance;
 
45
        GvcMixerUIDevicePrivate *priv;  
 
46
}GvcMixerUIDevice;
 
47
 
 
48
typedef enum
 
49
{
 
50
        UiDeviceInput,
 
51
        UiDeviceOutput, 
 
52
}UiDeviceDirection;
 
53
 
 
54
GType gvc_mixer_ui_device_get_type (void) G_GNUC_CONST;
 
55
 
 
56
guint                           gvc_mixer_ui_device_get_id                              (GvcMixerUIDevice *dev);
 
57
gint                            gvc_mixer_ui_device_get_stream_id                       (GvcMixerUIDevice *dev);
 
58
const gchar*                    gvc_mixer_ui_device_get_description                     (GvcMixerUIDevice *dev);
 
59
const gchar*                    gvc_mixer_ui_device_get_origin                                          (GvcMixerUIDevice *dev);
 
60
const gchar*                    gvc_mixer_ui_device_get_port                                            (GvcMixerUIDevice *dev);
 
61
const gchar*                    gvc_mixer_ui_device_get_user_preferred_profile          (GvcMixerUIDevice *dev);
 
62
const gchar*                    gvc_mixer_ui_device_get_top_priority_profile            (GvcMixerUIDevice *dev);
 
63
GList*                                  gvc_mixer_ui_device_get_profiles                                        (GvcMixerUIDevice *dev);
 
64
GList*                                  gvc_mixer_ui_device_get_supported_profiles                      (GvcMixerUIDevice *device);
 
65
gboolean                        gvc_mixer_ui_device_determine_profile_sensitivity       (GvcMixerUIDevice *device);
 
66
void                                    gvc_mixer_ui_device_set_profiles                                        (GvcMixerUIDevice *device, const GList *profiles);
 
67
void                                    gvc_mixer_ui_device_set_user_preferred_profile          (GvcMixerUIDevice *device, const gchar *profile);
 
68
void                                    gvc_mixer_ui_device_invalidate_stream                           (GvcMixerUIDevice *dev);
 
69
gboolean                                gvc_mixer_ui_device_is_software_stream                          (GvcMixerUIDevice *dev);
 
70
 
 
71
 
 
72
G_END_DECLS
 
73
 
 
74
#endif /* _GVC_MIXER_UI_DEVICE_H_ */