presencefwsimpleadpt/src/simplepluginxdmutils.cpp
branchRCL_3
changeset 25 e53c01f160bc
parent 0 c8caa15ef882
equal deleted inserted replaced
19:10246e066a50 25:e53c01f160bc
  1170     CleanupClosePushL( attributeArray );        // <<< attributeArray
  1170     CleanupClosePushL( attributeArray );        // <<< attributeArray
  1171 
  1171 
  1172     SXdmAttribute16 attr;
  1172     SXdmAttribute16 attr;
  1173     attr.iName.Set( KSimpleName );
  1173     attr.iName.Set( KSimpleName );
  1174     attr.iValue.Set( aName );
  1174     attr.iValue.Set( aName );
  1175     attributeArray.Append( &attr );
  1175     attributeArray.AppendL( &attr );
  1176 
  1176 
  1177     CXdmDocumentNode* currNode = NULL;
  1177     CXdmDocumentNode* currNode = NULL;
  1178 
  1178 
  1179     aParent->Find( KSimpleList, resultArray, attributeArray );
  1179     aParent->Find( KSimpleList, resultArray, attributeArray );
  1180 
  1180 
  1898     using namespace NSimplePlugin::NSimpleOma;
  1898     using namespace NSimplePlugin::NSimpleOma;
  1899 
  1899 
  1900     SXdmAttribute16 attr;
  1900     SXdmAttribute16 attr;
  1901     attr.iName.Set( KSimpleUri );
  1901     attr.iName.Set( KSimpleUri );
  1902     attr.iValue.Set( aUser );
  1902     attr.iValue.Set( aUser );
  1903     attributeArray.Append( &attr );
  1903     attributeArray.AppendL( &attr );
  1904 
  1904 
  1905     // If member already exists then leave
  1905     // If member already exists then leave
  1906     target->Find( KSimpleEntry, resultArray, attributeArray );
  1906     target->Find( KSimpleEntry, resultArray, attributeArray );
  1907     if ( resultArray.Count() > 0 )
  1907     if ( resultArray.Count() > 0 )
  1908         {
  1908         {