37
|
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 TPhoneCmdParamKeyCapture class.
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
|
|
19 |
// INCLUDE FILES
|
|
20 |
|
|
21 |
#include "tphonecmdparamkeycapture.h"
|
|
22 |
|
|
23 |
// ================= MEMBER FUNCTIONS =======================
|
|
24 |
|
|
25 |
// C++ default constructor can NOT contain any code, that
|
|
26 |
// might leave.
|
|
27 |
//
|
|
28 |
EXPORT_C TPhoneCmdParamKeyCapture::TPhoneCmdParamKeyCapture() :
|
|
29 |
TPhoneCommandParam(),
|
|
30 |
iKey( EStdKeyNull ),
|
|
31 |
iKeyCode( EKeyNull ),
|
|
32 |
iCaptureType( EPhoneKeyAllEvents )
|
|
33 |
{
|
|
34 |
iParamId = EPhoneParamIdKeyCapture;
|
|
35 |
}
|
|
36 |
|
|
37 |
// ---------------------------------------------------------
|
|
38 |
// TPhoneCmdParamKeyCapture::SetKey
|
|
39 |
// Sets the key scan code
|
|
40 |
// (other items were commented in a header).
|
|
41 |
// ---------------------------------------------------------
|
|
42 |
//
|
|
43 |
EXPORT_C void TPhoneCmdParamKeyCapture::SetKey(
|
|
44 |
TStdScanCode aKey )
|
|
45 |
{
|
|
46 |
iKey = aKey;
|
|
47 |
}
|
|
48 |
|
|
49 |
// ---------------------------------------------------------
|
|
50 |
// TPhoneCmdParamKeyCapture::SetKeyCode
|
|
51 |
// Sets the key code
|
|
52 |
// (other items were commented in a header).
|
|
53 |
// ---------------------------------------------------------
|
|
54 |
//
|
|
55 |
EXPORT_C void TPhoneCmdParamKeyCapture::SetKeyCode( TKeyCode aKeyCode )
|
|
56 |
{
|
|
57 |
iKeyCode = aKeyCode;
|
|
58 |
}
|
|
59 |
|
|
60 |
// ---------------------------------------------------------
|
|
61 |
// TPhoneCmdParamKeyCapture::SetCaptureType
|
|
62 |
// Sets the key capture type
|
|
63 |
// (other items were commented in a header).
|
|
64 |
// ---------------------------------------------------------
|
|
65 |
//
|
|
66 |
EXPORT_C void TPhoneCmdParamKeyCapture::SetCaptureType(
|
|
67 |
TPhoneCaptureType aCaptureType )
|
|
68 |
{
|
|
69 |
iCaptureType = aCaptureType;
|
|
70 |
}
|
|
71 |
|
|
72 |
// ---------------------------------------------------------
|
|
73 |
// TPhoneCmdParamKeyCapture::Key
|
|
74 |
// Returns the key scan code
|
|
75 |
// (other items were commented in a header).
|
|
76 |
// ---------------------------------------------------------
|
|
77 |
//
|
|
78 |
EXPORT_C TStdScanCode TPhoneCmdParamKeyCapture::Key() const
|
|
79 |
{
|
|
80 |
return iKey;
|
|
81 |
}
|
|
82 |
|
|
83 |
// ---------------------------------------------------------
|
|
84 |
// TPhoneCmdParamKeyCapture::KeyCode
|
|
85 |
// Returns the key code
|
|
86 |
// (other items were commented in a header).
|
|
87 |
// ---------------------------------------------------------
|
|
88 |
//
|
|
89 |
EXPORT_C TKeyCode TPhoneCmdParamKeyCapture::KeyCode() const
|
|
90 |
{
|
|
91 |
return iKeyCode;
|
|
92 |
}
|
|
93 |
|
|
94 |
// ---------------------------------------------------------
|
|
95 |
// TPhoneCmdParamKeyCapture::CaptureType
|
|
96 |
// Returns the key capture type
|
|
97 |
// (other items were commented in a header).
|
|
98 |
// ---------------------------------------------------------
|
|
99 |
//
|
|
100 |
EXPORT_C TPhoneCaptureType TPhoneCmdParamKeyCapture::CaptureType() const
|
|
101 |
{
|
|
102 |
return iCaptureType;
|
|
103 |
}
|
|
104 |
|
|
105 |
// End of File
|