author | Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com> |
Wed, 13 Oct 2010 14:15:33 +0300 | |
branch | RCL_3 |
changeset 85 | 38bb213f60ba |
parent 63 | f4a778e096c2 |
permissions | -rw-r--r-- |
63 | 1 |
/* |
2 |
* Copyright (c) 2002-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: A vpbk field type list that contains sim supported types |
|
15 |
* |
|
16 |
*/ |
|
17 |
||
18 |
||
19 |
||
20 |
#ifndef VPBKSIMSTORE_CSUPPORTEDFIELDTYPES_H |
|
21 |
#define VPBKSIMSTORE_CSUPPORTEDFIELDTYPES_H |
|
22 |
||
23 |
// INCLUDES |
|
24 |
#include <e32base.h> |
|
25 |
#include <MVPbkFieldType.h> |
|
26 |
||
27 |
// FORWARD DECLARATIONS |
|
28 |
struct TVPbkGsmStoreProperty; |
|
29 |
||
30 |
namespace VPbkSimStore { |
|
31 |
||
32 |
// FORWARD DECLARATIONS |
|
33 |
class CFieldTypeMappings; |
|
34 |
||
35 |
// CLASS DECLARATION |
|
36 |
||
37 |
/** |
|
38 |
* A vpbk field type list that contains sim supported types |
|
39 |
* |
|
40 |
*/ |
|
41 |
NONSHARABLE_CLASS( CSupportedFieldTypes ): |
|
42 |
public CBase, |
|
43 |
public MVPbkFieldTypeList |
|
44 |
{ |
|
45 |
public: // Constructors and destructor |
|
46 |
||
47 |
/** |
|
48 |
* Two-phased constructor. |
|
49 |
* @param aSimStoreProperty sim store properties |
|
50 |
* @return a new instance of this class |
|
51 |
*/ |
|
52 |
static CSupportedFieldTypes* NewL( |
|
53 |
const CFieldTypeMappings& aFieldTypeMappings, |
|
54 |
TVPbkGsmStoreProperty& aSimStoreProperty ); |
|
55 |
||
56 |
/** |
|
57 |
* Destructor. |
|
58 |
*/ |
|
59 |
virtual ~CSupportedFieldTypes(); |
|
60 |
||
61 |
public: // Functions from base classes |
|
62 |
||
63 |
/** |
|
64 |
* From MVPbkFieldTypeList |
|
65 |
*/ |
|
66 |
TInt FieldTypeCount() const; |
|
67 |
||
68 |
/** |
|
69 |
* From MVPbkFieldTypeList |
|
70 |
*/ |
|
71 |
const MVPbkFieldType& FieldTypeAt( TInt aIndex ) const; |
|
72 |
||
73 |
/** |
|
74 |
* From MVPbkFieldTypeList |
|
75 |
*/ |
|
76 |
TBool ContainsSame( const MVPbkFieldType& aFieldType ) const; |
|
77 |
||
78 |
/** |
|
79 |
* From MVPbkFieldTypeList |
|
80 |
*/ |
|
81 |
TInt MaxMatchPriority() const; |
|
82 |
||
83 |
/** |
|
84 |
* From MVPbkFieldTypeList |
|
85 |
*/ |
|
86 |
const MVPbkFieldType* FindMatch |
|
87 |
( const TVPbkFieldVersitProperty& aMatchProperty, |
|
88 |
TInt aMatchPriority ) const; |
|
89 |
||
90 |
/** |
|
91 |
* From MVPbkFieldTypeList |
|
92 |
*/ |
|
93 |
const MVPbkFieldType* FindMatch |
|
94 |
( TVPbkNonVersitFieldType aNonVersitType ) const; |
|
95 |
||
96 |
/** |
|
97 |
* from MVPbkFieldTypeList |
|
98 |
*/ |
|
99 |
const MVPbkFieldType* Find( |
|
100 |
TInt aFieldTypeResId) const; |
|
101 |
||
102 |
private: |
|
103 |
/** |
|
104 |
* C++ default constructor. |
|
105 |
*/ |
|
106 |
CSupportedFieldTypes(); |
|
107 |
||
108 |
/** |
|
109 |
* By default Symbian 2nd phase constructor is private. |
|
110 |
*/ |
|
111 |
void ConstructL( const CFieldTypeMappings& aFieldTypeMappings, |
|
85
38bb213f60ba
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
63
diff
changeset
|
112 |
TVPbkGsmStoreProperty& aSimStoreProperty ); |
63 | 113 |
|
114 |
private: // Data |
|
115 |
///Ref: An array for the supported types. Doesn't own types |
|
116 |
RPointerArray<const MVPbkFieldType> iSupportedTypes; |
|
117 |
||
118 |
}; |
|
119 |
} // namespace VPbkSimStore |
|
120 |
#endif // VPBKSIMSTORE_CSUPPORTEDFIELDTYPES_H |
|
121 |
||
122 |
// End of File |