secureswitools/swisistools/source/sisxlibrary/sisproperties.cpp
changeset 0 ba25891c3a9e
child 26 04d4a7bbc3e0
equal deleted inserted replaced
-1:000000000000 0:ba25891c3a9e
       
     1 /*
       
     2 * Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of the License "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description: 
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 /**
       
    20  @file 
       
    21  @internalComponent
       
    22  @released
       
    23 */
       
    24 
       
    25 
       
    26 #include "sisproperties.h"
       
    27 
       
    28 void CSISProperties::AddPackageEntry(std::wostream& aStream, bool aVerbose) const
       
    29 	{
       
    30 	TUint32 propertiesCount = iProperty.size();
       
    31 	if (propertiesCount == 0)
       
    32 		{
       
    33 		return;
       
    34 		}
       
    35 	if (aVerbose)
       
    36 		{
       
    37 		aStream << L"; Properties" << std::endl;
       
    38 		}
       
    39 	aStream << L"+(";
       
    40 	TUint32 i = 0;
       
    41 	do
       
    42 		{
       
    43 		iProperty[i].AddPackageEntry(aStream, aVerbose);
       
    44 		if (++i < propertiesCount)
       
    45 			{
       
    46 			aStream << L", ";
       
    47 			}
       
    48 		} while (i < propertiesCount);
       
    49 	aStream << L")" << std::endl << std::endl;
       
    50 	}
       
    51