secureswitools/swisistools/source/interpretsislib/sisregistrydependency.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	SISREGISTRYDEPENDENCY_H
       
    20 #define	SISREGISTRYDEPENDENCY_H
       
    21 
       
    22 // System include files
       
    23 #include <istream>
       
    24 #include <vector> 
       
    25 
       
    26 // User include files
       
    27 #include "serialisable.h"
       
    28 #include "symbiantypes.h"
       
    29 #include "version.h"
       
    30 
       
    31 // Forward Declarations
       
    32 class Serialiser;
       
    33 class Deserialiser;
       
    34 class CSISDependency;
       
    35 
       
    36 /** 
       
    37 * @file SISREGISTRYDEPENDENCY.H
       
    38 *
       
    39 * @internalComponent
       
    40 * @released
       
    41 */
       
    42 class SisRegistryDependency : public Serialisable//<SisRegistryDependency>
       
    43 	{
       
    44 public:
       
    45 	/**
       
    46 	Constructor
       
    47 	*/
       
    48 	SisRegistryDependency () {};
       
    49 	SisRegistryDependency (const CSISDependency& aDep);
       
    50 	virtual ~SisRegistryDependency ();
       
    51 
       
    52 	virtual void Internalize(Deserialiser& des);
       
    53 	virtual void Externalize(Serialiser& ser);
       
    54 
       
    55 	const Version& GetToVersion() const
       
    56 	{ return iToVersion; }
       
    57 
       
    58 	void SetToVersion(const Version& aToVersion)
       
    59 	{ iToVersion = aToVersion; }
       
    60 
       
    61 	const Version& GetFromVersion() const
       
    62 	{ return iFromVersion; }
       
    63 
       
    64 	void SetFromVersion(const Version& aFromVersion)
       
    65 	{ iFromVersion = aFromVersion; }
       
    66 
       
    67 	TUint32 GetUid() const
       
    68 	{ return iUid; }
       
    69 
       
    70 	void SetUid(TUint32& aUid)
       
    71 	{ iUid = aUid; }
       
    72 
       
    73 private:
       
    74 	TUint32 iUid;
       
    75 	Version iFromVersion;
       
    76 	Version iToVersion;
       
    77     };
       
    78 
       
    79 std::basic_ostream<wchar_t>& operator<<(std::basic_ostream<wchar_t>& os,
       
    80 										const Version& ver);
       
    81 
       
    82 std::wostream& operator<<(std::wostream& os,
       
    83 						 const SisRegistryDependency& aDep);
       
    84 
       
    85 #ifdef _MSC_VER
       
    86 
       
    87 Deserialiser& operator>>(Deserialiser& aInput, std::vector<SisRegistryDependency*>& val);
       
    88 
       
    89 #endif 
       
    90 
       
    91 #endif	/* SISREGISTRYDEPENDENCY_H */