Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIAuthPromptCallback.idl
3 : */
4 :
5 : #ifndef __gen_nsIAuthPromptCallback_h__
6 : #define __gen_nsIAuthPromptCallback_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 nsIAuthInformation; /* forward declaration */
18 :
19 :
20 : /* starting interface: nsIAuthPromptCallback */
21 : #define NS_IAUTHPROMPTCALLBACK_IID_STR "bdc387d7-2d29-4cac-92f1-dd75d786631d"
22 :
23 : #define NS_IAUTHPROMPTCALLBACK_IID \
24 : {0xbdc387d7, 0x2d29, 0x4cac, \
25 : { 0x92, 0xf1, 0xdd, 0x75, 0xd7, 0x86, 0x63, 0x1d }}
26 :
27 6 : class NS_NO_VTABLE nsIAuthPromptCallback : public nsISupports {
28 : public:
29 :
30 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IAUTHPROMPTCALLBACK_IID)
31 :
32 : /* void onAuthAvailable (in nsISupports aContext, in nsIAuthInformation aAuthInfo); */
33 : NS_IMETHOD OnAuthAvailable(nsISupports *aContext, nsIAuthInformation *aAuthInfo) = 0;
34 :
35 : /* void onAuthCancelled (in nsISupports aContext, in boolean userCancel); */
36 : NS_IMETHOD OnAuthCancelled(nsISupports *aContext, bool userCancel) = 0;
37 :
38 : };
39 :
40 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIAuthPromptCallback, NS_IAUTHPROMPTCALLBACK_IID)
41 :
42 : /* Use this macro when declaring classes that implement this interface. */
43 : #define NS_DECL_NSIAUTHPROMPTCALLBACK \
44 : NS_IMETHOD OnAuthAvailable(nsISupports *aContext, nsIAuthInformation *aAuthInfo) override; \
45 : NS_IMETHOD OnAuthCancelled(nsISupports *aContext, bool userCancel) override;
46 :
47 : /* Use this macro when declaring the members of this interface when the
48 : class doesn't implement the interface. This is useful for forwarding. */
49 : #define NS_DECL_NON_VIRTUAL_NSIAUTHPROMPTCALLBACK \
50 : nsresult OnAuthAvailable(nsISupports *aContext, nsIAuthInformation *aAuthInfo); \
51 : nsresult OnAuthCancelled(nsISupports *aContext, bool userCancel);
52 :
53 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
54 : #define NS_FORWARD_NSIAUTHPROMPTCALLBACK(_to) \
55 : NS_IMETHOD OnAuthAvailable(nsISupports *aContext, nsIAuthInformation *aAuthInfo) override { return _to OnAuthAvailable(aContext, aAuthInfo); } \
56 : NS_IMETHOD OnAuthCancelled(nsISupports *aContext, bool userCancel) override { return _to OnAuthCancelled(aContext, userCancel); }
57 :
58 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
59 : #define NS_FORWARD_SAFE_NSIAUTHPROMPTCALLBACK(_to) \
60 : NS_IMETHOD OnAuthAvailable(nsISupports *aContext, nsIAuthInformation *aAuthInfo) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnAuthAvailable(aContext, aAuthInfo); } \
61 : NS_IMETHOD OnAuthCancelled(nsISupports *aContext, bool userCancel) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnAuthCancelled(aContext, userCancel); }
62 :
63 : #if 0
64 : /* Use the code below as a template for the implementation class for this interface. */
65 :
66 : /* Header file */
67 : class nsAuthPromptCallback : public nsIAuthPromptCallback
68 : {
69 : public:
70 : NS_DECL_ISUPPORTS
71 : NS_DECL_NSIAUTHPROMPTCALLBACK
72 :
73 : nsAuthPromptCallback();
74 :
75 : private:
76 : ~nsAuthPromptCallback();
77 :
78 : protected:
79 : /* additional members */
80 : };
81 :
82 : /* Implementation file */
83 : NS_IMPL_ISUPPORTS(nsAuthPromptCallback, nsIAuthPromptCallback)
84 :
85 : nsAuthPromptCallback::nsAuthPromptCallback()
86 : {
87 : /* member initializers and constructor code */
88 : }
89 :
90 : nsAuthPromptCallback::~nsAuthPromptCallback()
91 : {
92 : /* destructor code */
93 : }
94 :
95 : /* void onAuthAvailable (in nsISupports aContext, in nsIAuthInformation aAuthInfo); */
96 : NS_IMETHODIMP nsAuthPromptCallback::OnAuthAvailable(nsISupports *aContext, nsIAuthInformation *aAuthInfo)
97 : {
98 : return NS_ERROR_NOT_IMPLEMENTED;
99 : }
100 :
101 : /* void onAuthCancelled (in nsISupports aContext, in boolean userCancel); */
102 : NS_IMETHODIMP nsAuthPromptCallback::OnAuthCancelled(nsISupports *aContext, bool userCancel)
103 : {
104 : return NS_ERROR_NOT_IMPLEMENTED;
105 : }
106 :
107 : /* End of implementation class template. */
108 : #endif
109 :
110 :
111 : #endif /* __gen_nsIAuthPromptCallback_h__ */
|