Changeset View
Changeset View
Standalone View
Standalone View
src/services/kservicetypeprofile.h
Show All 32 Lines | |||||
33 | * KServiceTypeTrader uses KServiceTypeProfile to | 33 | * KServiceTypeTrader uses KServiceTypeProfile to | ||
34 | * get results sorted according to the user's preference. | 34 | * get results sorted according to the user's preference. | ||
35 | * | 35 | * | ||
36 | * @see KService | 36 | * @see KService | ||
37 | * @see KServiceType | 37 | * @see KServiceType | ||
38 | * @see KServiceTypeTrader | 38 | * @see KServiceTypeTrader | ||
39 | * @short Represents the user's preferences for services of a service type | 39 | * @short Represents the user's preferences for services of a service type | ||
40 | */ | 40 | */ | ||
41 | #if KSERVICE_ENABLE_DEPRECATED_SINCE(5, 65) | ||||
41 | namespace KServiceTypeProfile | 42 | namespace KServiceTypeProfile | ||
42 | { | 43 | { | ||
43 | /** | 44 | /** | ||
44 | * Write the complete profile for a given servicetype. | 45 | * Write the complete profile for a given servicetype. | ||
45 | * Do not use this for mimetypes. | 46 | * Do not use this for mimetypes. | ||
46 | * @param serviceType The name of the servicetype. | 47 | * @param serviceType The name of the servicetype. | ||
47 | * @param services Ordered list of services, from the preferred one to the least preferred one. | 48 | * @param services Ordered list of services, from the preferred one to the least preferred one. | ||
48 | * @param disabledServices List of services which are normally associated with this serviceType, | 49 | * @param disabledServices List of services which are normally associated with this serviceType, | ||
49 | * but which should be disabled, i.e. trader queries will not return them. | 50 | * but which should be disabled, i.e. trader queries will not return them. | ||
apol: @deprecated 5.65 | |||||
50 | */ | 51 | */ | ||
52 | KSERVICE_DEPRECATED_VERSION(5, 65, "Unused") | ||||
51 | KSERVICE_EXPORT void writeServiceTypeProfile(const QString &serviceType, | 53 | KSERVICE_EXPORT void writeServiceTypeProfile(const QString &serviceType, | ||
52 | const KService::List &services, | 54 | const KService::List &services, | ||
53 | const KService::List &disabledServices = KService::List()); | 55 | const KService::List &disabledServices = KService::List()); | ||
54 | 56 | | |||
55 | /** | 57 | /** | ||
56 | * Delete the complete profile for a given servicetype, reverting to the default | 58 | * Delete the complete profile for a given servicetype, reverting to the default | ||
57 | * preference order (the one specified by InitialPreference in the .desktop files). | 59 | * preference order (the one specified by InitialPreference in the .desktop files). | ||
58 | * | 60 | * | ||
59 | * Do not use this for mimetypes. | 61 | * Do not use this for mimetypes. | ||
60 | * @param serviceType The name of the servicetype. | 62 | * @param serviceType The name of the servicetype. | ||
61 | */ | 63 | */ | ||
64 | KSERVICE_DEPRECATED_VERSION(5, 65, "Unused") | ||||
62 | KSERVICE_EXPORT void deleteServiceTypeProfile(const QString &serviceType); | 65 | KSERVICE_EXPORT void deleteServiceTypeProfile(const QString &serviceType); | ||
63 | 66 | | |||
64 | /** | 67 | /** | ||
65 | * @internal, for KServiceTypeTrader | 68 | * @internal, for KServiceTypeTrader | ||
66 | */ | 69 | */ | ||
70 | KSERVICE_DEPRECATED_VERSION(5, 65, "Unused") | ||||
67 | KSERVICE_EXPORT bool hasProfile(const QString &serviceType); | 71 | KSERVICE_EXPORT bool hasProfile(const QString &serviceType); | ||
68 | 72 | | |||
69 | /** | 73 | /** | ||
70 | * Clear all cached information | 74 | * Clear all cached information | ||
71 | * @internal, for KServiceTypeFactory | 75 | * @internal, for KServiceTypeFactory | ||
72 | */ | 76 | */ | ||
73 | void clearCache(); | 77 | void clearCache(); | ||
74 | 78 | | |||
75 | } | 79 | } | ||
80 | #endif | ||||
76 | 81 | | |||
77 | #endif | 82 | #endif |
@deprecated 5.65