2018-07-26 22:42:21 -07:00
|
|
|
#ifndef EXTENSIONS_H
|
|
|
|
#define EXTENSIONS_H
|
|
|
|
|
2018-08-22 12:24:55 -04:00
|
|
|
#include "qtcommon.h"
|
2018-07-26 22:42:21 -07:00
|
|
|
#include <map>
|
|
|
|
|
2018-07-28 12:41:21 -07:00
|
|
|
std::map<int, QString> LoadExtensions();
|
2018-09-20 22:32:47 -04:00
|
|
|
bool DispatchSentenceToExtensions(std::wstring& sentence, std::unordered_map<std::string, int64_t> miscInfo);
|
2018-07-29 14:36:45 -07:00
|
|
|
struct InfoForExtension
|
|
|
|
{
|
2018-08-21 22:43:30 -04:00
|
|
|
~InfoForExtension() { if (nextProperty) delete nextProperty; };
|
|
|
|
const char* propertyName = "";
|
2018-09-20 22:32:47 -04:00
|
|
|
int64_t propertyValue = 0;
|
2018-08-21 22:43:30 -04:00
|
|
|
InfoForExtension* nextProperty = nullptr;
|
2018-07-29 14:36:45 -07:00
|
|
|
};
|
2018-08-21 22:43:30 -04:00
|
|
|
typedef wchar_t*(*ExtensionFunction)(const wchar_t*, const InfoForExtension*);
|
2018-07-26 22:42:21 -07:00
|
|
|
|
|
|
|
#endif // EXTENSIONS_H
|