equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2004-2007 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: Contains the CCapabilityArray class definition. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef CCAPABILITYARRAY_H |
|
20 #define CCAPABILITYARRAY_H |
|
21 |
|
22 #include <e32base.h> |
|
23 #include <barsread.h> |
|
24 |
|
25 #include "ccapabilityinfo.h" |
|
26 |
|
27 /** |
|
28 * @brief Class that stores an array of CCapabilityInfo objects. |
|
29 * |
|
30 * class CCapabilityArray - Holds instances of all the capabilities for a particular |
|
31 * transport type (protocol). This array is populated during the constructor of the protocol object. |
|
32 * One array for each transport type. |
|
33 */ |
|
34 class CCapabilityArray : public CBase |
|
35 { |
|
36 public: |
|
37 static CCapabilityArray* NewL(TResourceReader& aReader); |
|
38 ~CCapabilityArray(); |
|
39 TInt Count() const; |
|
40 CCapabilityInfo* operator[](TInt aIndex) const; |
|
41 CCapabilityInfo* LinkedCapability(TInt aLink) const; |
|
42 |
|
43 private: |
|
44 void ConstructL(TResourceReader& aReader); |
|
45 void AddDataL(TResourceReader& aReader); |
|
46 |
|
47 private: |
|
48 RPointerArray<CCapabilityInfo> iDataArray; |
|
49 }; |
|
50 |
|
51 #endif // CCAPABILITYARRAY_H |
|
52 |
|
53 // End of File |