commonuis/CommonUi/src/ItemFinder.cpp
branchRCL_3
changeset 10 3d340a0166ff
parent 7 08e69e956a8c
child 19 aecbbf00d063
equal deleted inserted replaced
9:0aa5fbdfbc30 10:3d340a0166ff
    27 #include <finditemengine.h>
    27 #include <finditemengine.h>
    28 #include <commonphoneparser.h>
    28 #include <commonphoneparser.h>
    29 #include <txtfrmat.h>
    29 #include <txtfrmat.h>
    30 #include <AknUtils.h> // for AknUtils
    30 #include <AknUtils.h> // for AknUtils
    31 #include <AknsUtils.h>
    31 #include <AknsUtils.h>
       
    32 #include <touchfeedback.h>
    32 
    33 
    33 // scheme recog
    34 // scheme recog
    34 #include <ecom/ecom.h>
    35 #include <ecom/ecom.h>
    35 #include <ecom/implementationinformation.h>
    36 #include <ecom/implementationinformation.h>
    36 #include <coemain.h>
    37 #include <coemain.h>
   215     iMinDigitsToFind = KItemFinderMinDigitsToFind; // default
   216     iMinDigitsToFind = KItemFinderMinDigitsToFind; // default
   216     iCurrentItemExt = new (ELeave) CFindItemExt();
   217     iCurrentItemExt = new (ELeave) CFindItemExt();
   217     CRichText::ActivateParserL(this);
   218     CRichText::ActivateParserL(this);
   218     iSchemeResolver = CSchemeResolver::NewL();
   219     iSchemeResolver = CSchemeResolver::NewL();
   219     iMinDigitsToFind = GetMinDigitsToFindL(); // variated.
   220     iMinDigitsToFind = GetMinDigitsToFindL(); // variated.
       
   221     iFeedback = MTouchFeedback::Instance();
   220     }
   222     }
   221 
   223 
   222 TInt CItemFinder::GetMinDigitsToFindL()
   224 TInt CItemFinder::GetMinDigitsToFindL()
   223     {
   225     {
   224     TInt err = KErrNone;
   226     TInt err = KErrNone;
  1288             TRAP_IGNORE( tapped = ItemWasTappedL( tapPoint ) );
  1290             TRAP_IGNORE( tapped = ItemWasTappedL( tapPoint ) );
  1289             iAllowHighlight = EFalse;
  1291             iAllowHighlight = EFalse;
  1290             // if no item was tapped remove selection
  1292             // if no item was tapped remove selection
  1291             if ( tapped )
  1293             if ( tapped )
  1292                 {
  1294                 {
       
  1295                 if ( iFeedback )
       
  1296                     {
       
  1297                     iFeedback->InstantFeedback( ETouchFeedbackBasicButton );       
       
  1298                     }
  1293                 iTapPoint = tapPoint;
  1299                 iTapPoint = tapPoint;
  1294                 }
  1300                 }
  1295             else
  1301             else
  1296                 {
  1302                 {
  1297                 (*iEditor)->ClearSelectionL();
  1303                 (*iEditor)->ClearSelectionL();