63
|
1 |
/*
|
|
2 |
* Copyright (c) 2006-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: An implementation of multioperation factory
|
|
15 |
* that uses contact store list for creating suboperations
|
|
16 |
* from stores
|
|
17 |
*
|
|
18 |
*/
|
|
19 |
|
|
20 |
|
|
21 |
#ifndef CVPBKCONTACTOPERATIONFACTORY_H
|
|
22 |
#define CVPBKCONTACTOPERATIONFACTORY_H
|
|
23 |
|
|
24 |
#include <e32base.h>
|
|
25 |
#include <MVPbkContactOperationFactory.h>
|
|
26 |
#include <MVPbkContactOperationFactory2.h>
|
|
27 |
|
|
28 |
class MVPbkContactStoreList;
|
|
29 |
|
|
30 |
/**
|
|
31 |
* An multioperation factory for store lists
|
|
32 |
*
|
|
33 |
* @lib VPbkEng.lib
|
|
34 |
*/
|
|
35 |
class CVPbkContactOperationFactory :
|
|
36 |
public CBase,
|
|
37 |
public MVPbkContactOperationFactory,
|
|
38 |
public MVPbkContactOperationFactory2
|
|
39 |
{
|
|
40 |
public:
|
|
41 |
/**
|
|
42 |
* @param aStoreList a store list that is used for creating suboperations.
|
|
43 |
*/
|
|
44 |
IMPORT_C static CVPbkContactOperationFactory* NewL(
|
|
45 |
MVPbkContactStoreList& aStoreList );
|
|
46 |
virtual ~CVPbkContactOperationFactory();
|
|
47 |
|
|
48 |
public: // from MVPbkContactOperationFactory
|
|
49 |
MVPbkContactOperation* CreateContactRetrieverL(
|
|
50 |
const MVPbkContactLink& aLink,
|
|
51 |
MVPbkSingleContactOperationObserver& aObserver );
|
|
52 |
MVPbkContactOperation* CreateDeleteContactsOperationL(
|
|
53 |
const MVPbkContactLinkArray& aContactLinks,
|
|
54 |
MVPbkBatchOperationObserver& aObserver );
|
|
55 |
MVPbkContactOperation* CreateCommitContactsOperationL(
|
|
56 |
const TArray<MVPbkStoreContact*>& aContacts,
|
|
57 |
MVPbkBatchOperationObserver& aObserver );
|
|
58 |
MVPbkContactOperation* CreateMatchPhoneNumberOperationL(
|
|
59 |
const TDesC& aPhoneNumber,
|
|
60 |
TInt aMaxMatchDigits,
|
|
61 |
MVPbkContactFindObserver& aObserver );
|
|
62 |
MVPbkContactOperation* CreateFindOperationL(
|
|
63 |
const TDesC& aSearchString,
|
|
64 |
const MVPbkFieldTypeList& aFieldTypes,
|
|
65 |
MVPbkContactFindObserver& aObserver );
|
|
66 |
MVPbkContactOperation* CreateFindOperationL(
|
|
67 |
const MDesC16Array& aSearchStrings,
|
|
68 |
const MVPbkFieldTypeList& aFieldTypes,
|
|
69 |
MVPbkContactFindFromStoresObserver& aObserver,
|
|
70 |
const TCallBack& aWordParserCallBack );
|
|
71 |
MVPbkContactOperation* CreateCompressStoresOperationL(
|
|
72 |
MVPbkBatchOperationObserver& aObserver );
|
|
73 |
TAny* ContactOperationFactoryExtension( TUid aExtensionUid );
|
|
74 |
|
|
75 |
public: // from MVPbkContactOperationFactory2
|
|
76 |
MVPbkContactOperation* CreateFindOperationL(
|
|
77 |
const MDesC16Array& aSearchStrings,
|
|
78 |
const MVPbkFieldTypeList& aFieldTypes,
|
|
79 |
MVPbkContactFindFromStoresObserver& aObserver,
|
|
80 |
const TCallBack& aWordParserCallBack,
|
|
81 |
const CDesC16ArrayFlat& aStoreEntriesArray );
|
|
82 |
private:
|
|
83 |
|
|
84 |
CVPbkContactOperationFactory( MVPbkContactStoreList& aStoreList );
|
|
85 |
void ConstructL();
|
|
86 |
|
|
87 |
private: // data
|
|
88 |
/// Ref: A list of stores that used in operation creation
|
|
89 |
MVPbkContactStoreList& iStores;
|
|
90 |
};
|
|
91 |
|
|
92 |
#endif // CVPBKCONTACTOPERATIONFACTORY_H
|
|
93 |
|
|
94 |
// End of File
|