windowing/windowserver/nga/SERVER/openwfc/server.h
branchRCL_3
changeset 164 25ffed67c7ef
parent 163 bbf46f59e123
--- a/windowing/windowserver/nga/SERVER/openwfc/server.h	Tue Aug 31 16:31:06 2010 +0300
+++ b/windowing/windowserver/nga/SERVER/openwfc/server.h	Wed Sep 01 12:39:21 2010 +0100
@@ -1,4 +1,4 @@
-// Copyright (c) 1999-2010 Nokia Corporation and/or its subsidiary(-ies).
+// Copyright (c) 1999-2009 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"
@@ -27,9 +27,8 @@
 #include "OBJECT.H"
 #include "CLIENT.H"
 #include "ScrDev.H"
-#include <graphics/wskeyrouter.h>
-#include <graphics/WSGRAPHICDRAWERINTERFACE.H>
-#include "graphics/wsgraphicdrawerinternal.h"
+#include <Graphics/WSGRAPHICDRAWERINTERFACE.H>
+#include "Graphics/wsgraphicdrawerinternal.h"
 #include "WSGRAPHICDRAWERARRAY.H"
 #include "panics.h"
 
@@ -152,7 +151,7 @@
 	inline CWsWindowGroup *WindowGroup();
 	inline const CWsWindowGroup *WindowGroup() const;
 private:
-	void CmdToRequest(const TWsWinCmdCaptureKey &aCaptureKey, TKeyCaptureRequest &aParams);
+	void CmdToParams(const TWsWinCmdCaptureKey &aCaptureKey, TCaptureKey &aParams);
 private:
 	CWsWindowGroup *iWindowGroup;
 	};
@@ -183,16 +182,21 @@
 	~CWsCaptureKeyUpsAndDowns();
 	void ConstructL(const TWsWinCmdCaptureKey &aCaptureKey);
 	void CommandL(TInt aOpcode, const TAny *aCmdData);
+	static CWsWindowGroup *CheckForCapture(TUint aScanCode, TUint aModifiers);
 	inline CWsWindowGroup *WindowGroup();
 	inline const CWsWindowGroup *WindowGroup() const;
 private:
+	TUint iModifierValue;
+	TUint iModifierMask;
+	TUint iScanCode;
+	static TPriQue<CWsCaptureKeyUpsAndDowns> iCaptureKeysUpsAndDowns;
+	TPriQueLink iLink;
 	CWsWindowGroup *iWindowGroup;
 	};
 
 class CWsCaptureLongKey : public CWsObject
 	{
 	friend class CKeyboardRepeat;
-	friend class TWindowServerEvent;
 public:
 	CWsCaptureLongKey(CWsWindowGroup *owner);
 	~CWsCaptureLongKey();
@@ -200,10 +204,13 @@
 	void CommandL(TInt aOpcode, const TAny *aCmdData);
 	inline CWsWindowGroup *WindowGroup();
 	inline const CWsWindowGroup *WindowGroup() const;
+	static CWsCaptureLongKey* CheckForCapture(TUint aKeyCode, TInt aModifiers);
+public:
+	static TPriQue<CWsCaptureLongKey> iCaptureLongKeys;
 private:
-	TTimeIntervalMicroSeconds32 iDelay;
-	TUint iFlags;
+	TPriQueLink iLink;
 	CWsWindowGroup *iWindowGroup;
+	TWsWinCmdCaptureLongKey iData;
 	};
 
 //--------------------------------