Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIDialogParamBlock.idl
3 : */
4 :
5 : #ifndef __gen_nsIDialogParamBlock_h__
6 : #define __gen_nsIDialogParamBlock_h__
7 :
8 :
9 : #ifndef __gen_nsISupports_h__
10 : #include "nsISupports.h"
11 : #endif
12 :
13 : /* For IDL files that don't want to include root IDL files. */
14 : #ifndef NS_NO_VTABLE
15 : #define NS_NO_VTABLE
16 : #endif
17 : class nsIMutableArray; /* forward declaration */
18 :
19 :
20 : /* starting interface: nsIDialogParamBlock */
21 : #define NS_IDIALOGPARAMBLOCK_IID_STR "f76c0901-437a-11d3-b7a0-e35db351b4bc"
22 :
23 : #define NS_IDIALOGPARAMBLOCK_IID \
24 : {0xf76c0901, 0x437a, 0x11d3, \
25 : { 0xb7, 0xa0, 0xe3, 0x5d, 0xb3, 0x51, 0xb4, 0xbc }}
26 :
27 0 : class NS_NO_VTABLE nsIDialogParamBlock : public nsISupports {
28 : public:
29 :
30 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDIALOGPARAMBLOCK_IID)
31 :
32 : /* int32_t GetInt (in int32_t inIndex); */
33 : NS_IMETHOD GetInt(int32_t inIndex, int32_t *_retval) = 0;
34 :
35 : /* void SetInt (in int32_t inIndex, in int32_t inInt); */
36 : NS_IMETHOD SetInt(int32_t inIndex, int32_t inInt) = 0;
37 :
38 : /* void SetNumberStrings (in int32_t inNumStrings); */
39 : NS_IMETHOD SetNumberStrings(int32_t inNumStrings) = 0;
40 :
41 : /* wstring GetString (in int32_t inIndex); */
42 : NS_IMETHOD GetString(int32_t inIndex, char16_t * *_retval) = 0;
43 :
44 : /* void SetString (in int32_t inIndex, in wstring inString); */
45 : NS_IMETHOD SetString(int32_t inIndex, const char16_t * inString) = 0;
46 :
47 : /* attribute nsIMutableArray objects; */
48 : NS_IMETHOD GetObjects(nsIMutableArray * *aObjects) = 0;
49 : NS_IMETHOD SetObjects(nsIMutableArray *aObjects) = 0;
50 :
51 : };
52 :
53 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIDialogParamBlock, NS_IDIALOGPARAMBLOCK_IID)
54 :
55 : /* Use this macro when declaring classes that implement this interface. */
56 : #define NS_DECL_NSIDIALOGPARAMBLOCK \
57 : NS_IMETHOD GetInt(int32_t inIndex, int32_t *_retval) override; \
58 : NS_IMETHOD SetInt(int32_t inIndex, int32_t inInt) override; \
59 : NS_IMETHOD SetNumberStrings(int32_t inNumStrings) override; \
60 : NS_IMETHOD GetString(int32_t inIndex, char16_t * *_retval) override; \
61 : NS_IMETHOD SetString(int32_t inIndex, const char16_t * inString) override; \
62 : NS_IMETHOD GetObjects(nsIMutableArray * *aObjects) override; \
63 : NS_IMETHOD SetObjects(nsIMutableArray *aObjects) override;
64 :
65 : /* Use this macro when declaring the members of this interface when the
66 : class doesn't implement the interface. This is useful for forwarding. */
67 : #define NS_DECL_NON_VIRTUAL_NSIDIALOGPARAMBLOCK \
68 : nsresult GetInt(int32_t inIndex, int32_t *_retval); \
69 : nsresult SetInt(int32_t inIndex, int32_t inInt); \
70 : nsresult SetNumberStrings(int32_t inNumStrings); \
71 : nsresult GetString(int32_t inIndex, char16_t * *_retval); \
72 : nsresult SetString(int32_t inIndex, const char16_t * inString); \
73 : nsresult GetObjects(nsIMutableArray * *aObjects); \
74 : nsresult SetObjects(nsIMutableArray *aObjects);
75 :
76 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
77 : #define NS_FORWARD_NSIDIALOGPARAMBLOCK(_to) \
78 : NS_IMETHOD GetInt(int32_t inIndex, int32_t *_retval) override { return _to GetInt(inIndex, _retval); } \
79 : NS_IMETHOD SetInt(int32_t inIndex, int32_t inInt) override { return _to SetInt(inIndex, inInt); } \
80 : NS_IMETHOD SetNumberStrings(int32_t inNumStrings) override { return _to SetNumberStrings(inNumStrings); } \
81 : NS_IMETHOD GetString(int32_t inIndex, char16_t * *_retval) override { return _to GetString(inIndex, _retval); } \
82 : NS_IMETHOD SetString(int32_t inIndex, const char16_t * inString) override { return _to SetString(inIndex, inString); } \
83 : NS_IMETHOD GetObjects(nsIMutableArray * *aObjects) override { return _to GetObjects(aObjects); } \
84 : NS_IMETHOD SetObjects(nsIMutableArray *aObjects) override { return _to SetObjects(aObjects); }
85 :
86 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
87 : #define NS_FORWARD_SAFE_NSIDIALOGPARAMBLOCK(_to) \
88 : NS_IMETHOD GetInt(int32_t inIndex, int32_t *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetInt(inIndex, _retval); } \
89 : NS_IMETHOD SetInt(int32_t inIndex, int32_t inInt) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetInt(inIndex, inInt); } \
90 : NS_IMETHOD SetNumberStrings(int32_t inNumStrings) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetNumberStrings(inNumStrings); } \
91 : NS_IMETHOD GetString(int32_t inIndex, char16_t * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetString(inIndex, _retval); } \
92 : NS_IMETHOD SetString(int32_t inIndex, const char16_t * inString) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetString(inIndex, inString); } \
93 : NS_IMETHOD GetObjects(nsIMutableArray * *aObjects) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetObjects(aObjects); } \
94 : NS_IMETHOD SetObjects(nsIMutableArray *aObjects) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetObjects(aObjects); }
95 :
96 : #if 0
97 : /* Use the code below as a template for the implementation class for this interface. */
98 :
99 : /* Header file */
100 : class nsDialogParamBlock : public nsIDialogParamBlock
101 : {
102 : public:
103 : NS_DECL_ISUPPORTS
104 : NS_DECL_NSIDIALOGPARAMBLOCK
105 :
106 : nsDialogParamBlock();
107 :
108 : private:
109 : ~nsDialogParamBlock();
110 :
111 : protected:
112 : /* additional members */
113 : };
114 :
115 : /* Implementation file */
116 : NS_IMPL_ISUPPORTS(nsDialogParamBlock, nsIDialogParamBlock)
117 :
118 : nsDialogParamBlock::nsDialogParamBlock()
119 : {
120 : /* member initializers and constructor code */
121 : }
122 :
123 : nsDialogParamBlock::~nsDialogParamBlock()
124 : {
125 : /* destructor code */
126 : }
127 :
128 : /* int32_t GetInt (in int32_t inIndex); */
129 : NS_IMETHODIMP nsDialogParamBlock::GetInt(int32_t inIndex, int32_t *_retval)
130 : {
131 : return NS_ERROR_NOT_IMPLEMENTED;
132 : }
133 :
134 : /* void SetInt (in int32_t inIndex, in int32_t inInt); */
135 : NS_IMETHODIMP nsDialogParamBlock::SetInt(int32_t inIndex, int32_t inInt)
136 : {
137 : return NS_ERROR_NOT_IMPLEMENTED;
138 : }
139 :
140 : /* void SetNumberStrings (in int32_t inNumStrings); */
141 : NS_IMETHODIMP nsDialogParamBlock::SetNumberStrings(int32_t inNumStrings)
142 : {
143 : return NS_ERROR_NOT_IMPLEMENTED;
144 : }
145 :
146 : /* wstring GetString (in int32_t inIndex); */
147 : NS_IMETHODIMP nsDialogParamBlock::GetString(int32_t inIndex, char16_t * *_retval)
148 : {
149 : return NS_ERROR_NOT_IMPLEMENTED;
150 : }
151 :
152 : /* void SetString (in int32_t inIndex, in wstring inString); */
153 : NS_IMETHODIMP nsDialogParamBlock::SetString(int32_t inIndex, const char16_t * inString)
154 : {
155 : return NS_ERROR_NOT_IMPLEMENTED;
156 : }
157 :
158 : /* attribute nsIMutableArray objects; */
159 : NS_IMETHODIMP nsDialogParamBlock::GetObjects(nsIMutableArray * *aObjects)
160 : {
161 : return NS_ERROR_NOT_IMPLEMENTED;
162 : }
163 : NS_IMETHODIMP nsDialogParamBlock::SetObjects(nsIMutableArray *aObjects)
164 : {
165 : return NS_ERROR_NOT_IMPLEMENTED;
166 : }
167 :
168 : /* End of implementation class template. */
169 : #endif
170 :
171 : #define NS_DIALOGPARAMBLOCK_CONTRACTID "@mozilla.org/embedcomp/dialogparam;1"
172 :
173 : #endif /* __gen_nsIDialogParamBlock_h__ */
|