70 /** |
69 /** |
71 * Destructor. |
70 * Destructor. |
72 */ |
71 */ |
73 ~CMmPhoneBookStoreOperationList(); |
72 ~CMmPhoneBookStoreOperationList(); |
74 |
73 |
|
74 |
75 /** |
75 /** |
76 * Creates entry point to correct operation. |
76 * Addoperation to operation list |
77 * |
77 * |
78 * @param aDataPackage Packaged data |
78 * @param aTransId Transaction for index to be filled with operation |
79 * @param aIpc Identify number of request. |
79 * @param aOperation operation to be updated in operation list |
80 * @return Pointer to operation. |
80 * @return None |
81 */ |
81 */ |
82 CMmPhoneBookStoreOperationBase* BuildL( |
82 void AddOperation( |
83 const CMmDataPackage* aDataPackage, |
83 TUint8 aTransId, |
84 TInt aIpc ); |
84 CMmPhoneBookStoreOperationBase* aOperation ); |
85 |
85 |
86 /** |
86 /** |
87 * Get pointer to correct operation uing identify number. |
87 * Get pointer to correct operation uing identify number. |
88 * |
88 * |
89 * @param aTrans Identify number of request. |
89 * @param aTrans Identify number of request. |
90 * @param aSearchFrom pointer to entry to start search from |
90 * @param aSearchFrom pointer to entry to start search from |
91 * @return Pointer to operation. |
91 * @return Pointer to operation. |
92 */ |
92 */ |
93 CMmPhoneBookStoreOperationBase* Find( |
93 CMmPhoneBookStoreOperationBase* Find( |
94 TUint8 aTrans, |
94 TUint8 aTrans ); |
95 const CMmPhoneBookStoreOperationBase* aSearchFrom=NULL ); |
|
96 |
95 |
97 /** |
96 /** |
98 * Remove correct operation from operation list. |
97 * Remove correct operation from operation list. |
99 * |
98 * |
100 * @param aTrans Transaction Id |
99 * @param aTrans Transaction Id |
101 * @return None |
100 * @return None |
102 */ |
101 */ |
103 void RemoveOperationFromList( TUint8 aTrans ); |
102 void RemoveOperationFromList( TUint8 aTrans ); |
104 |
103 |
105 /** |
104 /** |
106 * Removes last operation from operation list. |
105 * Remove correct operation from operation list. |
107 * @return TInt KErrNone or KErrNotFound in case list is empty |
106 * |
|
107 * @param aTrans Transaction Id |
|
108 * @return None |
|
109 */ |
|
110 void RemoveCacheOperationFromList( TUint8 aTrans ); |
|
111 |
|
112 /** |
|
113 * Remove correct operation from operation list. |
|
114 * |
|
115 * @param aTrans Transaction Id |
|
116 * @return None |
108 */ |
117 */ |
109 TInt RemoveLastOperationFromList(); |
118 TInt RemoveLastOperationFromList(); |
110 |
119 |
111 /** |
120 /** |
112 * Calculates transaction Id from IPC number and |
121 * Check for empty Index |
113 * data package |
122 * @param aInd empty index |
114 * @param aIpc IPC number |
123 * @return TInt KErrNone or KErrNotFound |
115 * @param aDataPackage data package |
|
116 * @param aTransactionId resulting transaction id |
|
117 * @return TInt KErrNone or KErrNotSupported |
|
118 */ |
124 */ |
119 static TInt CalculateTransactionId( |
125 TInt FindEmptyIndexTransId(); |
120 TInt aIpc, |
126 |
121 const CMmDataPackage* aDataPackage, |
127 /** |
122 TUint8& aTransactionId |
128 * Cancel all operation with same phonebook name |
123 ); |
129 * @param aPhoneBook phoenbook name for operation |
|
130 */ |
|
131 void CancelOperation( TName &aPhoneBook); |
|
132 |
124 private: |
133 private: |
125 |
134 |
126 /** |
135 /** |
127 * By default Symbian OS constructor is private. |
136 * By default Symbian OS constructor is private. |
128 */ |
137 */ |
144 CMmPhoneBookStoreMessHandler* iMmPhoneBookStoreMessHandler; |
153 CMmPhoneBookStoreMessHandler* iMmPhoneBookStoreMessHandler; |
145 |
154 |
146 // Pointer to CMmUiccMessHandler |
155 // Pointer to CMmUiccMessHandler |
147 CMmUiccMessHandler* iUiccMessHandler; |
156 CMmUiccMessHandler* iUiccMessHandler; |
148 |
157 |
149 //CMmUiccMessHandler* iMmUiccMessHandler; |
158 // new Array for Storing Operation |
150 // Array for saving operation(s) |
159 TFixedArray<CMmPhoneBookStoreOperationBase*, KMaxPbTrIdCount> iPtrOperationArrayNew; |
151 RPointerArray<CMmPhoneBookStoreOperationBase> iPtrOperationArray; |
|
152 }; |
160 }; |
153 |
161 |
154 #endif // CMMPHONEBOOKOPERATIONLIST_H |
162 #endif // CMMPHONEBOOKOPERATIONLIST_H |
155 |
163 |
156 // End of file. |
164 // End of file. |