当前位置: 首页>>代码示例>>C++>>正文


C++ IDviInvocation::InvocationReadInt方法代码示例

本文整理汇总了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();
}
开发者ID:wifigeek,项目名称:ohNet,代码行数:29,代码来源:DvUpnpOrgConnectionManager2C.cpp

示例2: invocation

void DvProviderAvOpenhomeOrgVolume1::DoSetFade(IDviInvocation& aInvocation)
{
    aInvocation.InvocationReadStart();
    TInt Value = aInvocation.InvocationReadInt("Value");
    aInvocation.InvocationReadEnd();
    DviInvocation invocation(aInvocation);
    SetFade(invocation, Value);
}
开发者ID:astaykov,项目名称:ohNet,代码行数:8,代码来源:DvAvOpenhomeOrgVolume1.cpp

示例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);
}
开发者ID:wifigeek,项目名称:ohNet,代码行数:8,代码来源:DvAvOpenhomeOrgVolume1.cpp

示例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);
}
开发者ID:wifigeek,项目名称:ohNet,代码行数:8,代码来源:DvAvOpenhomeOrgPlaylist1.cpp

示例5: invocation

void DvProviderOpenhomeOrgTestBasic1::DoSetInt(IDviInvocation& aInvocation)
{
    aInvocation.InvocationReadStart();
    TInt ValueInt = aInvocation.InvocationReadInt("ValueInt");
    aInvocation.InvocationReadEnd();
    DviInvocation invocation(aInvocation);
    SetInt(invocation, ValueInt);
}
开发者ID:Jacik,项目名称:ohNet,代码行数:8,代码来源:DvOpenhomeOrgTestBasic1.cpp

示例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);
}
开发者ID:astaykov,项目名称:ohNet,代码行数:9,代码来源:DvUpnpOrgRenderingControl1.cpp

示例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);
}
开发者ID:wifigeek,项目名称:ohNet,代码行数:9,代码来源:DvUpnpOrgRenderingControl1.cpp

示例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();
}
开发者ID:openhome,项目名称:ohNetGenerated,代码行数:11,代码来源:DvAvOpenhomeOrgTransport1Std.cpp

示例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;
}
开发者ID:wifigeek,项目名称:ohNet,代码行数:11,代码来源:DvProviderC.cpp

示例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();
}
开发者ID:astaykov,项目名称:ohNet,代码行数:18,代码来源:DvAvOpenhomeOrgRadio1C.cpp


注:本文中的IDviInvocation::InvocationReadInt方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。