comparison libpurple/notify.h @ 20100:a3f07fa68e90

Access search results directly instead of going through the API because it's way more efficient this way,a nd mark the old functions as deprecated.
author Mark Doliner <mark@kingant.net>
date Mon, 17 Sep 2007 06:42:08 +0000
parents 6bf32c9e15a7
children f296be2a1039 34de8ef19294
comparison
equal deleted inserted replaced
20099:ac6bf49cd5ba 20100:a3f07fa68e90
291 void purple_notify_searchresults_row_add(PurpleNotifySearchResults *results, 291 void purple_notify_searchresults_row_add(PurpleNotifySearchResults *results,
292 GList *row); 292 GList *row);
293 293
294 /** 294 /**
295 * Returns a number of the rows in the search results object. 295 * Returns a number of the rows in the search results object.
296 * 296 *
297 * @deprecated This function will be removed in Pidgin 3.0.0 unless
298 * there is sufficient demand to keep it. Using this
299 * function encourages looping through the results
300 * inefficiently. Instead of using this function you
301 * should iterate through the results using a loop
302 * similar to this:
303 * for (l = results->rows; l != NULL; l = l->next)
304 * If you really need to get the number of rows you
305 * can use g_list_length(results->rows).
306 *
297 * @param results The search results object. 307 * @param results The search results object.
298 * 308 *
299 * @return Number of the result rows. 309 * @return Number of the result rows.
300 */ 310 */
301 guint purple_notify_searchresults_get_rows_count(PurpleNotifySearchResults *results); 311 guint purple_notify_searchresults_get_rows_count(PurpleNotifySearchResults *results);
302 312
303 /** 313 /**
304 * Returns a number of the columns in the search results object. 314 * Returns a number of the columns in the search results object.
305 * 315 *
316 * @deprecated This function will be removed in Pidgin 3.0.0 unless
317 * there is sufficient demand to keep it. Using this
318 * function encourages looping through the columns
319 * inefficiently. Instead of using this function you
320 * should iterate through the columns using a loop
321 * similar to this:
322 * for (l = results->columns; l != NULL; l = l->next)
323 * If you really need to get the number of columns you
324 * can use g_list_length(results->columns).
325 *
306 * @param results The search results object. 326 * @param results The search results object.
307 * 327 *
308 * @return Number of the columns. 328 * @return Number of the columns.
309 */ 329 */
310 guint purple_notify_searchresults_get_columns_count(PurpleNotifySearchResults *results); 330 guint purple_notify_searchresults_get_columns_count(PurpleNotifySearchResults *results);
311 331
312 /** 332 /**
313 * Returns a row of the results from the search results object. 333 * Returns a row of the results from the search results object.
334 *
335 * @deprecated This function will be removed in Pidgin 3.0.0 unless
336 * there is sufficient demand to keep it. Using this
337 * function encourages looping through the results
338 * inefficiently. Instead of using this function you
339 * should iterate through the results using a loop
340 * similar to this:
341 * for (l = results->rows; l != NULL; l = l->next)
342 * If you really need to get the data for a particular
343 * row you can use g_list_nth_data(results->rows, row_id).
314 * 344 *
315 * @param results The search results object. 345 * @param results The search results object.
316 * @param row_id Index of the row to be returned. 346 * @param row_id Index of the row to be returned.
317 * 347 *
318 * @return Row of the results. 348 * @return Row of the results.
320 GList *purple_notify_searchresults_row_get(PurpleNotifySearchResults *results, 350 GList *purple_notify_searchresults_row_get(PurpleNotifySearchResults *results,
321 unsigned int row_id); 351 unsigned int row_id);
322 352
323 /** 353 /**
324 * Returns a title of the search results object's column. 354 * Returns a title of the search results object's column.
325 * 355 *
356 * @deprecated This function will be removed in Pidgin 3.0.0 unless
357 * there is sufficient demand to keep it. Using this
358 * function encourages looping through the columns
359 * inefficiently. Instead of using this function you
360 * should iterate through the name of a particular
361 * column you can use
362 * g_list_nth_data(results->columns, row_id).
363 *
326 * @param results The search results object. 364 * @param results The search results object.
327 * @param column_id Index of the column. 365 * @param column_id Index of the column.
328 * 366 *
329 * @return Title of the column. 367 * @return Title of the column.
330 */ 368 */