Relicense all GPLv2 only code to GPLv2+.
[kdenetwork.git] / kget / core / transfercontainer.h
blobf5a04d566329d874e30c4d56c307765cc7db0ea9
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.
9 */
11 #ifndef TRANSFERCONTAINER_H
12 #define TRANSFERCONTAINER_H
14 #include <QObject>
16 /**
17 * @brief TransferContainer class handles the transfers
19 * This class is the base for every single transfer.
23 class TransferContainer : public QObject
25 Q_OBJECT
27 public:
28 Q_FLAGS(TransferFlags)
30 enum TransferFlag {
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)
39 TransferContainer();
40 ~TransferContainer();
43 Q_DECLARE_OPERATORS_FOR_FLAGS(TransferContainer::TransferFlags)
45 #endif