Mercurial > pidgin
diff libgaim/conversation.h @ 14520:82b59abcaee4
[gaim-migrate @ 17240]
SF Patch #1492561 from Lars T. Mikkelsen
"This patch adds gaim-url-handler, a URL handler for
most protocols in Gaim. The gaim-url-handler is similar
to (and based on) gaim-remote, however, it uses the
native URL format of each protocol.
Furthermore, the patch includes a GConf schema, which
allows Gnome applications to use the URL handler."
With this and gaim-send/gaim-send-async, we should be able to drop gaim-remote.
Please let me know if you object, or I'll remove gaim-remote shortly.
For the record, I know this doesn't support 100% of the ChatZilla IRC URL spec,
and I haven't investigated the XMPP URL spec beyond a casual first look. We
can tweak these things later -- I figured it was important to get the bulk of
the code in place.
committer: Tailor Script <tailor@pidgin.im>
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Mon, 11 Sep 2006 02:30:59 +0000 |
parents | 60b1bc8dbf37 |
children |
line wrap: on
line diff
--- a/libgaim/conversation.h Mon Sep 11 02:02:18 2006 +0000 +++ b/libgaim/conversation.h Mon Sep 11 02:30:59 2006 +0000 @@ -174,6 +174,8 @@ void (*custom_smiley_write)(GaimConversation *conv, const char *smile, const guchar *data, gsize size); void (*custom_smiley_close)(GaimConversation *conv, const char *smile); + + void (*send_confirm)(GaimConversation *conv, const char *message); }; /** @@ -758,6 +760,20 @@ void gaim_conv_im_send(GaimConvIm *im, const char *message); /** + * Sends a message to a conversation after confirming with + * the user. + * + * This function is intended for use in cases where the user + * hasn't explicitly and knowingly caused a message to be sent. + * The confirmation ensures that the user isn't sending a + * message by mistake. + * + * @param conv The conversation. + * @param message The message to send. + */ +void gaim_conv_send_confirm(GaimConversation *conv, const char *message); + +/** * Sends a message to this IM conversation with specified flags. * * @param im The IM.