2 // { dg-lto-do assemble }
4 template<typename Enum>
9 inline QFlags(Enum f) : i(f) {}
17 IncludeGlobals = 0x01,
19 FullConfig = IncludeGlobals|CascadeConfig
21 typedef QFlags<OpenFlag> OpenFlags;
25 class KSharedConfig : public KConfig
28 typedef KSharedPtr<KSharedConfig> Ptr;
29 static KSharedConfig::Ptr openConfig(const QString& fileName = QString(),
30 OpenFlags mode = FullConfig,
31 const char *resourceType = "config");
32 static KSharedConfig::Ptr openConfig(const KComponentData &componentData,
33 const QString &fileName = QString(),
34 OpenFlags mode = FullConfig,
35 const char *resourceType = "config");
37 typedef KSharedConfig::Ptr KSharedConfigPtr;
40 KComponentData &mainComponent();
42 KSharedConfigPtr KSharedConfig::openConfig(const QString& fileName,
46 return openConfig(KGlobal::mainComponent(), fileName, flags, resType);
48 KSharedConfigPtr KSharedConfig::openConfig(const KComponentData &componentData,
49 const QString& fileName,
53 return KSharedConfigPtr();