2018-07-27 13:42:21 +08:00
|
|
|
#ifndef EXTENSIONS_H
|
|
|
|
#define EXTENSIONS_H
|
|
|
|
|
2018-08-23 00:24:55 +08:00
|
|
|
#include "qtcommon.h"
|
2018-07-27 13:42:21 +08:00
|
|
|
#include <map>
|
|
|
|
|
2018-07-29 03:41:21 +08:00
|
|
|
std::map<int, QString> LoadExtensions();
|
2018-07-27 13:42:21 +08:00
|
|
|
std::wstring DispatchSentenceToExtensions(std::wstring sentence, std::unordered_map<std::string, int> miscInfo);
|
2018-07-30 05:36:45 +08:00
|
|
|
struct InfoForExtension
|
|
|
|
{
|
2018-08-22 10:43:30 +08:00
|
|
|
~InfoForExtension() { if (nextProperty) delete nextProperty; };
|
|
|
|
const char* propertyName = "";
|
|
|
|
int propertyValue = 0;
|
|
|
|
InfoForExtension* nextProperty = nullptr;
|
2018-07-30 05:36:45 +08:00
|
|
|
};
|
2018-08-22 10:43:30 +08:00
|
|
|
typedef wchar_t*(*ExtensionFunction)(const wchar_t*, const InfoForExtension*);
|
2018-07-27 13:42:21 +08:00
|
|
|
|
|
|
|
#endif // EXTENSIONS_H
|