Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIPK11TokenDB.idl
3 : */
4 :
5 : #ifndef __gen_nsIPK11TokenDB_h__
6 : #define __gen_nsIPK11TokenDB_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 : class nsISimpleEnumerator; /* forward declaration */
20 :
21 : #define NS_PK11TOKENDB_CONTRACTID "@mozilla.org/security/pk11tokendb;1"
22 :
23 : /* starting interface: nsIPK11TokenDB */
24 : #define NS_IPK11TOKENDB_IID_STR "4ee28c82-1dd2-11b2-aabf-bb4017abe395"
25 :
26 : #define NS_IPK11TOKENDB_IID \
27 : {0x4ee28c82, 0x1dd2, 0x11b2, \
28 : { 0xaa, 0xbf, 0xbb, 0x40, 0x17, 0xab, 0xe3, 0x95 }}
29 :
30 1 : class NS_NO_VTABLE nsIPK11TokenDB : public nsISupports {
31 : public:
32 :
33 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IPK11TOKENDB_IID)
34 :
35 : /* nsIPK11Token getInternalKeyToken (); */
36 : NS_IMETHOD GetInternalKeyToken(nsIPK11Token * *_retval) = 0;
37 :
38 : /* [must_use] nsIPK11Token findTokenByName (in AUTF8String tokenName); */
39 : MOZ_MUST_USE NS_IMETHOD FindTokenByName(const nsACString & tokenName, nsIPK11Token * *_retval) = 0;
40 :
41 : /* [must_use] nsISimpleEnumerator listTokens (); */
42 : MOZ_MUST_USE NS_IMETHOD ListTokens(nsISimpleEnumerator * *_retval) = 0;
43 :
44 : };
45 :
46 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIPK11TokenDB, NS_IPK11TOKENDB_IID)
47 :
48 : /* Use this macro when declaring classes that implement this interface. */
49 : #define NS_DECL_NSIPK11TOKENDB \
50 : NS_IMETHOD GetInternalKeyToken(nsIPK11Token * *_retval) override; \
51 : MOZ_MUST_USE NS_IMETHOD FindTokenByName(const nsACString & tokenName, nsIPK11Token * *_retval) override; \
52 : MOZ_MUST_USE NS_IMETHOD ListTokens(nsISimpleEnumerator * *_retval) override;
53 :
54 : /* Use this macro when declaring the members of this interface when the
55 : class doesn't implement the interface. This is useful for forwarding. */
56 : #define NS_DECL_NON_VIRTUAL_NSIPK11TOKENDB \
57 : nsresult GetInternalKeyToken(nsIPK11Token * *_retval); \
58 : MOZ_MUST_USE nsresult FindTokenByName(const nsACString & tokenName, nsIPK11Token * *_retval); \
59 : MOZ_MUST_USE nsresult ListTokens(nsISimpleEnumerator * *_retval);
60 :
61 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
62 : #define NS_FORWARD_NSIPK11TOKENDB(_to) \
63 : NS_IMETHOD GetInternalKeyToken(nsIPK11Token * *_retval) override { return _to GetInternalKeyToken(_retval); } \
64 : MOZ_MUST_USE NS_IMETHOD FindTokenByName(const nsACString & tokenName, nsIPK11Token * *_retval) override { return _to FindTokenByName(tokenName, _retval); } \
65 : MOZ_MUST_USE NS_IMETHOD ListTokens(nsISimpleEnumerator * *_retval) override { return _to ListTokens(_retval); }
66 :
67 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
68 : #define NS_FORWARD_SAFE_NSIPK11TOKENDB(_to) \
69 : NS_IMETHOD GetInternalKeyToken(nsIPK11Token * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetInternalKeyToken(_retval); } \
70 : MOZ_MUST_USE NS_IMETHOD FindTokenByName(const nsACString & tokenName, nsIPK11Token * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->FindTokenByName(tokenName, _retval); } \
71 : MOZ_MUST_USE NS_IMETHOD ListTokens(nsISimpleEnumerator * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ListTokens(_retval); }
72 :
73 : #if 0
74 : /* Use the code below as a template for the implementation class for this interface. */
75 :
76 : /* Header file */
77 : class nsPK11TokenDB : public nsIPK11TokenDB
78 : {
79 : public:
80 : NS_DECL_ISUPPORTS
81 : NS_DECL_NSIPK11TOKENDB
82 :
83 : nsPK11TokenDB();
84 :
85 : private:
86 : ~nsPK11TokenDB();
87 :
88 : protected:
89 : /* additional members */
90 : };
91 :
92 : /* Implementation file */
93 : NS_IMPL_ISUPPORTS(nsPK11TokenDB, nsIPK11TokenDB)
94 :
95 : nsPK11TokenDB::nsPK11TokenDB()
96 : {
97 : /* member initializers and constructor code */
98 : }
99 :
100 : nsPK11TokenDB::~nsPK11TokenDB()
101 : {
102 : /* destructor code */
103 : }
104 :
105 : /* nsIPK11Token getInternalKeyToken (); */
106 : NS_IMETHODIMP nsPK11TokenDB::GetInternalKeyToken(nsIPK11Token * *_retval)
107 : {
108 : return NS_ERROR_NOT_IMPLEMENTED;
109 : }
110 :
111 : /* [must_use] nsIPK11Token findTokenByName (in AUTF8String tokenName); */
112 : MOZ_MUST_USE NS_IMETHODIMP nsPK11TokenDB::FindTokenByName(const nsACString & tokenName, nsIPK11Token * *_retval)
113 : {
114 : return NS_ERROR_NOT_IMPLEMENTED;
115 : }
116 :
117 : /* [must_use] nsISimpleEnumerator listTokens (); */
118 : MOZ_MUST_USE NS_IMETHODIMP nsPK11TokenDB::ListTokens(nsISimpleEnumerator * *_retval)
119 : {
120 : return NS_ERROR_NOT_IMPLEMENTED;
121 : }
122 :
123 : /* End of implementation class template. */
124 : #endif
125 :
126 :
127 : #endif /* __gen_nsIPK11TokenDB_h__ */
|