本文整理汇总了C++中TMMFMessage::WriteDataToClient方法的典型用法代码示例。如果您正苦于以下问题:C++ TMMFMessage::WriteDataToClient方法的具体用法?C++ TMMFMessage::WriteDataToClient怎么用?C++ TMMFMessage::WriteDataToClient使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TMMFMessage
的用法示例。
在下文中一共展示了TMMFMessage::WriteDataToClient方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: DoObserveL
// ---------------------------------------------------------
// CListenerOrientationMessageHandler::DoObserveL
// Receives the observation request message and depending
// on the status of the effect data queue, the message is
// completed immediately or saved for later completion.
// ---------------------------------------------------------
//
void CListenerOrientationMessageHandler::DoObserveL(
TMMFMessage& aMessage )
{
#ifdef _DEBUG
RDebug::Print(_L("CListenerOrientationMessageHandler::DoObserveL"));
#endif
if ( !iRegistered ) // Don't register again if we're registered.
{
iListenerOrientation->RegisterObserverL(*this);
iRegistered = ETrue;
}
if ( iEffectDataQue->IsEmpty() )
{
// Message is saved and completed when an event occurs
iMessage = new(ELeave) TMMFMessage(aMessage);
}
else
{
TEfOrientationDataPckg dataPckg;
CEffectDataQueItem* item = iEffectDataQue->First();
dataPckg.Copy(item->EffectData());
aMessage.WriteDataToClient(dataPckg);
aMessage.Complete(KErrNone);
iEffectDataQue->Remove(*item);
delete item;
}
}
示例2: DoObserveL
// ---------------------------------------------------------
// CEnvironmentalReverbMessageHandler::DoObserveL
// Receives the observation request message and depending
// on the status of the effect data queue, the message is
// completed immediately or saved for later completion.
// ---------------------------------------------------------
//
void CEnvironmentalReverbMessageHandler::DoObserveL(
TMMFMessage& aMessage )
{
#ifdef _DEBUG
RDebug::Print(_L("CEnvironmentalReverbMessageHandler::DoObserveL"));
#endif
if ( !iRegistered )
{
iEnvironmentalReverb->RegisterObserverL(*this);
iRegistered = ETrue;
}
if ( iEffectDataQue->IsEmpty() )
{
//iMessage = &aMessage;
iMessage = new(ELeave) TMMFMessage(aMessage);
}
else
{
TEfEnvReverbDataPckg dataPckg;
CEffectDataQueItem* item = iEffectDataQue->First();
dataPckg.Copy(item->EffectData());
aMessage.WriteDataToClient(dataPckg);
aMessage.Complete(KErrNone);
iEffectDataQue->Remove(*item);
delete item;
}
}
示例3: GetDurationInfo
TInt CMMFDurationInfoCustomCommandParser::GetDurationInfo(TMMFMessage& aMessage)
{
TInt retRes = KErrNone;
TPckgBuf<TMMFDurationInfo> enumPckg;
iImplementor.GetDurationInfo( enumPckg() );
aMessage.WriteDataToClient(enumPckg);
return retRes;
}
示例4: DoInitializeL
// ---------------------------------------------------------
// CEnvironmentalReverbMessageHandler::DoInitializeL
// ---------------------------------------------------------
//
void CEnvironmentalReverbMessageHandler::DoInitializeL(TMMFMessage& aMessage)
{
#ifdef _DEBUG
RDebug::Print(_L("CEnvironmentalReverbMessageHandler::DoInitializeL"));
#endif
aMessage.WriteDataToClient(iEnvironmentalReverb->DoEffectData());
aMessage.Complete(KErrNone);
}
示例5:
TInt CMMFDurationInfoCustomCommandParser2::GetDurationInfo(TMMFMessage& aMessage)
{
TInt err = KErrNone;
TPckgBuf<TMMFDurationInfo> enumPckg;
err = iImplementor.GetDurationInfo(enumPckg());
if(err==KErrNone)
{
err = aMessage.WriteDataToClient(enumPckg);
}
return err;
}
示例6: DoInitializeL
// ---------------------------------------------------------
// CListenerOrientationMessageHandler::DoInitializeL
// ---------------------------------------------------------
//
void CListenerOrientationMessageHandler::DoInitializeL(TMMFMessage& aMessage)
{
aMessage.WriteDataToClient(iListenerOrientation->DoEffectData());
aMessage.Complete(KErrNone);
}