|
1 /* |
|
2 * Copyright (c) 2008 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: vimpstui.dll |
|
15 * |
|
16 */ |
|
17 |
|
18 // INCLUDE FILES |
|
19 #include <barsread.h> |
|
20 #include "ccommandinfo.h" |
|
21 |
|
22 |
|
23 // CONSTANTS |
|
24 |
|
25 // ==================== MEMBER FUNCTIONS ==================== |
|
26 // ---------------------------------------------------------------------------- |
|
27 // CVIMPSTUIMenuExtension::CCommandInfo |
|
28 // ---------------------------------------------------------------------------- |
|
29 // |
|
30 CCommandInfo::CCommandInfo( TInt32 aPluginId ) : iPluginId( aPluginId ) |
|
31 { |
|
32 } |
|
33 // ---------------------------------------------------------------------------- |
|
34 // CVIMPSTUIMenuExtension::~CCommandInfo |
|
35 // ---------------------------------------------------------------------------- |
|
36 // |
|
37 CCommandInfo::~CCommandInfo() |
|
38 { |
|
39 } |
|
40 // ---------------------------------------------------------------------------- |
|
41 // CCommandInfo::NewLC |
|
42 // ---------------------------------------------------------------------------- |
|
43 // |
|
44 CCommandInfo* CCommandInfo::NewLC( TResourceReader& aReader, |
|
45 TInt32 aPluginId, |
|
46 TInt& aNewCommandIds ) |
|
47 { |
|
48 CCommandInfo* self = new (ELeave) CCommandInfo( aPluginId ); |
|
49 CleanupStack::PushL(self); |
|
50 self->ConstructL( aReader, aNewCommandIds ); |
|
51 return self; |
|
52 } |
|
53 // ---------------------------------------------------------------------------- |
|
54 // CCommandInfo::ConstructL |
|
55 // ---------------------------------------------------------------------------- |
|
56 // |
|
57 void CCommandInfo::ConstructL( TResourceReader& aReader, |
|
58 TInt& aNewCommandIds ) |
|
59 { |
|
60 iOldCommandId = aReader.ReadInt32(); |
|
61 iNewCommandId = aNewCommandIds++; |
|
62 } |
|
63 // ---------------------------------------------------------------------------- |
|
64 // CCommandInfo::Id |
|
65 // ---------------------------------------------------------------------------- |
|
66 // |
|
67 TInt32 CCommandInfo::PliginId() const |
|
68 { |
|
69 return iPluginId; |
|
70 } |
|
71 // ---------------------------------------------------------------------------- |
|
72 // CCommandInfo::NewCommandId |
|
73 // ---------------------------------------------------------------------------- |
|
74 // |
|
75 TInt32 CCommandInfo::NewCommandId() const |
|
76 { |
|
77 return iNewCommandId; |
|
78 } |
|
79 // ---------------------------------------------------------------------------- |
|
80 // CCommandInfo::OldCommandId |
|
81 // ---------------------------------------------------------------------------- |
|
82 // |
|
83 TInt32 CCommandInfo::OldCommandId() const |
|
84 { |
|
85 return iOldCommandId; |
|
86 } |
|
87 |
|
88 |
|
89 // end of file |