1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
3 * Copyright (C) 2007 Marco Barisione <marco@barisione.org>
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.
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.
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.
21 #ifndef __EMPATHY_TP_FILE_PRIV_H__
22 #define __EMPATHY_TP_FILE_PRIV_H__
28 #include "empathy-file.h"
29 #include "empathy-tp-file.h"
31 #include <libmissioncontrol/mc-account.h>
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);
47 void _empathy_tp_file_set_input_stream (EmpathyTpFile *tp_file,
49 void _empathy_tp_file_set_output_stream (EmpathyTpFile *tp_file,
51 void _empathy_tp_file_set_filename (EmpathyTpFile *tp_file,
52 const gchar *filename);
56 #endif /* __EMPATHY_TP_FILE_PRIV_H__ */