#ifndef _LC_CATEGORY_H_ #define _LC_CATEGORY_H_ #include "lc_array.h" struct lcLibraryCategory { QString Name; QByteArray Keywords; }; extern lcArray gCategories; void lcResetDefaultCategories(); void lcLoadDefaultCategories(bool BuiltInLibrary = false); void lcSaveDefaultCategories(); void lcResetCategories(lcArray& Categories, bool BuiltInLibrary = false); bool lcLoadCategories(const QString& FileName, lcArray& Categories); bool lcLoadCategories(const QByteArray& Buffer, lcArray& Categories); bool lcSaveCategories(const QString& FileName, const lcArray& Categories); bool lcSaveCategories(QTextStream& Stream, const lcArray& Categories); bool lcMatchCategory(const char* PieceName, const char* Expression); #endif // _LC_CATEGORY_H_