本文整理汇总了C++中IDviInvocation::InvocationReadInt方法的典型用法代码示例。如果您正苦于以下问题:C++ IDviInvocation::InvocationReadInt方法的具体用法?C++ IDviInvocation::InvocationReadInt怎么用?C++ IDviInvocation::InvocationReadInt使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IDviInvocation
的用法示例。
在下文中一共展示了IDviInvocation::InvocationReadInt方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: resp
void DvProviderUpnpOrgConnectionManager2C::DoPrepareForConnection(IDviInvocation& aInvocation, TUint aVersion)
{
aInvocation.InvocationReadStart();
Brhz RemoteProtocolInfo;
aInvocation.InvocationReadString("RemoteProtocolInfo", RemoteProtocolInfo);
Brhz PeerConnectionManager;
aInvocation.InvocationReadString("PeerConnectionManager", PeerConnectionManager);
TInt PeerConnectionID = aInvocation.InvocationReadInt("PeerConnectionID");
Brhz Direction;
aInvocation.InvocationReadString("Direction", Direction);
aInvocation.InvocationReadEnd();
InvocationResponse resp(aInvocation);
int32_t ConnectionID;
int32_t AVTransportID;
int32_t RcsID;
ASSERT(iCallbackPrepareForConnection != NULL);
if (0 != iCallbackPrepareForConnection(iPtrPrepareForConnection, aVersion, (const char*)RemoteProtocolInfo.Ptr(), (const char*)PeerConnectionManager.Ptr(), PeerConnectionID, (const char*)Direction.Ptr(), &ConnectionID, &AVTransportID, &RcsID)) {
resp.Error(502, Brn("Action failed"));
return;
}
InvocationResponseInt respConnectionID(aInvocation, "ConnectionID");
InvocationResponseInt respAVTransportID(aInvocation, "AVTransportID");
InvocationResponseInt respRcsID(aInvocation, "RcsID");
resp.Start();
respConnectionID.Write(ConnectionID);
respAVTransportID.Write(AVTransportID);
respRcsID.Write(RcsID);
resp.End();
}
示例2: invocation
void DvProviderAvOpenhomeOrgVolume1::DoSetFade(IDviInvocation& aInvocation)
{
aInvocation.InvocationReadStart();
TInt Value = aInvocation.InvocationReadInt("Value");
aInvocation.InvocationReadEnd();
DviInvocation invocation(aInvocation);
SetFade(invocation, Value);
}
示例3: resp
void DvProviderAvOpenhomeOrgVolume1::DoSetFade(IDviInvocation& aInvocation, TUint aVersion)
{
aInvocation.InvocationReadStart();
TInt Value = aInvocation.InvocationReadInt("Value");
aInvocation.InvocationReadEnd();
InvocationResponse resp(aInvocation);
SetFade(resp, aVersion, Value);
}
示例4: resp
void DvProviderAvOpenhomeOrgPlaylist1::DoSeekSecondRelative(IDviInvocation& aInvocation, TUint aVersion)
{
aInvocation.InvocationReadStart();
TInt Value = aInvocation.InvocationReadInt("Value");
aInvocation.InvocationReadEnd();
InvocationResponse resp(aInvocation);
SeekSecondRelative(resp, aVersion, Value);
}
示例5: invocation
void DvProviderOpenhomeOrgTestBasic1::DoSetInt(IDviInvocation& aInvocation)
{
aInvocation.InvocationReadStart();
TInt ValueInt = aInvocation.InvocationReadInt("ValueInt");
aInvocation.InvocationReadEnd();
DviInvocation invocation(aInvocation);
SetInt(invocation, ValueInt);
}
示例6: invocation
void DvProviderUpnpOrgRenderingControl1::DoSetVerticalKeystone(IDviInvocation& aInvocation)
{
aInvocation.InvocationReadStart();
TUint InstanceID = aInvocation.InvocationReadUint("InstanceID");
TInt DesiredVerticalKeystone = aInvocation.InvocationReadInt("DesiredVerticalKeystone");
aInvocation.InvocationReadEnd();
DviInvocation invocation(aInvocation);
SetVerticalKeystone(invocation, InstanceID, DesiredVerticalKeystone);
}
示例7: resp
void DvProviderUpnpOrgRenderingControl1::DoSetHorizontalKeystone(IDviInvocation& aInvocation, TUint aVersion)
{
aInvocation.InvocationReadStart();
TUint InstanceID = aInvocation.InvocationReadUint("InstanceID");
TInt DesiredHorizontalKeystone = aInvocation.InvocationReadInt("DesiredHorizontalKeystone");
aInvocation.InvocationReadEnd();
InvocationResponse resp(aInvocation);
SetHorizontalKeystone(resp, aVersion, InstanceID, DesiredHorizontalKeystone);
}
示例8: invocation
void DvProviderAvOpenhomeOrgTransport1Cpp::DoSeekSecondRelative(IDviInvocation& aInvocation)
{
aInvocation.InvocationReadStart();
uint32_t StreamId = aInvocation.InvocationReadUint("StreamId");
int32_t SecondRelative = aInvocation.InvocationReadInt("SecondRelative");
aInvocation.InvocationReadEnd();
DvInvocationStd invocation(aInvocation);
SeekSecondRelative(invocation, StreamId, SecondRelative);
aInvocation.InvocationWriteStart();
aInvocation.InvocationWriteEnd();
}
示例9: DvInvocationReadInt
int32_t DvInvocationReadInt(DvInvocationC aInvocation, const char* aName, int32_t* aValue)
{
IDviInvocation* invocation = InvocationFromHandle(aInvocation);
try {
*aValue = invocation->InvocationReadInt(aName);
}
catch (InvocationError&) {
return -1;
}
return 0;
}
示例10: invocationWrapper
void DvProviderAvOpenhomeOrgRadio1C::DoSeekSecondRelative(IDviInvocation& aInvocation)
{
DvInvocationCPrivate invocationWrapper(aInvocation);
IDvInvocationC* invocationC;
void* invocationCPtr;
invocationWrapper.GetInvocationC(&invocationC, &invocationCPtr);
aInvocation.InvocationReadStart();
TInt Value = aInvocation.InvocationReadInt("Value");
aInvocation.InvocationReadEnd();
DviInvocation invocation(aInvocation);
ASSERT(iCallbackSeekSecondRelative != NULL);
if (0 != iCallbackSeekSecondRelative(iPtrSeekSecondRelative, invocationC, invocationCPtr, Value)) {
invocation.Error(502, Brn("Action failed"));
return;
}
invocation.StartResponse();
invocation.EndResponse();
}