omads/omadsextensions/adapters/contactsgroup/inc/contactsgrpdataprovider.h
changeset 36 9ba7f05d28a5
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/omads/omadsextensions/adapters/contactsgroup/inc/contactsgrpdataprovider.h	Tue Jul 06 14:06:02 2010 +0300
@@ -0,0 +1,84 @@
+/*
+* Copyright (c) 2008-2010 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:  Part of ContactGroup DS adapter
+*
+*/
+
+
+#ifndef __CONTACTSGRPDATAPROVIDER_H__
+#define __CONTACTSGRPDATAPROVIDER_H__
+
+#include <SmlDataProvider.h>
+#include <f32file.h>
+
+class CContactsGrpDataProvider : public CSmlDataProvider
+	{
+private:
+	// Default C++ constructor
+	CContactsGrpDataProvider();
+
+	// 2nd phase of constructor
+	void ConstructL();
+
+public:	
+	
+	// Two-phased constructor
+	static CContactsGrpDataProvider* NewL();
+	
+	// Destructor
+	virtual ~CContactsGrpDataProvider();
+
+protected:
+
+	virtual void DoOnFrameworkEvent( TSmlFrameworkEvent, TInt aParam1, TInt aParam2 );
+	
+	virtual TBool DoSupportsOperation( TUid aOpId ) const;
+	
+	virtual const CSmlDataStoreFormat& DoStoreFormatL();
+	
+	virtual CDesCArray* DoListStoresLC();
+	
+	virtual const TDesC& DoDefaultStoreL();
+	
+	virtual CSmlDataStore* DoNewStoreInstanceLC();
+
+	virtual const RPointerArray<CSyncMLFilter>& DoSupportedServerFiltersL();
+	
+	virtual void DoCheckSupportedServerFiltersL( const CSmlDataStoreFormat& aServerDataStoreFormat,
+	    RPointerArray<CSyncMLFilter>& aFilters, TSyncMLFilterChangeInfo& aChangeInfo );
+	
+	virtual void DoCheckServerFiltersL( RPointerArray<CSyncMLFilter>& aFilters,
+	    TSyncMLFilterChangeInfo& aChangeInfo );
+	
+	virtual HBufC* DoGenerateRecordFilterQueryLC( const RPointerArray<CSyncMLFilter>& aFilters,
+	    TSyncMLFilterMatchType aMatch, TDes& aFilterMimeType,
+	    TSyncMLFilterType& aFilterType, TDesC& aStoreName );
+	
+	virtual void DoGenerateFieldFilterQueryL( const RPointerArray<CSyncMLFilter>& aFilters,
+	    TDes& aFilterMimeType, RPointerArray<CSmlDataProperty>& aProperties, TDesC& aStoreName );
+
+private:
+
+	CSmlDataStoreFormat* DoOwnStoreFormatL();
+
+private:
+	
+	CSmlDataStoreFormat*            iOwnStoreFormat;
+	RStringPool                     iStringPool;
+	RPointerArray<CSyncMLFilter>    iFilters;
+	RFs	                            iFs;
+	
+	};
+
+#endif // __CONTACTSGRPDATAPROVIDER_H__