| Yattm - unified GTK instant-messaging client | ![]() |
| [Generated for version 0.2-17 - Mon Jan 6 19:01:23 GMT+1 2003] |
#include <glib.h>#include <string.h>#include "account.h"#include "util.h"#include "plugin.h"#include "intl.h"#include "message_parse.h"#include "file_select.h"#include "log_window.h"Include dependency graph for contact_actions.c:

Go to the source code of this file.
Functions | |
| void | send_file_callback (char *selected_filename, gpointer data) |
| void | eb_do_send_file (eb_account *ea) |
| void | eb_view_log (struct contact *contact) |
|
|
Definition at line 38 of file contact_actions.c. References _, eb_do_file_selector(), and send_file_callback(). Referenced by send_file(), send_file_callback(), and send_file_with_contact_callback().
00039 {
00040 eb_do_file_selector(NULL, _("Select file to send"), send_file_callback, ea);
00041 }
|
|
|
Definition at line 43 of file contact_actions.c. References eb_log_window_new(), and contact::logwindow. Referenced by view_log_callback().
00044 {
00045 if(contact->logwindow == NULL) {
00046 contact->logwindow = eb_log_window_new(contact);
00047 }
00048 }
|
|
||||||||||||
|
Definition at line 15 of file contact_actions.c. References account::account_contact, find_suitable_file_transfer_account(), find_suitable_local_account(), RUN_SERVICE, and account::service_id. Referenced by eb_do_send_file().
00016 {
00017 eb_account *ea = (eb_account *)data;
00018 eb_account * x_fer_account;
00019
00020 if(!selected_filename)
00021 return;
00022
00023 if(!ea) // Accout is offline
00024 return;
00025
00026 x_fer_account = find_suitable_file_transfer_account(ea, ea->account_contact);
00027
00028 if(x_fer_account) {
00029 eb_local_account * ela = find_suitable_local_account(NULL, x_fer_account->service_id);
00030 RUN_SERVICE(ela)->send_file(ela, x_fer_account, selected_filename);
00031 } else {
00032 eb_local_account * ela = find_suitable_local_account(NULL, ea->service_id);
00033 strcpy(filename, selected_filename);
00034 RUN_SERVICE(ela)->send_im(ela, ea, "EB_COMMAND SEND_FILE");
00035 }
00036 }
|