secureswitools/swisistools/source/sisxlibrary/sissupportedoption.h
changeset 0 ba25891c3a9e
child 26 04d4a7bbc3e0
equal deleted inserted replaced
-1:000000000000 0:ba25891c3a9e
       
     1 /*
       
     2 * Copyright (c) 2004-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 * Note: This file may contain code to generate corrupt files for test purposes.
       
    16 * Such code is excluded from production builds by use of compiler defines;
       
    17 * it is recommended that such code should be removed if this code is ever published publicly.
       
    18 * As specified in SGL.GT0188.251
       
    19 *
       
    20 */
       
    21 
       
    22 
       
    23 /**
       
    24  @file 
       
    25  @internalComponent
       
    26  @released
       
    27 */
       
    28 
       
    29 #ifndef __SISSUPPORTEDOPTION_H__
       
    30 #define __SISSUPPORTEDOPTION_H__
       
    31 
       
    32 
       
    33 #include "structure.h"
       
    34 #include "stringarray.h"
       
    35 
       
    36 
       
    37 class CSISSupportedOption : public CStructure <CSISFieldRoot::ESISSupportedOption>
       
    38 
       
    39 	{
       
    40 public:
       
    41 	CSISSupportedOption ();
       
    42 	CSISSupportedOption (const CSISSupportedOption& aInitialiser);
       
    43 
       
    44 	virtual std::string Name () const;
       
    45 	virtual void Verify (const TUint32 aLanguages) const;
       
    46 
       
    47 	void AddOptionName (const std::wstring& aName);
       
    48 	TUint32 LanguageCount () const;
       
    49 	void AddPackageEntry(std::wostream& aStream, bool aVerbose) const;
       
    50 
       
    51 private:
       
    52 	CSISArrayOfStrings iNames;
       
    53 	
       
    54 	};
       
    55 
       
    56 
       
    57 
       
    58 
       
    59 inline CSISSupportedOption::CSISSupportedOption ()
       
    60 	{ 
       
    61 	InsertMember (iNames); 
       
    62 	}
       
    63 
       
    64 
       
    65 inline CSISSupportedOption::CSISSupportedOption (const CSISSupportedOption& aInitialiser) :
       
    66 		CStructure <CSISFieldRoot::ESISSupportedOption> (aInitialiser),
       
    67 		iNames (aInitialiser.iNames)
       
    68 	{ 
       
    69 	InsertMember (iNames); 
       
    70 	}
       
    71 
       
    72 
       
    73 inline void CSISSupportedOption::AddOptionName (const std::wstring& aName)
       
    74 	{
       
    75 	iNames.Push (CSISString (aName)); 
       
    76 	}
       
    77 
       
    78 
       
    79 inline TUint32 CSISSupportedOption::LanguageCount () const
       
    80 	{ 
       
    81 	return iNames.size (); 
       
    82 	}
       
    83 
       
    84 
       
    85 #endif // __SISSUPPORTEDOPTION_H__
       
    86