]> git.0d.be Git - empathy.git/blob - libempathy/empathy-tp-file-priv.h
Added empathy_send_file_with_file_chooser_and_manager to make use of the file transfe...
[empathy.git] / libempathy / empathy-tp-file-priv.h
1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2 /*
3  * Copyright (C) 2007 Marco Barisione <marco@barisione.org>
4  *
5  * This program is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU General Public License as
7  * published by the Free Software Foundation; either version 2 of the
8  * License, or (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13  * General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public
16  * License along with this program; if not, write to the
17  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18  * Boston, MA 02111-1307, USA.
19  */
20
21 #ifndef __EMPATHY_TP_FILE_PRIV_H__
22 #define __EMPATHY_TP_FILE_PRIV_H__
23
24 #include <glib.h>
25
26 #include <gio/gio.h>
27
28 #include "empathy-file.h"
29 #include "empathy-tp-file.h"
30
31 #include <libmissioncontrol/mc-account.h>
32
33 G_BEGIN_DECLS
34
35 guint64                                 _empathy_tp_file_get_transferred_bytes   (EmpathyTpFile   *tp_file);
36 EmpathyContact *                        _empathy_tp_file_get_contact             (EmpathyTpFile   *tp_file);
37 GInputStream *                          _empathy_tp_file_get_input_stream        (EmpathyTpFile   *tp_file);
38 GOutputStream *                         _empathy_tp_file_get_output_stream       (EmpathyTpFile   *tp_file);
39 const gchar *                           _empathy_tp_file_get_filename            (EmpathyTpFile   *tp_file);
40 EmpFileTransferDirection          _empathy_tp_file_get_direction           (EmpathyTpFile   *tp_file);
41 EmpFileTransferState              _empathy_tp_file_get_state               (EmpathyTpFile   *tp_file);
42 EmpFileTransferStateChangeReason  _empathy_tp_file_get_state_change_reason (EmpathyTpFile   *tp_file);
43 guint64                                 _empathy_tp_file_get_size                (EmpathyTpFile   *tp_file);
44 guint64                                 _empathy_tp_file_get_transferred_bytes   (EmpathyTpFile   *tp_file);
45 gint                                    _empathy_tp_file_get_remaining_time      (EmpathyTpFile   *tp_file);
46
47 void                                    _empathy_tp_file_set_input_stream        (EmpathyTpFile   *tp_file,
48                                                                                 GInputStream  *uri);
49 void                                    _empathy_tp_file_set_output_stream       (EmpathyTpFile   *tp_file,
50                                                                                 GOutputStream *uri);
51 void                                    _empathy_tp_file_set_filename            (EmpathyTpFile   *tp_file,
52                                                                                 const gchar   *filename);
53
54 G_END_DECLS
55
56 #endif /* __EMPATHY_TP_FILE_PRIV_H__ */