1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/security/manager/ssl/public/nsIUserCertPicker.idl
3 : */
4 :
5 : #ifndef __gen_nsIUserCertPicker_h__
6 : #define __gen_nsIUserCertPicker_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 nsIX509Cert; /* forward declaration */
18 :
19 : class nsIInterfaceRequestor; /* forward declaration */
20 :
21 :
22 : /* starting interface: nsIUserCertPicker */
23 : #define NS_IUSERCERTPICKER_IID_STR "06d018e0-d41b-4629-a4fc-daaa6029888e"
24 :
25 : #define NS_IUSERCERTPICKER_IID \
26 : {0x06d018e0, 0xd41b, 0x4629, \
27 : { 0xa4, 0xfc, 0xda, 0xaa, 0x60, 0x29, 0x88, 0x8e }}
28 :
29 0 : class NS_NO_VTABLE NS_SCRIPTABLE nsIUserCertPicker : public nsISupports {
30 : public:
31 :
32 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IUSERCERTPICKER_IID)
33 :
34 : /* nsIX509Cert pickByUsage (in nsIInterfaceRequestor ctx, in wstring selectedNickname, in long certUsage, in boolean allowInvalid, in boolean allowDuplicateNicknames, out boolean canceled); */
35 : NS_SCRIPTABLE NS_IMETHOD PickByUsage(nsIInterfaceRequestor *ctx, const PRUnichar * selectedNickname, PRInt32 certUsage, bool allowInvalid, bool allowDuplicateNicknames, bool *canceled NS_OUTPARAM, nsIX509Cert * *_retval NS_OUTPARAM) = 0;
36 :
37 : };
38 :
39 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIUserCertPicker, NS_IUSERCERTPICKER_IID)
40 :
41 : /* Use this macro when declaring classes that implement this interface. */
42 : #define NS_DECL_NSIUSERCERTPICKER \
43 : NS_SCRIPTABLE NS_IMETHOD PickByUsage(nsIInterfaceRequestor *ctx, const PRUnichar * selectedNickname, PRInt32 certUsage, bool allowInvalid, bool allowDuplicateNicknames, bool *canceled NS_OUTPARAM, nsIX509Cert * *_retval NS_OUTPARAM);
44 :
45 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
46 : #define NS_FORWARD_NSIUSERCERTPICKER(_to) \
47 : NS_SCRIPTABLE NS_IMETHOD PickByUsage(nsIInterfaceRequestor *ctx, const PRUnichar * selectedNickname, PRInt32 certUsage, bool allowInvalid, bool allowDuplicateNicknames, bool *canceled NS_OUTPARAM, nsIX509Cert * *_retval NS_OUTPARAM) { return _to PickByUsage(ctx, selectedNickname, certUsage, allowInvalid, allowDuplicateNicknames, canceled, _retval); }
48 :
49 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
50 : #define NS_FORWARD_SAFE_NSIUSERCERTPICKER(_to) \
51 : NS_SCRIPTABLE NS_IMETHOD PickByUsage(nsIInterfaceRequestor *ctx, const PRUnichar * selectedNickname, PRInt32 certUsage, bool allowInvalid, bool allowDuplicateNicknames, bool *canceled NS_OUTPARAM, nsIX509Cert * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->PickByUsage(ctx, selectedNickname, certUsage, allowInvalid, allowDuplicateNicknames, canceled, _retval); }
52 :
53 : #if 0
54 : /* Use the code below as a template for the implementation class for this interface. */
55 :
56 : /* Header file */
57 : class nsUserCertPicker : public nsIUserCertPicker
58 : {
59 : public:
60 : NS_DECL_ISUPPORTS
61 : NS_DECL_NSIUSERCERTPICKER
62 :
63 : nsUserCertPicker();
64 :
65 : private:
66 : ~nsUserCertPicker();
67 :
68 : protected:
69 : /* additional members */
70 : };
71 :
72 : /* Implementation file */
73 : NS_IMPL_ISUPPORTS1(nsUserCertPicker, nsIUserCertPicker)
74 :
75 : nsUserCertPicker::nsUserCertPicker()
76 : {
77 : /* member initializers and constructor code */
78 : }
79 :
80 : nsUserCertPicker::~nsUserCertPicker()
81 : {
82 : /* destructor code */
83 : }
84 :
85 : /* nsIX509Cert pickByUsage (in nsIInterfaceRequestor ctx, in wstring selectedNickname, in long certUsage, in boolean allowInvalid, in boolean allowDuplicateNicknames, out boolean canceled); */
86 : NS_IMETHODIMP nsUserCertPicker::PickByUsage(nsIInterfaceRequestor *ctx, const PRUnichar * selectedNickname, PRInt32 certUsage, bool allowInvalid, bool allowDuplicateNicknames, bool *canceled NS_OUTPARAM, nsIX509Cert * *_retval NS_OUTPARAM)
87 : {
88 : return NS_ERROR_NOT_IMPLEMENTED;
89 : }
90 :
91 : /* End of implementation class template. */
92 : #endif
93 :
94 : #define NS_CERT_PICKER_CONTRACTID "@mozilla.org/user_cert_picker;1"
95 : #define NS_CERT_PICKER_CLASSNAME "Cert Picker Object"
96 :
97 : #endif /* __gen_nsIUserCertPicker_h__ */
|