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