UNPKG

3.2 kBtext/x-cView Raw
1/*
2 Source File : InfoDictionaryDriver.h
3
4
5 Copyright 2013 Gal Kahana HummusJS
6
7 Licensed under the Apache License, Version 2.0 (the "License");
8 you may not use this file except in compliance with the License.
9 You may obtain a copy of the License at
10
11 http://www.apache.org/licenses/LICENSE-2.0
12
13 Unless required by applicable law or agreed to in writing, software
14 distributed under the License is distributed on an "AS IS" BASIS,
15 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 See the License for the specific language governing permissions and
17 limitations under the License.
18
19 */
20
21#pragma once
22#include "nodes.h"
23
24class InfoDictionary;
25class ConstructorsHolder;
26
27class InfoDictionaryDriver : public node::ObjectWrap
28{
29public:
30
31 DEC_SUBORDINATE_INIT(Init)
32
33 InfoDictionary* InfoDictionaryInstance;
34
35 ConstructorsHolder* holder;
36
37private:
38 InfoDictionaryDriver();
39
40 static METHOD_RETURN_TYPE New(const ARGS_TYPE& args);
41
42 static METHOD_RETURN_TYPE GetTitle(v8::Local<v8::String> property, const PROPERTY_TYPE &info);
43 static void SetTitle(v8::Local<v8::String> property,v8::Local<v8::Value> value,const PROPERTY_SETTER_TYPE &info);
44 static METHOD_RETURN_TYPE GetAuthor(v8::Local<v8::String> property, const PROPERTY_TYPE &info);
45 static void SetAuthor(v8::Local<v8::String> property, v8::Local<v8::Value> value, const PROPERTY_SETTER_TYPE &info);
46 static METHOD_RETURN_TYPE GetSubject(v8::Local<v8::String> property, const PROPERTY_TYPE &info);
47 static void SetSubject(v8::Local<v8::String> property, v8::Local<v8::Value> value, const PROPERTY_SETTER_TYPE &info);
48 static METHOD_RETURN_TYPE GetKeywords(v8::Local<v8::String> property, const PROPERTY_TYPE &info);
49 static void SetKeywords(v8::Local<v8::String> property, v8::Local<v8::Value> value, const PROPERTY_SETTER_TYPE &info);
50 static METHOD_RETURN_TYPE GetCreator(v8::Local<v8::String> property, const PROPERTY_TYPE &info);
51 static void SetCreator(v8::Local<v8::String> property, v8::Local<v8::Value> value, const PROPERTY_SETTER_TYPE &info);
52 static METHOD_RETURN_TYPE GetProducer(v8::Local<v8::String> property, const PROPERTY_TYPE &info);
53 static void SetProducer(v8::Local<v8::String> property, v8::Local<v8::Value> value, const PROPERTY_SETTER_TYPE &info);
54 static METHOD_RETURN_TYPE GetTrapped(v8::Local<v8::String> property, const PROPERTY_TYPE &info);
55 static void SetTrapped(v8::Local<v8::String> property, v8::Local<v8::Value> value, const PROPERTY_SETTER_TYPE &info);
56
57
58 // for dates i'm giving only setters. it's too bording to provide readers. you are the ones setting it for @#$@# sake.
59 static METHOD_RETURN_TYPE SetCreationDate(const ARGS_TYPE& args);
60 static METHOD_RETURN_TYPE SetModDate(const ARGS_TYPE& args);
61
62 static METHOD_RETURN_TYPE AddAdditionalInfoEntry(const ARGS_TYPE& args);
63 static METHOD_RETURN_TYPE RemoveAdditionalInfoEntry(const ARGS_TYPE& args);
64 static METHOD_RETURN_TYPE ClearAdditionalInfoEntries(const ARGS_TYPE& args);
65 static METHOD_RETURN_TYPE GetAdditionalInfoEntry(const ARGS_TYPE& args);
66 static METHOD_RETURN_TYPE GetAdditionalInfoEntries(const ARGS_TYPE& args);
67};
\No newline at end of file