languageinterworkingfw/servicehandler/inc/liwbinding.inl
changeset 57 61b27eec6533
parent 45 7aa6007702af
equal deleted inserted replaced
45:7aa6007702af 57:61b27eec6533
     1 /*
       
     2 * Copyright (c) 2003-2005 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of the License "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:       Criteria binding base class declaration.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 
       
    22 
       
    23 
       
    24 inline CLiwBinding::~CLiwBinding()
       
    25     {
       
    26     iInterest.Reset();
       
    27     iProviders.Reset();
       
    28     }
       
    29 
       
    30 
       
    31 inline CLiwBinding::CLiwBinding()
       
    32     {
       
    33     }
       
    34 
       
    35 
       
    36 inline RPointerArray<CLiwCriteriaItem>& CLiwBinding::Interest()
       
    37     {
       
    38     return iInterest;
       
    39     }
       
    40 
       
    41 
       
    42 inline void CLiwBinding::AddCriteriaL(CLiwCriteriaItem* aItem)
       
    43     {
       
    44     User::LeaveIfError(iInterest.Append(aItem));
       
    45     }
       
    46 
       
    47 
       
    48 inline CLiwServiceIfBase* CLiwBinding::BaseProvider(TInt aIndex)
       
    49     {
       
    50     if (aIndex < iProviders.Count())
       
    51         {
       
    52         return iProviders[aIndex];
       
    53         }
       
    54     return NULL;
       
    55     }
       
    56 
       
    57     
       
    58 inline TInt CLiwBinding::NumberOfProviders() const
       
    59     {
       
    60     return iProviders.Count();
       
    61     }
       
    62 
       
    63 // End of file