equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2007 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 * Function info definition. |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 |
|
21 #ifndef __MSGFUNCTIONINFO_H__ |
|
22 #define __MSGFUNCTIONINFO_H__ |
|
23 |
|
24 // INCLUDES |
|
25 #include <e32def.h> |
|
26 #include <msvreg.h> |
|
27 #include <mtudcbas.h> |
|
28 |
|
29 |
|
30 // CLASS DECLARATION |
|
31 |
|
32 /** |
|
33 * TMsgFunctionInfo |
|
34 * Class for mtm functions. |
|
35 */ |
|
36 class TMsgFunctionInfo |
|
37 { |
|
38 public: |
|
39 /** |
|
40 * |
|
41 */ |
|
42 inline TMsgFunctionInfo( |
|
43 const TDesC& aCaption, |
|
44 TInt aKeyCode, |
|
45 TInt aKeyModifiers, |
|
46 TInt aFuncId, |
|
47 TInt aFlags, |
|
48 TUid aMtmUid ); |
|
49 |
|
50 public: |
|
51 TBuf<CBaseMtmUiData::TMtmUiFunction::ECaptionMaxLen> iCaption; |
|
52 TInt iKeyCode; |
|
53 TInt iKeyModifiers; |
|
54 TInt iFuncId; |
|
55 TInt iFlags; |
|
56 TUid iMtmUid; |
|
57 }; |
|
58 |
|
59 /** |
|
60 * CMsgFuncArray |
|
61 * Array for mtm functions. |
|
62 */ |
|
63 typedef CArrayFixFlat<TMsgFunctionInfo> CMsgFuncArray; |
|
64 |
|
65 // INLINES |
|
66 |
|
67 inline TMsgFunctionInfo::TMsgFunctionInfo( |
|
68 const TDesC& aCaption, |
|
69 TInt aKeyCode, |
|
70 TInt aKeyModifiers, |
|
71 TInt aFuncId, |
|
72 TInt aFlags, |
|
73 TUid aMtmUid) |
|
74 :iCaption( aCaption ), |
|
75 iKeyCode( aKeyCode ), |
|
76 iKeyModifiers( aKeyModifiers ), |
|
77 iFuncId( aFuncId ), |
|
78 iFlags( aFlags ), |
|
79 iMtmUid( aMtmUid ) |
|
80 { |
|
81 } |
|
82 |
|
83 #endif // __MSGFUNCTIONINFO_H__ |
|
84 |
|
85 // End of file |