|
1 /* |
|
2 * Copyright (c) 2008 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: Declaration of CVIMPSTStorageManagerFactory |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef CVIMPSTSTORAGEMANAGERFACTORY_H |
|
21 #define CVIMPSTSTORAGEMANAGERFACTORY_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <e32std.h> |
|
25 #include <e32base.h> |
|
26 #include "s_vimpststorageviewid.h" |
|
27 // FORWARD DECLARATIONS |
|
28 class MVIMPSTStorageItemModel; |
|
29 class MVIMPSTStorageContacts; |
|
30 |
|
31 // CLASS DECLARATION |
|
32 |
|
33 /** |
|
34 * Factory to create contact and group list interfaces. |
|
35 * @lib vimpststorage.lib |
|
36 * @since S60 5.0 |
|
37 */ |
|
38 class CVIMPSTStorageManagerFactory : public CBase |
|
39 { |
|
40 public: // New functions |
|
41 |
|
42 CVIMPSTStorageManagerFactory() |
|
43 { |
|
44 } |
|
45 ~CVIMPSTStorageManagerFactory() |
|
46 { |
|
47 } |
|
48 /** |
|
49 * Initialises the Library |
|
50 */ |
|
51 static void InitialiseLibraryL(); |
|
52 |
|
53 |
|
54 /** |
|
55 * Release the resources allocated |
|
56 */ |
|
57 static TInt Release(); |
|
58 |
|
59 /** |
|
60 * Inititalises the Store for the Service Id |
|
61 * Must be called before using ContactListInterfaceL, |
|
62 * ItemInterfaceL API's. |
|
63 * @param aServiceId service id |
|
64 * @param aStoreName storename for this service |
|
65 */ |
|
66 static void InitialiseViewL( TUint32 aServiceId, |
|
67 const TDesC& aStoreName) ; |
|
68 |
|
69 /** |
|
70 * Returns the pointer to MVIMPSTStorageContactsStub |
|
71 * this pointer can be used to perform numerous operations on |
|
72 * contacts |
|
73 * @param aServiceId service id |
|
74 * @return MVIMPSTStorageContacts* instance of the contact list interface |
|
75 */ |
|
76 static MVIMPSTStorageContacts* ContactListInterfaceL(TUint32 aServiceId); |
|
77 |
|
78 /** |
|
79 * Returns the pointer to MVIMPSTStorageItemModelStub |
|
80 * this pointer can be used to perform numerous operations on |
|
81 * contactlist |
|
82 * @param aServiceId service id |
|
83 * @return MVIMPSTStorageItemModel* interface to itemmodel |
|
84 */ |
|
85 static MVIMPSTStorageItemModel* ItemInterfaceL( TUint32 aServiceId ) ; |
|
86 |
|
87 }; |
|
88 |
|
89 #endif // CVIMPSTSTORAGEMANAGERFACTORY_H |
|
90 |
|
91 // End of File |