secureswitools/swisistools/source/sisxlibrary/sislogo.h
changeset 0 ba25891c3a9e
child 26 04d4a7bbc3e0
equal deleted inserted replaced
-1:000000000000 0:ba25891c3a9e
       
     1 /*
       
     2 * Copyright (c) 2007-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 __SISLOGO_H__
       
    30 #define __SISLOGO_H__
       
    31 
       
    32 #include "sisfiledescription.h"
       
    33 
       
    34 class CSISData;
       
    35 
       
    36 class CSISLogo : public CStructure <CSISFieldRoot::ESISLogo>
       
    37 
       
    38 	{
       
    39 public:
       
    40 	CSISLogo (const bool bRequired = true);
       
    41 	CSISLogo (const CSISLogo& aInitialiser);
       
    42 
       
    43 	virtual std::string Name () const;
       
    44 	virtual bool WasteOfSpace () const;
       
    45 
       
    46 	void Set (const std::wstring& aMime, const std::wstring& aTarget, const TUint32 aFileIndex, const CSISDataUnit& aDataUnit);
       
    47 	void SetSizes (const TUint64 aCompressedSize, const TUint64 aUncompressedSize);
       
    48 	void AddPackageEntry(std::wostream& aStream, bool aVerbose) const;
       
    49 	inline const CSISFileDescription& FileDesc() const; 
       
    50 
       
    51 private:
       
    52 	CSISFileDescription iLogoFile;
       
    53 
       
    54 	};
       
    55 
       
    56 
       
    57 inline CSISLogo::CSISLogo (const bool bRequired) :
       
    58 		CStructure <CSISFieldRoot::ESISLogo> (bRequired),
       
    59 		iLogoFile()
       
    60 	{
       
    61 	InsertMember (iLogoFile); 
       
    62 	}
       
    63 
       
    64 
       
    65 inline CSISLogo::CSISLogo (const CSISLogo& aInitialiser) :
       
    66 		CStructure <CSISFieldRoot::ESISLogo> (aInitialiser),
       
    67 		iLogoFile (aInitialiser.iLogoFile)
       
    68 	{
       
    69 	InsertMember (iLogoFile); 
       
    70 	}
       
    71 
       
    72 inline void CSISLogo::SetSizes (const TUint64 aCompressedSize, const TUint64 aUncompressedSize)
       
    73 	{
       
    74 	iLogoFile.SetLengths (aUncompressedSize, aCompressedSize);
       
    75 	}
       
    76 
       
    77 inline const CSISFileDescription& CSISLogo::FileDesc() const
       
    78 	{
       
    79 	return iLogoFile;
       
    80 	}
       
    81 
       
    82 
       
    83 #include "sisdata.h"
       
    84 
       
    85 #endif // __SISLOGO_H__
       
    86