qtmobileextensions/src/keycapture/capturerequest_s60.cpp
changeset 14 6fbed849b4f4
parent 1 2b40d63a9c3d
child 19 46686fb6258c
equal deleted inserted replaced
11:06b8e2af4411 14:6fbed849b4f4
    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;