本文整理汇总了C++中DvDevice::Device方法的典型用法代码示例。如果您正苦于以下问题:C++ DvDevice::Device方法的具体用法?C++ DvDevice::Device怎么用?C++ DvDevice::Device使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DvDevice
的用法示例。
在下文中一共展示了DvDevice::Device方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: DvProvider
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
}
示例2: DvProvider
DvProviderUpnpOrgRenderingControl1::DvProviderUpnpOrgRenderingControl1(DvDevice& aDevice)
: DvProvider(aDevice.Device(), "upnp.org", "RenderingControl", 1)
{
iPropertyLastChange = new PropertyString(new ParameterString("LastChange"));
iService->AddProperty(iPropertyLastChange); // passes ownership
}
示例3: DvProvider
DvProviderUpnpOrgAVTransport1::DvProviderUpnpOrgAVTransport1(DvDevice& aDevice)
: DvProvider(aDevice.Device(), "upnp.org", "AVTransport", 1)
{
iPropertyLastChange = new PropertyString(new ParameterString("LastChange"));
iService->AddProperty(iPropertyLastChange); // passes ownership
}
示例4: DvProvider
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
}
示例5: DvProvider
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
}
示例6: DvProvider
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
}
示例7: DvProvider
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
}
示例8: DvProvider
DvProviderUpnpOrgContentDirectory2::DvProviderUpnpOrgContentDirectory2(DvDevice& aDevice)
: DvProvider(aDevice.Device(), "upnp.org", "ContentDirectory", 2)
{
Construct();
}
示例9: DvProvider
DvProviderUpnpOrgAVTransport2::DvProviderUpnpOrgAVTransport2(DvDevice& aDevice)
: DvProvider(aDevice.Device(), "upnp.org", "AVTransport", 2)
{
Construct();
}
示例10: DvProvider
DvProviderUpnpOrgScheduledRecording1::DvProviderUpnpOrgScheduledRecording1(DvDevice& aDevice)
: DvProvider(aDevice.Device(), "upnp.org", "ScheduledRecording", 1)
{
Construct();
}
示例11: DvProvider
DvProviderUpnpOrgSwitchPower1::DvProviderUpnpOrgSwitchPower1(DvDevice& aDevice)
: DvProvider(aDevice.Device(), "upnp.org", "SwitchPower", 1)
{
Construct();
}
示例12: CpDeviceDvCreate
CpDeviceC STDCALL CpDeviceDvCreate(DvDeviceC aDevice)
{
DvDevice* dv = DviDeviceC::DeviceFromHandle(aDevice);
CpiDeviceDv* cp = new CpiDeviceDv(dv->Device());
return (CpDeviceC)(&cp->Device());
}
示例13: DvProviderCreate
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);
}
示例14: DvProvider
DvProviderAvOpenhomeOrgDebug1::DvProviderAvOpenhomeOrgDebug1(DvDevice& aDevice)
: DvProvider(aDevice.Device(), "av.openhome.org", "Debug", 1)
{
Construct();
}
示例15: AddDevice
void DvServerUpnp::AddDevice(DvDevice& aDevice)
{
aDevice.Device().SetCustomData("Upnp", "Server", iServer);
}