applicationinterworkingfw/ServiceHandler/inc/AiwBinding.inl
changeset 0 2f259fa3e83a
equal deleted inserted replaced
-1:000000000000 0:2f259fa3e83a
       
     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 "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 inline CAiwBinding::~CAiwBinding()
       
    23     {
       
    24     iInterest.Reset();
       
    25     iProviders.Reset();
       
    26     }
       
    27 
       
    28 
       
    29 inline CAiwBinding::CAiwBinding()
       
    30     {
       
    31     }
       
    32 
       
    33 
       
    34 inline RPointerArray<CAiwCriteriaItem>& CAiwBinding::Interest()
       
    35     {
       
    36     return iInterest;
       
    37     }
       
    38 
       
    39 
       
    40 inline void CAiwBinding::AddCriteriaL(CAiwCriteriaItem* aItem)
       
    41     {
       
    42     User::LeaveIfError(iInterest.Append(aItem));
       
    43     }
       
    44 
       
    45 
       
    46 inline CAiwServiceIfBase* CAiwBinding::BaseProvider(TInt aIndex)
       
    47     {
       
    48     if (aIndex < iProviders.Count())
       
    49         {
       
    50         return iProviders[aIndex];
       
    51         }
       
    52     return NULL;
       
    53     }
       
    54 
       
    55     
       
    56 inline TInt CAiwBinding::NumberOfProviders() const
       
    57     {
       
    58     return iProviders.Count();
       
    59     }
       
    60 
       
    61 // End of file