40
|
1 |
/*
|
|
2 |
* Copyright (c) 2008-2010 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: Part of ContactGroup DS adapter
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
|
|
19 |
#ifndef __CONTACTSGRPDATAPROVIDER_H__
|
|
20 |
#define __CONTACTSGRPDATAPROVIDER_H__
|
|
21 |
|
|
22 |
#include <SmlDataProvider.h>
|
|
23 |
#include <f32file.h>
|
|
24 |
|
|
25 |
class CContactsGrpDataProvider : public CSmlDataProvider
|
|
26 |
{
|
|
27 |
private:
|
|
28 |
// Default C++ constructor
|
|
29 |
CContactsGrpDataProvider();
|
|
30 |
|
|
31 |
// 2nd phase of constructor
|
|
32 |
void ConstructL();
|
|
33 |
|
|
34 |
public:
|
|
35 |
|
|
36 |
// Two-phased constructor
|
|
37 |
static CContactsGrpDataProvider* NewL();
|
|
38 |
|
|
39 |
// Destructor
|
|
40 |
virtual ~CContactsGrpDataProvider();
|
|
41 |
|
|
42 |
protected:
|
|
43 |
|
|
44 |
virtual void DoOnFrameworkEvent( TSmlFrameworkEvent, TInt aParam1, TInt aParam2 );
|
|
45 |
|
|
46 |
virtual TBool DoSupportsOperation( TUid aOpId ) const;
|
|
47 |
|
|
48 |
virtual const CSmlDataStoreFormat& DoStoreFormatL();
|
|
49 |
|
|
50 |
virtual CDesCArray* DoListStoresLC();
|
|
51 |
|
|
52 |
virtual const TDesC& DoDefaultStoreL();
|
|
53 |
|
|
54 |
virtual CSmlDataStore* DoNewStoreInstanceLC();
|
|
55 |
|
|
56 |
virtual const RPointerArray<CSyncMLFilter>& DoSupportedServerFiltersL();
|
|
57 |
|
|
58 |
virtual void DoCheckSupportedServerFiltersL( const CSmlDataStoreFormat& aServerDataStoreFormat,
|
|
59 |
RPointerArray<CSyncMLFilter>& aFilters, TSyncMLFilterChangeInfo& aChangeInfo );
|
|
60 |
|
|
61 |
virtual void DoCheckServerFiltersL( RPointerArray<CSyncMLFilter>& aFilters,
|
|
62 |
TSyncMLFilterChangeInfo& aChangeInfo );
|
|
63 |
|
|
64 |
virtual HBufC* DoGenerateRecordFilterQueryLC( const RPointerArray<CSyncMLFilter>& aFilters,
|
|
65 |
TSyncMLFilterMatchType aMatch, TDes& aFilterMimeType,
|
|
66 |
TSyncMLFilterType& aFilterType, TDesC& aStoreName );
|
|
67 |
|
|
68 |
virtual void DoGenerateFieldFilterQueryL( const RPointerArray<CSyncMLFilter>& aFilters,
|
|
69 |
TDes& aFilterMimeType, RPointerArray<CSmlDataProperty>& aProperties, TDesC& aStoreName );
|
|
70 |
|
|
71 |
private:
|
|
72 |
|
|
73 |
CSmlDataStoreFormat* DoOwnStoreFormatL();
|
|
74 |
|
|
75 |
private:
|
|
76 |
|
|
77 |
CSmlDataStoreFormat* iOwnStoreFormat;
|
|
78 |
RStringPool iStringPool;
|
|
79 |
RPointerArray<CSyncMLFilter> iFilters;
|
|
80 |
RFs iFs;
|
|
81 |
|
|
82 |
};
|
|
83 |
|
|
84 |
#endif // __CONTACTSGRPDATAPROVIDER_H__
|