本文整理汇总了C++中IDviInvocation::InvocationReadEnd方法的典型用法代码示例。如果您正苦于以下问题:C++ IDviInvocation::InvocationReadEnd方法的具体用法?C++ IDviInvocation::InvocationReadEnd怎么用?C++ IDviInvocation::InvocationReadEnd使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IDviInvocation
的用法示例。
在下文中一共展示了IDviInvocation::InvocationReadEnd方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: invocation
void DvProviderUpnpOrgAVTransport2::DoGetPositionInfo(IDviInvocation& aInvocation)
{
aInvocation.InvocationReadStart();
TUint InstanceID = aInvocation.InvocationReadUint("InstanceID");
aInvocation.InvocationReadEnd();
DviInvocation invocation(aInvocation);
DviInvocationResponseUint respTrack(aInvocation, "Track");
DviInvocationResponseString respTrackDuration(aInvocation, "TrackDuration");
DviInvocationResponseString respTrackMetaData(aInvocation, "TrackMetaData");
DviInvocationResponseString respTrackURI(aInvocation, "TrackURI");
DviInvocationResponseString respRelTime(aInvocation, "RelTime");
DviInvocationResponseString respAbsTime(aInvocation, "AbsTime");
DviInvocationResponseInt respRelCount(aInvocation, "RelCount");
DviInvocationResponseInt respAbsCount(aInvocation, "AbsCount");
GetPositionInfo(invocation, InstanceID, respTrack, respTrackDuration, respTrackMetaData, respTrackURI, respRelTime, respAbsTime, respRelCount, respAbsCount);
}
示例2: NextURI
void DvProviderUpnpOrgAVTransport2Cpp::DoSetNextAVTransportURI(IDviInvocation& aInvocation)
{
aInvocation.InvocationReadStart();
uint32_t InstanceID = aInvocation.InvocationReadUint("InstanceID");
Brhz buf_NextURI;
aInvocation.InvocationReadString("NextURI", buf_NextURI);
std::string NextURI((const char*)buf_NextURI.Ptr(), buf_NextURI.Bytes());
Brhz buf_NextURIMetaData;
aInvocation.InvocationReadString("NextURIMetaData", buf_NextURIMetaData);
std::string NextURIMetaData((const char*)buf_NextURIMetaData.Ptr(), buf_NextURIMetaData.Bytes());
aInvocation.InvocationReadEnd();
DvInvocationStd invocation(aInvocation);
SetNextAVTransportURI(invocation, InstanceID, NextURI, NextURIMetaData);
aInvocation.InvocationWriteStart();
aInvocation.InvocationWriteEnd();
}
示例3: Unit
void DvProviderUpnpOrgAVTransport2Cpp::DoSeek(IDviInvocation& aInvocation)
{
aInvocation.InvocationReadStart();
uint32_t InstanceID = aInvocation.InvocationReadUint("InstanceID");
Brhz buf_Unit;
aInvocation.InvocationReadString("Unit", buf_Unit);
std::string Unit((const char*)buf_Unit.Ptr(), buf_Unit.Bytes());
Brhz buf_Target;
aInvocation.InvocationReadString("Target", buf_Target);
std::string Target((const char*)buf_Target.Ptr(), buf_Target.Bytes());
aInvocation.InvocationReadEnd();
DvInvocationStd invocation(aInvocation);
Seek(invocation, InstanceID, Unit, Target);
aInvocation.InvocationWriteStart();
aInvocation.InvocationWriteEnd();
}
示例4: resp
void DvProviderUpnpOrgConnectionManager2C::DoGetCurrentConnectionInfo(IDviInvocation& aInvocation, TUint aVersion)
{
aInvocation.InvocationReadStart();
TInt ConnectionID = aInvocation.InvocationReadInt("ConnectionID");
aInvocation.InvocationReadEnd();
InvocationResponse resp(aInvocation);
int32_t RcsID;
int32_t AVTransportID;
char* ProtocolInfo;
char* PeerConnectionManager;
int32_t PeerConnectionID;
char* Direction;
char* Status;
ASSERT(iCallbackGetCurrentConnectionInfo != NULL);
if (0 != iCallbackGetCurrentConnectionInfo(iPtrGetCurrentConnectionInfo, aVersion, ConnectionID, &RcsID, &AVTransportID, &ProtocolInfo, &PeerConnectionManager, &PeerConnectionID, &Direction, &Status)) {
resp.Error(502, Brn("Action failed"));
return;
}
InvocationResponseInt respRcsID(aInvocation, "RcsID");
InvocationResponseInt respAVTransportID(aInvocation, "AVTransportID");
InvocationResponseString respProtocolInfo(aInvocation, "ProtocolInfo");
InvocationResponseString respPeerConnectionManager(aInvocation, "PeerConnectionManager");
InvocationResponseInt respPeerConnectionID(aInvocation, "PeerConnectionID");
InvocationResponseString respDirection(aInvocation, "Direction");
InvocationResponseString respStatus(aInvocation, "Status");
resp.Start();
respRcsID.Write(RcsID);
respAVTransportID.Write(AVTransportID);
Brhz bufProtocolInfo((const TChar*)ProtocolInfo);
OhNetFreeExternal(ProtocolInfo);
respProtocolInfo.Write(bufProtocolInfo);
respProtocolInfo.WriteFlush();
Brhz bufPeerConnectionManager((const TChar*)PeerConnectionManager);
OhNetFreeExternal(PeerConnectionManager);
respPeerConnectionManager.Write(bufPeerConnectionManager);
respPeerConnectionManager.WriteFlush();
respPeerConnectionID.Write(PeerConnectionID);
Brhz bufDirection((const TChar*)Direction);
OhNetFreeExternal(Direction);
respDirection.Write(bufDirection);
respDirection.WriteFlush();
Brhz bufStatus((const TChar*)Status);
OhNetFreeExternal(Status);
respStatus.Write(bufStatus);
respStatus.WriteFlush();
resp.End();
}
示例5: invocation
void DvProviderUpnpOrgScheduledRecording1::DoBrowseRecordSchedules(IDviInvocation& aInvocation)
{
aInvocation.InvocationReadStart();
Brhz Filter;
aInvocation.InvocationReadString("Filter", Filter);
TUint StartingIndex = aInvocation.InvocationReadUint("StartingIndex");
TUint RequestedCount = aInvocation.InvocationReadUint("RequestedCount");
Brhz SortCriteria;
aInvocation.InvocationReadString("SortCriteria", SortCriteria);
aInvocation.InvocationReadEnd();
DviInvocation invocation(aInvocation);
DviInvocationResponseString respResult(aInvocation, "Result");
DviInvocationResponseUint respNumberReturned(aInvocation, "NumberReturned");
DviInvocationResponseUint respTotalMatches(aInvocation, "TotalMatches");
DviInvocationResponseUint respUpdateID(aInvocation, "UpdateID");
BrowseRecordSchedules(invocation, Filter, StartingIndex, RequestedCount, SortCriteria, respResult, respNumberReturned, respTotalMatches, respUpdateID);
}
示例6: invocation
void DvProviderLinnCoUkFlash1Cpp::DoRead(IDviInvocation& aInvocation)
{
aInvocation.InvocationReadStart();
uint32_t aId = aInvocation.InvocationReadUint("aId");
uint32_t aAddress = aInvocation.InvocationReadUint("aAddress");
uint32_t aLength = aInvocation.InvocationReadUint("aLength");
aInvocation.InvocationReadEnd();
std::string respaBuffer;
DvInvocationStd invocation(aInvocation);
Read(invocation, aId, aAddress, aLength, respaBuffer);
aInvocation.InvocationWriteStart();
DviInvocationResponseBinary respWriteraBuffer(aInvocation, "aBuffer");
Brn buf_aBuffer((const TByte*)respaBuffer.c_str(), (TUint)respaBuffer.length());
respWriteraBuffer.Write(buf_aBuffer);
aInvocation.InvocationWriteBinaryEnd("aBuffer");
aInvocation.InvocationWriteEnd();
}
示例7: resp
void DvProviderUpnpOrgAVTransport1::DoGetMediaInfo(IDviInvocation& aInvocation, TUint aVersion)
{
aInvocation.InvocationReadStart();
TUint InstanceID = aInvocation.InvocationReadUint("InstanceID");
aInvocation.InvocationReadEnd();
InvocationResponse resp(aInvocation);
InvocationResponseUint respNrTracks(aInvocation, "NrTracks");
InvocationResponseString respMediaDuration(aInvocation, "MediaDuration");
InvocationResponseString respCurrentURI(aInvocation, "CurrentURI");
InvocationResponseString respCurrentURIMetaData(aInvocation, "CurrentURIMetaData");
InvocationResponseString respNextURI(aInvocation, "NextURI");
InvocationResponseString respNextURIMetaData(aInvocation, "NextURIMetaData");
InvocationResponseString respPlayMedium(aInvocation, "PlayMedium");
InvocationResponseString respRecordMedium(aInvocation, "RecordMedium");
InvocationResponseString respWriteStatus(aInvocation, "WriteStatus");
GetMediaInfo(resp, aVersion, InstanceID, respNrTracks, respMediaDuration, respCurrentURI, respCurrentURIMetaData, respNextURI, respNextURIMetaData, respPlayMedium, respRecordMedium, respWriteStatus);
}
示例8: invocationWrapper
void DvProviderAvOpenhomeOrgRadio1C::DoStop(IDviInvocation& aInvocation)
{
DvInvocationCPrivate invocationWrapper(aInvocation);
IDvInvocationC* invocationC;
void* invocationCPtr;
invocationWrapper.GetInvocationC(&invocationC, &invocationCPtr);
aInvocation.InvocationReadStart();
aInvocation.InvocationReadEnd();
DviInvocation invocation(aInvocation);
ASSERT(iCallbackStop != NULL);
if (0 != iCallbackStop(iPtrStop, invocationC, invocationCPtr)) {
invocation.Error(502, Brn("Action failed"));
return;
}
invocation.StartResponse();
invocation.EndResponse();
}
示例9: DeviceId
void DvProviderAvOpenhomeOrgExakt2Cpp::DoDeviceSettings(IDviInvocation& aInvocation)
{
aInvocation.InvocationReadStart();
Brhz buf_DeviceId;
aInvocation.InvocationReadString("DeviceId", buf_DeviceId);
std::string DeviceId((const char*)buf_DeviceId.Ptr(), buf_DeviceId.Bytes());
aInvocation.InvocationReadEnd();
std::string respSettings;
DvInvocationStd invocation(aInvocation);
DeviceSettings(invocation, DeviceId, respSettings);
aInvocation.InvocationWriteStart();
DviInvocationResponseString respWriterSettings(aInvocation, "Settings");
Brn buf_Settings((const TByte*)respSettings.c_str(), (TUint)respSettings.length());
respWriterSettings.Write(buf_Settings);
aInvocation.InvocationWriteStringEnd("Settings");
aInvocation.InvocationWriteEnd();
}
示例10: Challenge
void DvProviderLinnCoUkCloud1Cpp::DoGetChallengeResponse(IDviInvocation& aInvocation)
{
aInvocation.InvocationReadStart();
Brhz buf_Challenge;
aInvocation.InvocationReadString("Challenge", buf_Challenge);
std::string Challenge((const char*)buf_Challenge.Ptr(), buf_Challenge.Bytes());
aInvocation.InvocationReadEnd();
std::string respResponse;
DvInvocationStd invocation(aInvocation);
GetChallengeResponse(invocation, Challenge, respResponse);
aInvocation.InvocationWriteStart();
DviInvocationResponseString respWriterResponse(aInvocation, "Response");
Brn buf_Response((const TByte*)respResponse.c_str(), (TUint)respResponse.length());
respWriterResponse.Write(buf_Response);
aInvocation.InvocationWriteStringEnd("Response");
aInvocation.InvocationWriteEnd();
}
示例11: invocation
void DvProviderUpnpOrgDimming1Cpp::DoGetOnEffectParameters(IDviInvocation& aInvocation)
{
aInvocation.InvocationReadStart();
aInvocation.InvocationReadEnd();
std::string respretOnEffect;
uint32_t respretOnEffectLevel;
DvInvocationStd invocation(aInvocation);
GetOnEffectParameters(invocation, respretOnEffect, respretOnEffectLevel);
aInvocation.InvocationWriteStart();
DviInvocationResponseString respWriterretOnEffect(aInvocation, "retOnEffect");
Brn buf_retOnEffect((const TByte*)respretOnEffect.c_str(), (TUint)respretOnEffect.length());
respWriterretOnEffect.Write(buf_retOnEffect);
aInvocation.InvocationWriteStringEnd("retOnEffect");
DviInvocationResponseUint respWriterretOnEffectLevel(aInvocation, "retOnEffectLevel");
respWriterretOnEffectLevel.Write(respretOnEffectLevel);
aInvocation.InvocationWriteEnd();
}
示例12: respWriterTrackCount
void DvProviderAvOpenhomeOrgTime1Cpp::DoTime(IDviInvocation& aInvocation, uint32_t aVersion)
{
aInvocation.InvocationReadStart();
aInvocation.InvocationReadEnd();
uint32_t respTrackCount;
uint32_t respDuration;
uint32_t respSeconds;
Time(aVersion, respTrackCount, respDuration, respSeconds);
aInvocation.InvocationWriteStart();
InvocationResponseUint respWriterTrackCount(aInvocation, "TrackCount");
respWriterTrackCount.Write(respTrackCount);
InvocationResponseUint respWriterDuration(aInvocation, "Duration");
respWriterDuration.Write(respDuration);
InvocationResponseUint respWriterSeconds(aInvocation, "Seconds");
respWriterSeconds.Write(respSeconds);
aInvocation.InvocationWriteEnd();
}
示例13: DataTypeID
void DvProviderUpnpOrgScheduledRecording2Cpp::DoGetPropertyList(IDviInvocation& aInvocation)
{
aInvocation.InvocationReadStart();
Brhz buf_DataTypeID;
aInvocation.InvocationReadString("DataTypeID", buf_DataTypeID);
std::string DataTypeID((const char*)buf_DataTypeID.Ptr(), buf_DataTypeID.Bytes());
aInvocation.InvocationReadEnd();
std::string respPropertyList;
DvInvocationStd invocation(aInvocation);
GetPropertyList(invocation, DataTypeID, respPropertyList);
aInvocation.InvocationWriteStart();
DviInvocationResponseString respWriterPropertyList(aInvocation, "PropertyList");
Brn buf_PropertyList((const TByte*)respPropertyList.c_str(), (TUint)respPropertyList.length());
respWriterPropertyList.Write(buf_PropertyList);
aInvocation.InvocationWriteStringEnd("PropertyList");
aInvocation.InvocationWriteEnd();
}
示例14: invocation
void DvProviderLinnCoUkVolkano1Cpp::DoSoftwareUpdate(IDviInvocation& aInvocation)
{
aInvocation.InvocationReadStart();
aInvocation.InvocationReadEnd();
bool respaAvailable;
std::string respaSoftwareVersion;
DvInvocationStd invocation(aInvocation);
SoftwareUpdate(invocation, respaAvailable, respaSoftwareVersion);
aInvocation.InvocationWriteStart();
DviInvocationResponseBool respWriteraAvailable(aInvocation, "aAvailable");
respWriteraAvailable.Write(respaAvailable);
DviInvocationResponseString respWriteraSoftwareVersion(aInvocation, "aSoftwareVersion");
Brn buf_aSoftwareVersion((const TByte*)respaSoftwareVersion.c_str(), (TUint)respaSoftwareVersion.length());
respWriteraSoftwareVersion.Write(buf_aSoftwareVersion);
aInvocation.InvocationWriteStringEnd("aSoftwareVersion");
aInvocation.InvocationWriteEnd();
}
示例15: invocation
void DvProviderUpnpOrgScheduledRecording2Cpp::DoGetSortCapabilities(IDviInvocation& aInvocation)
{
aInvocation.InvocationReadStart();
aInvocation.InvocationReadEnd();
std::string respSortCaps;
uint32_t respSortLevelCap;
DvInvocationStd invocation(aInvocation);
GetSortCapabilities(invocation, respSortCaps, respSortLevelCap);
aInvocation.InvocationWriteStart();
DviInvocationResponseString respWriterSortCaps(aInvocation, "SortCaps");
Brn buf_SortCaps((const TByte*)respSortCaps.c_str(), (TUint)respSortCaps.length());
respWriterSortCaps.Write(buf_SortCaps);
aInvocation.InvocationWriteStringEnd("SortCaps");
DviInvocationResponseUint respWriterSortLevelCap(aInvocation, "SortLevelCap");
respWriterSortLevelCap.Write(respSortLevelCap);
aInvocation.InvocationWriteEnd();
}