kernel/eka/ewsrv/ky_capt.cpp
branchRCL_3
changeset 44 3e88ff8f41d5
parent 43 c1f20ce4abcf
--- a/kernel/eka/ewsrv/ky_capt.cpp	Tue Aug 31 16:34:26 2010 +0300
+++ b/kernel/eka/ewsrv/ky_capt.cpp	Wed Sep 01 12:34:56 2010 +0100
@@ -1,4 +1,4 @@
-// Copyright (c) 1996-2010 Nokia Corporation and/or its subsidiary(-ies).
+// Copyright (c) 1996-2009 Nokia Corporation and/or its subsidiary(-ies).
 // All rights reserved.
 // This component and the accompanying materials are made available
 // under the terms of the License "Eclipse Public License v1.0"
@@ -41,10 +41,6 @@
 	iCKarray.Close();
 	}
 
-/**
-@note This function can Leave and does not obey the
-coding standard
-*/
 void CCaptureKeys::CheckCaptureKey(const TCaptureKey& aCaptureKey)
 	{
 
@@ -73,10 +69,6 @@
 	User::LeaveIfError(iCKarray.Insert(captureKey,0));
 	}
 
-/**
-@note This function can Leave and does not obey the
-coding standard
-*/
 EXPORT_C void CCaptureKeys::SetCaptureKey(TUint32 aHandle, const TCaptureKey& aCaptureKey)
 //
 // Finds the first capture-key from the list that matches the handle and sets
@@ -87,10 +79,6 @@
 	SetCaptureKey(aHandle,aCaptureKey,0);
 	}
 
-/**
-@note This function can Leave and does not obey the
-coding standard
-*/
 EXPORT_C void CCaptureKeys::SetCaptureKey(TUint32 aHandle, const TCaptureKey& aCaptureKey, TUint8 aPriority)
 //
 // Finds the first capture-key from the list that matches the handle and sets
@@ -108,6 +96,15 @@
 		iCKarray[r]=captureKey;
 	}
 
+void CCaptureKeys::removeCaptureKey(TUint aIndex)
+//
+// Removes the capture-key at the given aIndex from the list
+//
+	{
+
+	iCKarray.Remove(aIndex);
+	}
+
 EXPORT_C void CCaptureKeys::CancelCaptureKey(TUint32 aHandle)
 //
 // Removes the first capture-key from the list that matches the handle;