-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dictionary.h
58 lines (46 loc) · 2.15 KB
/
Dictionary.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#ifndef NODE_VOIKKO_DICTIONARY_H
#define NODE_VOIKKO_DICTIONARY_H
#include <nan.h>
#include <v8.h>
namespace VoikkoNan {
using Nan::FunctionCallbackInfo;
using Nan::ObjectWrap;
using Nan::PropertyCallbackInfo;
using v8::Boolean;
using v8::Function;
using v8::Local;
using v8::Object;
using v8::String;
using v8::Value;
class Dictionary : public ObjectWrap
{
public:
static void Init(Local<Object> exports);
private:
Nan::Persistent<String> mLanguage;
Nan::Persistent<String> mVariant;
Nan::Persistent<String> mScript;
Nan::Persistent<String> mDescription;
Nan::Persistent<String> mPath;
Nan::Persistent<Boolean> mIsSpellChecker;
Nan::Persistent<Boolean> mIsHyphenator;
Nan::Persistent<Boolean> mIsGrammarChecker;
static Nan::Persistent<Function> constructor;
Dictionary(const Local<String> language, const Local<String> variant,
const Local<String> script, const Local<String> description,
const Local<String> path, const Local<Boolean> speller,
const Local<Boolean> hyphenator, const Local<Boolean> gcor);
~Dictionary();
static void New(const FunctionCallbackInfo<Value> &info);
static void FindDictionaries(const FunctionCallbackInfo<Value> &info);
static void Language(Local<String> property, const PropertyCallbackInfo<Value> &info);
static void Variant(Local<String> property, const PropertyCallbackInfo<Value> &info);
static void Script(Local<String> property, const PropertyCallbackInfo<Value> &info);
static void Description(Local<String> property, const PropertyCallbackInfo<Value> &info);
static void Path(Local<String> property, const PropertyCallbackInfo<Value> &info);
static void IsSpellChecker(Local<String> property, const PropertyCallbackInfo<Value> &info);
static void IsHyphenator(Local<String> property, const PropertyCallbackInfo<Value> &info);
static void IsGrammarChecker(Local<String> property, const PropertyCallbackInfo<Value> &info);
};
};
#endif //NODE_VOIKKO_DICTIONARY_H