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