secureswitools/swisistools/source/interpretsislib/sisregistrypackage.h
changeset 0 ba25891c3a9e
equal deleted inserted replaced
-1:000000000000 0:ba25891c3a9e
       
     1 /*
       
     2 * Copyright (c) 2006-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 #ifndef	SISREGISTRYPACKAGE_H
       
    20 #define	SISREGISTRYPACKAGE_H
       
    21 
       
    22 #include <istream>
       
    23 #include "serialisable.h"
       
    24 #include "symbiantypes.h"
       
    25 
       
    26 
       
    27 class Serialiser;
       
    28 class Deserialiser;
       
    29 /**
       
    30 * @file SISREGISTRYPACKAGE.H
       
    31 *
       
    32 * @internalComponent
       
    33 * @released
       
    34 */
       
    35 class SisRegistryPackage : public Serialisable
       
    36 	{
       
    37 public:
       
    38 	SisRegistryPackage ();
       
    39 
       
    40 	SisRegistryPackage(
       
    41 		TUint32 aIndex,
       
    42 		const std::wstring& aVendorName,
       
    43 		const std::wstring& aPackageName,
       
    44 		TUint32 aPackageUid);
       
    45 
       
    46 	virtual ~SisRegistryPackage ();
       
    47 
       
    48 	virtual void Internalize(Deserialiser& des);
       
    49 	virtual void Externalize(Serialiser& ser);
       
    50 	//virtual Serialisable* Make() { return new SisRegistryPackage; }
       
    51 
       
    52 	TInt GetIndex() const
       
    53 	{ return iIndex; }
       
    54 
       
    55 	void SetIndex(TInt& aIndex)
       
    56 	{ iIndex = aIndex; }
       
    57 
       
    58 	const std::wstring& GetVendorName() const
       
    59 	{ return *iVendorName; }
       
    60 
       
    61 	void SetVendorName(const std::wstring& aVendorName)
       
    62 	{ *iVendorName = aVendorName; }
       
    63 
       
    64 	const std::wstring& GetPackageName() const
       
    65 	{ return *iPackageName; }
       
    66 
       
    67 	void SetPackageName(const std::wstring& aPackageName)
       
    68 	{ *iPackageName = aPackageName; }
       
    69 
       
    70 	TUint32 GetUid() const
       
    71 	{ return iUid; }
       
    72 
       
    73 	void SetUid(TUint32& aUid)
       
    74 	{ iUid = aUid; }
       
    75 
       
    76 protected:
       
    77 	TUint32       iUid;
       
    78 	std::wstring* iPackageName;
       
    79 	std::wstring* iVendorName;
       
    80 	TInt        iIndex;
       
    81 	};
       
    82 
       
    83 
       
    84 
       
    85 #ifdef _MSC_VER
       
    86 #include <vector>
       
    87 Deserialiser& operator>>(Deserialiser& aInput, std::vector<SisRegistryPackage*>& val);
       
    88 
       
    89 #endif
       
    90 
       
    91 #endif	/* SISREGISTRYPACKAGE_H */