diff -r 8e7494275d3a -r 4f0867e42d62 omads/omadsextensions/adapters/contactsgroup/inc/contactsgrpdataprovider.h --- a/omads/omadsextensions/adapters/contactsgroup/inc/contactsgrpdataprovider.h Tue Aug 31 15:05:37 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,84 +0,0 @@ -/* -* 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 -#include - -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& DoSupportedServerFiltersL(); - - virtual void DoCheckSupportedServerFiltersL( const CSmlDataStoreFormat& aServerDataStoreFormat, - RPointerArray& aFilters, TSyncMLFilterChangeInfo& aChangeInfo ); - - virtual void DoCheckServerFiltersL( RPointerArray& aFilters, - TSyncMLFilterChangeInfo& aChangeInfo ); - - virtual HBufC* DoGenerateRecordFilterQueryLC( const RPointerArray& aFilters, - TSyncMLFilterMatchType aMatch, TDes& aFilterMimeType, - TSyncMLFilterType& aFilterType, TDesC& aStoreName ); - - virtual void DoGenerateFieldFilterQueryL( const RPointerArray& aFilters, - TDes& aFilterMimeType, RPointerArray& aProperties, TDesC& aStoreName ); - -private: - - CSmlDataStoreFormat* DoOwnStoreFormatL(); - -private: - - CSmlDataStoreFormat* iOwnStoreFormat; - RStringPool iStringPool; - RPointerArray iFilters; - RFs iFs; - - }; - -#endif // __CONTACTSGRPDATAPROVIDER_H__