~charlesk/gnome-control-center/make-new-panel

« back to all changes in this revision

Viewing changes to panels/sound/gvc-mixer-card.h

  • Committer: Bazaar Package Importer
  • Author(s): Rodrigo Moya
  • Date: 2011-05-17 10:47:27 UTC
  • mfrom: (0.1.11 experimental) (1.1.45 upstream)
  • Revision ID: james.westby@ubuntu.com-20110517104727-lqel6m8vhfw5jby1
Tags: 1:3.0.1.1-1ubuntu1
* Rebase on Debian, remaining Ubuntu changes:
* debian/control:
  - Build-Depend on hardening-wrapper, dpkg-dev and dh-autoreconf
  - Add dependency on ubuntu-system-service
  - Remove dependency on gnome-icon-theme-symbolic
  - Move dependency on apg, gnome-icon-theme-symbolic and accountsservice to
    be a Recommends: until we get them in main
* debian/rules:
  - Use autoreconf
  - Add binary-post-install rule for gnome-control-center-data
  - Run dh-autoreconf
* debian/gnome-control-center.dirs:
* debian/gnome-control-center.links:
  - Add a link to the control center shell for indicators
* debian/patches/00_disable-nm.patch:
  - Temporary patch to disable building with NetworkManager until we get
    the new one in the archive
* debian/patches/01_git_remove_gettext_calls.patch:
  - Remove calls to AM_GNU_GETTEXT, IT_PROG_INTLTOOL should be enough
* debian/patches/01_git_kill_warning.patch:
  - Kill warning
* debian/patches/50_ubuntu_systemwide_prefs.patch:
  - Ubuntu specific proxy preferences
* debian/patches/51_ubuntu_system_keyboard.patch:
  - Implement the global keyboard spec at https://wiki.ubuntu.com/DefaultKeyboardSettings

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-2009 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_CARD_H
 
22
#define __GVC_MIXER_CARD_H
 
23
 
 
24
#include <glib-object.h>
 
25
 
 
26
G_BEGIN_DECLS
 
27
 
 
28
#define GVC_TYPE_MIXER_CARD         (gvc_mixer_card_get_type ())
 
29
#define GVC_MIXER_CARD(o)           (G_TYPE_CHECK_INSTANCE_CAST ((o), GVC_TYPE_MIXER_CARD, GvcMixerCard))
 
30
#define GVC_MIXER_CARD_CLASS(k)     (G_TYPE_CHECK_CLASS_CAST((k), GVC_TYPE_MIXER_CARD, GvcMixerCardClass))
 
31
#define GVC_IS_MIXER_CARD(o)        (G_TYPE_CHECK_INSTANCE_TYPE ((o), GVC_TYPE_MIXER_CARD))
 
32
#define GVC_IS_MIXER_CARD_CLASS(k)  (G_TYPE_CHECK_CLASS_TYPE ((k), GVC_TYPE_MIXER_CARD))
 
33
#define GVC_MIXER_CARD_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GVC_TYPE_MIXER_CARD, GvcMixerCardClass))
 
34
 
 
35
typedef struct GvcMixerCardPrivate GvcMixerCardPrivate;
 
36
 
 
37
typedef struct
 
38
{
 
39
        GObject                parent;
 
40
        GvcMixerCardPrivate   *priv;
 
41
} GvcMixerCard;
 
42
 
 
43
typedef struct
 
44
{
 
45
        GObjectClass           parent_class;
 
46
 
 
47
        /* vtable */
 
48
} GvcMixerCardClass;
 
49
 
 
50
typedef struct
 
51
{
 
52
        char *profile;
 
53
        char *human_profile;
 
54
        char *status;
 
55
        guint priority;
 
56
        guint n_sinks, n_sources;
 
57
} GvcMixerCardProfile;
 
58
 
 
59
GType                 gvc_mixer_card_get_type          (void);
 
60
 
 
61
guint                 gvc_mixer_card_get_id            (GvcMixerCard *card);
 
62
guint                 gvc_mixer_card_get_index         (GvcMixerCard *card);
 
63
const char *          gvc_mixer_card_get_name          (GvcMixerCard *card);
 
64
const char *          gvc_mixer_card_get_icon_name     (GvcMixerCard *card);
 
65
GvcMixerCardProfile * gvc_mixer_card_get_profile       (GvcMixerCard *card);
 
66
const GList *         gvc_mixer_card_get_profiles      (GvcMixerCard *card);
 
67
 
 
68
gboolean              gvc_mixer_card_change_profile    (GvcMixerCard *card,
 
69
                                                        const char *profile);
 
70
 
 
71
/* private */
 
72
gboolean              gvc_mixer_card_set_name          (GvcMixerCard *card,
 
73
                                                        const char   *name);
 
74
gboolean              gvc_mixer_card_set_icon_name     (GvcMixerCard *card,
 
75
                                                        const char   *name);
 
76
gboolean              gvc_mixer_card_set_profile       (GvcMixerCard *card,
 
77
                                                        const char   *profile);
 
78
gboolean              gvc_mixer_card_set_profiles      (GvcMixerCard *card,
 
79
                                                        GList        *profiles);
 
80
 
 
81
G_END_DECLS
 
82
 
 
83
#endif /* __GVC_MIXER_CARD_H */