equal
deleted
inserted
replaced
20 |
20 |
21 // INCLUDES |
21 // INCLUDES |
22 #include <QObject> |
22 #include <QObject> |
23 #include <QStandardItemModel> |
23 #include <QStandardItemModel> |
24 #include <ccsdefs.h> |
24 #include <ccsdefs.h> |
|
25 #include <sqldb.h> |
25 |
26 |
26 // FORWARD DECLARATIONS |
27 // FORWARD DECLARATIONS |
27 class CCsConversationEntry; |
28 class CCsConversationEntry; |
28 class ConversationMsgStoreHandler; |
29 class ConversationMsgStoreHandler; |
29 class UniDataModelLoader; |
30 class UniDataModelLoader; |
73 /** |
74 /** |
74 * Delete a row from conversations model. |
75 * Delete a row from conversations model. |
75 * @param msgId, Message Id |
76 * @param msgId, Message Id |
76 */ |
77 */ |
77 void deleteRow(int msgId); |
78 void deleteRow(int msgId); |
|
79 |
|
80 /* |
|
81 * Get SQL DB handle |
|
82 * @param isOpen, set to true if open, check this before using the handle |
|
83 */ |
|
84 RSqlDatabase& getDBHandle(TBool& isOpen); |
78 |
85 |
79 private: |
86 private: |
80 |
87 |
81 /** |
88 /** |
82 * Populate an item in model from CCsConversationEntry. |
89 * Populate an item in model from CCsConversationEntry. |
139 /** |
146 /** |
140 * BioMsg Data model plugin interface |
147 * BioMsg Data model plugin interface |
141 * Not Own |
148 * Not Own |
142 */ |
149 */ |
143 UniDataModelPluginInterface* iBioMsgPlugin; |
150 UniDataModelPluginInterface* iBioMsgPlugin; |
|
151 |
|
152 /* |
|
153 * SQL DB handle |
|
154 */ |
|
155 RSqlDatabase iSqlDb; |
|
156 |
|
157 /* |
|
158 * DB open. |
|
159 */ |
|
160 TBool iSqlDbOpen; |
144 }; |
161 }; |
145 |
162 |
146 #endif // CONVERSATIONS_MODEL_H |
163 #endif // CONVERSATIONS_MODEL_H |