1 /* |
|
2 * Copyright (c) 2009 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: DS Dummy dataprovider |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef CNSMLDUMMYDATAPROVIDER_H |
|
19 #define CNSMLDUMMYDATAPROVIDER_H |
|
20 |
|
21 // EXTERNAL INCLUDES |
|
22 #include <e32base.h> |
|
23 |
|
24 |
|
25 // INTERNAL INCLUDES |
|
26 #include "nsmlcontactsdataprovider.h" |
|
27 |
|
28 // CONSTANTS |
|
29 const TUint KNSmlDummyAdapterImplUid = 0x2001FDF1; |
|
30 |
|
31 |
|
32 |
|
33 // CLASS DEFINITION |
|
34 /** |
|
35 * Dataprovider class for Dummy adapters |
|
36 * @lib nsmldummydataprovider.lib |
|
37 * @since 5.0 |
|
38 */ |
|
39 class CNSmlDummyDataProvider : public CNSmlContactsDataProvider |
|
40 { |
|
41 |
|
42 private: // Friend class definitions |
|
43 friend class CNSmlDummyDataProvider_Test; |
|
44 |
|
45 public: // Constructors and destructor |
|
46 static CNSmlDummyDataProvider* NewL(); |
|
47 static CNSmlDummyDataProvider* NewLC(); |
|
48 ~CNSmlDummyDataProvider(); |
|
49 |
|
50 protected: // Constructors |
|
51 CNSmlDummyDataProvider(); |
|
52 void ConstructL(); |
|
53 |
|
54 protected: // CSmlDataProvider |
|
55 |
|
56 /** |
|
57 * Gets dataproviders own StoreFormat. |
|
58 */ |
|
59 const CSmlDataStoreFormat& DoStoreFormatL(); |
|
60 |
|
61 protected: // CNSmlContactsDataProvider |
|
62 |
|
63 const TDesC& GetStoreFormatResourceFileL() const; |
|
64 |
|
65 CNSmlContactsDataStore* CreateDataStoreLC() const; |
|
66 |
|
67 CDesCArray* DoListStoresLC(); |
|
68 |
|
69 }; |
|
70 |
|
71 |
|
72 #endif // CNSMLDUMMYDATAPROVIDER_H |
|
73 |
|
74 // End of file |
|