--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/phonebookengines/VirtualPhonebook/VPbkSimStore/inc/CSupportedFieldTypes.h Tue Feb 02 10:12:17 2010 +0200
@@ -0,0 +1,122 @@
+/*
+* Copyright (c) 2002-2007 Nokia Corporation and/or its subsidiary(-ies).
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of "Eclipse Public License v1.0"
+* which accompanies this distribution, and is available
+* at the URL "http://www.eclipse.org/legal/epl-v10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description: A vpbk field type list that contains sim supported types
+*
+*/
+
+
+
+#ifndef VPBKSIMSTORE_CSUPPORTEDFIELDTYPES_H
+#define VPBKSIMSTORE_CSUPPORTEDFIELDTYPES_H
+
+// INCLUDES
+#include <e32base.h>
+#include <MVPbkFieldType.h>
+
+// FORWARD DECLARATIONS
+struct TVPbkGsmStoreProperty;
+
+namespace VPbkSimStore {
+
+// FORWARD DECLARATIONS
+class CFieldTypeMappings;
+
+// CLASS DECLARATION
+
+/**
+* A vpbk field type list that contains sim supported types
+*
+*/
+NONSHARABLE_CLASS( CSupportedFieldTypes ):
+ public CBase,
+ public MVPbkFieldTypeList
+ {
+ public: // Constructors and destructor
+
+ /**
+ * Two-phased constructor.
+ * @param aSimStoreProperty sim store properties
+ * @return a new instance of this class
+ */
+ static CSupportedFieldTypes* NewL(
+ const CFieldTypeMappings& aFieldTypeMappings,
+ TVPbkGsmStoreProperty& aSimStoreProperty );
+
+ /**
+ * Destructor.
+ */
+ virtual ~CSupportedFieldTypes();
+
+ public: // Functions from base classes
+
+ /**
+ * From MVPbkFieldTypeList
+ */
+ TInt FieldTypeCount() const;
+
+ /**
+ * From MVPbkFieldTypeList
+ */
+ const MVPbkFieldType& FieldTypeAt( TInt aIndex ) const;
+
+ /**
+ * From MVPbkFieldTypeList
+ */
+ TBool ContainsSame( const MVPbkFieldType& aFieldType ) const;
+
+ /**
+ * From MVPbkFieldTypeList
+ */
+ TInt MaxMatchPriority() const;
+
+ /**
+ * From MVPbkFieldTypeList
+ */
+ const MVPbkFieldType* FindMatch
+ ( const TVPbkFieldVersitProperty& aMatchProperty,
+ TInt aMatchPriority ) const;
+
+ /**
+ * From MVPbkFieldTypeList
+ */
+ const MVPbkFieldType* FindMatch
+ ( TVPbkNonVersitFieldType aNonVersitType ) const;
+
+ /**
+ * from MVPbkFieldTypeList
+ */
+ const MVPbkFieldType* Find(
+ TInt aFieldTypeResId) const;
+
+ private:
+ /**
+ * C++ default constructor.
+ */
+ CSupportedFieldTypes();
+
+ /**
+ * By default Symbian 2nd phase constructor is private.
+ */
+ void ConstructL( const CFieldTypeMappings& aFieldTypeMappings,
+ TVPbkGsmStoreProperty& aSimStoreProperty );
+
+ private: // Data
+ ///Ref: An array for the supported types. Doesn't own types
+ RPointerArray<const MVPbkFieldType> iSupportedTypes;
+
+ };
+} // namespace VPbkSimStore
+#endif // VPBKSIMSTORE_CSUPPORTEDFIELDTYPES_H
+
+// End of File