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


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

本文整理汇总了C++中IDviInvocation::InvocationReadBool方法的典型用法代码示例。如果您正苦于以下问题:C++ IDviInvocation::InvocationReadBool方法的具体用法?C++ IDviInvocation::InvocationReadBool怎么用?C++ IDviInvocation::InvocationReadBool使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在IDviInvocation的用法示例。


在下文中一共展示了IDviInvocation::InvocationReadBool方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: invocation

void DvProviderAvOpenhomeOrgExakt3::DoSet(IDviInvocation& aInvocation)
{
    aInvocation.InvocationReadStart();
    Brhz DeviceId;
    aInvocation.InvocationReadString("DeviceId", DeviceId);
    TUint BankId = aInvocation.InvocationReadUint("BankId");
    Brhz FileUri;
    aInvocation.InvocationReadString("FileUri", FileUri);
    TBool Mute = aInvocation.InvocationReadBool("Mute");
    TBool Persist = aInvocation.InvocationReadBool("Persist");
    aInvocation.InvocationReadEnd();
    DviInvocation invocation(aInvocation);
    Set(invocation, DeviceId, BankId, FileUri, Mute, Persist);
}
开发者ID:openhome,项目名称:ohNetGenerated,代码行数:14,代码来源:DvAvOpenhomeOrgExakt3.cpp

示例2: resp

void DvProviderAvOpenhomeOrgPlaylist1::DoSetRepeat(IDviInvocation& aInvocation, TUint aVersion)
{
    aInvocation.InvocationReadStart();
    TBool Value = aInvocation.InvocationReadBool("Value");
    aInvocation.InvocationReadEnd();
    InvocationResponse resp(aInvocation);
    SetRepeat(resp, aVersion, Value);
}
开发者ID:wifigeek,项目名称:ohNet,代码行数:8,代码来源:DvAvOpenhomeOrgPlaylist1.cpp

示例3: resp

void DvProviderAvOpenhomeOrgVolume1::DoSetMute(IDviInvocation& aInvocation, TUint aVersion)
{
    aInvocation.InvocationReadStart();
    TBool Value = aInvocation.InvocationReadBool("Value");
    aInvocation.InvocationReadEnd();
    InvocationResponse resp(aInvocation);
    SetMute(resp, aVersion, Value);
}
开发者ID:wifigeek,项目名称:ohNet,代码行数:8,代码来源:DvAvOpenhomeOrgVolume1.cpp

示例4: invocation

void DvProviderOpenhomeOrgTestBasic1::DoSetBool(IDviInvocation& aInvocation)
{
    aInvocation.InvocationReadStart();
    TBool ValueBool = aInvocation.InvocationReadBool("ValueBool");
    aInvocation.InvocationReadEnd();
    DviInvocation invocation(aInvocation);
    SetBool(invocation, ValueBool);
}
开发者ID:Jacik,项目名称:ohNet,代码行数:8,代码来源:DvOpenhomeOrgTestBasic1.cpp

示例5: invocation

void DvProviderUpnpOrgSwitchPower1::DoSetTarget(IDviInvocation& aInvocation)
{
    aInvocation.InvocationReadStart();
    TBool newTargetValue = aInvocation.InvocationReadBool("newTargetValue");
    aInvocation.InvocationReadEnd();
    DviInvocation invocation(aInvocation);
    SetTarget(invocation, newTargetValue);
}
开发者ID:Wodath,项目名称:ohNet,代码行数:8,代码来源:DvUpnpOrgSwitchPower1.cpp

示例6: invocation

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

示例7: DeviceId

void DvProviderAvOpenhomeOrgExakt2Cpp::DoSet(IDviInvocation& aInvocation)
{
    aInvocation.InvocationReadStart();
    Brhz buf_DeviceId;
    aInvocation.InvocationReadString("DeviceId", buf_DeviceId);
    std::string DeviceId((const char*)buf_DeviceId.Ptr(), buf_DeviceId.Bytes());
    uint32_t BankId = aInvocation.InvocationReadUint("BankId");
    Brhz buf_FileUri;
    aInvocation.InvocationReadString("FileUri", buf_FileUri);
    std::string FileUri((const char*)buf_FileUri.Ptr(), buf_FileUri.Bytes());
    bool Mute = aInvocation.InvocationReadBool("Mute");
    bool Persist = aInvocation.InvocationReadBool("Persist");
    aInvocation.InvocationReadEnd();
    DvInvocationStd invocation(aInvocation);
    Set(invocation, DeviceId, BankId, FileUri, Mute, Persist);
    aInvocation.InvocationWriteStart();
    aInvocation.InvocationWriteEnd();
}
开发者ID:DoomHammer,项目名称:ohNetGenerated,代码行数:18,代码来源:DvAvOpenhomeOrgExakt2Std.cpp

