MateMixerDeviceSwitch

MateMixerDeviceSwitch

Synopsis

#include <libmatemixer/matemixer.h>

enum                MateMixerDeviceSwitchRole;
                    MateMixerDeviceSwitch;
struct              MateMixerDeviceSwitchClass;
MateMixerDeviceSwitchRole mate_mixer_device_switch_get_role
                                                        (MateMixerDeviceSwitch *swtch);
MateMixerDevice *   mate_mixer_device_switch_get_device (MateMixerDeviceSwitch *swtch);

Object Hierarchy

  GObject
   +----MateMixerSwitch
         +----MateMixerDeviceSwitch

Properties

  "device"                   MateMixerDevice*      : Read / Write / Construct Only
  "role"                     MateMixerDeviceSwitchRole  : Read / Write / Construct Only

Description

Details

enum MateMixerDeviceSwitchRole

typedef enum {
    MATE_MIXER_DEVICE_SWITCH_ROLE_UNKNOWN,
    MATE_MIXER_DEVICE_SWITCH_ROLE_PROFILE,
} MateMixerDeviceSwitchRole;

MATE_MIXER_DEVICE_SWITCH_ROLE_UNKNOWN

Unknown device switch role.

MATE_MIXER_DEVICE_SWITCH_ROLE_PROFILE

The switch changes the active sound device profile.

MateMixerDeviceSwitch

typedef struct _MateMixerDeviceSwitch MateMixerDeviceSwitch;

The MateMixerDeviceSwitch structure contains only private data and should only be accessed using the provided API.


struct MateMixerDeviceSwitchClass

struct MateMixerDeviceSwitchClass {
    MateMixerSwitchClass parent_class;
};

The class structure for MateMixerDeviceSwitch.

MateMixerSwitchClass parent_class;

The parent class.

mate_mixer_device_switch_get_role ()

MateMixerDeviceSwitchRole mate_mixer_device_switch_get_role
                                                        (MateMixerDeviceSwitch *swtch);

Gets the role of the switch. The role identifies the purpose of the switch.

swtch :

a MateMixerDeviceSwitch

Returns :

the switch role.

mate_mixer_device_switch_get_device ()

MateMixerDevice *   mate_mixer_device_switch_get_device (MateMixerDeviceSwitch *swtch);

Property Details

The "device" property

  "device"                   MateMixerDevice*      : Read / Write / Construct Only

Device owning the switch.


The "role" property

  "role"                     MateMixerDeviceSwitchRole  : Read / Write / Construct Only

Role of the switch.

Default value: MATE_MIXER_DEVICE_SWITCH_ROLE_UNKNOWN