2 #ifndef VFS_NODE_TYPE_H
3 #define VFS_NODE_TYPE_H
11 static QString
getType(QString _path, QString _default=
"unknownType");
14 static bool registerType(QString type, QString handler,
bool json=
true);
The type registry for file extensions.
static bool registerType(QString type, QString handler, bool json=true)
Add a type to the registry.
static QMap< QString, QString > initTypes()
Initialize the type library.
static QMap< QString, bool > initJsons()
Initialize the jsons library.
static bool isJsonType(QString _type)
Check if a type is known to be json.
static QMap< QString, QString > typeMap
The extension:type map.
static QString getType(QString _path, QString _default="unknownType")
Fetch the type of a file, based on path/filename.ext.
static QMap< QString, bool > jsonMap
The extension:isjson map.
static bool unregisterType(QString type)
Remove a type from the registry.