summaryrefslogtreecommitdiffstats
blob: 94f4ab7180b86e701f857c8d7f43f7a2fb079fcc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/*
 * Copyright (c) 2011 Tobias Markmann
 * Licensed under the simplified BSD license.
 * See Documentation/Licenses/BSD-simplified.txt for more information.
 */

#include <Swiften/FileTransfer/FileTransferManager.h>

namespace Swift {

FileTransferManager::~FileTransferManager() {
}

bool FileTransferManager::isSupportedBy(const DiscoInfo::ref info) {
    if (info) {
        return info->hasFeature(DiscoInfo::JingleFeature)
                        && info->hasFeature(DiscoInfo::JingleFTFeature)
                        && (info->hasFeature(DiscoInfo::JingleTransportsIBBFeature) || info->hasFeature(DiscoInfo::JingleTransportsS5BFeature));
    }
    return false;
}

}