本文整理汇总了C++中IDviInvocation::InvocationReadUint方法的典型用法代码示例。如果您正苦于以下问题:C++ IDviInvocation::InvocationReadUint方法的具体用法?C++ IDviInvocation::InvocationReadUint怎么用?C++ IDviInvocation::InvocationReadUint使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IDviInvocation
的用法示例。
在下文中一共展示了IDviInvocation::InvocationReadUint方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: invocationWrapper
void DvProviderUpnpOrgAVTransport1C::DoSetRecordQualityMode(IDviInvocation& aInvocation)
{
DvInvocationCPrivate invocationWrapper(aInvocation);
IDvInvocationC* invocationC;
void* invocationCPtr;
invocationWrapper.GetInvocationC(&invocationC, &invocationCPtr);
aInvocation.InvocationReadStart();
TUint InstanceID = aInvocation.InvocationReadUint("InstanceID");
Brhz NewRecordQualityMode;
aInvocation.InvocationReadString("NewRecordQualityMode", NewRecordQualityMode);
aInvocation.InvocationReadEnd();
DviInvocation invocation(aInvocation);
ASSERT(iCallbackSetRecordQualityMode != NULL);
if (0 != iCallbackSetRecordQualityMode(iPtrSetRecordQualityMode, invocationC, invocationCPtr, InstanceID, (const char*)NewRecordQualityMode.Ptr())) {
invocation.Error(502, Brn("Action failed"));
return;
}
invocation.StartResponse();
invocation.EndResponse();
}
示例2: invocationWrapper
void DvProviderAvOpenhomeOrgRadio1C::DoIdArrayChanged(IDviInvocation& aInvocation)
{
DvInvocationCPrivate invocationWrapper(aInvocation);
IDvInvocationC* invocationC;
void* invocationCPtr;
invocationWrapper.GetInvocationC(&invocationC, &invocationCPtr);
aInvocation.InvocationReadStart();
TUint Token = aInvocation.InvocationReadUint("Token");
aInvocation.InvocationReadEnd();
DviInvocation invocation(aInvocation);
uint32_t Value;
ASSERT(iCallbackIdArrayChanged != NULL);
if (0 != iCallbackIdArrayChanged(iPtrIdArrayChanged, invocationC, invocationCPtr, Token, &Value)) {
invocation.Error(502, Brn("Action failed"));
return;
}
DviInvocationResponseBool respValue(aInvocation, "Value");
invocation.StartResponse();
respValue.Write((Value!=0));
invocation.EndResponse();
}
示例3: invocationWrapper
void DvProviderUpnpOrgAVTransport1C::DoSeek(IDviInvocation& aInvocation)
{
DvInvocationCPrivate invocationWrapper(aInvocation);
IDvInvocationC* invocationC;
void* invocationCPtr;
invocationWrapper.GetInvocationC(&invocationC, &invocationCPtr);
aInvocation.InvocationReadStart();
TUint InstanceID = aInvocation.InvocationReadUint("InstanceID");
Brhz Unit;
aInvocation.InvocationReadString("Unit", Unit);
Brhz Target;
aInvocation.InvocationReadString("Target", Target);
aInvocation.InvocationReadEnd();
DviInvocation invocation(aInvocation);
ASSERT(iCallbackSeek != NULL);
if (0 != iCallbackSeek(iPtrSeek, invocationC, invocationCPtr, InstanceID, (const char*)Unit.Ptr(), (const char*)Target.Ptr())) {
invocation.Error(502, Brn("Action failed"));
return;
}
invocation.StartResponse();
invocation.EndResponse();
}
示例4: invocationWrapper
void DvProviderOpenhomeOrgSubscriptionLongPoll1C::DoRenew(IDviInvocation& aInvocation)
{
DvInvocationCPrivate invocationWrapper(aInvocation);
IDvInvocationC* invocationC;
void* invocationCPtr;
invocationWrapper.GetInvocationC(&invocationC, &invocationCPtr);
aInvocation.InvocationReadStart();
Brhz Sid;
aInvocation.InvocationReadString("Sid", Sid);
TUint RequestedDuration = aInvocation.InvocationReadUint("RequestedDuration");
aInvocation.InvocationReadEnd();
DviInvocation invocation(aInvocation);
uint32_t Duration;
ASSERT(iCallbackRenew != NULL);
if (0 != iCallbackRenew(iPtrRenew, invocationC, invocationCPtr, (const char*)Sid.Ptr(), RequestedDuration, &Duration)) {
invocation.Error(502, Brn("Action failed"));
return;
}
DviInvocationResponseUint respDuration(aInvocation, "Duration");
invocation.StartResponse();
respDuration.Write(Duration);
invocation.EndResponse();
}
示例5: respWriterPlayMedia
void DvProviderUpnpOrgAVTransport2Cpp::DoGetDeviceCapabilities(IDviInvocation& aInvocation, uint32_t aVersion)
{
aInvocation.InvocationReadStart();
uint32_t InstanceID = aInvocation.InvocationReadUint("InstanceID");
aInvocation.InvocationReadEnd();
std::string respPlayMedia;
std::string respRecMedia;
std::string respRecQualityModes;
GetDeviceCapabilities(aVersion, InstanceID, respPlayMedia, respRecMedia, respRecQualityModes);
aInvocation.InvocationWriteStart();
InvocationResponseString respWriterPlayMedia(aInvocation, "PlayMedia");
Brn buf_PlayMedia((const TByte*)respPlayMedia.c_str(), (TUint)respPlayMedia.length());
respWriterPlayMedia.Write(buf_PlayMedia);
aInvocation.InvocationWriteStringEnd("PlayMedia");
InvocationResponseString respWriterRecMedia(aInvocation, "RecMedia");
Brn buf_RecMedia((const TByte*)respRecMedia.c_str(), (TUint)respRecMedia.length());
respWriterRecMedia.Write(buf_RecMedia);
aInvocation.InvocationWriteStringEnd("RecMedia");
InvocationResponseString respWriterRecQualityModes(aInvocation, "RecQualityModes");
Brn buf_RecQualityModes((const TByte*)respRecQualityModes.c_str(), (TUint)respRecQualityModes.length());
respWriterRecQualityModes.Write(buf_RecQualityModes);
aInvocation.InvocationWriteStringEnd("RecQualityModes");
aInvocation.InvocationWriteEnd();
}
示例6: respWriterCurrentTransportState
void DvProviderUpnpOrgAVTransport2Cpp::DoGetTransportInfo(IDviInvocation& aInvocation, uint32_t aVersion)
{
aInvocation.InvocationReadStart();
uint32_t InstanceID = aInvocation.InvocationReadUint("InstanceID");
aInvocation.InvocationReadEnd();
std::string respCurrentTransportState;
std::string respCurrentTransportStatus;
std::string respCurrentSpeed;
GetTransportInfo(aVersion, InstanceID, respCurrentTransportState, respCurrentTransportStatus, respCurrentSpeed);
aInvocation.InvocationWriteStart();
InvocationResponseString respWriterCurrentTransportState(aInvocation, "CurrentTransportState");
Brn buf_CurrentTransportState((const TByte*)respCurrentTransportState.c_str(), (TUint)respCurrentTransportState.length());
respWriterCurrentTransportState.Write(buf_CurrentTransportState);
aInvocation.InvocationWriteStringEnd("CurrentTransportState");
InvocationResponseString respWriterCurrentTransportStatus(aInvocation, "CurrentTransportStatus");
Brn buf_CurrentTransportStatus((const TByte*)respCurrentTransportStatus.c_str(), (TUint)respCurrentTransportStatus.length());
respWriterCurrentTransportStatus.Write(buf_CurrentTransportStatus);
aInvocation.InvocationWriteStringEnd("CurrentTransportStatus");
InvocationResponseString respWriterCurrentSpeed(aInvocation, "CurrentSpeed");
Brn buf_CurrentSpeed((const TByte*)respCurrentSpeed.c_str(), (TUint)respCurrentSpeed.length());
respWriterCurrentSpeed.Write(buf_CurrentSpeed);
aInvocation.InvocationWriteStringEnd("CurrentSpeed");
aInvocation.InvocationWriteEnd();
}
示例7: invocationWrapper
void DvProviderUpnpOrgContentDirectory1C::DoGetTransferProgress(IDviInvocation& aInvocation)
{
DvInvocationCPrivate invocationWrapper(aInvocation);
IDvInvocationC* invocationC;
void* invocationCPtr;
invocationWrapper.GetInvocationC(&invocationC, &invocationCPtr);
aInvocation.InvocationReadStart();
TUint TransferID = aInvocation.InvocationReadUint("TransferID");
aInvocation.InvocationReadEnd();
DviInvocation invocation(aInvocation);
char* TransferStatus;
char* TransferLength;
char* TransferTotal;
ASSERT(iCallbackGetTransferProgress != NULL);
if (0 != iCallbackGetTransferProgress(iPtrGetTransferProgress, invocationC, invocationCPtr, TransferID, &TransferStatus, &TransferLength, &TransferTotal)) {
invocation.Error(502, Brn("Action failed"));
return;
}
DviInvocationResponseString respTransferStatus(aInvocation, "TransferStatus");
DviInvocationResponseString respTransferLength(aInvocation, "TransferLength");
DviInvocationResponseString respTransferTotal(aInvocation, "TransferTotal");
invocation.StartResponse();
Brhz bufTransferStatus((const TChar*)TransferStatus);
OhNetFreeExternal(TransferStatus);
respTransferStatus.Write(bufTransferStatus);
respTransferStatus.WriteFlush();
Brhz bufTransferLength((const TChar*)TransferLength);
OhNetFreeExternal(TransferLength);
respTransferLength.Write(bufTransferLength);
respTransferLength.WriteFlush();
Brhz bufTransferTotal((const TChar*)TransferTotal);
OhNetFreeExternal(TransferTotal);
respTransferTotal.Write(bufTransferTotal);
respTransferTotal.WriteFlush();
invocation.EndResponse();
}