Changeset View
Changeset View
Standalone View
Standalone View
src/core/slavebase.h
Show First 20 Lines • Show All 332 Lines • ▼ Show 20 Line(s) | 63 | public: | |||
---|---|---|---|---|---|
333 | */ | 333 | */ | ||
334 | MetaData allMetaData() const; | 334 | MetaData allMetaData() const; | ||
335 | 335 | | |||
336 | /** | 336 | /** | ||
337 | * Returns a map to query config/meta-data information from. | 337 | * Returns a map to query config/meta-data information from. | ||
338 | * | 338 | * | ||
339 | * The application provides the slave with all configuration information | 339 | * The application provides the slave with all configuration information | ||
340 | * relevant for the current protocol and host. | 340 | * relevant for the current protocol and host. | ||
341 | * | ||||
342 | * Use configValue() as shorcut. | ||||
341 | * @since 5.64 | 343 | * @since 5.64 | ||
342 | */ | 344 | */ | ||
343 | QMap<QString, QVariant> mapConfig() const; | 345 | QMap<QString, QVariant> mapConfig() const; | ||
344 | 346 | | |||
345 | /** | 347 | /** | ||
348 | * Returns a bool from the config/meta-data information. | ||||
349 | * @since 5.64 | ||||
350 | */ | ||||
351 | bool configValue(QString key, bool defaultValue) const; | ||||
352 | | ||||
353 | /** | ||||
354 | * Returns an int from the config/meta-data information. | ||||
355 | * @since 5.64 | ||||
356 | */ | ||||
357 | int configValue(QString key, int defaultValue) const; | ||||
358 | | ||||
359 | /** | ||||
360 | * Returns a QString from the config/meta-data information. | ||||
361 | * @since 5.64 | ||||
362 | */ | ||||
363 | QString configValue(QString key, const QString &defaultValue=QString()) const; | ||||
364 | | ||||
365 | /** | ||||
346 | * Returns a configuration object to query config/meta-data information | 366 | * Returns a configuration object to query config/meta-data information | ||
347 | * from. | 367 | * from. | ||
348 | * | 368 | * | ||
349 | * The application provides the slave with all configuration information | 369 | * The application provides the slave with all configuration information | ||
350 | * relevant for the current protocol and host. | 370 | * relevant for the current protocol and host. | ||
351 | * | 371 | * | ||
352 | * TODO KF6: remove | 372 | * TODO KF6: remove, perhaps rename mapConfig() to config() | ||
353 | * @deprecated since 5.64 use mapConfig instead | 373 | * @deprecated since 5.64 use mapConfig instead | ||
354 | */ | 374 | */ | ||
355 | KIOCORE_DEPRECATED KConfigGroup *config(); | 375 | KIOCORE_DEPRECATED KConfigGroup *config(); | ||
356 | 376 | | |||
357 | /** | 377 | /** | ||
358 | * Returns an object that can translate remote filenames into proper | 378 | * Returns an object that can translate remote filenames into proper | ||
359 | * Unicode forms. This encoding can be set by the user. | 379 | * Unicode forms. This encoding can be set by the user. | ||
360 | */ | 380 | */ | ||
▲ Show 20 Lines • Show All 659 Lines • Show Last 20 Lines |