languageinterworkingfw/servicehandler/inc/liwbinding.h
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 #ifndef _LIW_BINDING_H
       
    25 #define _LIW_BINDING_H
       
    26 
       
    27 #include "liwcommon.h" 
       
    28 #include "liwserviceifbase.h"
       
    29 
       
    30 class CLiwBinding : public CBase
       
    31     {
       
    32     public:
       
    33         static CLiwBinding* NewL();
       
    34         static CLiwBinding* NewLC();
       
    35 
       
    36         inline virtual ~CLiwBinding();
       
    37         inline RPointerArray<CLiwCriteriaItem>& Interest(); 
       
    38         inline void AddCriteriaL(CLiwCriteriaItem* aItem);
       
    39         inline CLiwServiceIfBase* BaseProvider(TInt aIndex);
       
    40         inline TInt NumberOfProviders() const;
       
    41         void AddProviderL(CLiwServiceIfBase* aProvider, TBool aIsDefault);
       
    42         TBool RemoveProvider(TInt aImplUid);
       
    43         TInt HasCriteriaItem(CLiwCriteriaItem& aItem) const;
       
    44         void RemoveCriteria(TInt aIndex);
       
    45         TBool HasProvider(CLiwServiceIfBase* aProvider) const;
       
    46         TBool HasServiceCmd(TInt aServiceCmd) const;
       
    47     protected:
       
    48         inline CLiwBinding();
       
    49     
       
    50     private:
       
    51     
       
    52     protected:
       
    53         RPointerArray<CLiwCriteriaItem> iInterest;
       
    54         RPointerArray<CLiwServiceIfBase> iProviders;
       
    55     };
       
    56 
       
    57 
       
    58 #include "liwbinding.inl"
       
    59 
       
    60 #endif
       
    61 
       
    62 // End of file