|
1 /* |
|
2 * Copyright (c) 2006 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: Container store table. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef __CONTAINER_STORE_TABLE_H__ |
|
21 #define __CONTAINER_STORE_TABLE_H__ |
|
22 |
|
23 // ======== |
|
24 // INCLUDES |
|
25 // ======== |
|
26 |
|
27 #include <e32base.h> |
|
28 #include <d32dbms.h> // database |
|
29 //<cmail> |
|
30 #include "DebugLogMacros.h" |
|
31 //</cmail> |
|
32 |
|
33 class CContainerStoreUtils; |
|
34 |
|
35 // ======= |
|
36 // CLASSES |
|
37 // ======= |
|
38 |
|
39 // =========================== |
|
40 // CLASS: CContainerStoreTable |
|
41 // =========================== |
|
42 class CContainerStoreTable : public CBase |
|
43 { |
|
44 public: |
|
45 |
|
46 // ============== |
|
47 // PUBLIC METHODS |
|
48 // ============== |
|
49 |
|
50 virtual ~CContainerStoreTable(); |
|
51 |
|
52 protected: |
|
53 |
|
54 // ================= |
|
55 // PROTECTED METHODS |
|
56 // ================= |
|
57 |
|
58 CContainerStoreTable( CContainerStoreUtils& aUtils ); |
|
59 |
|
60 void PrepareRowForUpdateLC(); |
|
61 |
|
62 void InsertRowLC(); |
|
63 |
|
64 void PutRowUpdatesL(); |
|
65 |
|
66 void CreateIndexL( const TDesC& aTableName, const TDesC& aIndexName, const TDesC& aColumn1, const TDesC& aColumn2 = KNullDesC ); |
|
67 |
|
68 // ==================== |
|
69 // PROTECTED ATTRIBUTES |
|
70 // ==================== |
|
71 CContainerStoreUtils& iUtils; |
|
72 RDbTable iTable; |
|
73 |
|
74 __LOG_DECLARATION |
|
75 |
|
76 }; // end class CContainerStoreTable |
|
77 |
|
78 |
|
79 #endif |