Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsITokenDialogs.idl
3 : */
4 :
5 : #ifndef __gen_nsITokenDialogs_h__
6 : #define __gen_nsITokenDialogs_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 nsIInterfaceRequestor; /* forward declaration */
18 :
19 : class nsIProtectedAuthThread; /* forward declaration */
20 :
21 :
22 : /* starting interface: nsITokenDialogs */
23 : #define NS_ITOKENDIALOGS_IID_STR "a1cbc159-468c-495d-8068-61dd538cbcca"
24 :
25 : #define NS_ITOKENDIALOGS_IID \
26 : {0xa1cbc159, 0x468c, 0x495d, \
27 : { 0x80, 0x68, 0x61, 0xdd, 0x53, 0x8c, 0xbc, 0xca }}
28 :
29 0 : class NS_NO_VTABLE nsITokenDialogs : public nsISupports {
30 : public:
31 :
32 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_ITOKENDIALOGS_IID)
33 :
34 : /* [must_use] void ChooseToken (in nsIInterfaceRequestor ctx, [array, size_is (count)] in wstring tokenNameList, in unsigned long count, out AString tokenName, out boolean canceled); */
35 : MOZ_MUST_USE NS_IMETHOD ChooseToken(nsIInterfaceRequestor *ctx, const char16_t * *tokenNameList, uint32_t count, nsAString & tokenName, bool *canceled) = 0;
36 :
37 : /* [must_use] void displayProtectedAuth (in nsIInterfaceRequestor ctx, in nsIProtectedAuthThread runnable); */
38 : MOZ_MUST_USE NS_IMETHOD DisplayProtectedAuth(nsIInterfaceRequestor *ctx, nsIProtectedAuthThread *runnable) = 0;
39 :
40 : };
41 :
42 : NS_DEFINE_STATIC_IID_ACCESSOR(nsITokenDialogs, NS_ITOKENDIALOGS_IID)
43 :
44 : /* Use this macro when declaring classes that implement this interface. */
45 : #define NS_DECL_NSITOKENDIALOGS \
46 : MOZ_MUST_USE NS_IMETHOD ChooseToken(nsIInterfaceRequestor *ctx, const char16_t * *tokenNameList, uint32_t count, nsAString & tokenName, bool *canceled) override; \
47 : MOZ_MUST_USE NS_IMETHOD DisplayProtectedAuth(nsIInterfaceRequestor *ctx, nsIProtectedAuthThread *runnable) override;
48 :
49 : /* Use this macro when declaring the members of this interface when the
50 : class doesn't implement the interface. This is useful for forwarding. */
51 : #define NS_DECL_NON_VIRTUAL_NSITOKENDIALOGS \
52 : MOZ_MUST_USE nsresult ChooseToken(nsIInterfaceRequestor *ctx, const char16_t * *tokenNameList, uint32_t count, nsAString & tokenName, bool *canceled); \
53 : MOZ_MUST_USE nsresult DisplayProtectedAuth(nsIInterfaceRequestor *ctx, nsIProtectedAuthThread *runnable);
54 :
55 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
56 : #define NS_FORWARD_NSITOKENDIALOGS(_to) \
57 : MOZ_MUST_USE NS_IMETHOD ChooseToken(nsIInterfaceRequestor *ctx, const char16_t * *tokenNameList, uint32_t count, nsAString & tokenName, bool *canceled) override { return _to ChooseToken(ctx, tokenNameList, count, tokenName, canceled); } \
58 : MOZ_MUST_USE NS_IMETHOD DisplayProtectedAuth(nsIInterfaceRequestor *ctx, nsIProtectedAuthThread *runnable) override { return _to DisplayProtectedAuth(ctx, runnable); }
59 :
60 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
61 : #define NS_FORWARD_SAFE_NSITOKENDIALOGS(_to) \
62 : MOZ_MUST_USE NS_IMETHOD ChooseToken(nsIInterfaceRequestor *ctx, const char16_t * *tokenNameList, uint32_t count, nsAString & tokenName, bool *canceled) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ChooseToken(ctx, tokenNameList, count, tokenName, canceled); } \
63 : MOZ_MUST_USE NS_IMETHOD DisplayProtectedAuth(nsIInterfaceRequestor *ctx, nsIProtectedAuthThread *runnable) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DisplayProtectedAuth(ctx, runnable); }
64 :
65 : #if 0
66 : /* Use the code below as a template for the implementation class for this interface. */
67 :
68 : /* Header file */
69 : class nsTokenDialogs : public nsITokenDialogs
70 : {
71 : public:
72 : NS_DECL_ISUPPORTS
73 : NS_DECL_NSITOKENDIALOGS
74 :
75 : nsTokenDialogs();
76 :
77 : private:
78 : ~nsTokenDialogs();
79 :
80 : protected:
81 : /* additional members */
82 : };
83 :
84 : /* Implementation file */
85 : NS_IMPL_ISUPPORTS(nsTokenDialogs, nsITokenDialogs)
86 :
87 : nsTokenDialogs::nsTokenDialogs()
88 : {
89 : /* member initializers and constructor code */
90 : }
91 :
92 : nsTokenDialogs::~nsTokenDialogs()
93 : {
94 : /* destructor code */
95 : }
96 :
97 : /* [must_use] void ChooseToken (in nsIInterfaceRequestor ctx, [array, size_is (count)] in wstring tokenNameList, in unsigned long count, out AString tokenName, out boolean canceled); */
98 : MOZ_MUST_USE NS_IMETHODIMP nsTokenDialogs::ChooseToken(nsIInterfaceRequestor *ctx, const char16_t * *tokenNameList, uint32_t count, nsAString & tokenName, bool *canceled)
99 : {
100 : return NS_ERROR_NOT_IMPLEMENTED;
101 : }
102 :
103 : /* [must_use] void displayProtectedAuth (in nsIInterfaceRequestor ctx, in nsIProtectedAuthThread runnable); */
104 : MOZ_MUST_USE NS_IMETHODIMP nsTokenDialogs::DisplayProtectedAuth(nsIInterfaceRequestor *ctx, nsIProtectedAuthThread *runnable)
105 : {
106 : return NS_ERROR_NOT_IMPLEMENTED;
107 : }
108 :
109 : /* End of implementation class template. */
110 : #endif
111 :
112 : #define NS_TOKENDIALOGS_CONTRACTID "@mozilla.org/nsTokenDialogs;1"
113 :
114 : #endif /* __gen_nsITokenDialogs_h__ */
|