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


C++ TMMFMessage::WriteDataToClient方法代码示例

本文整理汇总了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;
		}
	}
开发者ID:kuailexs,项目名称:symbiandump-os1,代码行数:37,代码来源:ListenerOrientationMessageHandler.cpp

示例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;
		}
	}
开发者ID:kuailexs,项目名称:symbiandump-os1,代码行数:37,代码来源:EnvironmentalReverbMessageHandler.cpp

示例3: GetDurationInfo

TInt CMMFDurationInfoCustomCommandParser::GetDurationInfo(TMMFMessage& aMessage)
	{
	TInt retRes = KErrNone;
	TPckgBuf<TMMFDurationInfo> enumPckg;
	iImplementor.GetDurationInfo( enumPckg() );
	aMessage.WriteDataToClient(enumPckg);
	return retRes;
	}
开发者ID:kuailexs,项目名称:symbiandump-os1,代码行数:8,代码来源:MMFDurationInfoCustomCommands.cpp

示例4: DoInitializeL

// ---------------------------------------------------------
// CEnvironmentalReverbMessageHandler::DoInitializeL
// ---------------------------------------------------------
//
void CEnvironmentalReverbMessageHandler::DoInitializeL(TMMFMessage& aMessage)
	{
#ifdef _DEBUG
    RDebug::Print(_L("CEnvironmentalReverbMessageHandler::DoInitializeL"));
#endif
	aMessage.WriteDataToClient(iEnvironmentalReverb->DoEffectData());
	aMessage.Complete(KErrNone);
	}
开发者ID:kuailexs,项目名称:symbiandump-os1,代码行数:12,代码来源:EnvironmentalReverbMessageHandler.cpp

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

示例6: DoInitializeL

// ---------------------------------------------------------
// CListenerOrientationMessageHandler::DoInitializeL
// ---------------------------------------------------------
//
void CListenerOrientationMessageHandler::DoInitializeL(TMMFMessage& aMessage)
	{
	aMessage.WriteDataToClient(iListenerOrientation->DoEffectData());
	aMessage.Complete(KErrNone);
	}
开发者ID:kuailexs,项目名称:symbiandump-os1,代码行数:9,代码来源:ListenerOrientationMessageHandler.cpp


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