|
1 /* |
|
2 * Copyright (c) 2005-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 #include "sisdependency.h" |
|
20 |
|
21 SISDependency::SISDependency() |
|
22 :iDependencyUid (0) , |
|
23 iFromMajorVersion (0) , |
|
24 iFromMinorVersion (0) , |
|
25 iFromBuild (0) , |
|
26 iToMajorVersion (0) , |
|
27 iToMinorVersion (0) , |
|
28 iToBuild (0) |
|
29 { |
|
30 } |
|
31 |
|
32 void SISDependency::ExtractDependency(StreamReader& aReader ) |
|
33 { |
|
34 //uid of SISX package which needs to be installed in order to satisfy the dependency |
|
35 iDependencyUid = aReader.ReadInt32(); |
|
36 //range of versions of the SISX package that needs to be installed on the device. |
|
37 iFromMajorVersion = aReader.ReadInt32(); |
|
38 iFromMinorVersion = aReader.ReadInt32(); |
|
39 iFromBuild = aReader.ReadInt32(); |
|
40 iToMajorVersion = aReader.ReadInt32(); |
|
41 iToMinorVersion = aReader.ReadInt32(); |
|
42 iToBuild = aReader.ReadInt32(); |
|
43 } |
|
44 |
|
45 void SISDependency::DisplayDependencyInfo() |
|
46 { |
|
47 cout << "Dependent Package UID : " << std::hex << "0x" << iDependencyUid << endl; |
|
48 cout << "Dependent Package From Version : " << std::dec << iFromMajorVersion << "." << iFromMinorVersion << "." << iFromBuild << endl; |
|
49 cout << "Dependent Package To Version : " <<std::dec << iToMajorVersion << "." << iToMinorVersion << "." << iToBuild << endl << endl; |
|
50 } |
|
51 |
|
52 SISDependency::~SISDependency() |
|
53 { |
|
54 } |
|
55 |
|
56 |
|
57 |
|
58 |
|
59 |
|
60 |
|
61 |
|
62 |
|
63 |
|
64 |
|
65 |
|
66 |
|
67 |
|
68 |
|
69 |
|
70 |
|
71 |
|
72 |
|
73 |
|
74 |
|
75 |
|
76 |
|
77 |
|
78 |
|
79 |
|
80 |
|
81 |
|
82 |
|
83 |
|
84 |