1 /* This file is part of the KDE project
3 Copyright (C) 2007 Urs Wolfer <uwolfer @ kde.org>
5 This program is free software; you can redistribute it and/or
6 modify it under the terms of the GNU General Public
7 License as published by the Free Software Foundation; either
8 version 2 of the License, or (at your option) any later version.
11 #ifndef TRANSFERCONTAINER_H
12 #define TRANSFERCONTAINER_H
17 * @brief TransferContainer class handles the transfers
19 * This class is the base for every single transfer.
23 class TransferContainer
: public QObject
28 Q_FLAGS(TransferFlags
)
31 /** The transfer supports resuming and seeking */
32 Tf_SupportsSegments
= 0x01,
33 /** The container includes more than one file, e.g. metalink */
34 Tf_MultipleFiles
= 0x02
37 Q_DECLARE_FLAGS(TransferFlags
, TransferFlag
)
43 Q_DECLARE_OPERATORS_FOR_FLAGS(TransferContainer::TransferFlags
)