Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/mozIMozIntlHelper.idl
3 : */
4 :
5 : #ifndef __gen_mozIMozIntlHelper_h__
6 : #define __gen_mozIMozIntlHelper_h__
7 :
8 :
9 : #ifndef __gen_nsISupports_h__
10 : #include "nsISupports.h"
11 : #endif
12 :
13 : #include "js/Value.h"
14 :
15 : /* For IDL files that don't want to include root IDL files. */
16 : #ifndef NS_NO_VTABLE
17 : #define NS_NO_VTABLE
18 : #endif
19 :
20 : /* starting interface: mozIMozIntlHelper */
21 : #define MOZIMOZINTLHELPER_IID_STR "189eaa7d-b29a-43a9-b1fb-7658990df940"
22 :
23 : #define MOZIMOZINTLHELPER_IID \
24 : {0x189eaa7d, 0xb29a, 0x43a9, \
25 : { 0xb1, 0xfb, 0x76, 0x58, 0x99, 0x0d, 0xf9, 0x40 }}
26 :
27 0 : class NS_NO_VTABLE mozIMozIntlHelper : public nsISupports {
28 : public:
29 :
30 : NS_DECLARE_STATIC_IID_ACCESSOR(MOZIMOZINTLHELPER_IID)
31 :
32 : /* [implicit_jscontext] void addGetCalendarInfo (in jsval intlObject); */
33 : NS_IMETHOD AddGetCalendarInfo(JS::HandleValue intlObject, JSContext* cx) = 0;
34 :
35 : /* [implicit_jscontext] void addGetDisplayNames (in jsval intlObject); */
36 : NS_IMETHOD AddGetDisplayNames(JS::HandleValue intlObject, JSContext* cx) = 0;
37 :
38 : /* [implicit_jscontext] void addGetLocaleInfo (in jsval intlObject); */
39 : NS_IMETHOD AddGetLocaleInfo(JS::HandleValue intlObject, JSContext* cx) = 0;
40 :
41 : /* [implicit_jscontext] void addPluralRulesConstructor (in jsval intlObject); */
42 : NS_IMETHOD AddPluralRulesConstructor(JS::HandleValue intlObject, JSContext* cx) = 0;
43 :
44 : /* [implicit_jscontext] void addDateTimeFormatConstructor (in jsval intlObject); */
45 : NS_IMETHOD AddDateTimeFormatConstructor(JS::HandleValue intlObject, JSContext* cx) = 0;
46 :
47 : };
48 :
49 : NS_DEFINE_STATIC_IID_ACCESSOR(mozIMozIntlHelper, MOZIMOZINTLHELPER_IID)
50 :
51 : /* Use this macro when declaring classes that implement this interface. */
52 : #define NS_DECL_MOZIMOZINTLHELPER \
53 : NS_IMETHOD AddGetCalendarInfo(JS::HandleValue intlObject, JSContext* cx) override; \
54 : NS_IMETHOD AddGetDisplayNames(JS::HandleValue intlObject, JSContext* cx) override; \
55 : NS_IMETHOD AddGetLocaleInfo(JS::HandleValue intlObject, JSContext* cx) override; \
56 : NS_IMETHOD AddPluralRulesConstructor(JS::HandleValue intlObject, JSContext* cx) override; \
57 : NS_IMETHOD AddDateTimeFormatConstructor(JS::HandleValue intlObject, JSContext* cx) override;
58 :
59 : /* Use this macro when declaring the members of this interface when the
60 : class doesn't implement the interface. This is useful for forwarding. */
61 : #define NS_DECL_NON_VIRTUAL_MOZIMOZINTLHELPER \
62 : nsresult AddGetCalendarInfo(JS::HandleValue intlObject, JSContext* cx); \
63 : nsresult AddGetDisplayNames(JS::HandleValue intlObject, JSContext* cx); \
64 : nsresult AddGetLocaleInfo(JS::HandleValue intlObject, JSContext* cx); \
65 : nsresult AddPluralRulesConstructor(JS::HandleValue intlObject, JSContext* cx); \
66 : nsresult AddDateTimeFormatConstructor(JS::HandleValue intlObject, JSContext* cx);
67 :
68 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
69 : #define NS_FORWARD_MOZIMOZINTLHELPER(_to) \
70 : NS_IMETHOD AddGetCalendarInfo(JS::HandleValue intlObject, JSContext* cx) override { return _to AddGetCalendarInfo(intlObject, cx); } \
71 : NS_IMETHOD AddGetDisplayNames(JS::HandleValue intlObject, JSContext* cx) override { return _to AddGetDisplayNames(intlObject, cx); } \
72 : NS_IMETHOD AddGetLocaleInfo(JS::HandleValue intlObject, JSContext* cx) override { return _to AddGetLocaleInfo(intlObject, cx); } \
73 : NS_IMETHOD AddPluralRulesConstructor(JS::HandleValue intlObject, JSContext* cx) override { return _to AddPluralRulesConstructor(intlObject, cx); } \
74 : NS_IMETHOD AddDateTimeFormatConstructor(JS::HandleValue intlObject, JSContext* cx) override { return _to AddDateTimeFormatConstructor(intlObject, cx); }
75 :
76 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
77 : #define NS_FORWARD_SAFE_MOZIMOZINTLHELPER(_to) \
78 : NS_IMETHOD AddGetCalendarInfo(JS::HandleValue intlObject, JSContext* cx) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddGetCalendarInfo(intlObject, cx); } \
79 : NS_IMETHOD AddGetDisplayNames(JS::HandleValue intlObject, JSContext* cx) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddGetDisplayNames(intlObject, cx); } \
80 : NS_IMETHOD AddGetLocaleInfo(JS::HandleValue intlObject, JSContext* cx) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddGetLocaleInfo(intlObject, cx); } \
81 : NS_IMETHOD AddPluralRulesConstructor(JS::HandleValue intlObject, JSContext* cx) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddPluralRulesConstructor(intlObject, cx); } \
82 : NS_IMETHOD AddDateTimeFormatConstructor(JS::HandleValue intlObject, JSContext* cx) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddDateTimeFormatConstructor(intlObject, cx); }
83 :
84 : #if 0
85 : /* Use the code below as a template for the implementation class for this interface. */
86 :
87 : /* Header file */
88 : class _MYCLASS_ : public mozIMozIntlHelper
89 : {
90 : public:
91 : NS_DECL_ISUPPORTS
92 : NS_DECL_MOZIMOZINTLHELPER
93 :
94 : _MYCLASS_();
95 :
96 : private:
97 : ~_MYCLASS_();
98 :
99 : protected:
100 : /* additional members */
101 : };
102 :
103 : /* Implementation file */
104 : NS_IMPL_ISUPPORTS(_MYCLASS_, mozIMozIntlHelper)
105 :
106 : _MYCLASS_::_MYCLASS_()
107 : {
108 : /* member initializers and constructor code */
109 : }
110 :
111 : _MYCLASS_::~_MYCLASS_()
112 : {
113 : /* destructor code */
114 : }
115 :
116 : /* [implicit_jscontext] void addGetCalendarInfo (in jsval intlObject); */
117 : NS_IMETHODIMP _MYCLASS_::AddGetCalendarInfo(JS::HandleValue intlObject, JSContext* cx)
118 : {
119 : return NS_ERROR_NOT_IMPLEMENTED;
120 : }
121 :
122 : /* [implicit_jscontext] void addGetDisplayNames (in jsval intlObject); */
123 : NS_IMETHODIMP _MYCLASS_::AddGetDisplayNames(JS::HandleValue intlObject, JSContext* cx)
124 : {
125 : return NS_ERROR_NOT_IMPLEMENTED;
126 : }
127 :
128 : /* [implicit_jscontext] void addGetLocaleInfo (in jsval intlObject); */
129 : NS_IMETHODIMP _MYCLASS_::AddGetLocaleInfo(JS::HandleValue intlObject, JSContext* cx)
130 : {
131 : return NS_ERROR_NOT_IMPLEMENTED;
132 : }
133 :
134 : /* [implicit_jscontext] void addPluralRulesConstructor (in jsval intlObject); */
135 : NS_IMETHODIMP _MYCLASS_::AddPluralRulesConstructor(JS::HandleValue intlObject, JSContext* cx)
136 : {
137 : return NS_ERROR_NOT_IMPLEMENTED;
138 : }
139 :
140 : /* [implicit_jscontext] void addDateTimeFormatConstructor (in jsval intlObject); */
141 : NS_IMETHODIMP _MYCLASS_::AddDateTimeFormatConstructor(JS::HandleValue intlObject, JSContext* cx)
142 : {
143 : return NS_ERROR_NOT_IMPLEMENTED;
144 : }
145 :
146 : /* End of implementation class template. */
147 : #endif
148 :
149 :
150 : #endif /* __gen_mozIMozIntlHelper_h__ */
|