summaryrefslogtreecommitdiffstats
blob: 4adf32e4b23eee3777b595356fea685855fb7fc8 (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
/*
 * Copyright (c) 2013-2015 Isode Limited.
 * All rights reserved.
 * See the COPYING file for more information.
 */

#pragma once

#include <string>

#include <Swiften/Base/API.h>

namespace Swift {
    class JID;
    class FileTransferTransporter;
    class FileTransferOptions;

    class SWIFTEN_API FileTransferTransporterFactory {
        public:
            virtual ~FileTransferTransporterFactory();

            virtual FileTransferTransporter* createInitiatorTransporter(
                    const JID& initiator,
                    const JID& responder,
                    const FileTransferOptions& options) = 0;
            virtual FileTransferTransporter* createResponderTransporter(
                    const JID& initiator,
                    const JID& responder,
                    const std::string& s5bSessionID,
                    const FileTransferOptions& options) = 0;
    };
}