Changeset View
Changeset View
Standalone View
Standalone View
src/core/kprotocolinfo.h
Show First 20 Lines • Show All 226 Lines • ▼ Show 20 Line(s) | 45 | public: | |||
---|---|---|---|---|---|
227 | * Valid values for this field are "true" (default) or "false". | 227 | * Valid values for this field are "true" (default) or "false". | ||
228 | * | 228 | * | ||
229 | * @param protocol the protocol to check | 229 | * @param protocol the protocol to check | ||
230 | * @return true if the mime types can be determined by extension | 230 | * @return true if the mime types can be determined by extension | ||
231 | */ | 231 | */ | ||
232 | static bool determineMimetypeFromExtension(const QString &protocol); | 232 | static bool determineMimetypeFromExtension(const QString &protocol); | ||
233 | 233 | | |||
234 | /** | 234 | /** | ||
235 | * Returns the default mimetype for the specified protocol, if one exists. | ||||
236 | * | ||||
237 | * This corresponds to the "defaultMimetype=" field in the protocol description file. | ||||
238 | * | ||||
239 | * @param protocol the protocol to check | ||||
240 | * @return the default mimetype of the protocol, or an empty string if none set or protocol unknown | ||||
241 | * @since 5.60 | ||||
242 | */ | ||||
243 | static QString defaultMimetype(const QString &protocol); | ||||
244 | | ||||
245 | /** | ||||
235 | * Returns the documentation path for the specified protocol. | 246 | * Returns the documentation path for the specified protocol. | ||
236 | * | 247 | * | ||
237 | * This corresponds to the "X-DocPath=" or "DocPath=" field in the protocol description file. | 248 | * This corresponds to the "X-DocPath=" or "DocPath=" field in the protocol description file. | ||
238 | * | 249 | * | ||
239 | * @param protocol the protocol to check | 250 | * @param protocol the protocol to check | ||
240 | * @return the docpath of the protocol, or an empty string if unknown | 251 | * @return the docpath of the protocol, or an empty string if unknown | ||
241 | */ | 252 | */ | ||
242 | static QString docPath(const QString &protocol); | 253 | static QString docPath(const QString &protocol); | ||
▲ Show 20 Lines • Show All 91 Lines • Show Last 20 Lines |