comparison libpurple/conversation.h @ 20892:bbcc9e206c43

propagate from branch 'im.pidgin.pidgin' (head f33ba0034c79d8e37a70d664ec534356fa361608) to branch 'im.pidgin.cpw.resiak.disconnectreason' (head b3c8182bd741b961775afed0768fbecdc47dc828)
author Will Thompson <will.thompson@collabora.co.uk>
date Fri, 12 Oct 2007 00:19:12 +0000
parents 4511d15a8f80
children 59c9c04879af b1fa7765ca4b
comparison
equal deleted inserted replaced
20823:f33ed41b6dee 20892:bbcc9e206c43
283 PurpleConvChatBuddyFlags flags; /**< Flags (ops, voice etc.) */ 283 PurpleConvChatBuddyFlags flags; /**< Flags (ops, voice etc.) */
284 }; 284 };
285 285
286 /** 286 /**
287 * Description of a conversation message 287 * Description of a conversation message
288 *
289 * @since 2.2.0
288 */ 290 */
289 struct _PurpleConvMessage 291 struct _PurpleConvMessage
290 { 292 {
291 char *who; 293 char *who;
292 char *what; 294 char *what;
668 * @param conv The conversation 670 * @param conv The conversation
669 * 671 *
670 * @return A GList of PurpleConvMessage's. The must not modify the list or the data within. 672 * @return A GList of PurpleConvMessage's. The must not modify the list or the data within.
671 * The list contains the newest message at the beginning, and the oldest message at 673 * The list contains the newest message at the beginning, and the oldest message at
672 * the end. 674 * the end.
675 *
676 * @since 2.2.0
673 */ 677 */
674 GList *purple_conversation_get_message_history(PurpleConversation *conv); 678 GList *purple_conversation_get_message_history(PurpleConversation *conv);
675 679
676 /** 680 /**
677 * Clear the message history of a conversation. 681 * Clear the message history of a conversation.
678 * 682 *
679 * @param conv The conversation 683 * @param conv The conversation
684 *
685 * @since 2.2.0
680 */ 686 */
681 void purple_conversation_clear_message_history(PurpleConversation *conv); 687 void purple_conversation_clear_message_history(PurpleConversation *conv);
682 688
683 /** 689 /**
684 * Get the sender from a PurpleConvMessage 690 * Get the sender from a PurpleConvMessage
685 * 691 *
686 * @param msg A PurpleConvMessage 692 * @param msg A PurpleConvMessage
687 * 693 *
688 * @return The name of the sender of the message 694 * @return The name of the sender of the message
695 *
696 * @since 2.2.0
689 */ 697 */
690 const char *purple_conversation_message_get_sender(PurpleConvMessage *msg); 698 const char *purple_conversation_message_get_sender(PurpleConvMessage *msg);
691 699
692 /** 700 /**
693 * Get the message from a PurpleConvMessage 701 * Get the message from a PurpleConvMessage
694 * 702 *
695 * @param msg A PurpleConvMessage 703 * @param msg A PurpleConvMessage
696 * 704 *
697 * @return The name of the sender of the message 705 * @return The name of the sender of the message
706 *
707 * @since 2.2.0
698 */ 708 */
699 const char *purple_conversation_message_get_message(PurpleConvMessage *msg); 709 const char *purple_conversation_message_get_message(PurpleConvMessage *msg);
700 710
701 /** 711 /**
702 * Get the message-flags of a PurpleConvMessage 712 * Get the message-flags of a PurpleConvMessage
703 * 713 *
704 * @param msg A PurpleConvMessage 714 * @param msg A PurpleConvMessage
705 * 715 *
706 * @return The name of the sender of the message 716 * @return The name of the sender of the message
717 *
718 * @since 2.2.0
707 */ 719 */
708 PurpleMessageFlags purple_conversation_message_get_flags(PurpleConvMessage *msg); 720 PurpleMessageFlags purple_conversation_message_get_flags(PurpleConvMessage *msg);
709 721
710 /** 722 /**
711 * Get the timestamp of a PurpleConvMessage 723 * Get the timestamp of a PurpleConvMessage
712 * 724 *
713 * @param msg A PurpleConvMessage 725 * @param msg A PurpleConvMessage
714 * 726 *
715 * @return The name of the sender of the message 727 * @return The name of the sender of the message
728 *
729 * @since 2.2.0
716 */ 730 */
717 time_t purple_conversation_message_get_timestamp(PurpleConvMessage *msg); 731 time_t purple_conversation_message_get_timestamp(PurpleConvMessage *msg);
718 732
719 /*@}*/ 733 /*@}*/
720 734
1316 * @param conv The conversation. 1330 * @param conv The conversation.
1317 * 1331 *
1318 * @return A list of PurpleMenuAction items, harvested by the 1332 * @return A list of PurpleMenuAction items, harvested by the
1319 * chat-extended-menu signal. The list and the menuaction 1333 * chat-extended-menu signal. The list and the menuaction
1320 * items should be freed by the caller. 1334 * items should be freed by the caller.
1335 *
1336 * @since 2.1.0
1321 */ 1337 */
1322 GList * purple_conversation_get_extended_menu(PurpleConversation *conv); 1338 GList * purple_conversation_get_extended_menu(PurpleConversation *conv);
1323 1339
1324 /** 1340 /**
1325 * Perform a command in a conversation. Similar to @see purple_cmd_do_command 1341 * Perform a command in a conversation. Similar to @see purple_cmd_do_command
1329 * @param markup @c NULL, or the formatted command line. 1345 * @param markup @c NULL, or the formatted command line.
1330 * @param error If the command failed errormsg is filled in with the appropriate error 1346 * @param error If the command failed errormsg is filled in with the appropriate error
1331 * message, if not @c NULL. It must be freed by the caller with g_free(). 1347 * message, if not @c NULL. It must be freed by the caller with g_free().
1332 * 1348 *
1333 * @return @c TRUE if the command was executed successfully, @c FALSE otherwise. 1349 * @return @c TRUE if the command was executed successfully, @c FALSE otherwise.
1350 *
1351 * @since 2.1.0
1334 */ 1352 */
1335 gboolean purple_conversation_do_command(PurpleConversation *conv, const gchar *cmdline, const gchar *markup, gchar **error); 1353 gboolean purple_conversation_do_command(PurpleConversation *conv, const gchar *cmdline, const gchar *markup, gchar **error);
1336 1354
1337 /*@}*/ 1355 /*@}*/
1338 1356