Changeset View
Changeset View
Standalone View
Standalone View
src/core/kprotocolinfo.cpp
Show First 20 Lines • Show All 41 Lines • ▼ Show 20 Line(s) | 35 | { | |||
---|---|---|---|---|---|
42 | m_isHelperProtocol = config.readEntry("helper", false); | 42 | m_isHelperProtocol = config.readEntry("helper", false); | ||
43 | m_supportsReading = config.readEntry("reading", false); | 43 | m_supportsReading = config.readEntry("reading", false); | ||
44 | m_supportsWriting = config.readEntry("writing", false); | 44 | m_supportsWriting = config.readEntry("writing", false); | ||
45 | m_supportsMakeDir = config.readEntry("makedir", false); | 45 | m_supportsMakeDir = config.readEntry("makedir", false); | ||
46 | m_supportsDeleting = config.readEntry("deleting", false); | 46 | m_supportsDeleting = config.readEntry("deleting", false); | ||
47 | m_supportsLinking = config.readEntry("linking", false); | 47 | m_supportsLinking = config.readEntry("linking", false); | ||
48 | m_supportsMoving = config.readEntry("moving", false); | 48 | m_supportsMoving = config.readEntry("moving", false); | ||
49 | m_supportsOpening = config.readEntry("opening", false); | 49 | m_supportsOpening = config.readEntry("opening", false); | ||
50 | m_supportsTruncating = config.readEntry("truncating", false); | ||||
50 | m_canCopyFromFile = config.readEntry("copyFromFile", false); | 51 | m_canCopyFromFile = config.readEntry("copyFromFile", false); | ||
51 | m_canCopyToFile = config.readEntry("copyToFile", false); | 52 | m_canCopyToFile = config.readEntry("copyToFile", false); | ||
52 | m_canRenameFromFile = config.readEntry("renameFromFile", false); | 53 | m_canRenameFromFile = config.readEntry("renameFromFile", false); | ||
53 | m_canRenameToFile = config.readEntry("renameToFile", false); | 54 | m_canRenameToFile = config.readEntry("renameToFile", false); | ||
54 | m_canDeleteRecursive = config.readEntry("deleteRecursive", false); | 55 | m_canDeleteRecursive = config.readEntry("deleteRecursive", false); | ||
55 | const QString fnu = config.readEntry("fileNameUsedForCopying", "FromURL"); | 56 | const QString fnu = config.readEntry("fileNameUsedForCopying", "FromURL"); | ||
56 | m_fileNameUsedForCopying = KProtocolInfo::FromUrl; | 57 | m_fileNameUsedForCopying = KProtocolInfo::FromUrl; | ||
57 | if (fnu == QLatin1String("Name")) { | 58 | if (fnu == QLatin1String("Name")) { | ||
▲ Show 20 Lines • Show All 73 Lines • ▼ Show 20 Line(s) | 127 | { | |||
131 | m_isHelperProtocol = json.value(QStringLiteral("helper")).toBool(); | 132 | m_isHelperProtocol = json.value(QStringLiteral("helper")).toBool(); | ||
132 | m_supportsReading = json.value(QStringLiteral("reading")).toBool(); | 133 | m_supportsReading = json.value(QStringLiteral("reading")).toBool(); | ||
133 | m_supportsWriting = json.value(QStringLiteral("writing")).toBool(); | 134 | m_supportsWriting = json.value(QStringLiteral("writing")).toBool(); | ||
134 | m_supportsMakeDir = json.value(QStringLiteral("makedir")).toBool(); | 135 | m_supportsMakeDir = json.value(QStringLiteral("makedir")).toBool(); | ||
135 | m_supportsDeleting = json.value(QStringLiteral("deleting")).toBool(); | 136 | m_supportsDeleting = json.value(QStringLiteral("deleting")).toBool(); | ||
136 | m_supportsLinking = json.value(QStringLiteral("linking")).toBool(); | 137 | m_supportsLinking = json.value(QStringLiteral("linking")).toBool(); | ||
137 | m_supportsMoving = json.value(QStringLiteral("moving")).toBool(); | 138 | m_supportsMoving = json.value(QStringLiteral("moving")).toBool(); | ||
138 | m_supportsOpening = json.value(QStringLiteral("opening")).toBool(); | 139 | m_supportsOpening = json.value(QStringLiteral("opening")).toBool(); | ||
140 | m_supportsTruncating = json.value(QStringLiteral("truncating")).toBool(); | ||||
139 | m_canCopyFromFile = json.value(QStringLiteral("copyFromFile")).toBool(); | 141 | m_canCopyFromFile = json.value(QStringLiteral("copyFromFile")).toBool(); | ||
140 | m_canCopyToFile = json.value(QStringLiteral("copyToFile")).toBool(); | 142 | m_canCopyToFile = json.value(QStringLiteral("copyToFile")).toBool(); | ||
141 | m_canRenameFromFile = json.value(QStringLiteral("renameFromFile")).toBool(); | 143 | m_canRenameFromFile = json.value(QStringLiteral("renameFromFile")).toBool(); | ||
142 | m_canRenameToFile = json.value(QStringLiteral("renameToFile")).toBool(); | 144 | m_canRenameToFile = json.value(QStringLiteral("renameToFile")).toBool(); | ||
143 | m_canDeleteRecursive = json.value(QStringLiteral("deleteRecursive")).toBool(); | 145 | m_canDeleteRecursive = json.value(QStringLiteral("deleteRecursive")).toBool(); | ||
144 | 146 | | |||
145 | // default is "FromURL" | 147 | // default is "FromURL" | ||
146 | const QString fnu = json.value(QStringLiteral("fileNameUsedForCopying")).toString(); | 148 | const QString fnu = json.value(QStringLiteral("fileNameUsedForCopying")).toString(); | ||
▲ Show 20 Lines • Show All 282 Lines • Show Last 20 Lines |