|
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: Implementation of CVIMPSTStorageManagerFactory |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 // INCLUDE FILES |
|
21 #include <e32std.h> |
|
22 |
|
23 #include "s_mvimpststoragecontacts.h" |
|
24 |
|
25 #include "s_vimpststoragemanagerfactory.h" |
|
26 #include "s_vimpststorageviewid.h" |
|
27 #include "s_vimpststoragecontact.h" |
|
28 |
|
29 // ============================ MEMBER FUNCTIONS =============================== |
|
30 |
|
31 // ----------------------------------------------------------------------------- |
|
32 // CVIMPSTStorageManagerFactory::InitialiseLibraryL |
|
33 // Factory method that initialises the vimpststorage library |
|
34 // used by CVIMPSTViewIdFactory |
|
35 // ----------------------------------------------------------------------------- |
|
36 // |
|
37 EXPORT_C void CVIMPSTStorageManagerFactory::InitialiseLibraryL() |
|
38 { |
|
39 |
|
40 } |
|
41 |
|
42 // ----------------------------------------------------------------------------- |
|
43 // CVIMPSTStorageManagerFactory::Release |
|
44 // Factory method to release the resource owned by the vimpststorage library |
|
45 // ----------------------------------------------------------------------------- |
|
46 // |
|
47 EXPORT_C TInt CVIMPSTStorageManagerFactory::Release() |
|
48 { |
|
49 return KErrNone; |
|
50 |
|
51 } |
|
52 |
|
53 |
|
54 // ----------------------------------------------------------------------------- |
|
55 // CVIMPSTStorageManager::InitialiseViewL() |
|
56 // ----------------------------------------------------------------------------- |
|
57 // |
|
58 EXPORT_C void CVIMPSTStorageManagerFactory::InitialiseViewL( |
|
59 TUint32 /*aServiceId*/, |
|
60 const TDesC& /*aStoreName*/) |
|
61 { |
|
62 |
|
63 } |
|
64 |
|
65 |
|
66 // ----------------------------------------------------------------------------- |
|
67 // CVIMPSTStorageManager::ContactListInterfaceL() |
|
68 // ----------------------------------------------------------------------------- |
|
69 // |
|
70 EXPORT_C MVIMPSTStorageContacts* CVIMPSTStorageManagerFactory::ContactListInterfaceL(TUint32 /*aServiceId*/ ) |
|
71 { |
|
72 MyMVIMPSTStorageViewIdStub* contactlistInterface = new ( ELeave ) MyMVIMPSTStorageViewIdStub(); |
|
73 //cast to the base class and return the MVIMPSTStorageContacts base ptr |
|
74 return dynamic_cast<MVIMPSTStorageContacts*>(contactlistInterface); |
|
75 } |
|
76 |
|
77 |
|
78 // ----------------------------------------------------------------------------- |
|
79 // CVIMPSTStorageManagerFactory::ItemInterfaceL |
|
80 // ----------------------------------------------------------------------------- |
|
81 // |
|
82 EXPORT_C MVIMPSTStorageItemModel* CVIMPSTStorageManagerFactory::ItemInterfaceL( TUint32 /*aServiceId*/ ) |
|
83 { |
|
84 //cast to the base class and return the MVIMPSTStorageItemModel base ptr |
|
85 return NULL; |
|
86 |
|
87 } |
|
88 |
|
89 |
|
90 // End of File |