qtmobileextensions/src/keycapture/xqkeycapture.cpp
changeset 5 453da2cfceef
parent 4 90517678cc4f
child 14 6fbed849b4f4
equal deleted inserted replaced
4:90517678cc4f 5:453da2cfceef
    42 }
    42 }
    43 
    43 
    44 /*!
    44 /*!
    45  Selects a given key for capturing key pressing. Requires a Qt key code.
    45  Selects a given key for capturing key pressing. Requires a Qt key code.
    46  \param aKey A Qt key.
    46  \param aKey A Qt key.
    47  \param aModifiersMap
    47  \param aModifiersMask
    48  \param aModifier 
    48  \param aModifier 
    49  \retval Returns true if aKey was succesfully added to the capturing system, otherwise returns false.
    49  \retval Returns true if aKey was succesfully added to the capturing system, otherwise returns false.
    50  */
    50  */
    51 bool XqKeyCapture::captureKey(Qt::Key aKey,
    51 bool XqKeyCapture::captureKey(Qt::Key aKey,
    52     Qt::KeyboardModifiers aModifiersMap, Qt::KeyboardModifiers aModifier)
    52     Qt::KeyboardModifiers aModifiersMask, Qt::KeyboardModifiers aModifier)
    53 {
    53 {
    54     return d->captureKey(aKey, aModifiersMap, aModifier);
    54     return d->captureKey(aKey, aModifiersMask, aModifier);
    55 }
    55 }
    56 
    56 
    57 /*!
    57 /*!
    58  Selects a given key for capturing key pressing. Requires a S60 key code (TKeyCode).
    58  Selects a given key for capturing key pressing. Requires a S60 key code (TKeyCode).
    59  \param aKey A S60 key code (TKeyCode).
    59  \param aKey A S60 key code (TKeyCode).
    60  \param aModifiersMap
    60  \param aModifiersMask
    61  \param aModifier 
    61  \param aModifier 
    62  \retval Returns true if aKey was succesfully added to the capturing system, otherwise returns false.
    62  \retval Returns true if aKey was succesfully added to the capturing system, otherwise returns false.
    63  */
    63  */
    64 bool XqKeyCapture::captureKey(TUint aKey,
    64 bool XqKeyCapture::captureKey(TUint aKey,
    65     Qt::KeyboardModifiers aModifiersMap, Qt::KeyboardModifiers aModifier)
    65     Qt::KeyboardModifiers aModifiersMask, Qt::KeyboardModifiers aModifier)
    66 {
    66 {
    67     return d->captureKey(aKey, aModifiersMap, aModifier);
    67     return d->captureKey(aKey, aModifiersMask, aModifier);
    68 }
    68 }
    69 
    69 
    70 /*!
    70 /*!
    71  Selects a given key for capturing long pressing. Requires a Qt key code.
    71  Selects a given key for capturing long pressing. Requires a Qt key code.
    72  \param aKey A Qt key.
    72  \param aKey A Qt key.
    73  \param aModifiersMap
    73  \param aModifiersMask
    74  \param aModifier 
    74  \param aModifier 
    75  \retval Returns true if aKey was succesfully added to the capturing system, otherwise returns false.
    75  \retval Returns true if aKey was succesfully added to the capturing system, otherwise returns false.
    76  */
    76  */
    77 bool XqKeyCapture::captureLongKey(Qt::Key aKey,
    77 bool XqKeyCapture::captureLongKey(Qt::Key aKey,
    78     Qt::KeyboardModifiers aModifiersMap, Qt::KeyboardModifiers aModifier,
    78     Qt::KeyboardModifiers aModifiersMask, Qt::KeyboardModifiers aModifier,
    79     XqKeyCapture::LongFlags aLongType)
    79     XqKeyCapture::LongFlags aLongType)
    80 {
    80 {
    81     return d->captureLongKey(aKey, aModifiersMap, aModifier, aLongType);
    81     return d->captureLongKey(aKey, aModifiersMask, aModifier, aLongType);
    82 }
    82 }
    83 
    83 
    84 /*!
    84 /*!
    85  Selects a given key for capturing long pressing. Requires a S60 key code (TKeyCode).
    85  Selects a given key for capturing long pressing. Requires a S60 key code (TKeyCode).
    86  \param aKey A S60 key code (TKeyCode).
    86  \param aKey A S60 key code (TKeyCode).
    96 }
    96 }
    97 
    97 
    98 /*!
    98 /*!
    99  Selects a given key for capturing pressing up and down. Requires a Qt key code.
    99  Selects a given key for capturing pressing up and down. Requires a Qt key code.
   100  \param aKey A Qt key.
   100  \param aKey A Qt key.
   101  \param aModifiersMap
   101  \param aModifiersMask
   102  \param aModifier 
   102  \param aModifier 
   103  \retval Returns true if aKey was succesfully added to the capturing system, otherwise returns false.
   103  \retval Returns true if aKey was succesfully added to the capturing system, otherwise returns false.
   104  */
   104  */
   105 bool XqKeyCapture::captureKeyUpAndDowns(Qt::Key aKey,
   105 bool XqKeyCapture::captureKeyUpAndDowns(Qt::Key aKey,
   106     Qt::KeyboardModifiers aModifiersMap, Qt::KeyboardModifiers aModifier)
   106     Qt::KeyboardModifiers aModifiersMask, Qt::KeyboardModifiers aModifier)
   107 {
   107 {
   108     return d->captureKeyUpAndDowns(aKey, aModifiersMap, aModifier);
   108     return d->captureKeyUpAndDowns(aKey, aModifiersMask, aModifier);
   109 }
   109 }
   110 
   110 
   111 /*!
   111 /*!
   112  Selects a given key for capturing pressing up and down. Requires a S60 key scan code (TStdScanCode).
   112  Selects a given key for capturing pressing up and down. Requires a S60 key scan code (TStdScanCode).
   113  \param aKey A S60 key scan code (TStdScanCode).
   113  \param aKey A S60 key scan code (TStdScanCode).
   114  \param aModifiersMap
   114  \param aModifiersMask
   115  \param aModifier 
   115  \param aModifier 
   116  \retval Returns true if aKey was succesfully added to the capturing system, otherwise returns false.
   116  \retval Returns true if aKey was succesfully added to the capturing system, otherwise returns false.
   117  */
   117  */
   118 bool XqKeyCapture::captureKeyUpAndDowns(TUint aKey,
   118 bool XqKeyCapture::captureKeyUpAndDowns(TUint aKey,
   119     Qt::KeyboardModifiers aModifiersMap, Qt::KeyboardModifiers aModifier)
   119     Qt::KeyboardModifiers aModifiersMask, Qt::KeyboardModifiers aModifier)
   120 {
   120 {
   121     return d->captureKeyUpAndDowns(aKey, aModifiersMap, aModifier);
   121     return d->captureKeyUpAndDowns(aKey, aModifiersMask, aModifier);
   122 }
   122 }
   123 
   123 
   124 /*!
   124 /*!
   125  Deselects a given key from key capturing. Requires a Qt key code.
   125  Deselects a given key from key capturing. Requires a Qt key code.
   126  \param aKey A Qt key.
   126  \param aKey A Qt key.
   127  \param aModifiersMap
   127  \param aModifiersMask
   128  \param aModifier 
   128  \param aModifier 
   129  \retval Returns true if aKey was succesfully removed from the capturing system, otherwise returns false.
   129  \retval Returns true if aKey was succesfully removed from the capturing system, otherwise returns false.
   130  */
   130  */
   131 bool XqKeyCapture::cancelCaptureKey(Qt::Key aKey,
   131 bool XqKeyCapture::cancelCaptureKey(Qt::Key aKey,
   132     Qt::KeyboardModifiers aModifiersMap, Qt::KeyboardModifiers aModifier)
   132     Qt::KeyboardModifiers aModifiersMask, Qt::KeyboardModifiers aModifier)
   133 {
   133 {
   134     return d->cancelCaptureKey(aKey, aModifiersMap, aModifier);
   134     return d->cancelCaptureKey(aKey, aModifiersMask, aModifier);
   135 }
   135 }
   136 
   136 
   137 /*!
   137 /*!
   138  Deselects a given key from key capturing. Requires a S60 key code (TKeyCode).
   138  Deselects a given key from key capturing. Requires a S60 key code (TKeyCode).
   139  \param aKey A S60 key code (TKeyCode).
   139  \param aKey A S60 key code (TKeyCode).
   140  \param aModifiersMap
   140  \param aModifiersMask
   141  \param aModifier 
   141  \param aModifier 
   142  \retval Returns true if aKey was succesfully removed from the capturing system, otherwise returns false.
   142  \retval Returns true if aKey was succesfully removed from the capturing system, otherwise returns false.
   143  */
   143  */
   144 bool XqKeyCapture::cancelCaptureKey(TUint aKey,
   144 bool XqKeyCapture::cancelCaptureKey(TUint aKey,
   145     Qt::KeyboardModifiers aModifiersMap, Qt::KeyboardModifiers aModifier)
   145     Qt::KeyboardModifiers aModifiersMask, Qt::KeyboardModifiers aModifier)
   146 {
   146 {
   147     return d->cancelCaptureKey(aKey, aModifiersMap, aModifier);
   147     return d->cancelCaptureKey(aKey, aModifiersMask, aModifier);
   148 }
   148 }
   149 
   149 
   150 /*!
   150 /*!
   151  Deselects a given key from capturing long pressing. Requires a Qt key code.
   151  Deselects a given key from capturing long pressing. Requires a Qt key code.
   152  \param aKey A Qt key.
   152  \param aKey A Qt key.
   153  \param aModifiersMap
   153  \param aModifiersMask
   154  \param aModifier 
   154  \param aModifier 
   155  \retval Returns true if aKey was succesfully removed from the capturing system, otherwise returns false.
   155  \retval Returns true if aKey was succesfully removed from the capturing system, otherwise returns false.
   156  */
   156  */
   157 bool XqKeyCapture::cancelCaptureLongKey(Qt::Key aKey,
   157 bool XqKeyCapture::cancelCaptureLongKey(Qt::Key aKey,
   158     Qt::KeyboardModifiers aModifiersMap, Qt::KeyboardModifiers aModifier,
   158     Qt::KeyboardModifiers aModifiersMask, Qt::KeyboardModifiers aModifier,
   159     XqKeyCapture::LongFlags aLongType)
   159     XqKeyCapture::LongFlags aLongType)
   160 {
   160 {
   161     return d->cancelCaptureLongKey(aKey, aModifiersMap, aModifier,
   161     return d->cancelCaptureLongKey(aKey, aModifiersMask, aModifier,
   162         aLongType);
   162         aLongType);
   163 }
   163 }
   164 
   164 
   165 /*!
   165 /*!
   166  Deselects a given key from capturing long pressing. Requires a S60 key code (TKeyCode).
   166  Deselects a given key from capturing long pressing. Requires a S60 key code (TKeyCode).
   167  \param aKey A S60 key code (TKeyCode).
   167  \param aKey A S60 key code (TKeyCode).
   168  \param aModifiersMap
   168  \param aModifiersMask
   169  \param aModifier 
   169  \param aModifier 
   170  \retval Returns true if aKey was succesfully removed from the capturing system, otherwise returns false.
   170  \retval Returns true if aKey was succesfully removed from the capturing system, otherwise returns false.
   171  */
   171  */
   172 bool XqKeyCapture::cancelCaptureLongKey(TUint aKey,
   172 bool XqKeyCapture::cancelCaptureLongKey(TUint aKey,
   173     Qt::KeyboardModifiers aModifiersMap, Qt::KeyboardModifiers aModifier,
   173     Qt::KeyboardModifiers aModifiersMask, Qt::KeyboardModifiers aModifier,
   174     XqKeyCapture::LongFlags aLongType)
   174     XqKeyCapture::LongFlags aLongType)
   175 {
   175 {
   176     return d->cancelCaptureLongKey(aKey, aModifiersMap, aModifier,
   176     return d->cancelCaptureLongKey(aKey, aModifiersMask, aModifier,
   177         aLongType);
   177         aLongType);
   178 }
   178 }
   179 
   179 
   180 /*!
   180 /*!
   181  Deselects a given key from capturing pressing up and down. Requires a Qt key code.
   181  Deselects a given key from capturing pressing up and down. Requires a Qt key code.
   182  \param aKey A Qt key.
   182  \param aKey A Qt key.
   183  \param aModifiersMap
   183  \param aModifiersMask
   184  \param aModifier 
   184  \param aModifier 
   185  \retval Returns true if aKey was succesfully removed from the capturing system, otherwise returns false.
   185  \retval Returns true if aKey was succesfully removed from the capturing system, otherwise returns false.
   186  */
   186  */
   187 bool XqKeyCapture::cancelCaptureKeyUpAndDowns(Qt::Key aKey,
   187 bool XqKeyCapture::cancelCaptureKeyUpAndDowns(Qt::Key aKey,
   188     Qt::KeyboardModifiers aModifiersMap, Qt::KeyboardModifiers aModifier)
   188     Qt::KeyboardModifiers aModifiersMask, Qt::KeyboardModifiers aModifier)
   189 {
   189 {
   190     return d->cancelCaptureKeyUpAndDowns(aKey, aModifiersMap, aModifier);
   190     return d->cancelCaptureKeyUpAndDowns(aKey, aModifiersMask, aModifier);
   191 }
   191 }
   192 
   192 
   193 /*!
   193 /*!
   194  Deselects a given key from capturing pressing up and down. Requires a S60 key scan code (TStdScanCode).
   194  Deselects a given key from capturing pressing up and down. Requires a S60 key scan code (TStdScanCode).
   195  \param aKey A S60 key scan code (TStdScanCode).
   195  \param aKey A S60 key scan code (TStdScanCode).
   196  \param aModifiersMap
   196  \param aModifiersMask
   197  \param aModifier 
   197  \param aModifier 
   198  \retval Returns true if aKey was succesfully removed from the capturing system, otherwise returns false.
   198  \retval Returns true if aKey was succesfully removed from the capturing system, otherwise returns false.
   199  */
   199  */
   200 bool XqKeyCapture::cancelCaptureKeyUpAndDowns(TUint aKey,
   200 bool XqKeyCapture::cancelCaptureKeyUpAndDowns(TUint aKey,
   201     Qt::KeyboardModifiers aModifiersMap, Qt::KeyboardModifiers aModifier)
   201     Qt::KeyboardModifiers aModifiersMask, Qt::KeyboardModifiers aModifier)
   202 {
   202 {
   203     return d->cancelCaptureKeyUpAndDowns(aKey, aModifiersMap, aModifier);
   203     return d->cancelCaptureKeyUpAndDowns(aKey, aModifiersMask, aModifier);
   204 }
   204 }
   205 
   205 
   206 /*!
   206 /*!
   207  Returns latest error string.
   207  Returns latest error string.
   208  \retval Latest error string.
   208  \retval Latest error string.
   218  */
   218  */
   219 int XqKeyCapture::errorId() const
   219 int XqKeyCapture::errorId() const
   220 {
   220 {
   221     return d->errorId();
   221     return d->errorId();
   222 }
   222 }
       
   223 
       
   224 /*!
       
   225  Selects a given keys for capturing key pressing. Requires a Qt key code.
       
   226  \param list A Qt keys list.
       
   227  \param aModifiersMask
       
   228  \param aModifier 
       
   229  \retval Returns true if aKey was succesfully added to the capturing system, otherwise returns false.
       
   230  */
       
   231 bool XqKeyCapture::captureKey(XQKeyCaptureKeyList list, 
       
   232         Qt::KeyboardModifiers aModifiersMask,
       
   233         Qt::KeyboardModifiers aModifier)
       
   234 {
       
   235     Qt::Key key;
       
   236     bool result = true;
       
   237     foreach (key, list) {
       
   238         bool result = result & d->captureKey(key, aModifiersMask, aModifier);
       
   239     }
       
   240     return result;
       
   241 }
       
   242 
       
   243 /*!
       
   244  Selects a given keys for capturing key pressing. Requires a S60 key code (TKeyCode).
       
   245  \param list A S60 list of keys (TKeyCode codes).
       
   246  \param aModifiersMask
       
   247  \param aModifier 
       
   248  \retval Returns true if aKey was succesfully added to the capturing system, otherwise returns false.
       
   249  */
       
   250 bool XqKeyCapture::captureKey(XQKeyCaptureNativeKeyList list, 
       
   251         Qt::KeyboardModifiers aModifiersMask,
       
   252         Qt::KeyboardModifiers aModifier)
       
   253 {
       
   254     TUint key;
       
   255     bool result = true;
       
   256     foreach (key, list) {
       
   257         bool result = result & d->captureKey(key, aModifiersMask, aModifier);
       
   258     }
       
   259     return result;
       
   260 }
       
   261 
       
   262 /*!
       
   263  Selects a given keys for capturing long pressing. Requires a Qt key code.
       
   264  \param aKey A Qt  list of keys.
       
   265  \param aModifiersMask
       
   266  \param aModifier 
       
   267  \retval Returns true if aKey was succesfully added to the capturing system, otherwise returns false.
       
   268  */
       
   269 bool XqKeyCapture::captureLongKey(XQKeyCaptureKeyList list, 
       
   270         Qt::KeyboardModifiers aModifiersMask,
       
   271         Qt::KeyboardModifiers aModifier,
       
   272         XqKeyCapture::LongFlags aLongType)
       
   273 {
       
   274     Qt::Key key;
       
   275     bool result = true;
       
   276     foreach (key, list) {
       
   277         bool result = result & d->captureLongKey(key, aModifiersMask, aModifier, aLongType);
       
   278     }
       
   279     return result;
       
   280 }
       
   281 
       
   282 /*!
       
   283  Selects a given keys for capturing long pressing. Requires a S60 key code (TKeyCode).
       
   284  \param list A S60 list of keys (TKeyCode codes).
       
   285  \param aModifiersMap
       
   286  \param aModifier 
       
   287  \retval Returns true if aKey was succesfully added to the capturing system, otherwise returns false.
       
   288  */
       
   289  bool XqKeyCapture::captureLongKey(XQKeyCaptureNativeKeyList list, 
       
   290         Qt::KeyboardModifiers aModifiersMask,
       
   291         Qt::KeyboardModifiers aModifier,
       
   292         XqKeyCapture::LongFlags aLongType)
       
   293 {
       
   294     TUint key;
       
   295     bool result = true;
       
   296     foreach (key, list) {
       
   297         bool result = result & d->captureLongKey(key, aModifiersMask, aModifier, aLongType);
       
   298     }
       
   299     return result;
       
   300 }
       
   301 
       
   302 /*!
       
   303  Selects a given keys for capturing pressing up and down. Requires a Qt key code.
       
   304  \param list A Qt list of keys.
       
   305  \param aModifiersMask
       
   306  \param aModifier 
       
   307  \retval Returns true if aKey was succesfully added to the capturing system, otherwise returns false.
       
   308  */
       
   309 bool XqKeyCapture::captureKeyUpAndDowns(XQKeyCaptureKeyList list, 
       
   310         Qt::KeyboardModifiers aModifiersMask,
       
   311         Qt::KeyboardModifiers aModifier)
       
   312 {
       
   313     Qt::Key key;
       
   314     bool result = true;
       
   315     foreach (key, list) {
       
   316         bool result = result & d->captureKeyUpAndDowns(key, aModifiersMask, aModifier);
       
   317     }
       
   318     return result;
       
   319 }
       
   320 
       
   321 /*!
       
   322  Selects a given keys for capturing pressing up and down. Requires a S60 key scan code (TStdScanCode).
       
   323  \param list A list of S60 key scan codes (TStdScanCode).
       
   324  \param aModifiersMask
       
   325  \param aModifier 
       
   326  \retval Returns true if aKey was succesfully added to the capturing system, otherwise returns false.
       
   327  */
       
   328 bool XqKeyCapture::captureKeyUpAndDowns(XQKeyCaptureNativeKeyList list, 
       
   329         Qt::KeyboardModifiers aModifiersMask,
       
   330         Qt::KeyboardModifiers aModifier)
       
   331 {
       
   332     TUint key;
       
   333     bool result = true;
       
   334     foreach (key, list) {
       
   335         bool result = result & d->captureKeyUpAndDowns(key, aModifiersMask, aModifier);
       
   336     }
       
   337     return result;
       
   338 }
       
   339 
       
   340 /*!
       
   341  Deselects a given list of keys from key capturing. Requires a Qt key code.
       
   342  \param list  A Qt list of keys.
       
   343  \param aModifiersMask
       
   344  \param aModifier 
       
   345  \retval Returns true if aKey was succesfully removed from the capturing system, otherwise returns false.
       
   346  */
       
   347 bool XqKeyCapture::cancelCaptureKey(XQKeyCaptureKeyList list, 
       
   348         Qt::KeyboardModifiers aModifiersMask,
       
   349         Qt::KeyboardModifiers aModifier)
       
   350 {
       
   351     Qt::Key key;
       
   352     bool result = true;
       
   353     foreach (key, list) {
       
   354         bool result = result & d->cancelCaptureKey(key, aModifiersMask, aModifier);
       
   355     }
       
   356     return result;
       
   357 }
       
   358 
       
   359 /*!
       
   360  Deselects a given list of keys from key capturing. Requires a S60 key code (TKeyCode).
       
   361  \param list  A S60 list of key codes (TKeyCode).
       
   362  \param aModifiersMask
       
   363  \param aModifier 
       
   364  \retval Returns true if aKey was succesfully removed from the capturing system, otherwise returns false.
       
   365  */
       
   366 bool XqKeyCapture::cancelCaptureKey(XQKeyCaptureNativeKeyList list, 
       
   367         Qt::KeyboardModifiers aModifiersMask,
       
   368         Qt::KeyboardModifiers aModifier)
       
   369 {
       
   370     TUint key;
       
   371     bool result = true;
       
   372     foreach (key, list) {
       
   373         bool result = result & d->cancelCaptureKey(key, aModifiersMask, aModifier);
       
   374     }
       
   375     return result;
       
   376 }
       
   377 
       
   378 /*!
       
   379  Deselects a given list of keys from capturing long pressing. Requires a Qt key code.
       
   380  \param list A list of Qt keys.
       
   381  \param aModifiersMask
       
   382  \param aModifier 
       
   383  \retval Returns true if aKey was succesfully removed from the capturing system, otherwise returns false.
       
   384  */
       
   385 bool XqKeyCapture::cancelCaptureLongKey(XQKeyCaptureKeyList list, 
       
   386         Qt::KeyboardModifiers aModifiersMask,
       
   387         Qt::KeyboardModifiers aModifier,
       
   388         XqKeyCapture::LongFlags aLongType)
       
   389 {
       
   390     Qt::Key key;
       
   391     bool result = true;
       
   392     foreach (key, list) {
       
   393         bool result = result & d->cancelCaptureLongKey(key, aModifiersMask, aModifier, aLongType);
       
   394     }
       
   395     return result;
       
   396 }
       
   397 
       
   398 /*!
       
   399  Deselects a given key from capturing long pressing. Requires a S60 key code (TKeyCode).
       
   400  \paramlist A list of S60 key codes (TKeyCode).
       
   401  \param aModifiersMask
       
   402  \param aModifier 
       
   403  \retval Returns true if aKey was succesfully removed from the capturing system, otherwise returns false.
       
   404  */
       
   405 bool XqKeyCapture::cancelCaptureLongKey(XQKeyCaptureNativeKeyList list, 
       
   406         Qt::KeyboardModifiers aModifiersMask,
       
   407         Qt::KeyboardModifiers aModifier,
       
   408         XqKeyCapture::LongFlags aLongType)
       
   409 {
       
   410     TUint key;
       
   411     bool result = true;
       
   412     foreach (key, list) {
       
   413         bool result = result & d->cancelCaptureLongKey(key, aModifiersMask, aModifier, aLongType);
       
   414     }
       
   415     return result;
       
   416 }
       
   417 
       
   418 /*!
       
   419  Deselects a list of given keys from capturing pressing up and down. Requires a Qt key codes.
       
   420  \param list A list of Qt keys.
       
   421  \param aModifiersMask
       
   422  \param aModifier 
       
   423  \retval Returns true if aKey was succesfully removed from the capturing system, otherwise returns false.
       
   424  */
       
   425 bool XqKeyCapture::cancelCaptureKeyUpAndDowns(XQKeyCaptureKeyList list, 
       
   426         Qt::KeyboardModifiers aModifiersMask,
       
   427         Qt::KeyboardModifiers aModifier)
       
   428 {
       
   429     Qt::Key key;
       
   430     bool result = true;
       
   431     foreach (key, list) {
       
   432         bool result = result & d->cancelCaptureKeyUpAndDowns(key, aModifiersMask, aModifier);
       
   433     }
       
   434     return result;
       
   435 }
       
   436 
       
   437 /*!
       
   438  Deselects a given list of keys from capturing pressing up and down. Requires a S60 key scan code (TStdScanCode).
       
   439  \param aKey A S60 key scan code (TStdScanCode).
       
   440  \param aModifiersMask
       
   441  \param aModifier 
       
   442  \retval Returns true if aKey was succesfully removed from the capturing system, otherwise returns false.
       
   443  */
       
   444  bool XqKeyCapture::cancelCaptureKeyUpAndDowns(XQKeyCaptureNativeKeyList list, 
       
   445         Qt::KeyboardModifiers aModifiersMask,
       
   446         Qt::KeyboardModifiers aModifier)
       
   447 {
       
   448     TUint key;
       
   449     bool result = true;
       
   450     foreach (key, list) {
       
   451         bool result = result & d->cancelCaptureKeyUpAndDowns(key, aModifiersMask, aModifier);
       
   452     }
       
   453     return result;
       
   454 }