commsfwtools/preparedefaultcommsdatabase/Tools/ced/src/CXMLContentHandler.cpp
changeset 65 41cc8e7ff496
parent 0 dfb7c4ff071f
equal deleted inserted replaced
40:34fc115b8742 65:41cc8e7ff496
   505 
   505 
   506             		tableEntry->SetOperation(operation);
   506             		tableEntry->SetOperation(operation);
   507 
   507 
   508             		gMsg->Msg(_L("Create new table entry for table : [%S] with operation (%S)"),
   508             		gMsg->Msg(_L("Create new table entry for table : [%S] with operation (%S)"),
   509                             			&iCurrentTableName, &operation);
   509                             			&iCurrentTableName, &operation);
   510             		iXmlDb->AddTableEntry(tableEntry);
   510             		iXmlDb->AddTableEntryL(tableEntry);
   511             		return;
   511             		return;
   512         			}
   512         			}
   513 
   513 
   514         		i++;
   514         		i++;
   515         		thisTag = xmlTableArray[i];
   515         		thisTag = xmlTableArray[i];
  1473 void CXMLTableEntry::AddParameterL(const TBuf<MAX_BUFFER_LEN>& aParamName,
  1473 void CXMLTableEntry::AddParameterL(const TBuf<MAX_BUFFER_LEN>& aParamName,
  1474 								  const TBuf<MAX_BUFFER_LEN>& aParamValue)
  1474 								  const TBuf<MAX_BUFFER_LEN>& aParamValue)
  1475 	{
  1475 	{
  1476 	TBuf<MAX_BUFFER_LEN>* name = new(ELeave) TBuf<MAX_BUFFER_LEN>;
  1476 	TBuf<MAX_BUFFER_LEN>* name = new(ELeave) TBuf<MAX_BUFFER_LEN>;
  1477 	name->Copy(aParamName);
  1477 	name->Copy(aParamName);
  1478 	paramName.Append(name);
  1478 	paramName.AppendL(name);
  1479 
  1479 
  1480 	TBuf<MAX_BUFFER_LEN>* value = new(ELeave) TBuf<MAX_BUFFER_LEN>;
  1480 	TBuf<MAX_BUFFER_LEN>* value = new(ELeave) TBuf<MAX_BUFFER_LEN>;
  1481 	value->Copy(aParamValue);
  1481 	value->Copy(aParamValue);
  1482 	paramValue.Append(value);
  1482 	paramValue.AppendL(value);
  1483 	}
  1483 	}
  1484 
  1484 
  1485 // Remove a parameter from the list
  1485 // Remove a parameter from the list
  1486 void CXMLTableEntry::RemoveParameter(const TInt aIndex)
  1486 void CXMLTableEntry::RemoveParameter(const TInt aIndex)
  1487 	{
  1487 	{
  1528 	CXMLDatabase* p = new(ELeave) CXMLDatabase;
  1528 	CXMLDatabase* p = new(ELeave) CXMLDatabase;
  1529 	return p;
  1529 	return p;
  1530 	}
  1530 	}
  1531 
  1531 
  1532 // Add a table entry to the database given the pointer
  1532 // Add a table entry to the database given the pointer
  1533 void CXMLDatabase::AddTableEntry(CXMLTableEntry* aEntry)
  1533 void CXMLDatabase::AddTableEntryL(CXMLTableEntry* aEntry)
  1534 	{
  1534 	{
  1535 	if(aEntry != NULL)
  1535 	if(aEntry != NULL)
  1536 		{
  1536 		{
  1537 		tableEntries.Append(aEntry);
  1537 		tableEntries.AppendL(aEntry);
  1538 		}
  1538 		}
  1539 	}
  1539 	}
  1540 
  1540 
  1541 // Get a table entry from the database given its index which represents
  1541 // Get a table entry from the database given its index which represents
  1542 // its location in the database
  1542 // its location in the database