Changeset View
Changeset View
Standalone View
Standalone View
libs/widgetutils/KoResourcePaths.h
Show First 20 Lines • Show All 220 Lines • ▼ Show 20 Line(s) | 45 | public: | |||
---|---|---|---|---|---|
221 | 221 | | |||
222 | /** | 222 | /** | ||
223 | * Indicate that resource paths have been initialized and users | 223 | * Indicate that resource paths have been initialized and users | ||
224 | * of this class may expect to load resources from the proper paths. | 224 | * of this class may expect to load resources from the proper paths. | ||
225 | */ | 225 | */ | ||
226 | static void setReady(); | 226 | static void setReady(); | ||
227 | 227 | | |||
228 | /** | 228 | /** | ||
229 | * Assert that all resource paths have been initialized. | 229 | * Return if resource paths have been initialized and users | ||
230 | * of this class may expect to load resources from the proper paths. | ||||
230 | */ | 231 | */ | ||
231 | static void assertReady(); | 232 | static bool isReady(); | ||
232 | 233 | | |||
233 | private: | 234 | private: | ||
234 | 235 | | |||
235 | void addResourceTypeInternal(const QString &type, const QString &basetype, | 236 | void addResourceTypeInternal(const QString &type, const QString &basetype, | ||
236 | const QString &relativeName, bool priority); | 237 | const QString &relativeName, bool priority); | ||
237 | 238 | | |||
238 | void addResourceDirInternal(const QString &type, const QString &absdir, bool priority); | 239 | void addResourceDirInternal(const QString &type, const QString &absdir, bool priority); | ||
239 | 240 | | |||
Show All 23 Lines |