From 97d9a9e85ffcc6c1d07c0de5a8c6e124240da62f Mon Sep 17 00:00:00 2001 From: Maciek Borzecki Date: Tue, 3 Oct 2017 20:34:36 +0200 Subject: [PATCH] transfer-manager: thin wrapper for tracking transfers --- src/mconnect/transfer-manager.vala | 31 ++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 src/mconnect/transfer-manager.vala diff --git a/src/mconnect/transfer-manager.vala b/src/mconnect/transfer-manager.vala new file mode 100644 index 0000000..97e5dac --- /dev/null +++ b/src/mconnect/transfer-manager.vala @@ -0,0 +1,31 @@ +/** + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + * + * AUTHORS + * Maciek Borzecki + */ + +class TransferManager : Object { + + public signal void new_transfer(TransferInterface job); + + public TransferManager() { + + } + + public void push_job(TransferInterface job) { + debug("new transfer job"); + new_transfer(job); + } +} \ No newline at end of file