1 /* |
|
2 * Copyright (c) 2002 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 "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: Location Psy info class. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 // INCLUDE FILES |
|
21 #include "locpsyinfo.h" |
|
22 |
|
23 // ============================ MEMBER FUNCTIONS =============================== |
|
24 |
|
25 // ----------------------------------------------------------------------------- |
|
26 // CLocPsyInfo::PsyId |
|
27 // ----------------------------------------------------------------------------- |
|
28 // |
|
29 EXPORT_C TPositionModuleId CLocPsyInfo::PsyId() const |
|
30 { |
|
31 return iPsyId; |
|
32 } |
|
33 |
|
34 // ----------------------------------------------------------------------------- |
|
35 // CLocPsyInfo::PsyName |
|
36 // ----------------------------------------------------------------------------- |
|
37 // |
|
38 EXPORT_C const TDesC& CLocPsyInfo::PsyName() const |
|
39 { |
|
40 return *iPsyName; |
|
41 } |
|
42 |
|
43 // ----------------------------------------------------------------------------- |
|
44 // CLocPsyInfo::SetPsyId |
|
45 // ----------------------------------------------------------------------------- |
|
46 // |
|
47 void CLocPsyInfo::SetPsyId(const TPositionModuleId& aPsyId) |
|
48 { |
|
49 iPsyId = aPsyId; |
|
50 } |
|
51 |
|
52 // ----------------------------------------------------------------------------- |
|
53 // CLocPsyInfo::SetPsyNameL |
|
54 // ----------------------------------------------------------------------------- |
|
55 // |
|
56 void CLocPsyInfo::SetPsyNameL(const TDesC& aBuf) |
|
57 { |
|
58 delete iPsyName; |
|
59 iPsyName = NULL; |
|
60 iPsyName = aBuf.AllocL(); |
|
61 } |
|
62 |
|
63 // ----------------------------------------------------------------------------- |
|
64 // CLocPsyInfo::CLocPsyInfo |
|
65 // ----------------------------------------------------------------------------- |
|
66 // |
|
67 CLocPsyInfo::CLocPsyInfo() |
|
68 { |
|
69 } |
|
70 |
|
71 // ----------------------------------------------------------------------------- |
|
72 // CLocPsyInfo::~CLocPsyInfo |
|
73 // ----------------------------------------------------------------------------- |
|
74 // |
|
75 CLocPsyInfo::~CLocPsyInfo() |
|
76 { |
|
77 delete iPsyName; |
|
78 } |
|
79 // End of File |
|