本文整理汇总了C++中CpDevice::Device方法的典型用法代码示例。如果您正苦于以下问题:C++ CpDevice::Device方法的具体用法?C++ CpDevice::Device怎么用?C++ CpDevice::Device使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CpDevice
的用法示例。
在下文中一共展示了CpDevice::Device方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: CpProxy
CpProxyAvOpenhomeOrgNetworkMonitor1::CpProxyAvOpenhomeOrgNetworkMonitor1(CpDevice& aDevice)
: CpProxy("av-openhome-org", "NetworkMonitor", 1, aDevice.Device())
{
OpenHome::Net::Parameter* param;
iActionName = new Action("Name");
param = new OpenHome::Net::ParameterString("Name");
iActionName->AddOutputParameter(param);
iActionPorts = new Action("Ports");
param = new OpenHome::Net::ParameterUint("Sender");
iActionPorts->AddOutputParameter(param);
param = new OpenHome::Net::ParameterUint("Receiver");
iActionPorts->AddOutputParameter(param);
param = new OpenHome::Net::ParameterUint("Results");
iActionPorts->AddOutputParameter(param);
Functor functor;
functor = MakeFunctor(*this, &CpProxyAvOpenhomeOrgNetworkMonitor1::NamePropertyChanged);
iName = new PropertyString(aDevice.Device().GetCpStack().Env(), "Name", functor);
AddProperty(iName);
functor = MakeFunctor(*this, &CpProxyAvOpenhomeOrgNetworkMonitor1::SenderPropertyChanged);
iSender = new PropertyUint(aDevice.Device().GetCpStack().Env(), "Sender", functor);
AddProperty(iSender);
functor = MakeFunctor(*this, &CpProxyAvOpenhomeOrgNetworkMonitor1::ReceiverPropertyChanged);
iReceiver = new PropertyUint(aDevice.Device().GetCpStack().Env(), "Receiver", functor);
AddProperty(iReceiver);
functor = MakeFunctor(*this, &CpProxyAvOpenhomeOrgNetworkMonitor1::ResultsPropertyChanged);
iResults = new PropertyUint(aDevice.Device().GetCpStack().Env(), "Results", functor);
AddProperty(iResults);
}
示例2: CpProxy
CpProxyOpenhomeOrgTestLights1::CpProxyOpenhomeOrgTestLights1(CpDevice& aDevice)
: CpProxy("openhome-org", "TestLights", 1, aDevice.Device())
{
OpenHome::Net::Parameter* param;
iActionGetCount = new Action("GetCount");
param = new OpenHome::Net::ParameterUint("Count");
iActionGetCount->AddOutputParameter(param);
iActionGetRoom = new Action("GetRoom");
param = new OpenHome::Net::ParameterUint("Index");
iActionGetRoom->AddInputParameter(param);
param = new OpenHome::Net::ParameterString("RoomName");
iActionGetRoom->AddOutputParameter(param);
iActionGetName = new Action("GetName");
param = new OpenHome::Net::ParameterUint("Index");
iActionGetName->AddInputParameter(param);
param = new OpenHome::Net::ParameterString("FriendlyName");
iActionGetName->AddOutputParameter(param);
iActionGetPosition = new Action("GetPosition");
param = new OpenHome::Net::ParameterUint("Index");
iActionGetPosition->AddInputParameter(param);
param = new OpenHome::Net::ParameterUint("X");
iActionGetPosition->AddOutputParameter(param);
param = new OpenHome::Net::ParameterUint("Y");
iActionGetPosition->AddOutputParameter(param);
param = new OpenHome::Net::ParameterUint("Z");
iActionGetPosition->AddOutputParameter(param);
iActionSetColor = new Action("SetColor");
param = new OpenHome::Net::ParameterUint("Index");
iActionSetColor->AddInputParameter(param);
param = new OpenHome::Net::ParameterUint("Color");
iActionSetColor->AddInputParameter(param);
iActionGetColor = new Action("GetColor");
param = new OpenHome::Net::ParameterUint("Index");
iActionGetColor->AddInputParameter(param);
param = new OpenHome::Net::ParameterUint("Color");
iActionGetColor->AddOutputParameter(param);
iActionGetColorComponents = new Action("GetColorComponents");
param = new OpenHome::Net::ParameterUint("Color");
iActionGetColorComponents->AddInputParameter(param);
param = new OpenHome::Net::ParameterUint("Brightness");
iActionGetColorComponents->AddOutputParameter(param);
param = new OpenHome::Net::ParameterUint("Red");
iActionGetColorComponents->AddOutputParameter(param);
param = new OpenHome::Net::ParameterUint("Green");
iActionGetColorComponents->AddOutputParameter(param);
param = new OpenHome::Net::ParameterUint("Blue");
iActionGetColorComponents->AddOutputParameter(param);
}
示例3: CpProxy
CpProxyAvOpenhomeOrgReceiver1::CpProxyAvOpenhomeOrgReceiver1(CpDevice& aDevice)
: CpProxy("av-openhome-org", "Receiver", 1, aDevice.Device())
{
OpenHome::Net::Parameter* param;
TChar** allowedValues;
TUint index;
iActionPlay = new Action("Play");
iActionStop = new Action("Stop");
iActionSetSender = new Action("SetSender");
param = new OpenHome::Net::ParameterString("Uri");
iActionSetSender->AddInputParameter(param);
param = new OpenHome::Net::ParameterString("Metadata");
iActionSetSender->AddInputParameter(param);
iActionSender = new Action("Sender");
param = new OpenHome::Net::ParameterString("Uri");
iActionSender->AddOutputParameter(param);
param = new OpenHome::Net::ParameterString("Metadata");
iActionSender->AddOutputParameter(param);
iActionProtocolInfo = new Action("ProtocolInfo");
param = new OpenHome::Net::ParameterString("Value");
iActionProtocolInfo->AddOutputParameter(param);
iActionTransportState = new Action("TransportState");
index = 0;
allowedValues = new TChar*[4];
allowedValues[index++] = (TChar*)"Stopped";
allowedValues[index++] = (TChar*)"Playing";
allowedValues[index++] = (TChar*)"Waiting";
allowedValues[index++] = (TChar*)"Buffering";
param = new OpenHome::Net::ParameterString("Value", allowedValues, 4);
iActionTransportState->AddOutputParameter(param);
delete[] allowedValues;
Functor functor;
functor = MakeFunctor(*this, &CpProxyAvOpenhomeOrgReceiver1::UriPropertyChanged);
iUri = new PropertyString("Uri", functor);
AddProperty(iUri);
functor = MakeFunctor(*this, &CpProxyAvOpenhomeOrgReceiver1::MetadataPropertyChanged);
iMetadata = new PropertyString("Metadata", functor);
AddProperty(iMetadata);
functor = MakeFunctor(*this, &CpProxyAvOpenhomeOrgReceiver1::TransportStatePropertyChanged);
iTransportState = new PropertyString("TransportState", functor);
AddProperty(iTransportState);
functor = MakeFunctor(*this, &CpProxyAvOpenhomeOrgReceiver1::ProtocolInfoPropertyChanged);
iProtocolInfo = new PropertyString("ProtocolInfo", functor);
AddProperty(iProtocolInfo);
}
示例4: CpProxy
CpProxyUpnpOrgSwitchPower1::CpProxyUpnpOrgSwitchPower1(CpDevice& aDevice)
: CpProxy("schemas-upnp-org", "SwitchPower", 1, aDevice.Device())
{
OpenHome::Net::Parameter* param;
iActionSetTarget = new Action("SetTarget");
param = new OpenHome::Net::ParameterBool("newTargetValue");
iActionSetTarget->AddInputParameter(param);
iActionGetTarget = new Action("GetTarget");
param = new OpenHome::Net::ParameterBool("RetTargetValue");
iActionGetTarget->AddOutputParameter(param);
iActionGetStatus = new Action("GetStatus");
param = new OpenHome::Net::ParameterBool("ResultStatus");
iActionGetStatus->AddOutputParameter(param);
Functor functor;
functor = MakeFunctor(*this, &CpProxyUpnpOrgSwitchPower1::StatusPropertyChanged);
iStatus = new PropertyBool(aDevice.Device().GetCpStack().Env(), "Status", functor);
AddProperty(iStatus);
}
示例5: CpProxy
CpProxyAvOpenhomeOrgTime1::CpProxyAvOpenhomeOrgTime1(CpDevice& aDevice)
: CpProxy("av-openhome-org", "Time", 1, aDevice.Device())
{
OpenHome::Net::Parameter* param;
iActionTime = new Action("Time");
param = new OpenHome::Net::ParameterUint("TrackCount");
iActionTime->AddOutputParameter(param);
param = new OpenHome::Net::ParameterUint("Duration");
iActionTime->AddOutputParameter(param);
param = new OpenHome::Net::ParameterUint("Seconds");
iActionTime->AddOutputParameter(param);
Functor functor;
functor = MakeFunctor(*this, &CpProxyAvOpenhomeOrgTime1::TrackCountPropertyChanged);
iTrackCount = new PropertyUint(aDevice.Device().GetCpStack().Env(), "TrackCount", functor);
AddProperty(iTrackCount);
functor = MakeFunctor(*this, &CpProxyAvOpenhomeOrgTime1::DurationPropertyChanged);
iDuration = new PropertyUint(aDevice.Device().GetCpStack().Env(), "Duration", functor);
AddProperty(iDuration);
functor = MakeFunctor(*this, &CpProxyAvOpenhomeOrgTime1::SecondsPropertyChanged);
iSeconds = new PropertyUint(aDevice.Device().GetCpStack().Env(), "Seconds", functor);
AddProperty(iSeconds);
}
示例6: CpProxy
CpProxyOpenhomeOrgSubscriptionLongPoll1::CpProxyOpenhomeOrgSubscriptionLongPoll1(CpDevice& aDevice)
: CpProxy("openhome-org", "SubscriptionLongPoll", 1, aDevice.Device())
{
OpenHome::Net::Parameter* param;
iActionSubscribe = new Action("Subscribe");
param = new OpenHome::Net::ParameterString("ClientId");
iActionSubscribe->AddInputParameter(param);
param = new OpenHome::Net::ParameterString("Udn");
iActionSubscribe->AddInputParameter(param);
param = new OpenHome::Net::ParameterString("Service");
iActionSubscribe->AddInputParameter(param);
param = new OpenHome::Net::ParameterUint("RequestedDuration");
iActionSubscribe->AddInputParameter(param);
param = new OpenHome::Net::ParameterString("Sid");
iActionSubscribe->AddOutputParameter(param);
param = new OpenHome::Net::ParameterUint("Duration");
iActionSubscribe->AddOutputParameter(param);
iActionUnsubscribe = new Action("Unsubscribe");
param = new OpenHome::Net::ParameterString("Sid");
iActionUnsubscribe->AddInputParameter(param);
iActionRenew = new Action("Renew");
param = new OpenHome::Net::ParameterString("Sid");
iActionRenew->AddInputParameter(param);
param = new OpenHome::Net::ParameterUint("RequestedDuration");
iActionRenew->AddInputParameter(param);
param = new OpenHome::Net::ParameterUint("Duration");
iActionRenew->AddOutputParameter(param);
iActionGetPropertyUpdates = new Action("GetPropertyUpdates");
param = new OpenHome::Net::ParameterString("ClientId");
iActionGetPropertyUpdates->AddInputParameter(param);
param = new OpenHome::Net::ParameterString("Updates");
iActionGetPropertyUpdates->AddOutputParameter(param);
}
示例7: iCpProxy
CpProxyAvOpenhomeOrgPins1::CpProxyAvOpenhomeOrgPins1(CpDevice& aDevice)
: iCpProxy("av-openhome-org", "Pins", 1, aDevice.Device())
{
OpenHome::Net::Parameter* param;
iActionGetDeviceAccountMax = new Action("GetDeviceAccountMax");
param = new OpenHome::Net::ParameterUint("DeviceMax");
iActionGetDeviceAccountMax->AddOutputParameter(param);
param = new OpenHome::Net::ParameterUint("AccountMax");
iActionGetDeviceAccountMax->AddOutputParameter(param);
iActionGetModes = new Action("GetModes");
param = new OpenHome::Net::ParameterString("Modes");
iActionGetModes->AddOutputParameter(param);
iActionGetIdArray = new Action("GetIdArray");
param = new OpenHome::Net::ParameterString("IdArray");
iActionGetIdArray->AddOutputParameter(param);
iActionReadList = new Action("ReadList");
param = new OpenHome::Net::ParameterString("Ids");
iActionReadList->AddInputParameter(param);
param = new OpenHome::Net::ParameterString("List");
iActionReadList->AddOutputParameter(param);
iActionInvokeId = new Action("InvokeId");
param = new OpenHome::Net::ParameterUint("Id");
iActionInvokeId->AddInputParameter(param);
iActionInvokeIndex = new Action("InvokeIndex");
param = new OpenHome::Net::ParameterUint("Index");
iActionInvokeIndex->AddInputParameter(param);
iActionSetDevice = new Action("SetDevice");
param = new OpenHome::Net::ParameterUint("Index");
iActionSetDevice->AddInputParameter(param);
param = new OpenHome::Net::ParameterString("Mode");
iActionSetDevice->AddInputParameter(param);
param = new OpenHome::Net::ParameterString("Type");
iActionSetDevice->AddInputParameter(param);
param = new OpenHome::Net::ParameterString("Uri");
iActionSetDevice->AddInputParameter(param);
param = new OpenHome::Net::ParameterString("Title");
iActionSetDevice->AddInputParameter(param);
param = new OpenHome::Net::ParameterString("Description");
iActionSetDevice->AddInputParameter(param);
param = new OpenHome::Net::ParameterString("ArtworkUri");
iActionSetDevice->AddInputParameter(param);
param = new OpenHome::Net::ParameterBool("Shuffle");
iActionSetDevice->AddInputParameter(param);
iActionSetAccount = new Action("SetAccount");
param = new OpenHome::Net::ParameterUint("Index");
iActionSetAccount->AddInputParameter(param);
param = new OpenHome::Net::ParameterString("Mode");
iActionSetAccount->AddInputParameter(param);
param = new OpenHome::Net::ParameterString("Type");
iActionSetAccount->AddInputParameter(param);
param = new OpenHome::Net::ParameterString("Uri");
iActionSetAccount->AddInputParameter(param);
param = new OpenHome::Net::ParameterString("Title");
iActionSetAccount->AddInputParameter(param);
param = new OpenHome::Net::ParameterString("Description");
iActionSetAccount->AddInputParameter(param);
param = new OpenHome::Net::ParameterString("ArtworkUri");
iActionSetAccount->AddInputParameter(param);
param = new OpenHome::Net::ParameterBool("Shuffle");
iActionSetAccount->AddInputParameter(param);
iActionClear = new Action("Clear");
param = new OpenHome::Net::ParameterUint("Id");
iActionClear->AddInputParameter(param);
iActionSwap = new Action("Swap");
param = new OpenHome::Net::ParameterUint("Index1");
iActionSwap->AddInputParameter(param);
param = new OpenHome::Net::ParameterUint("Index2");
iActionSwap->AddInputParameter(param);
Functor functor;
functor = MakeFunctor(*this, &CpProxyAvOpenhomeOrgPins1::DeviceMaxPropertyChanged);
iDeviceMax = new PropertyUint("DeviceMax", functor);
AddProperty(iDeviceMax);
functor = MakeFunctor(*this, &CpProxyAvOpenhomeOrgPins1::AccountMaxPropertyChanged);
iAccountMax = new PropertyUint("AccountMax", functor);
AddProperty(iAccountMax);
functor = MakeFunctor(*this, &CpProxyAvOpenhomeOrgPins1::ModesPropertyChanged);
iModes = new PropertyString("Modes", functor);
AddProperty(iModes);
functor = MakeFunctor(*this, &CpProxyAvOpenhomeOrgPins1::IdArrayPropertyChanged);
iIdArray = new PropertyString("IdArray", functor);
AddProperty(iIdArray);
}
示例8: CpProxy
CpProxyAvOpenhomeOrgRadio1::CpProxyAvOpenhomeOrgRadio1(CpDevice& aDevice)
: CpProxy("av-openhome-org", "Radio", 1, aDevice.Device())
{
OpenHome::Net::Parameter* param;
TChar** allowedValues;
TUint index;
iActionPlay = new Action("Play");
iActionPause = new Action("Pause");
iActionStop = new Action("Stop");
iActionSeekSecondAbsolute = new Action("SeekSecondAbsolute");
param = new OpenHome::Net::ParameterUint("Value");
iActionSeekSecondAbsolute->AddInputParameter(param);
iActionSeekSecondRelative = new Action("SeekSecondRelative");
param = new OpenHome::Net::ParameterInt("Value");
iActionSeekSecondRelative->AddInputParameter(param);
iActionChannel = new Action("Channel");
param = new OpenHome::Net::ParameterString("Uri");
iActionChannel->AddOutputParameter(param);
param = new OpenHome::Net::ParameterString("Metadata");
iActionChannel->AddOutputParameter(param);
iActionSetChannel = new Action("SetChannel");
param = new OpenHome::Net::ParameterString("Uri");
iActionSetChannel->AddInputParameter(param);
param = new OpenHome::Net::ParameterString("Metadata");
iActionSetChannel->AddInputParameter(param);
iActionTransportState = new Action("TransportState");
index = 0;
allowedValues = new TChar*[4];
allowedValues[index++] = (TChar*)"Stopped";
allowedValues[index++] = (TChar*)"Playing";
allowedValues[index++] = (TChar*)"Paused";
allowedValues[index++] = (TChar*)"Buffering";
param = new OpenHome::Net::ParameterString("Value", allowedValues, 4);
iActionTransportState->AddOutputParameter(param);
delete[] allowedValues;
iActionId = new Action("Id");
param = new OpenHome::Net::ParameterUint("Value");
iActionId->AddOutputParameter(param);
iActionSetId = new Action("SetId");
param = new OpenHome::Net::ParameterUint("Value");
iActionSetId->AddInputParameter(param);
param = new OpenHome::Net::ParameterString("Uri");
iActionSetId->AddInputParameter(param);
iActionRead = new Action("Read");
param = new OpenHome::Net::ParameterUint("Id");
iActionRead->AddInputParameter(param);
param = new OpenHome::Net::ParameterString("Metadata");
iActionRead->AddOutputParameter(param);
iActionReadList = new Action("ReadList");
param = new OpenHome::Net::ParameterString("IdList");
iActionReadList->AddInputParameter(param);
param = new OpenHome::Net::ParameterString("ChannelList");
iActionReadList->AddOutputParameter(param);
iActionIdArray = new Action("IdArray");
param = new OpenHome::Net::ParameterUint("Token");
iActionIdArray->AddOutputParameter(param);
param = new OpenHome::Net::ParameterBinary("Array");
iActionIdArray->AddOutputParameter(param);
iActionIdArrayChanged = new Action("IdArrayChanged");
param = new OpenHome::Net::ParameterUint("Token");
iActionIdArrayChanged->AddInputParameter(param);
param = new OpenHome::Net::ParameterBool("Value");
iActionIdArrayChanged->AddOutputParameter(param);
iActionChannelsMax = new Action("ChannelsMax");
param = new OpenHome::Net::ParameterUint("Value");
iActionChannelsMax->AddOutputParameter(param);
iActionProtocolInfo = new Action("ProtocolInfo");
param = new OpenHome::Net::ParameterString("Value");
iActionProtocolInfo->AddOutputParameter(param);
Functor functor;
functor = MakeFunctor(*this, &CpProxyAvOpenhomeOrgRadio1::UriPropertyChanged);
iUri = new PropertyString(aDevice.Device().GetCpStack().Env(), "Uri", functor);
AddProperty(iUri);
functor = MakeFunctor(*this, &CpProxyAvOpenhomeOrgRadio1::MetadataPropertyChanged);
iMetadata = new PropertyString(aDevice.Device().GetCpStack().Env(), "Metadata", functor);
AddProperty(iMetadata);
functor = MakeFunctor(*this, &CpProxyAvOpenhomeOrgRadio1::TransportStatePropertyChanged);
iTransportState = new PropertyString(aDevice.Device().GetCpStack().Env(), "TransportState", functor);
AddProperty(iTransportState);
functor = MakeFunctor(*this, &CpProxyAvOpenhomeOrgRadio1::IdPropertyChanged);
iId = new PropertyUint(aDevice.Device().GetCpStack().Env(), "Id", functor);
AddProperty(iId);
functor = MakeFunctor(*this, &CpProxyAvOpenhomeOrgRadio1::IdArrayPropertyChanged);
//.........这里部分代码省略.........
示例9: iCpProxy
CpProxyUpnpOrgConnectionManager1::CpProxyUpnpOrgConnectionManager1(CpDevice& aDevice)
: iCpProxy("schemas-upnp-org", "ConnectionManager", 1, aDevice.Device())
{
OpenHome::Net::Parameter* param;
TChar** allowedValues;
TUint index;
iActionGetProtocolInfo = new Action("GetProtocolInfo");
param = new OpenHome::Net::ParameterString("Source");
iActionGetProtocolInfo->AddOutputParameter(param);
param = new OpenHome::Net::ParameterString("Sink");
iActionGetProtocolInfo->AddOutputParameter(param);
iActionPrepareForConnection = new Action("PrepareForConnection");
param = new OpenHome::Net::ParameterString("RemoteProtocolInfo");
iActionPrepareForConnection->AddInputParameter(param);
param = new OpenHome::Net::ParameterString("PeerConnectionManager");
iActionPrepareForConnection->AddInputParameter(param);
param = new OpenHome::Net::ParameterInt("PeerConnectionID");
iActionPrepareForConnection->AddInputParameter(param);
index = 0;
allowedValues = new TChar*[2];
allowedValues[index++] = (TChar*)"Input";
allowedValues[index++] = (TChar*)"Output";
param = new OpenHome::Net::ParameterString("Direction", allowedValues, 2);
iActionPrepareForConnection->AddInputParameter(param);
delete[] allowedValues;
param = new OpenHome::Net::ParameterInt("ConnectionID");
iActionPrepareForConnection->AddOutputParameter(param);
param = new OpenHome::Net::ParameterInt("AVTransportID");
iActionPrepareForConnection->AddOutputParameter(param);
param = new OpenHome::Net::ParameterInt("RcsID");
iActionPrepareForConnection->AddOutputParameter(param);
iActionConnectionComplete = new Action("ConnectionComplete");
param = new OpenHome::Net::ParameterInt("ConnectionID");
iActionConnectionComplete->AddInputParameter(param);
iActionGetCurrentConnectionIDs = new Action("GetCurrentConnectionIDs");
param = new OpenHome::Net::ParameterString("ConnectionIDs");
iActionGetCurrentConnectionIDs->AddOutputParameter(param);
iActionGetCurrentConnectionInfo = new Action("GetCurrentConnectionInfo");
param = new OpenHome::Net::ParameterInt("ConnectionID");
iActionGetCurrentConnectionInfo->AddInputParameter(param);
param = new OpenHome::Net::ParameterInt("RcsID");
iActionGetCurrentConnectionInfo->AddOutputParameter(param);
param = new OpenHome::Net::ParameterInt("AVTransportID");
iActionGetCurrentConnectionInfo->AddOutputParameter(param);
param = new OpenHome::Net::ParameterString("ProtocolInfo");
iActionGetCurrentConnectionInfo->AddOutputParameter(param);
param = new OpenHome::Net::ParameterString("PeerConnectionManager");
iActionGetCurrentConnectionInfo->AddOutputParameter(param);
param = new OpenHome::Net::ParameterInt("PeerConnectionID");
iActionGetCurrentConnectionInfo->AddOutputParameter(param);
index = 0;
allowedValues = new TChar*[2];
allowedValues[index++] = (TChar*)"Input";
allowedValues[index++] = (TChar*)"Output";
param = new OpenHome::Net::ParameterString("Direction", allowedValues, 2);
iActionGetCurrentConnectionInfo->AddOutputParameter(param);
delete[] allowedValues;
index = 0;
allowedValues = new TChar*[5];
allowedValues[index++] = (TChar*)"OK";
allowedValues[index++] = (TChar*)"ContentFormatMismatch";
allowedValues[index++] = (TChar*)"InsufficientBandwidth";
allowedValues[index++] = (TChar*)"UnreliableChannel";
allowedValues[index++] = (TChar*)"Unknown";
param = new OpenHome::Net::ParameterString("Status", allowedValues, 5);
iActionGetCurrentConnectionInfo->AddOutputParameter(param);
delete[] allowedValues;
Functor functor;
functor = MakeFunctor(*this, &CpProxyUpnpOrgConnectionManager1::SourceProtocolInfoPropertyChanged);
iSourceProtocolInfo = new PropertyString("SourceProtocolInfo", functor);
AddProperty(iSourceProtocolInfo);
functor = MakeFunctor(*this, &CpProxyUpnpOrgConnectionManager1::SinkProtocolInfoPropertyChanged);
iSinkProtocolInfo = new PropertyString("SinkProtocolInfo", functor);
AddProperty(iSinkProtocolInfo);
functor = MakeFunctor(*this, &CpProxyUpnpOrgConnectionManager1::CurrentConnectionIDsPropertyChanged);
iCurrentConnectionIDs = new PropertyString("CurrentConnectionIDs", functor);
AddProperty(iCurrentConnectionIDs);
}
示例10: iCpProxy
CpProxyAvOpenhomeOrgProduct2::CpProxyAvOpenhomeOrgProduct2(CpDevice& aDevice)
: iCpProxy("av-openhome-org", "Product", 2, aDevice.Device())
{
OpenHome::Net::Parameter* param;
iActionManufacturer = new Action("Manufacturer");
param = new OpenHome::Net::ParameterString("Name");
iActionManufacturer->AddOutputParameter(param);
param = new OpenHome::Net::ParameterString("Info");
iActionManufacturer->AddOutputParameter(param);
param = new OpenHome::Net::ParameterString("Url");
iActionManufacturer->AddOutputParameter(param);
param = new OpenHome::Net::ParameterString("ImageUri");
iActionManufacturer->AddOutputParameter(param);
iActionModel = new Action("Model");
param = new OpenHome::Net::ParameterString("Name");
iActionModel->AddOutputParameter(param);
param = new OpenHome::Net::ParameterString("Info");
iActionModel->AddOutputParameter(param);
param = new OpenHome::Net::ParameterString("Url");
iActionModel->AddOutputParameter(param);
param = new OpenHome::Net::ParameterString("ImageUri");
iActionModel->AddOutputParameter(param);
iActionProduct = new Action("Product");
param = new OpenHome::Net::ParameterString("Room");
iActionProduct->AddOutputParameter(param);
param = new OpenHome::Net::ParameterString("Name");
iActionProduct->AddOutputParameter(param);
param = new OpenHome::Net::ParameterString("Info");
iActionProduct->AddOutputParameter(param);
param = new OpenHome::Net::ParameterString("Url");
iActionProduct->AddOutputParameter(param);
param = new OpenHome::Net::ParameterString("ImageUri");
iActionProduct->AddOutputParameter(param);
iActionStandby = new Action("Standby");
param = new OpenHome::Net::ParameterBool("Value");
iActionStandby->AddOutputParameter(param);
iActionSetStandby = new Action("SetStandby");
param = new OpenHome::Net::ParameterBool("Value");
iActionSetStandby->AddInputParameter(param);
iActionSourceCount = new Action("SourceCount");
param = new OpenHome::Net::ParameterUint("Value");
iActionSourceCount->AddOutputParameter(param);
iActionSourceXml = new Action("SourceXml");
param = new OpenHome::Net::ParameterString("Value");
iActionSourceXml->AddOutputParameter(param);
iActionSourceIndex = new Action("SourceIndex");
param = new OpenHome::Net::ParameterUint("Value");
iActionSourceIndex->AddOutputParameter(param);
iActionSetSourceIndex = new Action("SetSourceIndex");
param = new OpenHome::Net::ParameterUint("Value");
iActionSetSourceIndex->AddInputParameter(param);
iActionSetSourceIndexByName = new Action("SetSourceIndexByName");
param = new OpenHome::Net::ParameterString("Value");
iActionSetSourceIndexByName->AddInputParameter(param);
iActionSetSourceBySystemName = new Action("SetSourceBySystemName");
param = new OpenHome::Net::ParameterString("Value");
iActionSetSourceBySystemName->AddInputParameter(param);
iActionSource = new Action("Source");
param = new OpenHome::Net::ParameterUint("Index");
iActionSource->AddInputParameter(param);
param = new OpenHome::Net::ParameterString("SystemName");
iActionSource->AddOutputParameter(param);
param = new OpenHome::Net::ParameterString("Type");
iActionSource->AddOutputParameter(param);
param = new OpenHome::Net::ParameterString("Name");
iActionSource->AddOutputParameter(param);
param = new OpenHome::Net::ParameterBool("Visible");
iActionSource->AddOutputParameter(param);
iActionAttributes = new Action("Attributes");
param = new OpenHome::Net::ParameterString("Value");
iActionAttributes->AddOutputParameter(param);
iActionSourceXmlChangeCount = new Action("SourceXmlChangeCount");
param = new OpenHome::Net::ParameterUint("Value");
iActionSourceXmlChangeCount->AddOutputParameter(param);
Functor functor;
functor = MakeFunctor(*this, &CpProxyAvOpenhomeOrgProduct2::ManufacturerNamePropertyChanged);
iManufacturerName = new PropertyString("ManufacturerName", functor);
AddProperty(iManufacturerName);
functor = MakeFunctor(*this, &CpProxyAvOpenhomeOrgProduct2::ManufacturerInfoPropertyChanged);
iManufacturerInfo = new PropertyString("ManufacturerInfo", functor);
AddProperty(iManufacturerInfo);
functor = MakeFunctor(*this, &CpProxyAvOpenhomeOrgProduct2::ManufacturerUrlPropertyChanged);
iManufacturerUrl = new PropertyString("ManufacturerUrl", functor);
AddProperty(iManufacturerUrl);
functor = MakeFunctor(*this, &CpProxyAvOpenhomeOrgProduct2::ManufacturerImageUriPropertyChanged);
//.........这里部分代码省略.........
示例11: CpProxy
CpProxyUpnpOrgAVTransport1::CpProxyUpnpOrgAVTransport1(CpDevice& aDevice)
: CpProxy("schemas-upnp-org", "AVTransport", 1, aDevice.Device())
{
OpenHome::Net::Parameter* param;
TChar** allowedValues;
TUint index;
iActionSetAVTransportURI = new Action("SetAVTransportURI");
param = new OpenHome::Net::ParameterUint("InstanceID");
iActionSetAVTransportURI->AddInputParameter(param);
param = new OpenHome::Net::ParameterString("CurrentURI");
iActionSetAVTransportURI->AddInputParameter(param);
param = new OpenHome::Net::ParameterString("CurrentURIMetaData");
iActionSetAVTransportURI->AddInputParameter(param);
iActionSetNextAVTransportURI = new Action("SetNextAVTransportURI");
param = new OpenHome::Net::ParameterUint("InstanceID");
iActionSetNextAVTransportURI->AddInputParameter(param);
param = new OpenHome::Net::ParameterString("NextURI");
iActionSetNextAVTransportURI->AddInputParameter(param);
param = new OpenHome::Net::ParameterString("NextURIMetaData");
iActionSetNextAVTransportURI->AddInputParameter(param);
iActionGetMediaInfo = new Action("GetMediaInfo");
param = new OpenHome::Net::ParameterUint("InstanceID");
iActionGetMediaInfo->AddInputParameter(param);
param = new OpenHome::Net::ParameterUint("NrTracks", 0, 2147483647);
iActionGetMediaInfo->AddOutputParameter(param);
param = new OpenHome::Net::ParameterString("MediaDuration");
iActionGetMediaInfo->AddOutputParameter(param);
param = new OpenHome::Net::ParameterString("CurrentURI");
iActionGetMediaInfo->AddOutputParameter(param);
param = new OpenHome::Net::ParameterString("CurrentURIMetaData");
iActionGetMediaInfo->AddOutputParameter(param);
param = new OpenHome::Net::ParameterString("NextURI");
iActionGetMediaInfo->AddOutputParameter(param);
param = new OpenHome::Net::ParameterString("NextURIMetaData");
iActionGetMediaInfo->AddOutputParameter(param);
param = new OpenHome::Net::ParameterString("PlayMedium");
iActionGetMediaInfo->AddOutputParameter(param);
param = new OpenHome::Net::ParameterString("RecordMedium");
iActionGetMediaInfo->AddOutputParameter(param);
index = 0;
allowedValues = new TChar*[5];
allowedValues[index++] = (TChar*)"WRITABLE";
allowedValues[index++] = (TChar*)"PROTECTED";
allowedValues[index++] = (TChar*)"NOT_WRITABLE";
allowedValues[index++] = (TChar*)"UNKNOWN";
allowedValues[index++] = (TChar*)"NOT_IMPLEMENTED";
param = new OpenHome::Net::ParameterString("WriteStatus", allowedValues, 5);
iActionGetMediaInfo->AddOutputParameter(param);
delete[] allowedValues;
iActionGetTransportInfo = new Action("GetTransportInfo");
param = new OpenHome::Net::ParameterUint("InstanceID");
iActionGetTransportInfo->AddInputParameter(param);
index = 0;
allowedValues = new TChar*[7];
allowedValues[index++] = (TChar*)"STOPPED";
allowedValues[index++] = (TChar*)"PLAYING";
allowedValues[index++] = (TChar*)"TRANSITIONING";
allowedValues[index++] = (TChar*)"PAUSED_PLAYBACK";
allowedValues[index++] = (TChar*)"PAUSED_RECORDING";
allowedValues[index++] = (TChar*)"RECORDING";
allowedValues[index++] = (TChar*)"NO_MEDIA_PRESENT";
param = new OpenHome::Net::ParameterString("CurrentTransportState", allowedValues, 7);
iActionGetTransportInfo->AddOutputParameter(param);
delete[] allowedValues;
index = 0;
allowedValues = new TChar*[2];
allowedValues[index++] = (TChar*)"OK";
allowedValues[index++] = (TChar*)"ERROR_OCCURRED";
param = new OpenHome::Net::ParameterString("CurrentTransportStatus", allowedValues, 2);
iActionGetTransportInfo->AddOutputParameter(param);
delete[] allowedValues;
param = new OpenHome::Net::ParameterString("CurrentSpeed");
iActionGetTransportInfo->AddOutputParameter(param);
iActionGetPositionInfo = new Action("GetPositionInfo");
param = new OpenHome::Net::ParameterUint("InstanceID");
iActionGetPositionInfo->AddInputParameter(param);
param = new OpenHome::Net::ParameterUint("Track", 0, 2147483647, 1);
iActionGetPositionInfo->AddOutputParameter(param);
param = new OpenHome::Net::ParameterString("TrackDuration");
iActionGetPositionInfo->AddOutputParameter(param);
param = new OpenHome::Net::ParameterString("TrackMetaData");
iActionGetPositionInfo->AddOutputParameter(param);
param = new OpenHome::Net::ParameterString("TrackURI");
iActionGetPositionInfo->AddOutputParameter(param);
param = new OpenHome::Net::ParameterString("RelTime");
iActionGetPositionInfo->AddOutputParameter(param);
param = new OpenHome::Net::ParameterString("AbsTime");
iActionGetPositionInfo->AddOutputParameter(param);
param = new OpenHome::Net::ParameterInt("RelCount");
iActionGetPositionInfo->AddOutputParameter(param);
param = new OpenHome::Net::ParameterInt("AbsCount");
iActionGetPositionInfo->AddOutputParameter(param);
iActionGetDeviceCapabilities = new Action("GetDeviceCapabilities");
param = new OpenHome::Net::ParameterUint("InstanceID");
//.........这里部分代码省略.........
示例12: iCpProxy
CpProxyOpenhomeOrgTestBasic1::CpProxyOpenhomeOrgTestBasic1(CpDevice& aDevice)
: iCpProxy("openhome-org", "TestBasic", 1, aDevice.Device())
{
OpenHome::Net::Parameter* param;
TChar** allowedValues;
TUint index;
iActionIncrement = new Action("Increment");
param = new OpenHome::Net::ParameterUint("Value");
iActionIncrement->AddInputParameter(param);
param = new OpenHome::Net::ParameterUint("Result");
iActionIncrement->AddOutputParameter(param);
iActionEchoAllowedRangeUint = new Action("EchoAllowedRangeUint");
param = new OpenHome::Net::ParameterUint("Value", 10, 20);
iActionEchoAllowedRangeUint->AddInputParameter(param);
param = new OpenHome::Net::ParameterUint("Result");
iActionEchoAllowedRangeUint->AddOutputParameter(param);
iActionDecrement = new Action("Decrement");
param = new OpenHome::Net::ParameterInt("Value");
iActionDecrement->AddInputParameter(param);
param = new OpenHome::Net::ParameterInt("Result");
iActionDecrement->AddOutputParameter(param);
iActionToggle = new Action("Toggle");
param = new OpenHome::Net::ParameterBool("Value");
iActionToggle->AddInputParameter(param);
param = new OpenHome::Net::ParameterBool("Result");
iActionToggle->AddOutputParameter(param);
iActionEchoString = new Action("EchoString");
param = new OpenHome::Net::ParameterString("Value");
iActionEchoString->AddInputParameter(param);
param = new OpenHome::Net::ParameterString("Result");
iActionEchoString->AddOutputParameter(param);
iActionEchoAllowedValueString = new Action("EchoAllowedValueString");
index = 0;
allowedValues = new TChar*[4];
allowedValues[index++] = (TChar*)"One";
allowedValues[index++] = (TChar*)"Two";
allowedValues[index++] = (TChar*)"Three";
allowedValues[index++] = (TChar*)"Four";
param = new OpenHome::Net::ParameterString("Value", allowedValues, 4);
iActionEchoAllowedValueString->AddInputParameter(param);
delete[] allowedValues;
param = new OpenHome::Net::ParameterString("Result");
iActionEchoAllowedValueString->AddOutputParameter(param);
iActionEchoBinary = new Action("EchoBinary");
param = new OpenHome::Net::ParameterBinary("Value");
iActionEchoBinary->AddInputParameter(param);
param = new OpenHome::Net::ParameterBinary("Result");
iActionEchoBinary->AddOutputParameter(param);
iActionSetUint = new Action("SetUint");
param = new OpenHome::Net::ParameterUint("ValueUint");
iActionSetUint->AddInputParameter(param);
iActionGetUint = new Action("GetUint");
param = new OpenHome::Net::ParameterUint("ValueUint");
iActionGetUint->AddOutputParameter(param);
iActionSetInt = new Action("SetInt");
param = new OpenHome::Net::ParameterInt("ValueInt");
iActionSetInt->AddInputParameter(param);
iActionGetInt = new Action("GetInt");
param = new OpenHome::Net::ParameterInt("ValueInt");
iActionGetInt->AddOutputParameter(param);
iActionSetBool = new Action("SetBool");
param = new OpenHome::Net::ParameterBool("ValueBool");
iActionSetBool->AddInputParameter(param);
iActionGetBool = new Action("GetBool");
param = new OpenHome::Net::ParameterBool("ValueBool");
iActionGetBool->AddOutputParameter(param);
iActionSetMultiple = new Action("SetMultiple");
param = new OpenHome::Net::ParameterUint("ValueUint");
iActionSetMultiple->AddInputParameter(param);
param = new OpenHome::Net::ParameterInt("ValueInt");
iActionSetMultiple->AddInputParameter(param);
param = new OpenHome::Net::ParameterBool("ValueBool");
iActionSetMultiple->AddInputParameter(param);
iActionGetMultiple = new Action("GetMultiple");
param = new OpenHome::Net::ParameterUint("ValueUint");
iActionGetMultiple->AddOutputParameter(param);
param = new OpenHome::Net::ParameterInt("ValueInt");
iActionGetMultiple->AddOutputParameter(param);
param = new OpenHome::Net::ParameterBool("ValueBool");
iActionGetMultiple->AddOutputParameter(param);
iActionSetString = new Action("SetString");
param = new OpenHome::Net::ParameterString("ValueStr");
iActionSetString->AddInputParameter(param);
//.........这里部分代码省略.........
示例13: CpProxy
CpProxyAvOpenhomeOrgMediaServer1::CpProxyAvOpenhomeOrgMediaServer1(CpDevice& aDevice)
: CpProxy("av-openhome-org", "MediaServer", 1, aDevice.Device())
{
OpenHome::Net::Parameter* param;
iActionManufacturer = new Action("Manufacturer");
param = new OpenHome::Net::ParameterString("Name");
iActionManufacturer->AddOutputParameter(param);
param = new OpenHome::Net::ParameterString("Info");
iActionManufacturer->AddOutputParameter(param);
param = new OpenHome::Net::ParameterString("Url");
iActionManufacturer->AddOutputParameter(param);
param = new OpenHome::Net::ParameterString("ImageUri");
iActionManufacturer->AddOutputParameter(param);
iActionModel = new Action("Model");
param = new OpenHome::Net::ParameterString("Name");
iActionModel->AddOutputParameter(param);
param = new OpenHome::Net::ParameterString("Info");
iActionModel->AddOutputParameter(param);
param = new OpenHome::Net::ParameterString("Url");
iActionModel->AddOutputParameter(param);
param = new OpenHome::Net::ParameterString("ImageUri");
iActionModel->AddOutputParameter(param);
iActionProduct = new Action("Product");
param = new OpenHome::Net::ParameterString("Name");
iActionProduct->AddOutputParameter(param);
param = new OpenHome::Net::ParameterString("Info");
iActionProduct->AddOutputParameter(param);
param = new OpenHome::Net::ParameterString("Url");
iActionProduct->AddOutputParameter(param);
param = new OpenHome::Net::ParameterString("ImageUri");
iActionProduct->AddOutputParameter(param);
iActionAttributes = new Action("Attributes");
param = new OpenHome::Net::ParameterString("Value");
iActionAttributes->AddOutputParameter(param);
iActionQueryPort = new Action("QueryPort");
param = new OpenHome::Net::ParameterUint("Value");
iActionQueryPort->AddOutputParameter(param);
iActionBrowsePort = new Action("BrowsePort");
param = new OpenHome::Net::ParameterUint("Value");
iActionBrowsePort->AddOutputParameter(param);
iActionUpdateCount = new Action("UpdateCount");
param = new OpenHome::Net::ParameterUint("Value");
iActionUpdateCount->AddOutputParameter(param);
iActionQuery = new Action("Query");
param = new OpenHome::Net::ParameterString("Request");
iActionQuery->AddInputParameter(param);
param = new OpenHome::Net::ParameterString("Result");
iActionQuery->AddOutputParameter(param);
Functor functor;
functor = MakeFunctor(*this, &CpProxyAvOpenhomeOrgMediaServer1::ManufacturerNamePropertyChanged);
iManufacturerName = new PropertyString(aDevice.Device().GetCpStack().Env(), "ManufacturerName", functor);
AddProperty(iManufacturerName);
functor = MakeFunctor(*this, &CpProxyAvOpenhomeOrgMediaServer1::ManufacturerInfoPropertyChanged);
iManufacturerInfo = new PropertyString(aDevice.Device().GetCpStack().Env(), "ManufacturerInfo", functor);
AddProperty(iManufacturerInfo);
functor = MakeFunctor(*this, &CpProxyAvOpenhomeOrgMediaServer1::ManufacturerUrlPropertyChanged);
iManufacturerUrl = new PropertyString(aDevice.Device().GetCpStack().Env(), "ManufacturerUrl", functor);
AddProperty(iManufacturerUrl);
functor = MakeFunctor(*this, &CpProxyAvOpenhomeOrgMediaServer1::ManufacturerImageUriPropertyChanged);
iManufacturerImageUri = new PropertyString(aDevice.Device().GetCpStack().Env(), "ManufacturerImageUri", functor);
AddProperty(iManufacturerImageUri);
functor = MakeFunctor(*this, &CpProxyAvOpenhomeOrgMediaServer1::ModelNamePropertyChanged);
iModelName = new PropertyString(aDevice.Device().GetCpStack().Env(), "ModelName", functor);
AddProperty(iModelName);
functor = MakeFunctor(*this, &CpProxyAvOpenhomeOrgMediaServer1::ModelInfoPropertyChanged);
iModelInfo = new PropertyString(aDevice.Device().GetCpStack().Env(), "ModelInfo", functor);
AddProperty(iModelInfo);
functor = MakeFunctor(*this, &CpProxyAvOpenhomeOrgMediaServer1::ModelUrlPropertyChanged);
iModelUrl = new PropertyString(aDevice.Device().GetCpStack().Env(), "ModelUrl", functor);
AddProperty(iModelUrl);
functor = MakeFunctor(*this, &CpProxyAvOpenhomeOrgMediaServer1::ModelImageUriPropertyChanged);
iModelImageUri = new PropertyString(aDevice.Device().GetCpStack().Env(), "ModelImageUri", functor);
AddProperty(iModelImageUri);
functor = MakeFunctor(*this, &CpProxyAvOpenhomeOrgMediaServer1::ProductNamePropertyChanged);
iProductName = new PropertyString(aDevice.Device().GetCpStack().Env(), "ProductName", functor);
AddProperty(iProductName);
functor = MakeFunctor(*this, &CpProxyAvOpenhomeOrgMediaServer1::ProductInfoPropertyChanged);
iProductInfo = new PropertyString(aDevice.Device().GetCpStack().Env(), "ProductInfo", functor);
AddProperty(iProductInfo);
functor = MakeFunctor(*this, &CpProxyAvOpenhomeOrgMediaServer1::ProductUrlPropertyChanged);
iProductUrl = new PropertyString(aDevice.Device().GetCpStack().Env(), "ProductUrl", functor);
AddProperty(iProductUrl);
functor = MakeFunctor(*this, &CpProxyAvOpenhomeOrgMediaServer1::ProductImageUriPropertyChanged);
iProductImageUri = new PropertyString(aDevice.Device().GetCpStack().Env(), "ProductImageUri", functor);
AddProperty(iProductImageUri);
functor = MakeFunctor(*this, &CpProxyAvOpenhomeOrgMediaServer1::AttributesPropertyChanged);
iAttributes = new PropertyString(aDevice.Device().GetCpStack().Env(), "Attributes", functor);
AddProperty(iAttributes);
functor = MakeFunctor(*this, &CpProxyAvOpenhomeOrgMediaServer1::QueryPortPropertyChanged);
iQueryPort = new PropertyUint(aDevice.Device().GetCpStack().Env(), "QueryPort", functor);
AddProperty(iQueryPort);
//.........这里部分代码省略.........
示例14: iCpProxy
CpProxyLinnCoUkFlash1::CpProxyLinnCoUkFlash1(CpDevice& aDevice)
: iCpProxy("linn-co-uk", "Flash", 1, aDevice.Device())
{
OpenHome::Net::Parameter* param;
iActionRead = new Action("Read");
param = new OpenHome::Net::ParameterUint("aId");
iActionRead->AddInputParameter(param);
param = new OpenHome::Net::ParameterUint("aAddress");
iActionRead->AddInputParameter(param);
param = new OpenHome::Net::ParameterUint("aLength");
iActionRead->AddInputParameter(param);
param = new OpenHome::Net::ParameterBinary("aBuffer");
iActionRead->AddOutputParameter(param);
iActionWrite = new Action("Write");
param = new OpenHome::Net::ParameterUint("aId");
iActionWrite->AddInputParameter(param);
param = new OpenHome::Net::ParameterUint("aAddress");
iActionWrite->AddInputParameter(param);
param = new OpenHome::Net::ParameterBinary("aSource");
iActionWrite->AddInputParameter(param);
iActionErase = new Action("Erase");
param = new OpenHome::Net::ParameterUint("aId");
iActionErase->AddInputParameter(param);
param = new OpenHome::Net::ParameterUint("aAddress");
iActionErase->AddInputParameter(param);
iActionEraseSector = new Action("EraseSector");
param = new OpenHome::Net::ParameterUint("aId");
iActionEraseSector->AddInputParameter(param);
param = new OpenHome::Net::ParameterUint("aSector");
iActionEraseSector->AddInputParameter(param);
iActionEraseSectors = new Action("EraseSectors");
param = new OpenHome::Net::ParameterUint("aId");
iActionEraseSectors->AddInputParameter(param);
param = new OpenHome::Net::ParameterUint("aFirstSector");
iActionEraseSectors->AddInputParameter(param);
param = new OpenHome::Net::ParameterUint("aLastSector");
iActionEraseSectors->AddInputParameter(param);
iActionEraseChip = new Action("EraseChip");
param = new OpenHome::Net::ParameterUint("aId");
iActionEraseChip->AddInputParameter(param);
iActionSectors = new Action("Sectors");
param = new OpenHome::Net::ParameterUint("aId");
iActionSectors->AddInputParameter(param);
param = new OpenHome::Net::ParameterUint("aSectors");
iActionSectors->AddOutputParameter(param);
iActionSectorBytes = new Action("SectorBytes");
param = new OpenHome::Net::ParameterUint("aId");
iActionSectorBytes->AddInputParameter(param);
param = new OpenHome::Net::ParameterUint("aBytes");
iActionSectorBytes->AddOutputParameter(param);
iActionRomDirInfo = new Action("RomDirInfo");
param = new OpenHome::Net::ParameterUint("aFlashIdMain");
iActionRomDirInfo->AddOutputParameter(param);
param = new OpenHome::Net::ParameterUint("aOffsetMain");
iActionRomDirInfo->AddOutputParameter(param);
param = new OpenHome::Net::ParameterUint("aBytesMain");
iActionRomDirInfo->AddOutputParameter(param);
param = new OpenHome::Net::ParameterUint("aFlashIdFallback");
iActionRomDirInfo->AddOutputParameter(param);
param = new OpenHome::Net::ParameterUint("aOffsetFallback");
iActionRomDirInfo->AddOutputParameter(param);
param = new OpenHome::Net::ParameterUint("aBytesFallback");
iActionRomDirInfo->AddOutputParameter(param);
}
示例15: CpProxy
CpProxyUpnpOrgContentDirectory1::CpProxyUpnpOrgContentDirectory1(CpDevice& aDevice)
: CpProxy("schemas-upnp-org", "ContentDirectory", 1, aDevice.Device())
{
OpenHome::Net::Parameter* param;
TChar** allowedValues;
TUint index;
iActionGetSearchCapabilities = new Action("GetSearchCapabilities");
param = new OpenHome::Net::ParameterString("SearchCaps");
iActionGetSearchCapabilities->AddOutputParameter(param);
iActionGetSortCapabilities = new Action("GetSortCapabilities");
param = new OpenHome::Net::ParameterString("SortCaps");
iActionGetSortCapabilities->AddOutputParameter(param);
iActionGetSystemUpdateID = new Action("GetSystemUpdateID");
param = new OpenHome::Net::ParameterUint("Id");
iActionGetSystemUpdateID->AddOutputParameter(param);
iActionBrowse = new Action("Browse");
param = new OpenHome::Net::ParameterString("ObjectID");
iActionBrowse->AddInputParameter(param);
index = 0;
allowedValues = new TChar*[2];
allowedValues[index++] = (TChar*)"BrowseMetadata";
allowedValues[index++] = (TChar*)"BrowseDirectChildren";
param = new OpenHome::Net::ParameterString("BrowseFlag", allowedValues, 2);
iActionBrowse->AddInputParameter(param);
delete[] allowedValues;
param = new OpenHome::Net::ParameterString("Filter");
iActionBrowse->AddInputParameter(param);
param = new OpenHome::Net::ParameterUint("StartingIndex");
iActionBrowse->AddInputParameter(param);
param = new OpenHome::Net::ParameterUint("RequestedCount");
iActionBrowse->AddInputParameter(param);
param = new OpenHome::Net::ParameterString("SortCriteria");
iActionBrowse->AddInputParameter(param);
param = new OpenHome::Net::ParameterString("Result");
iActionBrowse->AddOutputParameter(param);
param = new OpenHome::Net::ParameterUint("NumberReturned");
iActionBrowse->AddOutputParameter(param);
param = new OpenHome::Net::ParameterUint("TotalMatches");
iActionBrowse->AddOutputParameter(param);
param = new OpenHome::Net::ParameterUint("UpdateID");
iActionBrowse->AddOutputParameter(param);
iActionSearch = new Action("Search");
param = new OpenHome::Net::ParameterString("ContainerID");
iActionSearch->AddInputParameter(param);
param = new OpenHome::Net::ParameterString("SearchCriteria");
iActionSearch->AddInputParameter(param);
param = new OpenHome::Net::ParameterString("Filter");
iActionSearch->AddInputParameter(param);
param = new OpenHome::Net::ParameterUint("StartingIndex");
iActionSearch->AddInputParameter(param);
param = new OpenHome::Net::ParameterUint("RequestedCount");
iActionSearch->AddInputParameter(param);
param = new OpenHome::Net::ParameterString("SortCriteria");
iActionSearch->AddInputParameter(param);
param = new OpenHome::Net::ParameterString("Result");
iActionSearch->AddOutputParameter(param);
param = new OpenHome::Net::ParameterUint("NumberReturned");
iActionSearch->AddOutputParameter(param);
param = new OpenHome::Net::ParameterUint("TotalMatches");
iActionSearch->AddOutputParameter(param);
param = new OpenHome::Net::ParameterUint("UpdateID");
iActionSearch->AddOutputParameter(param);
iActionCreateObject = new Action("CreateObject");
param = new OpenHome::Net::ParameterString("ContainerID");
iActionCreateObject->AddInputParameter(param);
param = new OpenHome::Net::ParameterString("Elements");
iActionCreateObject->AddInputParameter(param);
param = new OpenHome::Net::ParameterString("ObjectID");
iActionCreateObject->AddOutputParameter(param);
param = new OpenHome::Net::ParameterString("Result");
iActionCreateObject->AddOutputParameter(param);
iActionDestroyObject = new Action("DestroyObject");
param = new OpenHome::Net::ParameterString("ObjectID");
iActionDestroyObject->AddInputParameter(param);
iActionUpdateObject = new Action("UpdateObject");
param = new OpenHome::Net::ParameterString("ObjectID");
iActionUpdateObject->AddInputParameter(param);
param = new OpenHome::Net::ParameterString("CurrentTagValue");
iActionUpdateObject->AddInputParameter(param);
param = new OpenHome::Net::ParameterString("NewTagValue");
iActionUpdateObject->AddInputParameter(param);
iActionImportResource = new Action("ImportResource");
param = new OpenHome::Net::ParameterString("SourceURI");
iActionImportResource->AddInputParameter(param);
param = new OpenHome::Net::ParameterString("DestinationURI");
iActionImportResource->AddInputParameter(param);
param = new OpenHome::Net::ParameterUint("TransferID");
iActionImportResource->AddOutputParameter(param);
iActionExportResource = new Action("ExportResource");
param = new OpenHome::Net::ParameterString("SourceURI");
//.........这里部分代码省略.........