equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2008-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 "certclients.h" |
|
20 #include "stringconv.h" |
|
21 #include <s32file.h> |
|
22 |
|
23 EncDecContainerItem *CertificateAppInfo::Factory() |
|
24 { |
|
25 return new CertificateAppInfo; |
|
26 } |
|
27 |
|
28 EXPORT_C CertificateAppInfo::CertificateAppInfo() |
|
29 : iUid("Uid"), iName("Name") |
|
30 { |
|
31 } |
|
32 |
|
33 EXPORT_C CertificateAppInfo& CertificateAppInfo::operator = (const CertificateAppInfo& aClient) |
|
34 { |
|
35 BULLSEYE_OFF |
|
36 if (this == &aClient) return *this; |
|
37 BULLSEYE_RESTORE |
|
38 iUid = aClient.iUid; |
|
39 iName = aClient.iName; |
|
40 return *this; |
|
41 } |
|
42 |
|
43 EXPORT_C const TUid& CertificateAppInfo::Id() const |
|
44 { |
|
45 return iUid.Value(); |
|
46 } |
|
47 |
|
48 EXPORT_C const TName& CertificateAppInfo::Name() const |
|
49 { |
|
50 return iName.Value(); |
|
51 } |
|
52 |
|
53 CertificateAppInfo::~CertificateAppInfo() |
|
54 { |
|
55 } |
|
56 |
|
57 const char *CertificateAppInfo::ItemType() const |
|
58 { |
|
59 return 0; |
|
60 } |
|
61 |
|
62 |
|
63 |
|
64 void CertificateAppInfo::Encode(REncodeWriteStream &aWriteStream) |
|
65 { |
|
66 aWriteStream << iUid; |
|
67 aWriteStream << iName; |
|
68 } |
|
69 |
|
70 void CertificateAppInfo::Decode(RDecodeReadStream &aReadStream) |
|
71 { |
|
72 aReadStream >> iUid; |
|
73 aReadStream >> iName; |
|
74 } |
|
75 |
|
76 // End of file |