equal
deleted
inserted
replaced
21 |
21 |
22 #include <commsdattypesv1_1.h> |
22 #include <commsdattypesv1_1.h> |
23 #include <commsdat.h> |
23 #include <commsdat.h> |
24 #include <metadatabase.h> |
24 #include <metadatabase.h> |
25 #include "com_nokia_mid_iapinfo_CommsTable.h" |
25 #include "com_nokia_mid_iapinfo_CommsTable.h" |
26 #include "iapinfosession.h" |
|
27 |
26 |
28 using namespace CommsDat; |
27 using namespace CommsDat; |
29 |
28 |
30 /** |
29 /** |
31 * Class implements the native part of Java CommDB API. |
30 * Class implements the native part of Java CommDB API. |
40 { |
39 { |
41 |
40 |
42 public: |
41 public: |
43 |
42 |
44 ~ JavaCommDB(); |
43 ~ JavaCommDB(); |
45 |
|
46 JavaCommDB(IapInfoSession *aSess); |
|
47 |
44 |
48 /** |
45 /** |
49 * Opens the given table. |
46 * Opens the given table. |
50 * @since S60 v3.0 |
47 * @since S60 v3.0 |
51 * @param aTablename name of the CommDB table to be opened |
48 * @param aTablename name of the CommDB table to be opened |
52 * @return error code |
49 * @return error code |
53 */ |
50 */ |
54 void OpenL(const TDesC&); |
51 void OpenL(const TDesC&); |
55 |
52 |
56 static void Destroy(JavaCommDB* aObj); |
|
57 /** |
53 /** |
58 * Close the table and delete allocated member objects. |
54 * Close the table and delete allocated member objects. |
59 * @since S60 v3.0 |
55 * @since S60 v3.0 |
|
56 * @return error code |
60 */ |
57 */ |
61 void Close(); |
58 TInt Close(); |
62 |
59 |
63 /** |
60 /** |
64 * Get number of records in the current table. |
61 * Get number of records in the current table. |
65 * @since S60 v3.0 |
62 * @since S60 v3.0 |
66 * @return record count |
63 * @return record count |
134 /** |
131 /** |
135 * Pointer to the current RecordSet object. |
132 * Pointer to the current RecordSet object. |
136 * Initialized in the Open() function. |
133 * Initialized in the Open() function. |
137 */ |
134 */ |
138 CMDBRecordSet<CCDRecordBase>* iTable; |
135 CMDBRecordSet<CCDRecordBase>* iTable; |
139 |
|
140 public: |
|
141 IapInfoSession* iSession; |
|
142 }; |
136 }; |
143 |
137 |
144 #endif // JAVACOMMDB_H |
138 #endif // JAVACOMMDB_H |
145 |
139 |