DvProviderAvOpenhomeOrgPlaylist1::DvProviderAvOpenhomeOrgPlaylist1(DvDevice& aDevice) : DvProvider(aDevice.Device(), "av.openhome.org", "Playlist", 1) { TChar** allowedValues; TUint index; index = 0; allowedValues = new TChar*[4]; allowedValues[index++] = (TChar*)"Playing"; allowedValues[index++] = (TChar*)"Paused"; allowedValues[index++] = (TChar*)"Stopped"; allowedValues[index++] = (TChar*)"Buffering"; iPropertyTransportState = new PropertyString(new ParameterString("TransportState", allowedValues, 4)); delete[] allowedValues; iService->AddProperty(iPropertyTransportState); // passes ownership iPropertyRepeat = new PropertyBool(new ParameterBool("Repeat")); iService->AddProperty(iPropertyRepeat); // passes ownership iPropertyShuffle = new PropertyBool(new ParameterBool("Shuffle")); iService->AddProperty(iPropertyShuffle); // passes ownership iPropertyId = new PropertyUint(new ParameterUint("Id")); iService->AddProperty(iPropertyId); // passes ownership iPropertyIdArray = new PropertyBinary(new ParameterBinary("IdArray")); iService->AddProperty(iPropertyIdArray); // passes ownership iPropertyTracksMax = new PropertyUint(new ParameterUint("TracksMax")); iService->AddProperty(iPropertyTracksMax); // passes ownership iPropertyProtocolInfo = new PropertyString(new ParameterString("ProtocolInfo")); iService->AddProperty(iPropertyProtocolInfo); // passes ownership }
DvProviderUpnpOrgRenderingControl1::DvProviderUpnpOrgRenderingControl1(DvDevice& aDevice) : DvProvider(aDevice.Device(), "upnp.org", "RenderingControl", 1) { iPropertyLastChange = new PropertyString(new ParameterString("LastChange")); iService->AddProperty(iPropertyLastChange); // passes ownership }
DvProviderUpnpOrgAVTransport1::DvProviderUpnpOrgAVTransport1(DvDevice& aDevice) : DvProvider(aDevice.Device(), "upnp.org", "AVTransport", 1) { iPropertyLastChange = new PropertyString(new ParameterString("LastChange")); iService->AddProperty(iPropertyLastChange); // passes ownership }
DvProviderOpenhomeOrgTestDimmableLight1::DvProviderOpenhomeOrgTestDimmableLight1(DvDevice& aDevice) : DvProvider(aDevice.Device(), "openhome.org", "TestDimmableLight", 1) { iPropertyA_ARG_Level = new PropertyUint(new ParameterUint("A_ARG_Level")); iService->AddProperty(iPropertyA_ARG_Level); // passes ownership }
DvProviderAvOpenhomeOrgVolume1::DvProviderAvOpenhomeOrgVolume1(DvDevice& aDevice) : DvProvider(aDevice.Device(), "av.openhome.org", "Volume", 1) { iPropertyVolume = new PropertyUint(new ParameterUint("Volume")); iService->AddProperty(iPropertyVolume); // passes ownership iPropertyMute = new PropertyBool(new ParameterBool("Mute")); iService->AddProperty(iPropertyMute); // passes ownership iPropertyBalance = new PropertyInt(new ParameterInt("Balance")); iService->AddProperty(iPropertyBalance); // passes ownership iPropertyFade = new PropertyInt(new ParameterInt("Fade")); iService->AddProperty(iPropertyFade); // passes ownership iPropertyVolumeLimit = new PropertyUint(new ParameterUint("VolumeLimit")); iService->AddProperty(iPropertyVolumeLimit); // passes ownership iPropertyVolumeMax = new PropertyUint(new ParameterUint("VolumeMax")); iService->AddProperty(iPropertyVolumeMax); // passes ownership iPropertyVolumeUnity = new PropertyUint(new ParameterUint("VolumeUnity")); iService->AddProperty(iPropertyVolumeUnity); // passes ownership iPropertyVolumeSteps = new PropertyUint(new ParameterUint("VolumeSteps")); iService->AddProperty(iPropertyVolumeSteps); // passes ownership iPropertyVolumeMilliDbPerStep = new PropertyUint(new ParameterUint("VolumeMilliDbPerStep")); iService->AddProperty(iPropertyVolumeMilliDbPerStep); // passes ownership iPropertyBalanceMax = new PropertyUint(new ParameterUint("BalanceMax")); iService->AddProperty(iPropertyBalanceMax); // passes ownership iPropertyFadeMax = new PropertyUint(new ParameterUint("FadeMax")); iService->AddProperty(iPropertyFadeMax); // passes ownership }
DvProviderUpnpOrgContentDirectory1::DvProviderUpnpOrgContentDirectory1(DvDevice& aDevice) : DvProvider(aDevice.Device(), "upnp.org", "ContentDirectory", 1) { iPropertyTransferIDs = new PropertyString(new ParameterString("TransferIDs")); iService->AddProperty(iPropertyTransferIDs); // passes ownership iPropertySystemUpdateID = new PropertyUint(new ParameterUint("SystemUpdateID")); iService->AddProperty(iPropertySystemUpdateID); // passes ownership iPropertyContainerUpdateIDs = new PropertyString(new ParameterString("ContainerUpdateIDs")); iService->AddProperty(iPropertyContainerUpdateIDs); // passes ownership }
DvProviderUpnpOrgDimming1::DvProviderUpnpOrgDimming1(DvDevice& aDevice) : DvProvider(aDevice.Device(), "upnp.org", "Dimming", 1) { iPropertyLoadLevelStatus = new PropertyUint(new ParameterUint("LoadLevelStatus", 0, 100)); iService->AddProperty(iPropertyLoadLevelStatus); // passes ownership iPropertyStepDelta = new PropertyUint(new ParameterUint("StepDelta", 1, 100)); iService->AddProperty(iPropertyStepDelta); // passes ownership iPropertyRampRate = new PropertyUint(new ParameterUint("RampRate", 0, 100)); iService->AddProperty(iPropertyRampRate); // passes ownership iPropertyIsRamping = new PropertyBool(new ParameterBool("IsRamping")); iService->AddProperty(iPropertyIsRamping); // passes ownership iPropertyRampPaused = new PropertyBool(new ParameterBool("RampPaused")); iService->AddProperty(iPropertyRampPaused); // passes ownership }
DvProviderUpnpOrgContentDirectory2::DvProviderUpnpOrgContentDirectory2(DvDevice& aDevice) : DvProvider(aDevice.Device(), "upnp.org", "ContentDirectory", 2) { Construct(); }
DvProviderUpnpOrgAVTransport2::DvProviderUpnpOrgAVTransport2(DvDevice& aDevice) : DvProvider(aDevice.Device(), "upnp.org", "AVTransport", 2) { Construct(); }
DvProviderUpnpOrgScheduledRecording1::DvProviderUpnpOrgScheduledRecording1(DvDevice& aDevice) : DvProvider(aDevice.Device(), "upnp.org", "ScheduledRecording", 1) { Construct(); }
DvProviderUpnpOrgSwitchPower1::DvProviderUpnpOrgSwitchPower1(DvDevice& aDevice) : DvProvider(aDevice.Device(), "upnp.org", "SwitchPower", 1) { Construct(); }
CpDeviceC STDCALL CpDeviceDvCreate(DvDeviceC aDevice) { DvDevice* dv = DviDeviceC::DeviceFromHandle(aDevice); CpiDeviceDv* cp = new CpiDeviceDv(dv->Device()); return (CpDeviceC)(&cp->Device()); }
DvProviderC DvProviderCreate(DvDeviceC aDevice, const char* aDomain, const char* aType, uint32_t aVersion) { DvDevice* d = DviDeviceC::DeviceFromHandle(aDevice); DviDevice& device = d->Device(); return (DvProviderC)new DvProviderWrapper(device, aDomain, aType, aVersion); }
DvProviderAvOpenhomeOrgDebug1::DvProviderAvOpenhomeOrgDebug1(DvDevice& aDevice) : DvProvider(aDevice.Device(), "av.openhome.org", "Debug", 1) { Construct(); }
void DvServerUpnp::AddDevice(DvDevice& aDevice) { aDevice.Device().SetCustomData("Upnp", "Server", iServer); }
DvProviderUpnpOrgRenderingControl1::DvProviderUpnpOrgRenderingControl1(DvDevice& aDevice) : DvProvider(aDevice.Device(), "upnp.org", "RenderingControl", 1) { Construct(); }
DvProviderAvOpenhomeOrgExakt3::DvProviderAvOpenhomeOrgExakt3(DvDevice& aDevice) : DvProvider(aDevice.Device(), "av.openhome.org", "Exakt", 3) { Construct(); }
DvProviderAvOpenhomeOrgVolume1::DvProviderAvOpenhomeOrgVolume1(DvDevice& aDevice) : DvProvider(aDevice.Device(), "av.openhome.org", "Volume", 1) { Construct(); }
DvProviderOpenhomeOrgTestBasic1::DvProviderOpenhomeOrgTestBasic1(DvDevice& aDevice) : DvProvider(aDevice.Device(), "openhome.org", "TestBasic", 1) { Construct(); }