phoneapp/phoneuiutils/src/tphonecmdparamkeycapture.cpp
changeset 0 5f000ab63145
child 21 92ab7f8d0eab
child 61 41a7f70b3818
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/phoneapp/phoneuiutils/src/tphonecmdparamkeycapture.cpp	Mon Jan 18 20:18:27 2010 +0200
@@ -0,0 +1,105 @@
+/*
+* Copyright (c) 2005 Nokia Corporation and/or its subsidiary(-ies). 
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of "Eclipse Public License v1.0"
+* which accompanies this distribution, and is available
+* at the URL "http://www.eclipse.org/legal/epl-v10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description: Implementation of TPhoneCmdParamKeyCapture class.
+*
+*/
+
+
+// INCLUDE FILES
+
+#include "tphonecmdparamKeycapture.h"   
+
+// ================= MEMBER FUNCTIONS =======================
+
+// C++ default constructor can NOT contain any code, that
+// might leave.
+//
+EXPORT_C TPhoneCmdParamKeyCapture::TPhoneCmdParamKeyCapture() :
+    TPhoneCommandParam(),
+    iKey( EStdKeyNull ),
+    iKeyCode( EKeyNull ),
+    iCaptureType( EPhoneKeyAllEvents )
+    {
+    iParamId = EPhoneParamIdKeyCapture;
+    }
+
+// ---------------------------------------------------------
+// TPhoneCmdParamKeyCapture::SetKey
+// Sets the key scan code
+// (other items were commented in a header).
+// ---------------------------------------------------------
+//
+EXPORT_C void TPhoneCmdParamKeyCapture::SetKey( 
+   TStdScanCode aKey )
+   {
+   iKey = aKey;   
+   }
+
+// ---------------------------------------------------------
+// TPhoneCmdParamKeyCapture::SetKeyCode
+// Sets the key code
+// (other items were commented in a header).
+// ---------------------------------------------------------
+//
+EXPORT_C void TPhoneCmdParamKeyCapture::SetKeyCode( TKeyCode aKeyCode )
+   {
+   iKeyCode = aKeyCode;   
+   }
+
+// ---------------------------------------------------------
+// TPhoneCmdParamKeyCapture::SetCaptureType
+// Sets the key capture type
+// (other items were commented in a header).
+// ---------------------------------------------------------
+//
+EXPORT_C void TPhoneCmdParamKeyCapture::SetCaptureType( 
+   TPhoneCaptureType aCaptureType )
+   {
+   iCaptureType = aCaptureType;   
+   }
+
+// ---------------------------------------------------------
+// TPhoneCmdParamKeyCapture::Key
+// Returns the key scan code
+// (other items were commented in a header).
+// ---------------------------------------------------------
+//
+EXPORT_C TStdScanCode TPhoneCmdParamKeyCapture::Key() const
+   {
+   return iKey;
+   }
+
+// ---------------------------------------------------------
+// TPhoneCmdParamKeyCapture::KeyCode
+// Returns the key code
+// (other items were commented in a header).
+// ---------------------------------------------------------
+//
+EXPORT_C TKeyCode TPhoneCmdParamKeyCapture::KeyCode() const
+   {
+   return iKeyCode;
+   }
+
+// ---------------------------------------------------------
+// TPhoneCmdParamKeyCapture::CaptureType
+// Returns the key capture type
+// (other items were commented in a header).
+// ---------------------------------------------------------
+//
+EXPORT_C TPhoneCaptureType TPhoneCmdParamKeyCapture::CaptureType() const
+   {
+   return iCaptureType;
+   }
+
+//  End of File