|
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 interface for loding contact store plug-ins. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef M_MVPBKCONTACTSTORELOADER_H |
|
20 #define M_MVPBKCONTACTSTORELOADER_H |
|
21 |
|
22 #include <e32def.h> |
|
23 |
|
24 class TVPbkContactStoreUriPtr; |
|
25 class MVPbkContactStoreList; |
|
26 |
|
27 /** |
|
28 * An interface for loding contact store plug-ins. |
|
29 * |
|
30 * A user of this interface needs to load an ECom store plug-in for |
|
31 * the specified contact store. |
|
32 * |
|
33 */ |
|
34 NONSHARABLE_CLASS( MVPbkContactStoreLoader ) |
|
35 { |
|
36 protected: |
|
37 /// No to be destroyed by the client |
|
38 virtual ~MVPbkContactStoreLoader() {} |
|
39 |
|
40 public: |
|
41 |
|
42 /** |
|
43 * A list of contact stores. If a call LoadContatStoreL succeeded then |
|
44 * the new store is loaded to this list. If the store was already loaded |
|
45 * then the list doesn't change. |
|
46 * |
|
47 * @return A list of contact stores |
|
48 */ |
|
49 virtual MVPbkContactStoreList& ContactStoreListL() const = 0; |
|
50 |
|
51 /** |
|
52 * Loads an store plugin for given URI |
|
53 * If there is no store plug-in for the aURI then nothing changes. |
|
54 * |
|
55 * @param aURI the store URI to be loaded. |
|
56 */ |
|
57 virtual void LoadContactStoreL( const TVPbkContactStoreUriPtr& aURI ) = 0; |
|
58 }; |
|
59 |
|
60 |
|
61 #endif // M_MVPBKCONTACTSTORELOADER_H |