equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2006 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: |
|
15 * xSP command info |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 // INCLUDE FILES |
|
21 #include <barsread.h> |
|
22 #include "CxSPCommandInfo.h" |
|
23 |
|
24 |
|
25 // CONSTANTS |
|
26 |
|
27 // ==================== MEMBER FUNCTIONS ==================== |
|
28 CxSPCommandInfo::CxSPCommandInfo( TUint32 aId ) : iId( aId ) |
|
29 { |
|
30 } |
|
31 |
|
32 CxSPCommandInfo::~CxSPCommandInfo() |
|
33 { |
|
34 } |
|
35 |
|
36 CxSPCommandInfo* CxSPCommandInfo::NewLC( TResourceReader& aReader, |
|
37 TUint32 aId, |
|
38 TInt& aNewCommandIds ) |
|
39 { |
|
40 CxSPCommandInfo* self = new (ELeave) CxSPCommandInfo( aId ); |
|
41 CleanupStack::PushL(self); |
|
42 self->ConstructL( aReader, aNewCommandIds ); |
|
43 return self; |
|
44 } |
|
45 |
|
46 void CxSPCommandInfo::ConstructL( TResourceReader& aReader, |
|
47 TInt& aNewCommandIds ) |
|
48 { |
|
49 iOldCommandId = aReader.ReadInt32(); |
|
50 iNewCommandId = aNewCommandIds++; |
|
51 } |
|
52 |
|
53 TUint32 CxSPCommandInfo::Id() const |
|
54 { |
|
55 return iId; |
|
56 } |
|
57 |
|
58 TInt32 CxSPCommandInfo::NewCommandId() const |
|
59 { |
|
60 return iNewCommandId; |
|
61 } |
|
62 |
|
63 TInt32 CxSPCommandInfo::OldCommandId() const |
|
64 { |
|
65 return iOldCommandId; |
|
66 } |
|
67 |
|
68 |
|
69 // end of file |