|
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 #ifndef __CXSPCOMMANDINFO_H__ |
|
21 #define __CXSPCOMMANDINFO_H__ |
|
22 |
|
23 // INCLUDES |
|
24 #include <e32base.h> |
|
25 |
|
26 // FORWARD DECLARATIONS |
|
27 class TResourceReader; |
|
28 |
|
29 /** |
|
30 * xSP command info |
|
31 */ |
|
32 class CxSPCommandInfo : public CBase |
|
33 { |
|
34 |
|
35 public: |
|
36 /** |
|
37 * Static factory function that performs the 2-phased construction. |
|
38 * |
|
39 * @param aReader Reference to resource reader to be used |
|
40 * @param aId Id of the component owning the command IDs |
|
41 * @param anewCommandIds New command IDs |
|
42 * @return New instance of this class |
|
43 */ |
|
44 static CxSPCommandInfo* NewLC( TResourceReader& aReader, |
|
45 TUint32 aId, |
|
46 TInt& aNewCommandIds ); |
|
47 |
|
48 /** |
|
49 * Destructor. |
|
50 */ |
|
51 ~CxSPCommandInfo(); |
|
52 |
|
53 public: |
|
54 |
|
55 /** |
|
56 * Gets the ID related to this command ID |
|
57 * |
|
58 * @return The ID related to this command ID |
|
59 */ |
|
60 TUint32 Id() const; |
|
61 |
|
62 /** |
|
63 * Gets the new command ID |
|
64 * |
|
65 * @return The new command ID |
|
66 */ |
|
67 TInt32 NewCommandId() const; |
|
68 |
|
69 /** |
|
70 * Gets the old/original command ID |
|
71 * |
|
72 * @return The old/original command ID |
|
73 */ |
|
74 TInt32 OldCommandId() const; |
|
75 |
|
76 private: |
|
77 |
|
78 /** |
|
79 * Constructor. |
|
80 */ |
|
81 CxSPCommandInfo( TUint32 aId ); |
|
82 |
|
83 /** |
|
84 * 2nd phase constructor. |
|
85 */ |
|
86 void ConstructL( TResourceReader& aReader, |
|
87 TInt& aNewCommandIds ); |
|
88 |
|
89 private: // Data |
|
90 |
|
91 TUint32 iId; |
|
92 TInt32 iNewCommandId; |
|
93 TInt32 iOldCommandId; |
|
94 }; |
|
95 |
|
96 |
|
97 #endif // __CXSPCOMMANDINFO_H__ |
|
98 |
|
99 // End of File |