1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/embedding/base/nsIDialogCreator.idl
3 : */
4 :
5 : #ifndef __gen_nsIDialogCreator_h__
6 : #define __gen_nsIDialogCreator_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 nsIDOMElement; /* forward declaration */
18 :
19 : class nsIDialogParamBlock; /* forward declaration */
20 :
21 :
22 : /* starting interface: nsIDialogCreator */
23 : #define NS_IDIALOGCREATOR_IID_STR "17c9e659-2a9a-4a58-8a1c-d76bb58339c0"
24 :
25 : #define NS_IDIALOGCREATOR_IID \
26 : {0x17c9e659, 0x2a9a, 0x4a58, \
27 : { 0x8a, 0x1c, 0xd7, 0x6b, 0xb5, 0x83, 0x39, 0xc0 }}
28 :
29 0 : class NS_NO_VTABLE NS_SCRIPTABLE nsIDialogCreator : public nsISupports {
30 : public:
31 :
32 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDIALOGCREATOR_IID)
33 :
34 : enum {
35 : UNKNOWN_DIALOG = 0U,
36 : GENERIC_DIALOG = 1U,
37 : SELECT_DIALOG = 2U
38 : };
39 :
40 : /* void openDialog (in unsigned long aType, in ACString aName, in ACString aFeatures, in nsIDialogParamBlock aArguments, [optional] in nsIDOMElement aFrameElement); */
41 : NS_SCRIPTABLE NS_IMETHOD OpenDialog(PRUint32 aType, const nsACString & aName, const nsACString & aFeatures, nsIDialogParamBlock *aArguments, nsIDOMElement *aFrameElement) = 0;
42 :
43 : };
44 :
45 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIDialogCreator, NS_IDIALOGCREATOR_IID)
46 :
47 : /* Use this macro when declaring classes that implement this interface. */
48 : #define NS_DECL_NSIDIALOGCREATOR \
49 : NS_SCRIPTABLE NS_IMETHOD OpenDialog(PRUint32 aType, const nsACString & aName, const nsACString & aFeatures, nsIDialogParamBlock *aArguments, nsIDOMElement *aFrameElement);
50 :
51 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
52 : #define NS_FORWARD_NSIDIALOGCREATOR(_to) \
53 : NS_SCRIPTABLE NS_IMETHOD OpenDialog(PRUint32 aType, const nsACString & aName, const nsACString & aFeatures, nsIDialogParamBlock *aArguments, nsIDOMElement *aFrameElement) { return _to OpenDialog(aType, aName, aFeatures, aArguments, aFrameElement); }
54 :
55 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
56 : #define NS_FORWARD_SAFE_NSIDIALOGCREATOR(_to) \
57 : NS_SCRIPTABLE NS_IMETHOD OpenDialog(PRUint32 aType, const nsACString & aName, const nsACString & aFeatures, nsIDialogParamBlock *aArguments, nsIDOMElement *aFrameElement) { return !_to ? NS_ERROR_NULL_POINTER : _to->OpenDialog(aType, aName, aFeatures, aArguments, aFrameElement); }
58 :
59 : #if 0
60 : /* Use the code below as a template for the implementation class for this interface. */
61 :
62 : /* Header file */
63 : class nsDialogCreator : public nsIDialogCreator
64 : {
65 : public:
66 : NS_DECL_ISUPPORTS
67 : NS_DECL_NSIDIALOGCREATOR
68 :
69 : nsDialogCreator();
70 :
71 : private:
72 : ~nsDialogCreator();
73 :
74 : protected:
75 : /* additional members */
76 : };
77 :
78 : /* Implementation file */
79 : NS_IMPL_ISUPPORTS1(nsDialogCreator, nsIDialogCreator)
80 :
81 : nsDialogCreator::nsDialogCreator()
82 : {
83 : /* member initializers and constructor code */
84 : }
85 :
86 : nsDialogCreator::~nsDialogCreator()
87 : {
88 : /* destructor code */
89 : }
90 :
91 : /* void openDialog (in unsigned long aType, in ACString aName, in ACString aFeatures, in nsIDialogParamBlock aArguments, [optional] in nsIDOMElement aFrameElement); */
92 : NS_IMETHODIMP nsDialogCreator::OpenDialog(PRUint32 aType, const nsACString & aName, const nsACString & aFeatures, nsIDialogParamBlock *aArguments, nsIDOMElement *aFrameElement)
93 : {
94 : return NS_ERROR_NOT_IMPLEMENTED;
95 : }
96 :
97 : /* End of implementation class template. */
98 : #endif
99 :
100 :
101 : #endif /* __gen_nsIDialogCreator_h__ */
|