1/*
2 This file is part of the KDE libraries
3 SPDX-FileCopyrightText: 1999 Torben Weis <weis@kde.org>
4 SPDX-FileCopyrightText: 2000-2001 Waldo Bastian <bastian@kde.org>
5 SPDX-FileCopyrightText: 2012 David Faure <faure@kde.org>
6 SPDX-FileCopyrightText: 2022 Harald Sitter <sitter@kde.org>
7
8 SPDX-License-Identifier: LGPL-2.0-only
9*/
10
11#ifndef KPROTOCOLINFOPRIVATE_H
12#define KPROTOCOLINFOPRIVATE_H
13
14#include "kprotocolinfo.h"
15
16#include <QJsonObject>
17
18/**
19 * @internal
20 */
21class KProtocolInfoPrivate
22{
23public:
24 KProtocolInfoPrivate(const QString &name, const QString &exec, const QJsonObject &json);
25
26 QString m_name;
27 QString m_exec;
28 KProtocolInfo::Type m_inputType;
29 KProtocolInfo::Type m_outputType;
30 QStringList m_listing;
31 bool m_isSourceProtocol : 1;
32 bool m_isHelperProtocol : 1;
33 bool m_supportsListing : 1;
34 bool m_supportsReading : 1;
35 bool m_supportsWriting : 1;
36 bool m_supportsMakeDir : 1;
37 bool m_supportsDeleting : 1;
38 bool m_supportsLinking : 1;
39 bool m_supportsMoving : 1;
40 bool m_supportsOpening : 1;
41 bool m_supportsTruncating : 1;
42 bool m_determineMimetypeFromExtension : 1;
43 bool m_canCopyFromFile : 1;
44 bool m_canCopyToFile : 1;
45 bool m_showPreviews : 1;
46 bool m_canRenameFromFile : 1;
47 bool m_canRenameToFile : 1;
48 bool m_canDeleteRecursive : 1;
49 bool m_supportsPermissions : 1;
50 QString m_defaultMimetype;
51 QString m_icon;
52 QString m_config;
53 int m_maxWorkers;
54
55 QString m_docPath;
56 QString m_protClass;
57 QStringList m_archiveMimeTypes;
58 KProtocolInfo::ExtraFieldList m_extraFields;
59 KProtocolInfo::FileNameUsedForCopying m_fileNameUsedForCopying;
60 QStringList m_capabilities;
61 QString m_proxyProtocol;
62 int m_maxWorkersPerHost;
63};
64
65#endif
66

source code of kio/src/core/kprotocolinfo_p.h