1 /* |
|
2 * Copyright (c) 2005 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: Implementation of TPhoneCmdParamKeyEvent class. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 // INCLUDE FILES |
|
20 |
|
21 #include "tphonecmdparamkeyevent.h" |
|
22 |
|
23 // ================= MEMBER FUNCTIONS ======================= |
|
24 |
|
25 // C++ default constructor can NOT contain any code, that |
|
26 // might leave. |
|
27 // |
|
28 EXPORT_C TPhoneCmdParamKeyEvent::TPhoneCmdParamKeyEvent() : |
|
29 TPhoneCommandParam(), |
|
30 iEventCode( EEventNull ) |
|
31 { |
|
32 iParamId = EPhoneParamIdKeyEvent; |
|
33 } |
|
34 |
|
35 // --------------------------------------------------------- |
|
36 // TPhoneCmdParamKeyEvent::SetKeyEvent |
|
37 // Sets the key event |
|
38 // (other items were commented in a header). |
|
39 // --------------------------------------------------------- |
|
40 // |
|
41 EXPORT_C void TPhoneCmdParamKeyEvent::SetKeyEvent( const TKeyEvent& aKeyEvent ) |
|
42 { |
|
43 iKeyEvent = aKeyEvent; |
|
44 } |
|
45 |
|
46 // --------------------------------------------------------- |
|
47 // TPhoneCmdParamKeyEvent::SetEventCode |
|
48 // Sets the key event code |
|
49 // (other items were commented in a header). |
|
50 // --------------------------------------------------------- |
|
51 // |
|
52 EXPORT_C void TPhoneCmdParamKeyEvent::SetEventCode( TEventCode aEventCode ) |
|
53 { |
|
54 iEventCode = aEventCode; |
|
55 } |
|
56 |
|
57 // --------------------------------------------------------- |
|
58 // TPhoneCmdParamKeyEvent::KeyEvent |
|
59 // Returns the key event |
|
60 // (other items were commented in a header). |
|
61 // --------------------------------------------------------- |
|
62 // |
|
63 EXPORT_C const TKeyEvent TPhoneCmdParamKeyEvent::KeyEvent() const |
|
64 { |
|
65 return iKeyEvent; |
|
66 } |
|
67 |
|
68 // --------------------------------------------------------- |
|
69 // TPhoneCmdParamKeyEvent::EventCode |
|
70 // Returns the key event code |
|
71 // (other items were commented in a header). |
|
72 // --------------------------------------------------------- |
|
73 // |
|
74 EXPORT_C TEventCode TPhoneCmdParamKeyEvent::EventCode() const |
|
75 { |
|
76 return iEventCode; |
|
77 } |
|
78 |
|
79 // End of File |
|