本文整理汇总了C++中TPtr::AppendNumFixedWidth方法的典型用法代码示例。如果您正苦于以下问题:C++ TPtr::AppendNumFixedWidth方法的具体用法?C++ TPtr::AppendNumFixedWidth怎么用?C++ TPtr::AppendNumFixedWidth使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TPtr
的用法示例。
在下文中一共展示了TPtr::AppendNumFixedWidth方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: HandlePropertyChangedL
// ----------------------------------------------------------------------------
// CSysApPubSubObserver::HandlePropertyChangedL()
// ----------------------------------------------------------------------------
void CSysApPubSubObserver::HandlePropertyChangedL( const TUid& aCategory, const TUint aKey )
{
TInt value( 0 );
RProperty::Get( aCategory, aKey, value );
#ifdef _DEBUG
HBufC* hbuf = HBufC::New( 120 );
if ( hbuf )
{
TPtr buf = hbuf->Des();
buf = _L("CSysApPubSubObserver::HandlePropertyChangedL: category=0x");
buf.AppendNumFixedWidth( aCategory.iUid, EHex, 8 );
buf.Append( _L(", key=0x") );
buf.AppendNumFixedWidth( aKey, EHex, 8 );
buf.Append( _L(", value=") );
buf.AppendNum( value );
RDebug::Print( buf );
delete hbuf;
}
#endif
// KIrdaPropertyCategory is actually defined as KUidSystemCategory, but just in case this ever changes,
// check them separately here. The keys should have no overlap.
if ( aCategory == KUidSystemCategory || aCategory == KIrdaPropertyCategory )
{
HandleSystemCategoryL( aKey, value );
}
else if ( aCategory == KPSUidStartup || aCategory == KAlarmServerPubSubCategory )
{
HandleStartupCategoryL( aKey, value );
}
else if ( aCategory == KPSUidCoreApplicationUIs )
{
HandleCoreAppUIsCategoryL( aKey, value );
}
else if ( aCategory == KPSUidHWRMPowerState )
{
HandleHwrmPowerStateCategoryL( aKey, value );
}
else if ( aCategory == KPSUidWlan )
{
HandleWlanCategoryL( aKey, value );
}
else if ( aCategory == KPSUidCtsyCallInformation )
{
HandleTelephonyCallInformationCategoryL( aKey, value );
}
else if ( aCategory == KPSUidNetworkInfo )
{
HandleNetworkInfoCategoryL( aKey, value );
}
else if ( aCategory == KPSUidHWRM )
{
HandleHwrmCategoryL( aKey, value );
}
/* else if ( aCategory == KPSUidHWRMFmTx )
{
HandleHwrmFmTxCategoryL( aKey, value );
}
*/
else if ( aCategory == KPSUidDataSynchronizationInternalKeys )
{
HandleDataSyncCategoryL( aKey, value );
}
else if ( aCategory == KPosIndicatorCategoryUid )
{
HandlePosIndicatorCategoryL( aKey, value );
}
else if ( aCategory == KUidPSSMSStackCategory )
{
HandleSmsStackCategoryL( aKey, value );
}
else if ( aCategory == KPSUidAvkonDomain)
{
HandleLKeylockEventL( aKey, value );
}
else if ( aCategory == KPSUidSecurityUIs)
{
HandleLightsOnRequestL( aKey, value );
}
}