~ubuntu-branches/ubuntu/saucy/gnome-settings-daemon/saucy-proposed

« back to all changes in this revision

Viewing changes to plugins/media-keys/gvc/gvc-mixer-control.h

  • Committer: Package Import Robot
  • Author(s): Jeremy Bicha, Tim Lunn, Jeremy Bicha, Rico Tzschichholz
  • Date: 2013-09-09 10:21:09 UTC
  • mfrom: (1.1.64)
  • Revision ID: package-import@ubuntu.com-20130909102109-t2zyyll79urcfz56
Tags: 3.8.5-0ubuntu1
[ Tim Lunn ]
* Refreshed patches
* debian/patches: 
  - fix_media_keys_on_unity.patch:
    Use legacy media keys keygrabber when running Unity
  - git_revert_remove_automount_helper.patch: bring back the automount
    helper, revert upstream commit and port to dbus session tracking.
  - fix_screenshots_on_unity.patch: bring back support for screenshots
    via gnome-screenshot when using unity.
  - ubuntu-lid-close-suspend.patch:
     Reimplement support for setting lid close suspend actions
  - ubuntu-fix-desktop-file.patch: Autostart in Unity too
  - fix_input_switching_on_unity.patch: Bring back support for input
    switching under Unity
  - 63_gnome_disable_background_plugin.patch: Disable loading
    of background plugin for GNOME session (LP: #1219148)

* Dropped obsolete patches:
  - power-check-null-devices.patch, Dropped: Applied in new version
  - 51_lock_screen_on_suspend.patch, Superseded by handling this key
    in gnome-screensaver. With that, g-screensaver mirrors what's
    done in g-shell, and avoids patching settings-daemon.
* gnome-settings-daemon.gsettings-override:
  - Update switch input source keys for 3.8

[ Jeremy Bicha ]
* New upstream release (LP: #1219486)
  - Two-finger scrolling enabled by default (LP: #1217166)
  - But use edge scrolling if two-finger scrolling isn't
    available (LP: #1221367)
  - Fix Super+Space switch-input-source shortcut in Unity (LP: #1201679)
* debian/control.in:
  - Bump minimum glib, gsettings-desktop-schemas, gnome-desktop3, gtk,
    libpulse, and libwacom
  - Build-depend on librsvg2-dev
  - This update needs changes to gnome-control-center so break older
    versions
* Refreshed patches
* revert_background_dropping.patch:
  - Don't drop the background plugin yet, GNOME Fallback & Unity
    still need it (when Nautilus isn't handling the desktop)
* Dropped obsolete patches:
  - bugzilla_segfault_dpms.patch: Applied in new version
  - 47_delay_pa_connect_to_idle.patch: Applied in new version
  - power-no-fallback-notifications.patch: Applied in new version
  - 60_unity_hide_status_icon.patch
  - 61_unity_use_application_indicator.patch
  - 63_unity_start_mounter.patch
  - logind_support.patch
  - and patches backported from 3.8
* Disabled patch that need to be rewritten or dropped:
  - 48_register_client_before_idle_callbacks.patch
* debian/patches/touchscreen_rotation.patch:
  - Updated with latest version from bugzilla
* debian/patches/git_revert_hardcoded_input_methods.patch:
  - Add patch from git (and also applied in Fedora 19) to not hardcode
    input methods based on the current locale

[ Rico Tzschichholz ]
* debian/patches:
  - 16_use_synchronous_notifications.patch: Refreshed

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_CONTROL_H
 
22
#define __GVC_MIXER_CONTROL_H
 
23
 
 
24
#include <glib-object.h>
 
25
#include "gvc-mixer-stream.h"
 
26
#include "gvc-mixer-card.h"
 
27
#include "gvc-mixer-ui-device.h"
 
28
 
 
29
G_BEGIN_DECLS
 
30
 
 
31
typedef enum
 
32
{
 
33
        GVC_STATE_CLOSED,
 
34
        GVC_STATE_READY,
 
35
        GVC_STATE_CONNECTING,
 
36
        GVC_STATE_FAILED
 
37
} GvcMixerControlState;
 
38
 
 
39
#define GVC_TYPE_MIXER_CONTROL         (gvc_mixer_control_get_type ())
 
40
#define GVC_MIXER_CONTROL(o)           (G_TYPE_CHECK_INSTANCE_CAST ((o), GVC_TYPE_MIXER_CONTROL, GvcMixerControl))
 
41
#define GVC_MIXER_CONTROL_CLASS(k)     (G_TYPE_CHECK_CLASS_CAST((k), GVC_TYPE_MIXER_CONTROL, GvcMixerControlClass))
 
42
#define GVC_IS_MIXER_CONTROL(o)        (G_TYPE_CHECK_INSTANCE_TYPE ((o), GVC_TYPE_MIXER_CONTROL))
 
43
#define GVC_IS_MIXER_CONTROL_CLASS(k)  (G_TYPE_CHECK_CLASS_TYPE ((k), GVC_TYPE_MIXER_CONTROL))
 
44
#define GVC_MIXER_CONTROL_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GVC_TYPE_MIXER_CONTROL, GvcMixerControlClass))
 
45
 
 
46
typedef struct GvcMixerControlPrivate GvcMixerControlPrivate;
 
47
 
 
48
typedef struct
 
49
{
 
50
        GObject                 parent;
 
51
        GvcMixerControlPrivate *priv;
 
52
} GvcMixerControl;
 
53
 
 
54
typedef struct
 
55
{
 
56
        GObjectClass            parent_class;
 
57
 
 
58
        void (*state_changed)          (GvcMixerControl      *control,
 
59
                                        GvcMixerControlState  new_state);
 
60
        void (*stream_added)           (GvcMixerControl *control,
 
61
                                        guint            id);
 
62
        void (*stream_removed)         (GvcMixerControl *control,
 
63
                                        guint            id);
 
64
        void (*card_added)             (GvcMixerControl *control,
 
65
                                        guint            id);
 
66
        void (*card_removed)           (GvcMixerControl *control,
 
67
                                        guint            id);
 
68
        void (*default_sink_changed)   (GvcMixerControl *control,
 
69
                                        guint            id);
 
70
        void (*default_source_changed) (GvcMixerControl *control,
 
71
                                        guint            id);
 
72
        void (*active_output_update)   (GvcMixerControl *control,
 
73
                                        guint            id);
 
74
        void (*active_input_update)    (GvcMixerControl *control,
 
75
                                        guint            id);
 
76
        void (*output_added)           (GvcMixerControl *control,
 
77
                                        guint            id);
 
78
        void (*input_added)            (GvcMixerControl *control,
 
79
                                        guint            id);
 
80
        void (*output_removed)         (GvcMixerControl *control,
 
81
                                        guint            id);
 
82
        void (*input_removed)          (GvcMixerControl *control,
 
83
                                        guint            id);
 
84
} GvcMixerControlClass;
 
85
 
 
86
GType               gvc_mixer_control_get_type            (void);
 
87
 
 
88
GvcMixerControl *   gvc_mixer_control_new                 (const char *name);
 
89
 
 
90
gboolean            gvc_mixer_control_open                (GvcMixerControl *control);
 
91
gboolean            gvc_mixer_control_close               (GvcMixerControl *control);
 
92
 
 
93
GSList *            gvc_mixer_control_get_cards           (GvcMixerControl *control);
 
94
GSList *            gvc_mixer_control_get_streams         (GvcMixerControl *control);
 
95
GSList *            gvc_mixer_control_get_sinks           (GvcMixerControl *control);
 
96
GSList *            gvc_mixer_control_get_sources         (GvcMixerControl *control);
 
97
GSList *            gvc_mixer_control_get_sink_inputs     (GvcMixerControl *control);
 
98
GSList *            gvc_mixer_control_get_source_outputs  (GvcMixerControl *control);
 
99
 
 
100
GvcMixerStream *        gvc_mixer_control_lookup_stream_id          (GvcMixerControl *control,
 
101
                                                                     guint            id);
 
102
GvcMixerCard   *        gvc_mixer_control_lookup_card_id            (GvcMixerControl *control,
 
103
                                                                     guint            id);
 
104
GvcMixerUIDevice *      gvc_mixer_control_lookup_output_id          (GvcMixerControl *control,
 
105
                                                                     guint            id);
 
106
GvcMixerUIDevice *      gvc_mixer_control_lookup_input_id           (GvcMixerControl *control,
 
107
                                                                     guint            id);
 
108
GvcMixerUIDevice *      gvc_mixer_control_lookup_device_from_stream (GvcMixerControl *control,
 
109
                                                                     GvcMixerStream *stream);
 
110
 
 
111
GvcMixerStream *        gvc_mixer_control_get_default_sink     (GvcMixerControl *control);
 
112
GvcMixerStream *        gvc_mixer_control_get_default_source   (GvcMixerControl *control);
 
113
GvcMixerStream *        gvc_mixer_control_get_event_sink_input (GvcMixerControl *control);
 
114
 
 
115
gboolean                gvc_mixer_control_set_default_sink     (GvcMixerControl *control,
 
116
                                                                GvcMixerStream  *stream);
 
117
gboolean                gvc_mixer_control_set_default_source   (GvcMixerControl *control,
 
118
                                                                GvcMixerStream  *stream);
 
119
 
 
120
gdouble                 gvc_mixer_control_get_vol_max_norm                  (GvcMixerControl *control);
 
121
gdouble                 gvc_mixer_control_get_vol_max_amplified             (GvcMixerControl *control);
 
122
void                    gvc_mixer_control_change_output                     (GvcMixerControl *control,
 
123
                                                                             GvcMixerUIDevice* output);
 
124
void                    gvc_mixer_control_change_input                      (GvcMixerControl *control,
 
125
                                                                             GvcMixerUIDevice* input);
 
126
GvcMixerStream*         gvc_mixer_control_get_stream_from_device            (GvcMixerControl *control,
 
127
                                                                             GvcMixerUIDevice *device);
 
128
gboolean                gvc_mixer_control_change_profile_on_selected_device (GvcMixerControl *control,
 
129
                                                                             GvcMixerUIDevice *device,
 
130
                                                                             const gchar* profile);
 
131
 
 
132
GvcMixerControlState gvc_mixer_control_get_state            (GvcMixerControl *control);
 
133
 
 
134
G_END_DECLS
 
135
 
 
136
#endif /* __GVC_MIXER_CONTROL_H */