示例8: invocation

void DvProviderAvOpenhomeOrgTransport1Cpp::DoSetRepeat(IDviInvocation& aInvocation)
{
    aInvocation.InvocationReadStart();
    bool Repeat = aInvocation.InvocationReadBool("Repeat");
    aInvocation.InvocationReadEnd();
    DvInvocationStd invocation(aInvocation);
    SetRepeat(invocation, Repeat);
    aInvocation.InvocationWriteStart();
    aInvocation.InvocationWriteEnd();
}
开发者ID:openhome,项目名称:ohNetGenerated,代码行数:10,代码来源:DvAvOpenhomeOrgTransport1Std.cpp

示例9: invocation

void DvProviderAvOpenhomeOrgProduct2Cpp::DoSetStandby(IDviInvocation& aInvocation)
{
    aInvocation.InvocationReadStart();
    bool Value = aInvocation.InvocationReadBool("Value");
    aInvocation.InvocationReadEnd();
    DvInvocationStd invocation(aInvocation);
    SetStandby(invocation, Value);
    aInvocation.InvocationWriteStart();
    aInvocation.InvocationWriteEnd();
}
开发者ID:Montellese,项目名称:ohNetGenerated,代码行数:10,代码来源:DvAvOpenhomeOrgProduct2Std.cpp

示例10: resp

void DvProviderUpnpOrgRenderingControl1::DoSetMute(IDviInvocation& aInvocation, TUint aVersion)
{
    aInvocation.InvocationReadStart();
    TUint InstanceID = aInvocation.InvocationReadUint("InstanceID");
    Brhz Channel;
    aInvocation.InvocationReadString("Channel", Channel);
    TBool DesiredMute = aInvocation.InvocationReadBool("DesiredMute");
    aInvocation.InvocationReadEnd();
    InvocationResponse resp(aInvocation);
    SetMute(resp, aVersion, InstanceID, Channel, DesiredMute);
}
开发者ID:wifigeek,项目名称:ohNet,代码行数:11,代码来源:DvUpnpOrgRenderingControl1.cpp

示例11: invocation

void DvProviderUpnpOrgRenderingControl1::DoSetLoudness(IDviInvocation& aInvocation)
{
    aInvocation.InvocationReadStart();
    TUint InstanceID = aInvocation.InvocationReadUint("InstanceID");
    Brhz Channel;
    aInvocation.InvocationReadString("Channel", Channel);
    TBool DesiredLoudness = aInvocation.InvocationReadBool("DesiredLoudness");
    aInvocation.InvocationReadEnd();
    DviInvocation invocation(aInvocation);
    SetLoudness(invocation, InstanceID, Channel, DesiredLoudness);
}
开发者ID:astaykov,项目名称:ohNet,代码行数:11,代码来源:DvUpnpOrgRenderingControl1.cpp

示例12: DvInvocationReadBool

int32_t DvInvocationReadBool(DvInvocationC aInvocation, const char* aName, uint32_t* aValue)
{
    IDviInvocation* invocation = InvocationFromHandle(aInvocation);
    try {
        TBool value = invocation->InvocationReadBool(aName);
        *aValue = (value? 1 : 0);
    }
    catch (InvocationError&) {
        return -1;
    }
    return 0;
}
开发者ID:wifigeek,项目名称:ohNet,代码行数:12,代码来源:DvProviderC.cpp

示例13: AesKeyRsaEncrypted

