Changeset View
Changeset View
Standalone View
Standalone View
src/services/kplugininfo.h
Show First 20 Lines • Show All 77 Lines • ▼ Show 20 Line(s) | 46 | public: | |||
---|---|---|---|---|---|
78 | * | 78 | * | ||
79 | * @param filename The filename of the .desktop file. | 79 | * @param filename The filename of the .desktop file. | ||
80 | * @param resource If filename is relative, you need to specify a resource type | 80 | * @param resource If filename is relative, you need to specify a resource type | ||
81 | * (e.g. "service", "apps"... KStandardDirs). Otherwise, | 81 | * (e.g. "service", "apps"... KStandardDirs). Otherwise, | ||
82 | * resource isn't used. | 82 | * resource isn't used. | ||
83 | */ | 83 | */ | ||
84 | explicit KPluginInfo(const QString &filename /*, QStandardPaths::StandardLocation resource = ...? GenericDataLocation + services ? Is this used? */); | 84 | explicit KPluginInfo(const QString &filename /*, QStandardPaths::StandardLocation resource = ...? GenericDataLocation + services ? Is this used? */); | ||
85 | 85 | | |||
86 | #if KSERVICE_ENABLE_DEPRECATED_SINCE(5, 0) | 86 | // Not using KSERVICE_ENABLE_DEPRECATED_SINCE because kded still need this for compat reasons | ||
87 | #if KSERVICE_BUILD_DEPRECATED_SINCE(5, 0) | ||||
87 | /** | 88 | /** | ||
88 | * Read plugin info from a KService object. | 89 | * Read plugin info from a KService object. | ||
89 | * | 90 | * | ||
90 | * The .desktop file should look like this: | 91 | * The .desktop file should look like this: | ||
91 | * \verbatim | 92 | * \verbatim | ||
92 | [Desktop Entry] | 93 | [Desktop Entry] | ||
93 | Icon=mypluginicon | 94 | Icon=mypluginicon | ||
94 | Type=Service | 95 | Type=Service | ||
▲ Show 20 Lines • Show All 83 Lines • ▼ Show 20 Line(s) | 117 | #endif | |||
178 | * Creates an invalid plugin. | 179 | * Creates an invalid plugin. | ||
179 | * | 180 | * | ||
180 | * \see isValid | 181 | * \see isValid | ||
181 | */ | 182 | */ | ||
182 | KPluginInfo(); | 183 | KPluginInfo(); | ||
183 | 184 | | |||
184 | ~KPluginInfo(); | 185 | ~KPluginInfo(); | ||
185 | 186 | | |||
186 | #if KSERVICE_ENABLE_DEPRECATED_SINCE(5, 0) | 187 | // Not using KSERVICE_ENABLE_DEPRECATED_SINCE because kded still need this for compat reasons | ||
188 | #if KSERVICE_BUILD_DEPRECATED_SINCE(5, 0) | ||||
187 | /** | 189 | /** | ||
188 | * @return A list of KPluginInfo objects constructed from a list of | 190 | * @return A list of KPluginInfo objects constructed from a list of | ||
189 | * KService objects. If you get a trader offer of the plugins you want | 191 | * KService objects. If you get a trader offer of the plugins you want | ||
190 | * to use you can just pass them to this function. | 192 | * to use you can just pass them to this function. | ||
191 | * | 193 | * | ||
192 | * @param services The list of services to construct the list of KPluginInfo objects from | 194 | * @param services The list of services to construct the list of KPluginInfo objects from | ||
193 | * @param config The config group where to save/load whether the plugin is enabled/disabled | 195 | * @param config The config group where to save/load whether the plugin is enabled/disabled | ||
194 | * @deprecated since 5.0, use (Q|K)PluginLoader instead and build the | 196 | * @deprecated since 5.0, use (Q|K)PluginLoader instead and build the | ||
▲ Show 20 Lines • Show All 300 Lines • Show Last 20 Lines |