Switch to unified view

a/src/renderctl.cxx b/src/renderctl.cxx
...
...
61
                            bind(&UpMpdRenderCtl::listPresets, this, _1, _2));
61
                            bind(&UpMpdRenderCtl::listPresets, this, _1, _2));
62
    m_dev->addActionMapping(this, "SelectPreset", 
62
    m_dev->addActionMapping(this, "SelectPreset", 
63
                            bind(&UpMpdRenderCtl::selectPreset, this, _1, _2));
63
                            bind(&UpMpdRenderCtl::selectPreset, this, _1, _2));
64
}
64
}
65
65
66
// Rendering Control errors
67
enum RDCErrorCode {
68
  UPNP_AV_RC_INVALID_PRESET_NAME                    = 701,
69
  UPNP_AV_RC_INVALID_INSTANCE_ID                    = 702,
70
};
71
72
const std::string UpMpdRenderCtl::serviceErrString(int error) const
73
{
74
    switch(error) {
75
    case UPNP_AV_RC_INVALID_PRESET_NAME:
76
        return "Rendering Control Invalid Preset Name";
77
    case UPNP_AV_RC_INVALID_INSTANCE_ID:
78
        return "Rendering Control Invalid Instance ID";
79
    default:
80
        return "Rendering Control Unknown Error";
81
    }
82
}
83
66
////////////////////////////////////////////////////
84
////////////////////////////////////////////////////
67
/// RenderingControl methods
85
/// RenderingControl methods
68
86
69
// State variables for the RenderingControl. All evented through LastChange
87
// State variables for the RenderingControl. All evented through LastChange
70
//  PresetNameList
88
//  PresetNameList