summaryrefslogtreecommitdiffstats
blob: 70d25a537c0a2fa90f8f21b6e99ebfd4f0d9e584 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/*
 * Copyright (c) 2011 Tobias Markmann
 * Licensed under the simplified BSD license.
 * See Documentation/Licenses/BSD-simplified.txt for more information.
 */

/*
 * Copyright (c) 2016 Isode Limited.
 * All rights reserved.
 * See the COPYING file for more information.
 */

#pragma once

#include <string>

#include <boost/date_time/posix_time/posix_time.hpp>
#include <boost/filesystem/path.hpp>

#include <Swiften/Base/Override.h>
#include <Swiften/FileTransfer/FileTransferManager.h>

namespace Swift {
    class S5BProxyRequest;
    class FileTransferOptions;

    class DummyFileTransferManager : public FileTransferManager {
        public:
            DummyFileTransferManager() : FileTransferManager() {
            }

            virtual OutgoingFileTransfer::ref createOutgoingFileTransfer(
                    const JID&,
                    const boost::filesystem::path&,
                    const std::string&,
                    boost::shared_ptr<ReadBytestream>,
                    const FileTransferOptions&) SWIFTEN_OVERRIDE {
                return OutgoingFileTransfer::ref();
            }

            virtual OutgoingFileTransfer::ref createOutgoingFileTransfer(
                    const JID&,
                    const std::string&,
                    const std::string&,
                    const boost::uintmax_t,
                    const boost::posix_time::ptime&,
                    boost::shared_ptr<ReadBytestream>,
                    const FileTransferOptions&) SWIFTEN_OVERRIDE {
                return OutgoingFileTransfer::ref();
            }

            virtual void addS5BProxy(boost::shared_ptr<S5BProxyRequest>) {
            }

    };
}