installationservices/swidevicetools/source/swiconsole/src/cpreferences.cpp
branchRCL_3
changeset 51 5bddc28da627
parent 0 ba25891c3a9e
equal deleted inserted replaced
40:f8cf9d484c15 51:5bddc28da627
     1 /*
     1 /*
     2 * Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
     2 * Copyright (c) 2006-2010 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     4 * This component and the accompanying materials are made available
     5 * under the terms of the License "Eclipse Public License v1.0"
     5 * under the terms of the License "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
   102 
   102 
   103 void CPreferences::AddPackageNameL(const TDesC& aPackageName)
   103 void CPreferences::AddPackageNameL(const TDesC& aPackageName)
   104 	{
   104 	{
   105 	HBufC* ptr = aPackageName.AllocL();
   105 	HBufC* ptr = aPackageName.AllocL();
   106 	// Ownership transfered to the list
   106 	// Ownership transfered to the list
   107 	iPackageNameList.Append(ptr);
   107 	iPackageNameList.AppendL(ptr);
   108 	}
   108 	}
   109 
   109 
   110 void CPreferences::AddVendorNameL(const TDesC& aVendorName)
   110 void CPreferences::AddVendorNameL(const TDesC& aVendorName)
   111 	{
   111 	{
   112 	HBufC* ptr = aVendorName.AllocL();
   112 	HBufC* ptr = aVendorName.AllocL();
   113 	// Ownership transfered to the list
   113 	// Ownership transfered to the list
   114 	iVendorNameList.Append(ptr);
   114 	iVendorNameList.AppendL(ptr);
   115 	}
   115 	}
   116 
   116 
   117 TBool CPreferences::IsPackageNamePresent(const TDesC& aPackageName) const
   117 TBool CPreferences::IsPackageNamePresent(const TDesC& aPackageName) const
   118 	{
   118 	{
   119 	for(TInt i = iPackageNameList.Count() - 1; i >= 0; --i)
   119 	for(TInt i = iPackageNameList.Count() - 1; i >= 0; --i)