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