Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIPKCS11Slot.idl
3 : */
4 :
5 : #ifndef __gen_nsIPKCS11Slot_h__
6 : #define __gen_nsIPKCS11Slot_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 nsIPK11Token; /* forward declaration */
18 :
19 :
20 : /* starting interface: nsIPKCS11Slot */
21 : #define NS_IPKCS11SLOT_IID_STR "c2d4f296-ee60-11d4-998b-00b0d02354a0"
22 :
23 : #define NS_IPKCS11SLOT_IID \
24 : {0xc2d4f296, 0xee60, 0x11d4, \
25 : { 0x99, 0x8b, 0x00, 0xb0, 0xd0, 0x23, 0x54, 0xa0 }}
26 :
27 0 : class NS_NO_VTABLE nsIPKCS11Slot : public nsISupports {
28 : public:
29 :
30 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IPKCS11SLOT_IID)
31 :
32 : /* [must_use] readonly attribute AUTF8String name; */
33 : MOZ_MUST_USE NS_IMETHOD GetName(nsACString & aName) = 0;
34 :
35 : /* [must_use] readonly attribute AUTF8String desc; */
36 : MOZ_MUST_USE NS_IMETHOD GetDesc(nsACString & aDesc) = 0;
37 :
38 : /* [must_use] readonly attribute AUTF8String manID; */
39 : MOZ_MUST_USE NS_IMETHOD GetManID(nsACString & aManID) = 0;
40 :
41 : /* [must_use] readonly attribute AUTF8String HWVersion; */
42 : MOZ_MUST_USE NS_IMETHOD GetHWVersion(nsACString & aHWVersion) = 0;
43 :
44 : /* [must_use] readonly attribute AUTF8String FWVersion; */
45 : MOZ_MUST_USE NS_IMETHOD GetFWVersion(nsACString & aFWVersion) = 0;
46 :
47 : enum {
48 : SLOT_DISABLED = 0U,
49 : SLOT_NOT_PRESENT = 1U,
50 : SLOT_UNINITIALIZED = 2U,
51 : SLOT_NOT_LOGGED_IN = 3U,
52 : SLOT_LOGGED_IN = 4U,
53 : SLOT_READY = 5U
54 : };
55 :
56 : /* [must_use] readonly attribute unsigned long status; */
57 : MOZ_MUST_USE NS_IMETHOD GetStatus(uint32_t *aStatus) = 0;
58 :
59 : /* [must_use] nsIPK11Token getToken (); */
60 : MOZ_MUST_USE NS_IMETHOD GetToken(nsIPK11Token * *_retval) = 0;
61 :
62 : /* [must_use] readonly attribute AUTF8String tokenName; */
63 : MOZ_MUST_USE NS_IMETHOD GetTokenName(nsACString & aTokenName) = 0;
64 :
65 : };
66 :
67 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIPKCS11Slot, NS_IPKCS11SLOT_IID)
68 :
69 : /* Use this macro when declaring classes that implement this interface. */
70 : #define NS_DECL_NSIPKCS11SLOT \
71 : MOZ_MUST_USE NS_IMETHOD GetName(nsACString & aName) override; \
72 : MOZ_MUST_USE NS_IMETHOD GetDesc(nsACString & aDesc) override; \
73 : MOZ_MUST_USE NS_IMETHOD GetManID(nsACString & aManID) override; \
74 : MOZ_MUST_USE NS_IMETHOD GetHWVersion(nsACString & aHWVersion) override; \
75 : MOZ_MUST_USE NS_IMETHOD GetFWVersion(nsACString & aFWVersion) override; \
76 : MOZ_MUST_USE NS_IMETHOD GetStatus(uint32_t *aStatus) override; \
77 : MOZ_MUST_USE NS_IMETHOD GetToken(nsIPK11Token * *_retval) override; \
78 : MOZ_MUST_USE NS_IMETHOD GetTokenName(nsACString & aTokenName) override;
79 :
80 : /* Use this macro when declaring the members of this interface when the
81 : class doesn't implement the interface. This is useful for forwarding. */
82 : #define NS_DECL_NON_VIRTUAL_NSIPKCS11SLOT \
83 : MOZ_MUST_USE nsresult GetName(nsACString & aName); \
84 : MOZ_MUST_USE nsresult GetDesc(nsACString & aDesc); \
85 : MOZ_MUST_USE nsresult GetManID(nsACString & aManID); \
86 : MOZ_MUST_USE nsresult GetHWVersion(nsACString & aHWVersion); \
87 : MOZ_MUST_USE nsresult GetFWVersion(nsACString & aFWVersion); \
88 : MOZ_MUST_USE nsresult GetStatus(uint32_t *aStatus); \
89 : MOZ_MUST_USE nsresult GetToken(nsIPK11Token * *_retval); \
90 : MOZ_MUST_USE nsresult GetTokenName(nsACString & aTokenName);
91 :
92 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
93 : #define NS_FORWARD_NSIPKCS11SLOT(_to) \
94 : MOZ_MUST_USE NS_IMETHOD GetName(nsACString & aName) override { return _to GetName(aName); } \
95 : MOZ_MUST_USE NS_IMETHOD GetDesc(nsACString & aDesc) override { return _to GetDesc(aDesc); } \
96 : MOZ_MUST_USE NS_IMETHOD GetManID(nsACString & aManID) override { return _to GetManID(aManID); } \
97 : MOZ_MUST_USE NS_IMETHOD GetHWVersion(nsACString & aHWVersion) override { return _to GetHWVersion(aHWVersion); } \
98 : MOZ_MUST_USE NS_IMETHOD GetFWVersion(nsACString & aFWVersion) override { return _to GetFWVersion(aFWVersion); } \
99 : MOZ_MUST_USE NS_IMETHOD GetStatus(uint32_t *aStatus) override { return _to GetStatus(aStatus); } \
100 : MOZ_MUST_USE NS_IMETHOD GetToken(nsIPK11Token * *_retval) override { return _to GetToken(_retval); } \
101 : MOZ_MUST_USE NS_IMETHOD GetTokenName(nsACString & aTokenName) override { return _to GetTokenName(aTokenName); }
102 :
103 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
104 : #define NS_FORWARD_SAFE_NSIPKCS11SLOT(_to) \
105 : MOZ_MUST_USE NS_IMETHOD GetName(nsACString & aName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetName(aName); } \
106 : MOZ_MUST_USE NS_IMETHOD GetDesc(nsACString & aDesc) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDesc(aDesc); } \
107 : MOZ_MUST_USE NS_IMETHOD GetManID(nsACString & aManID) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetManID(aManID); } \
108 : MOZ_MUST_USE NS_IMETHOD GetHWVersion(nsACString & aHWVersion) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHWVersion(aHWVersion); } \
109 : MOZ_MUST_USE NS_IMETHOD GetFWVersion(nsACString & aFWVersion) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFWVersion(aFWVersion); } \
110 : MOZ_MUST_USE NS_IMETHOD GetStatus(uint32_t *aStatus) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStatus(aStatus); } \
111 : MOZ_MUST_USE NS_IMETHOD GetToken(nsIPK11Token * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetToken(_retval); } \
112 : MOZ_MUST_USE NS_IMETHOD GetTokenName(nsACString & aTokenName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTokenName(aTokenName); }
113 :
114 : #if 0
115 : /* Use the code below as a template for the implementation class for this interface. */
116 :
117 : /* Header file */
118 : class nsPKCS11Slot : public nsIPKCS11Slot
119 : {
120 : public:
121 : NS_DECL_ISUPPORTS
122 : NS_DECL_NSIPKCS11SLOT
123 :
124 : nsPKCS11Slot();
125 :
126 : private:
127 : ~nsPKCS11Slot();
128 :
129 : protected:
130 : /* additional members */
131 : };
132 :
133 : /* Implementation file */
134 : NS_IMPL_ISUPPORTS(nsPKCS11Slot, nsIPKCS11Slot)
135 :
136 : nsPKCS11Slot::nsPKCS11Slot()
137 : {
138 : /* member initializers and constructor code */
139 : }
140 :
141 : nsPKCS11Slot::~nsPKCS11Slot()
142 : {
143 : /* destructor code */
144 : }
145 :
146 : /* [must_use] readonly attribute AUTF8String name; */
147 : MOZ_MUST_USE NS_IMETHODIMP nsPKCS11Slot::GetName(nsACString & aName)
148 : {
149 : return NS_ERROR_NOT_IMPLEMENTED;
150 : }
151 :
152 : /* [must_use] readonly attribute AUTF8String desc; */
153 : MOZ_MUST_USE NS_IMETHODIMP nsPKCS11Slot::GetDesc(nsACString & aDesc)
154 : {
155 : return NS_ERROR_NOT_IMPLEMENTED;
156 : }
157 :
158 : /* [must_use] readonly attribute AUTF8String manID; */
159 : MOZ_MUST_USE NS_IMETHODIMP nsPKCS11Slot::GetManID(nsACString & aManID)
160 : {
161 : return NS_ERROR_NOT_IMPLEMENTED;
162 : }
163 :
164 : /* [must_use] readonly attribute AUTF8String HWVersion; */
165 : MOZ_MUST_USE NS_IMETHODIMP nsPKCS11Slot::GetHWVersion(nsACString & aHWVersion)
166 : {
167 : return NS_ERROR_NOT_IMPLEMENTED;
168 : }
169 :
170 : /* [must_use] readonly attribute AUTF8String FWVersion; */
171 : MOZ_MUST_USE NS_IMETHODIMP nsPKCS11Slot::GetFWVersion(nsACString & aFWVersion)
172 : {
173 : return NS_ERROR_NOT_IMPLEMENTED;
174 : }
175 :
176 : /* [must_use] readonly attribute unsigned long status; */
177 : MOZ_MUST_USE NS_IMETHODIMP nsPKCS11Slot::GetStatus(uint32_t *aStatus)
178 : {
179 : return NS_ERROR_NOT_IMPLEMENTED;
180 : }
181 :
182 : /* [must_use] nsIPK11Token getToken (); */
183 : MOZ_MUST_USE NS_IMETHODIMP nsPKCS11Slot::GetToken(nsIPK11Token * *_retval)
184 : {
185 : return NS_ERROR_NOT_IMPLEMENTED;
186 : }
187 :
188 : /* [must_use] readonly attribute AUTF8String tokenName; */
189 : MOZ_MUST_USE NS_IMETHODIMP nsPKCS11Slot::GetTokenName(nsACString & aTokenName)
190 : {
191 : return NS_ERROR_NOT_IMPLEMENTED;
192 : }
193 :
194 : /* End of implementation class template. */
195 : #endif
196 :
197 :
198 : #endif /* __gen_nsIPKCS11Slot_h__ */
|