void VJSGlobalClass::do_GenerateUUID(VJSParms_callStaticFunction& ioParms, VJSGlobalObject*) { VUUID theUUID(true); VString uuidStr; theUUID.GetString(uuidStr); ioParms.ReturnString(uuidStr); }
/** Test MSdpElementBuilder::BuildUUIDL() */ void CT_DataSdpElementBuilder::DoCmdBuildUUIDL(MSdpElementBuilder& aElementBuilder, const TDesC& aSection) { iDataWrapper.INFO_PRINTF1(_L("MSdpElementBuilder BuildUUIDL Call")); TInt theValue; if( iDataWrapper.GetIntFromConfig(aSection, KUUID(), theValue) ) { TUUID theUUID(theValue); TRAPD(err, aElementBuilder.BuildUUIDL(theUUID)); if(err != KErrNone) { iDataWrapper.ERR_PRINTF2(_L("MSdpElementBuilder BuildUUIDL failed with error %d"), err); iDataWrapper.SetError(err); } } else { iDataWrapper.ERR_PRINTF2(_L("Missing parameter %S"), &KUUID()); iDataWrapper.SetBlockResult(EFail); } }