diff src/prpl.h @ 7619:994b2d782711

[gaim-migrate @ 8243] Juan Pablo Mendoza made file sending a little more generic, UI-wise, and added drag-and-drop file sending, as well as a Send File in the conversation menu. Congrats Juan on the $400 bounty. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Mon, 24 Nov 2003 02:35:27 +0000
parents d60e1629ffde
children ea2d07ad05a9
line wrap: on
line diff
--- a/src/prpl.h	Mon Nov 24 02:28:42 2003 +0000
+++ b/src/prpl.h	Mon Nov 24 02:35:27 2003 +0000
@@ -313,6 +313,12 @@
 	void (*remove_group)(GaimConnection *gc, const char *group);
 
 	char *(*get_cb_real_name)(GaimConnection *gc, int id, const char *who);
+
+	void (*ask_send_file)(GaimConnection *gc, const char *who);
+
+	void (*send_file)(GaimConnection *gc, const char *who, const char *file);
+
+	gboolean (*has_send_file)(GaimConnection *gc, const char *who);
 };
 
 #define GAIM_IS_PROTOCOL_PLUGIN(plugin) \
@@ -351,6 +357,23 @@
  */
 GaimPlugin *gaim_find_prpl(GaimProtocol type);
 
+/**
+ * Ask the user to select a file to send to a user
+ *
+ * @param gc The Gaim Connection to send the file trough;
+ * @param name The screen name of the one we are sending the file;
+ */
+void gaim_prpl_ask_send_file (GaimConnection *gc, char *name);
+
+/**
+ * Checks if a given user supports file sends
+ *
+ * @param gc The Gaim Connection to send the file trough;
+ * @param name The screen name of the one we are sending the file;
+ * @return TRUE if we can send files to this user, FALSE otherwise.
+ */
+gboolean gaim_prpl_has_send_file (GaimConnection *gc, char *name);
+
 #ifdef __cplusplus
 }
 #endif