equal
deleted
inserted
replaced
|
1 // Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // apgupdate.cpp |
|
15 // |
|
16 |
|
17 #include "apgupdate.h" |
|
18 |
|
19 /** |
|
20 * Default Constructor. |
|
21 */ |
|
22 EXPORT_C TApaAppUpdateInfo::TApaAppUpdateInfo() |
|
23 { |
|
24 |
|
25 } |
|
26 |
|
27 /** |
|
28 * Constructor for TApaAppUpdateInfo. |
|
29 * @param aAppUid Application UID. |
|
30 * @param aAction Action performed by installer on the application. |
|
31 */ |
|
32 EXPORT_C TApaAppUpdateInfo::TApaAppUpdateInfo(TUid aAppUid, TApaAppUpdateInfo::TApaAppAction aAction): |
|
33 iAppUid(aAppUid), |
|
34 iAction(aAction) |
|
35 { |
|
36 |
|
37 } |
|
38 |
|
39 EXPORT_C void TApaAppUpdateInfo::InternalizeL(RReadStream& aReadStream) |
|
40 { |
|
41 iAppUid.iUid=aReadStream.ReadInt32L(); |
|
42 iAction=TApaAppAction(aReadStream.ReadInt32L()); |
|
43 } |
|
44 |
|
45 EXPORT_C void TApaAppUpdateInfo::ExternalizeL(RWriteStream& aWriteStream) const |
|
46 { |
|
47 aWriteStream.WriteInt32L(iAppUid.iUid); |
|
48 aWriteStream.WriteInt32L(iAction); |
|
49 } |
|
50 |