genericservices/s60compatibilityheaders/commonengine/src/finditemengine.cpp
changeset 0 e4d67989cc36
equal deleted inserted replaced
-1:000000000000 0:e4d67989cc36
       
     1 // Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 
       
    17 
       
    18 // INCLUDE FILES
       
    19 #include "finditemengine.h"
       
    20 
       
    21 EXPORT_C CFindItemEngine* CFindItemEngine::NewL( const TDesC& aText,  const CFindItemEngine::TFindItemSearchCase aSearchCase )
       
    22 	{ return reinterpret_cast<CFindItemEngine*>(CTulAddressStringTokenizer::NewL(aText, aSearchCase)); }
       
    23 
       
    24 EXPORT_C CFindItemEngine* CFindItemEngine::NewL( const TDesC& aText,  const CFindItemEngine::TFindItemSearchCase aSearchCase, const TInt aMinNumbers )
       
    25 	{ return reinterpret_cast<CFindItemEngine*>(CTulAddressStringTokenizer::NewL(aText, aSearchCase, aMinNumbers)); }
       
    26 
       
    27 EXPORT_C CFindItemEngine::~CFindItemEngine()
       
    28 	{ delete reinterpret_cast<CTulAddressStringTokenizer*>(this); }
       
    29 
       
    30 EXPORT_C TBool CFindItemEngine::Item( CFindItemEngine::SFoundItem& aItem )
       
    31 	{ return reinterpret_cast<CTulAddressStringTokenizer*>(this)->Item(reinterpret_cast<CTulAddressStringTokenizer::SFoundItem&>(aItem)); }
       
    32 
       
    33 EXPORT_C TBool CFindItemEngine::NextItem( CFindItemEngine::SFoundItem& aItem )
       
    34 	{ return reinterpret_cast<CTulAddressStringTokenizer*>(this)->NextItem(reinterpret_cast<CTulAddressStringTokenizer::SFoundItem&>(aItem)); }
       
    35 
       
    36 EXPORT_C TBool CFindItemEngine::PrevItem( CFindItemEngine::SFoundItem& aItem )
       
    37 	{ return reinterpret_cast<CTulAddressStringTokenizer*>(this)->PrevItem(reinterpret_cast<CTulAddressStringTokenizer::SFoundItem&>(aItem)); }
       
    38 
       
    39 EXPORT_C const CArrayFixFlat<CFindItemEngine::SFoundItem>* CFindItemEngine::ItemArray() const
       
    40 	{ return reinterpret_cast<const CArrayFixFlat<CFindItemEngine::SFoundItem>*>(reinterpret_cast<const CTulAddressStringTokenizer*>(this)->ItemArray()); }
       
    41 
       
    42 EXPORT_C TInt CFindItemEngine::Position() const
       
    43 	{ return reinterpret_cast<const CTulAddressStringTokenizer*>(this)->Position(); }
       
    44 
       
    45 EXPORT_C void CFindItemEngine::ResetPosition()
       
    46 	{ reinterpret_cast<CTulAddressStringTokenizer*>(this)->ResetPosition(); }
       
    47 
       
    48 EXPORT_C TInt CFindItemEngine::ItemCount() const
       
    49 	{ return reinterpret_cast<const CTulAddressStringTokenizer*>(this)->ItemCount(); }
       
    50 
       
    51 EXPORT_C TInt CFindItemEngine::DoNewSearchL( const TDesC& aText, CFindItemEngine::TFindItemSearchCase aSearchCase)
       
    52 	{ return reinterpret_cast<CTulAddressStringTokenizer*>(this)->DoNewSearchL(aText, aSearchCase); }
       
    53 
       
    54 EXPORT_C TInt CFindItemEngine::DoNewSearchL( const TDesC& aText, CFindItemEngine::TFindItemSearchCase aSearchCase,  TInt aMinNumbers )
       
    55 	{ return reinterpret_cast<CTulAddressStringTokenizer*>(this)->DoNewSearchL(aText, aSearchCase, aMinNumbers ); }
       
    56 
       
    57 
       
    58 //  End of File