equal
deleted
inserted
replaced
27 #include "tsrc\mytestwindowgroup.h" |
27 #include "tsrc\mytestwindowgroup.h" |
28 #endif |
28 #endif |
29 |
29 |
30 CaptureRequest::CaptureRequest(TUint aKey, Qt::KeyboardModifiers aModifiersMask, |
30 CaptureRequest::CaptureRequest(TUint aKey, Qt::KeyboardModifiers aModifiersMask, |
31 Qt::KeyboardModifiers aModifier, CaptureRequestType aRequestType, |
31 Qt::KeyboardModifiers aModifier, CaptureRequestType aRequestType, |
32 XqKeyCapture::LongFlags aLongKeyFlags, |
32 XQKeyCapture::LongFlags aLongKeyFlags, |
33 #ifndef _XQKEYCAPTURE_UNITTEST_ |
33 #ifndef _XQKEYCAPTURE_UNITTEST_ |
34 RWindowGroup* aGroup |
34 RWindowGroup* aGroup |
35 #else |
35 #else |
36 MyTestWindowGroup* aGroup |
36 MyTestWindowGroup* aGroup |
37 #endif |
37 #endif |
194 return res; |
194 return res; |
195 } |
195 } |
196 |
196 |
197 bool CaptureRequest::matches(TUint aKey, Qt::KeyboardModifiers aModifiersMask, |
197 bool CaptureRequest::matches(TUint aKey, Qt::KeyboardModifiers aModifiersMask, |
198 Qt::KeyboardModifiers aModifier, CaptureRequestType aRequestType, |
198 Qt::KeyboardModifiers aModifier, CaptureRequestType aRequestType, |
199 XqKeyCapture::LongFlags captureLongFlag) const |
199 XQKeyCapture::LongFlags captureLongFlag) const |
200 { |
200 { |
201 bool res = mKey == aKey && mModifiersMask == aModifiersMask && mModifier == aModifier |
201 bool res = mKey == aKey && mModifiersMask == aModifiersMask && mModifier == aModifier |
202 && mRequestType == aRequestType && |
202 && mRequestType == aRequestType && |
203 longKeyFlags == captureLongFlag; |
203 longKeyFlags == captureLongFlag; |
204 return res; |
204 return res; |