void DvProviderLinnCoUkCloud1Cpp::DoSetAssociated(IDviInvocation& aInvocation)
{
    aInvocation.InvocationReadStart();
    Brh buf_AesKeyRsaEncrypted;
    aInvocation.InvocationReadBinary("AesKeyRsaEncrypted", buf_AesKeyRsaEncrypted);
    std::string AesKeyRsaEncrypted((const char*)buf_AesKeyRsaEncrypted.Ptr(), buf_AesKeyRsaEncrypted.Bytes());
    Brh buf_InitVectorRsaEncrypted;
    aInvocation.InvocationReadBinary("InitVectorRsaEncrypted", buf_InitVectorRsaEncrypted);
    std::string InitVectorRsaEncrypted((const char*)buf_InitVectorRsaEncrypted.Ptr(), buf_InitVectorRsaEncrypted.Bytes());
    Brh buf_TokenAesEncrypted;
    aInvocation.InvocationReadBinary("TokenAesEncrypted", buf_TokenAesEncrypted);
    std::string TokenAesEncrypted((const char*)buf_TokenAesEncrypted.Ptr(), buf_TokenAesEncrypted.Bytes());
    bool Associated = aInvocation.InvocationReadBool("Associated");
    aInvocation.InvocationReadEnd();
    DvInvocationStd invocation(aInvocation);
    SetAssociated(invocation, AesKeyRsaEncrypted, InitVectorRsaEncrypted, TokenAesEncrypted, Associated);
    aInvocation.InvocationWriteStart();
    aInvocation.InvocationWriteEnd();
}
开发者ID:openhome,项目名称:ohNetGenerated,代码行数:19,代码来源:DvLinnCoUkCloud1Std.cpp

示例14: invocationWrapper

void DvProviderAvOpenhomeOrgCredentials1C::DoSetEnabled(IDviInvocation& aInvocation)
{
    DvInvocationCPrivate invocationWrapper(aInvocation);
    IDvInvocationC* invocationC;
    void* invocationCPtr;
    invocationWrapper.GetInvocationC(&invocationC, &invocationCPtr);
    aInvocation.InvocationReadStart();
    Brhz Id;
    aInvocation.InvocationReadString("Id", Id);
    TBool Enabled = aInvocation.InvocationReadBool("Enabled");
    aInvocation.InvocationReadEnd();
    DviInvocation invocation(aInvocation);
    ASSERT(iCallbackSetEnabled != NULL);
    if (0 != iCallbackSetEnabled(iPtrSetEnabled, invocationC, invocationCPtr, (const char*)Id.Ptr(), Enabled)) {
        invocation.Error(502, Brn("Action failed"));
        return;
    }
    invocation.StartResponse();
    invocation.EndResponse();
}
开发者ID:DoomHammer,项目名称:ohNetGenerated,代码行数:20,代码来源:DvAvOpenhomeOrgCredentials1C.cpp

示例15: invocationWrapper

void DvProviderLinnCoUkCloud1C::DoSetAssociated(IDviInvocation& aInvocation)
{
    DvInvocationCPrivate invocationWrapper(aInvocation);
    IDvInvocationC* invocationC;
    void* invocationCPtr;
    invocationWrapper.GetInvocationC(&invocationC, &invocationCPtr);
    aInvocation.InvocationReadStart();
    Brh AesKeyRsaEncrypted;
    aInvocation.InvocationReadBinary("AesKeyRsaEncrypted", AesKeyRsaEncrypted);
    Brh InitVectorRsaEncrypted;
    aInvocation.InvocationReadBinary("InitVectorRsaEncrypted", InitVectorRsaEncrypted);
    Brh TokenAesEncrypted;
    aInvocation.InvocationReadBinary("TokenAesEncrypted", TokenAesEncrypted);
    TBool Associated = aInvocation.InvocationReadBool("Associated");
    aInvocation.InvocationReadEnd();
    DviInvocation invocation(aInvocation);
    ASSERT(iCallbackSetAssociated != NULL);
    if (0 != iCallbackSetAssociated(iPtrSetAssociated, invocationC, invocationCPtr, (const char*)AesKeyRsaEncrypted.Ptr(), AesKeyRsaEncrypted.Bytes(), (const char*)InitVectorRsaEncrypted.Ptr(), InitVectorRsaEncrypted.Bytes(), (const char*)TokenAesEncrypted.Ptr(), TokenAesEncrypted.Bytes(), Associated)) {
        invocation.Error(502, Brn("Action failed"));
        return;
    }
    invocation.StartResponse();
    invocation.EndResponse();
}
开发者ID:openhome,项目名称:ohNetGenerated,代码行数:24,代码来源:DvLinnCoUkCloud1C.cpp


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