1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/embedding/components/windowwatcher/public/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 NS_SCRIPTABLE nsIDialogParamBlock : public nsISupports {
28 : public:
29 :
30 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDIALOGPARAMBLOCK_IID)
31 :
32 : /* PRInt32 GetInt (in PRInt32 inIndex); */
33 : NS_SCRIPTABLE NS_IMETHOD GetInt(PRInt32 inIndex, PRInt32 *_retval NS_OUTPARAM) = 0;
34 :
35 : /* void SetInt (in PRInt32 inIndex, in PRInt32 inInt); */
36 : NS_SCRIPTABLE NS_IMETHOD SetInt(PRInt32 inIndex, PRInt32 inInt) = 0;
37 :
38 : /* void SetNumberStrings (in PRInt32 inNumStrings); */
39 : NS_SCRIPTABLE NS_IMETHOD SetNumberStrings(PRInt32 inNumStrings) = 0;
40 :
41 : /* wstring GetString (in PRInt32 inIndex); */
42 : NS_SCRIPTABLE NS_IMETHOD GetString(PRInt32 inIndex, PRUnichar * *_retval NS_OUTPARAM) = 0;
43 :
44 : /* void SetString (in PRInt32 inIndex, in wstring inString); */
45 : NS_SCRIPTABLE NS_IMETHOD SetString(PRInt32 inIndex, const PRUnichar * inString) = 0;
46 :
47 : /* attribute nsIMutableArray objects; */
48 : NS_SCRIPTABLE NS_IMETHOD GetObjects(nsIMutableArray * *aObjects) = 0;
49 : NS_SCRIPTABLE 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_SCRIPTABLE NS_IMETHOD GetInt(PRInt32 inIndex, PRInt32 *_retval NS_OUTPARAM); \
58 : NS_SCRIPTABLE NS_IMETHOD SetInt(PRInt32 inIndex, PRInt32 inInt); \
59 : NS_SCRIPTABLE NS_IMETHOD SetNumberStrings(PRInt32 inNumStrings); \
60 : NS_SCRIPTABLE NS_IMETHOD GetString(PRInt32 inIndex, PRUnichar * *_retval NS_OUTPARAM); \
61 : NS_SCRIPTABLE NS_IMETHOD SetString(PRInt32 inIndex, const PRUnichar * inString); \
62 : NS_SCRIPTABLE NS_IMETHOD GetObjects(nsIMutableArray * *aObjects); \
63 : NS_SCRIPTABLE NS_IMETHOD SetObjects(nsIMutableArray *aObjects);
64 :
65 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
66 : #define NS_FORWARD_NSIDIALOGPARAMBLOCK(_to) \
67 : NS_SCRIPTABLE NS_IMETHOD GetInt(PRInt32 inIndex, PRInt32 *_retval NS_OUTPARAM) { return _to GetInt(inIndex, _retval); } \
68 : NS_SCRIPTABLE NS_IMETHOD SetInt(PRInt32 inIndex, PRInt32 inInt) { return _to SetInt(inIndex, inInt); } \
69 : NS_SCRIPTABLE NS_IMETHOD SetNumberStrings(PRInt32 inNumStrings) { return _to SetNumberStrings(inNumStrings); } \
70 : NS_SCRIPTABLE NS_IMETHOD GetString(PRInt32 inIndex, PRUnichar * *_retval NS_OUTPARAM) { return _to GetString(inIndex, _retval); } \
71 : NS_SCRIPTABLE NS_IMETHOD SetString(PRInt32 inIndex, const PRUnichar * inString) { return _to SetString(inIndex, inString); } \
72 : NS_SCRIPTABLE NS_IMETHOD GetObjects(nsIMutableArray * *aObjects) { return _to GetObjects(aObjects); } \
73 : NS_SCRIPTABLE NS_IMETHOD SetObjects(nsIMutableArray *aObjects) { return _to SetObjects(aObjects); }
74 :
75 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
76 : #define NS_FORWARD_SAFE_NSIDIALOGPARAMBLOCK(_to) \
77 : NS_SCRIPTABLE NS_IMETHOD GetInt(PRInt32 inIndex, PRInt32 *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetInt(inIndex, _retval); } \
78 : NS_SCRIPTABLE NS_IMETHOD SetInt(PRInt32 inIndex, PRInt32 inInt) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetInt(inIndex, inInt); } \
79 : NS_SCRIPTABLE NS_IMETHOD SetNumberStrings(PRInt32 inNumStrings) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetNumberStrings(inNumStrings); } \
80 : NS_SCRIPTABLE NS_IMETHOD GetString(PRInt32 inIndex, PRUnichar * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetString(inIndex, _retval); } \
81 : NS_SCRIPTABLE NS_IMETHOD SetString(PRInt32 inIndex, const PRUnichar * inString) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetString(inIndex, inString); } \
82 : NS_SCRIPTABLE NS_IMETHOD GetObjects(nsIMutableArray * *aObjects) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetObjects(aObjects); } \
83 : NS_SCRIPTABLE NS_IMETHOD SetObjects(nsIMutableArray *aObjects) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetObjects(aObjects); }
84 :
85 : #if 0
86 : /* Use the code below as a template for the implementation class for this interface. */
87 :
88 : /* Header file */
89 : class nsDialogParamBlock : public nsIDialogParamBlock
90 : {
91 : public:
92 : NS_DECL_ISUPPORTS
93 : NS_DECL_NSIDIALOGPARAMBLOCK
94 :
95 : nsDialogParamBlock();
96 :
97 : private:
98 : ~nsDialogParamBlock();
99 :
100 : protected:
101 : /* additional members */
102 : };
103 :
104 : /* Implementation file */
105 : NS_IMPL_ISUPPORTS1(nsDialogParamBlock, nsIDialogParamBlock)
106 :
107 : nsDialogParamBlock::nsDialogParamBlock()
108 : {
109 : /* member initializers and constructor code */
110 : }
111 :
112 : nsDialogParamBlock::~nsDialogParamBlock()
113 : {
114 : /* destructor code */
115 : }
116 :
117 : /* PRInt32 GetInt (in PRInt32 inIndex); */
118 : NS_IMETHODIMP nsDialogParamBlock::GetInt(PRInt32 inIndex, PRInt32 *_retval NS_OUTPARAM)
119 : {
120 : return NS_ERROR_NOT_IMPLEMENTED;
121 : }
122 :
123 : /* void SetInt (in PRInt32 inIndex, in PRInt32 inInt); */
124 : NS_IMETHODIMP nsDialogParamBlock::SetInt(PRInt32 inIndex, PRInt32 inInt)
125 : {
126 : return NS_ERROR_NOT_IMPLEMENTED;
127 : }
128 :
129 : /* void SetNumberStrings (in PRInt32 inNumStrings); */
130 : NS_IMETHODIMP nsDialogParamBlock::SetNumberStrings(PRInt32 inNumStrings)
131 : {
132 : return NS_ERROR_NOT_IMPLEMENTED;
133 : }
134 :
135 : /* wstring GetString (in PRInt32 inIndex); */
136 : NS_IMETHODIMP nsDialogParamBlock::GetString(PRInt32 inIndex, PRUnichar * *_retval NS_OUTPARAM)
137 : {
138 : return NS_ERROR_NOT_IMPLEMENTED;
139 : }
140 :
141 : /* void SetString (in PRInt32 inIndex, in wstring inString); */
142 : NS_IMETHODIMP nsDialogParamBlock::SetString(PRInt32 inIndex, const PRUnichar * inString)
143 : {
144 : return NS_ERROR_NOT_IMPLEMENTED;
145 : }
146 :
147 : /* attribute nsIMutableArray objects; */
148 : NS_IMETHODIMP nsDialogParamBlock::GetObjects(nsIMutableArray * *aObjects)
149 : {
150 : return NS_ERROR_NOT_IMPLEMENTED;
151 : }
152 : NS_IMETHODIMP nsDialogParamBlock::SetObjects(nsIMutableArray *aObjects)
153 : {
154 : return NS_ERROR_NOT_IMPLEMENTED;
155 : }
156 :
157 : /* End of implementation class template. */
158 : #endif
159 :
160 : #define NS_DIALOGPARAMBLOCK_CONTRACTID "@mozilla.org/embedcomp/dialogparam;1"
161 :
162 : #endif /* __gen_nsIDialogParamBlock_h__ */
|