Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIPKCS11Module.idl
3 : */
4 :
5 : #ifndef __gen_nsIPKCS11Module_h__
6 : #define __gen_nsIPKCS11Module_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 nsIPKCS11Slot; /* forward declaration */
18 :
19 : class nsISimpleEnumerator; /* forward declaration */
20 :
21 :
22 : /* starting interface: nsIPKCS11Module */
23 : #define NS_IPKCS11MODULE_IID_STR "8a44bdf9-d1a5-4734-bd5a-34ed7fe564c2"
24 :
25 : #define NS_IPKCS11MODULE_IID \
26 : {0x8a44bdf9, 0xd1a5, 0x4734, \
27 : { 0xbd, 0x5a, 0x34, 0xed, 0x7f, 0xe5, 0x64, 0xc2 }}
28 :
29 0 : class NS_NO_VTABLE nsIPKCS11Module : public nsISupports {
30 : public:
31 :
32 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IPKCS11MODULE_IID)
33 :
34 : /* [must_use] readonly attribute AUTF8String name; */
35 : MOZ_MUST_USE NS_IMETHOD GetName(nsACString & aName) = 0;
36 :
37 : /* [must_use] readonly attribute AUTF8String libName; */
38 : MOZ_MUST_USE NS_IMETHOD GetLibName(nsACString & aLibName) = 0;
39 :
40 : /* [must_use] nsIPKCS11Slot findSlotByName (in AUTF8String name); */
41 : MOZ_MUST_USE NS_IMETHOD FindSlotByName(const nsACString & name, nsIPKCS11Slot * *_retval) = 0;
42 :
43 : /* [must_use] nsISimpleEnumerator listSlots (); */
44 : MOZ_MUST_USE NS_IMETHOD ListSlots(nsISimpleEnumerator * *_retval) = 0;
45 :
46 : };
47 :
48 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIPKCS11Module, NS_IPKCS11MODULE_IID)
49 :
50 : /* Use this macro when declaring classes that implement this interface. */
51 : #define NS_DECL_NSIPKCS11MODULE \
52 : MOZ_MUST_USE NS_IMETHOD GetName(nsACString & aName) override; \
53 : MOZ_MUST_USE NS_IMETHOD GetLibName(nsACString & aLibName) override; \
54 : MOZ_MUST_USE NS_IMETHOD FindSlotByName(const nsACString & name, nsIPKCS11Slot * *_retval) override; \
55 : MOZ_MUST_USE NS_IMETHOD ListSlots(nsISimpleEnumerator * *_retval) override;
56 :
57 : /* Use this macro when declaring the members of this interface when the
58 : class doesn't implement the interface. This is useful for forwarding. */
59 : #define NS_DECL_NON_VIRTUAL_NSIPKCS11MODULE \
60 : MOZ_MUST_USE nsresult GetName(nsACString & aName); \
61 : MOZ_MUST_USE nsresult GetLibName(nsACString & aLibName); \
62 : MOZ_MUST_USE nsresult FindSlotByName(const nsACString & name, nsIPKCS11Slot * *_retval); \
63 : MOZ_MUST_USE nsresult ListSlots(nsISimpleEnumerator * *_retval);
64 :
65 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
66 : #define NS_FORWARD_NSIPKCS11MODULE(_to) \
67 : MOZ_MUST_USE NS_IMETHOD GetName(nsACString & aName) override { return _to GetName(aName); } \
68 : MOZ_MUST_USE NS_IMETHOD GetLibName(nsACString & aLibName) override { return _to GetLibName(aLibName); } \
69 : MOZ_MUST_USE NS_IMETHOD FindSlotByName(const nsACString & name, nsIPKCS11Slot * *_retval) override { return _to FindSlotByName(name, _retval); } \
70 : MOZ_MUST_USE NS_IMETHOD ListSlots(nsISimpleEnumerator * *_retval) override { return _to ListSlots(_retval); }
71 :
72 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
73 : #define NS_FORWARD_SAFE_NSIPKCS11MODULE(_to) \
74 : MOZ_MUST_USE NS_IMETHOD GetName(nsACString & aName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetName(aName); } \
75 : MOZ_MUST_USE NS_IMETHOD GetLibName(nsACString & aLibName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLibName(aLibName); } \
76 : MOZ_MUST_USE NS_IMETHOD FindSlotByName(const nsACString & name, nsIPKCS11Slot * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->FindSlotByName(name, _retval); } \
77 : MOZ_MUST_USE NS_IMETHOD ListSlots(nsISimpleEnumerator * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ListSlots(_retval); }
78 :
79 : #if 0
80 : /* Use the code below as a template for the implementation class for this interface. */
81 :
82 : /* Header file */
83 : class nsPKCS11Module : public nsIPKCS11Module
84 : {
85 : public:
86 : NS_DECL_ISUPPORTS
87 : NS_DECL_NSIPKCS11MODULE
88 :
89 : nsPKCS11Module();
90 :
91 : private:
92 : ~nsPKCS11Module();
93 :
94 : protected:
95 : /* additional members */
96 : };
97 :
98 : /* Implementation file */
99 : NS_IMPL_ISUPPORTS(nsPKCS11Module, nsIPKCS11Module)
100 :
101 : nsPKCS11Module::nsPKCS11Module()
102 : {
103 : /* member initializers and constructor code */
104 : }
105 :
106 : nsPKCS11Module::~nsPKCS11Module()
107 : {
108 : /* destructor code */
109 : }
110 :
111 : /* [must_use] readonly attribute AUTF8String name; */
112 : MOZ_MUST_USE NS_IMETHODIMP nsPKCS11Module::GetName(nsACString & aName)
113 : {
114 : return NS_ERROR_NOT_IMPLEMENTED;
115 : }
116 :
117 : /* [must_use] readonly attribute AUTF8String libName; */
118 : MOZ_MUST_USE NS_IMETHODIMP nsPKCS11Module::GetLibName(nsACString & aLibName)
119 : {
120 : return NS_ERROR_NOT_IMPLEMENTED;
121 : }
122 :
123 : /* [must_use] nsIPKCS11Slot findSlotByName (in AUTF8String name); */
124 : MOZ_MUST_USE NS_IMETHODIMP nsPKCS11Module::FindSlotByName(const nsACString & name, nsIPKCS11Slot * *_retval)
125 : {
126 : return NS_ERROR_NOT_IMPLEMENTED;
127 : }
128 :
129 : /* [must_use] nsISimpleEnumerator listSlots (); */
130 : MOZ_MUST_USE NS_IMETHODIMP nsPKCS11Module::ListSlots(nsISimpleEnumerator * *_retval)
131 : {
132 : return NS_ERROR_NOT_IMPLEMENTED;
133 : }
134 :
135 : /* End of implementation class template. */
136 : #endif
137 :
138 :
139 : #endif /* __gen_nsIPKCS11Module_h__ */
|