comparison libpurple/notify.h @ 32316:489b20ff1c72

Remove a few deprecated functions
author Mark Doliner <mark@kingant.net>
date Sun, 21 Aug 2011 01:13:46 +0000
parents ea4bb5fe1fdc
children 99ca503ea087
comparison
equal deleted inserted replaced
32315:c2fa3a76a0be 32316:489b20ff1c72
308 * @param results The search results object. 308 * @param results The search results object.
309 * @param row The row of the results. 309 * @param row The row of the results.
310 */ 310 */
311 void purple_notify_searchresults_row_add(PurpleNotifySearchResults *results, 311 void purple_notify_searchresults_row_add(PurpleNotifySearchResults *results,
312 GList *row); 312 GList *row);
313
314 #if !(defined PURPLE_DISABLE_DEPRECATED) || (defined _PURPLE_NOTIFY_C_)
315 /**
316 * Returns a number of the rows in the search results object.
317 *
318 * @deprecated This function will be removed in Pidgin 3.0.0 unless
319 * there is sufficient demand to keep it. Using this
320 * function encourages looping through the results
321 * inefficiently. Instead of using this function you
322 * should iterate through the results using a loop
323 * similar to this:
324 * for (l = results->rows; l != NULL; l = l->next)
325 * If you really need to get the number of rows you
326 * can use g_list_length(results->rows).
327 *
328 * @param results The search results object.
329 *
330 * @return Number of the result rows.
331 */
332 guint purple_notify_searchresults_get_rows_count(PurpleNotifySearchResults *results);
333 #endif
334
335 #if !(defined PURPLE_DISABLE_DEPRECATED) || (defined _PURPLE_NOTIFY_C_)
336 /**
337 * Returns a number of the columns in the search results object.
338 *
339 * @deprecated This function will be removed in Pidgin 3.0.0 unless
340 * there is sufficient demand to keep it. Using this
341 * function encourages looping through the columns
342 * inefficiently. Instead of using this function you
343 * should iterate through the columns using a loop
344 * similar to this:
345 * for (l = results->columns; l != NULL; l = l->next)
346 * If you really need to get the number of columns you
347 * can use g_list_length(results->columns).
348 *
349 * @param results The search results object.
350 *
351 * @return Number of the columns.
352 */
353 guint purple_notify_searchresults_get_columns_count(PurpleNotifySearchResults *results);
354 #endif
355
356 #if !(defined PURPLE_DISABLE_DEPRECATED) || (defined _PURPLE_NOTIFY_C_)
357 /**
358 * Returns a row of the results from the search results object.
359 *
360 * @deprecated This function will be removed in Pidgin 3.0.0 unless
361 * there is sufficient demand to keep it. Using this
362 * function encourages looping through the results
363 * inefficiently. Instead of using this function you
364 * should iterate through the results using a loop
365 * similar to this:
366 * for (l = results->rows; l != NULL; l = l->next)
367 * If you really need to get the data for a particular
368 * row you can use g_list_nth_data(results->rows, row_id).
369 *
370 * @param results The search results object.
371 * @param row_id Index of the row to be returned.
372 *
373 * @return Row of the results.
374 */
375 GList *purple_notify_searchresults_row_get(PurpleNotifySearchResults *results,
376 unsigned int row_id);
377 #endif
378
379 #if !(defined PURPLE_DISABLE_DEPRECATED) || (defined _PURPLE_NOTIFY_C_)
380 /**
381 * Returns a title of the search results object's column.
382 *
383 * @deprecated This function will be removed in Pidgin 3.0.0 unless
384 * there is sufficient demand to keep it. Using this
385 * function encourages looping through the columns
386 * inefficiently. Instead of using this function you
387 * should iterate through the name of a particular
388 * column you can use
389 * g_list_nth_data(results->columns, row_id).
390 *
391 * @param results The search results object.
392 * @param column_id Index of the column.
393 *
394 * @return Title of the column.
395 */
396 char *purple_notify_searchresults_column_get_title(PurpleNotifySearchResults *results,
397 unsigned int column_id);
398 #endif
399 313
400 /*@}*/ 314 /*@}*/
401 315
402 /**************************************************************************/ 316 /**************************************************************************/
403 /** @name Notification API */ 317 /** @name Notification API */