equal
deleted
inserted
replaced
70 * |
70 * |
71 * @return CMPXMedia pointer to media object or null if |
71 * @return CMPXMedia pointer to media object or null if |
72 * object is not found from wanted index |
72 * object is not found from wanted index |
73 * |
73 * |
74 */ |
74 */ |
75 CMPXMedia* fromIndex(int index) const; |
75 CMPXMedia* fromIndex(const int &index) const; |
76 |
76 |
77 /** |
77 /** |
78 * Returns an index of id. |
78 * Returns an index of id. |
79 * |
79 * |
80 * @param id item id |
80 * @param id item id |
81 * |
81 * |
82 * @return int index of item or -1 if item with provided id is not found |
82 * @return int index of item or -1 if item with provided id is not found |
83 */ |
83 */ |
84 int indexOfId(const TMPXItemId &id) const; |
84 const int& indexOfId(const TMPXItemId &id) const; |
85 |
85 |
86 /** |
86 /** |
87 * Returns id of item from provided index |
87 * Returns id of item from provided index |
88 * |
88 * |
89 * @param index potisiotn where to look for item |
89 * @param index potisiotn where to look for item |
90 * |
90 * |
91 * @return id of item or invalid TMPXItemId if item is not found from provided index |
91 * @return id of item or invalid TMPXItemId if item is not found from provided index |
92 */ |
92 */ |
93 TMPXItemId idFromIndex(int index) const; |
93 const TMPXItemId& idFromIndex(const int &index) const; |
94 |
94 |
95 /** |
95 /** |
96 * returns count of items |
96 * returns count of items |
97 * |
97 * |
98 * @return int |
98 * @return int |
109 * biggest index |
109 * biggest index |
110 * |
110 * |
111 * @param inteIndex index of item |
111 * @param inteIndex index of item |
112 * @return TMPXItemId id of the item marked as removed |
112 * @return TMPXItemId id of the item marked as removed |
113 */ |
113 */ |
114 TMPXItemId markItemRemoved(const int &itemIndex); |
114 const TMPXItemId markItemRemoved(const int &itemIndex); |
115 |
115 |
116 /** |
116 /** |
117 * Method removes provided items from mRemovedMedia |
117 * Method removes provided items from mRemovedMedia |
118 * |
118 * |
119 * @param itemIds ids of items to be removed. If null, removes all |
119 * @param itemIds ids of items to be removed. If null, removes all |
134 /** |
134 /** |
135 * Returns item from removed buffer |
135 * Returns item from removed buffer |
136 * |
136 * |
137 * @param itemId id of item to be returned |
137 * @param itemId id of item to be returned |
138 */ |
138 */ |
139 CMPXMedia* getRemovedMedia(TMPXItemId itemId); |
139 CMPXMedia* getRemovedMedia(TMPXItemId &itemId); |
140 |
140 |
141 private: |
141 private: |
142 |
142 |
143 /** |
143 /** |
144 * Decrements indexes of items in mMediaData by one after |
144 * Decrements indexes of items in mMediaData by one after |
146 * Item iterator is first found based on item id gotten from id list |
146 * Item iterator is first found based on item id gotten from id list |
147 * and items' indexes after that are to be decreased. |
147 * and items' indexes after that are to be decreased. |
148 * |
148 * |
149 * @param fromindex - index from where to start decreasing |
149 * @param fromindex - index from where to start decreasing |
150 */ |
150 */ |
151 void decIndexesAfter(int fromIndex); |
151 void decIndexesAfter(const int &fromIndex); |
152 |
152 |
153 private: // data |
153 private: // data |
154 |
154 |
155 /** |
155 /** |
156 * list of media ids used to fetch item thought index. |
156 * list of media ids used to fetch item thought index. |