1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/security/manager/ssl/public/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 nsIEnumerator; /* 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 52 : class NS_NO_VTABLE NS_SCRIPTABLE nsIPK11TokenDB : public nsISupports {
31 : public:
32 :
33 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IPK11TOKENDB_IID)
34 :
35 : /* nsIPK11Token getInternalKeyToken (); */
36 : NS_SCRIPTABLE NS_IMETHOD GetInternalKeyToken(nsIPK11Token * *_retval NS_OUTPARAM) = 0;
37 :
38 : /* nsIPK11Token findTokenByName (in wstring tokenName); */
39 : NS_SCRIPTABLE NS_IMETHOD FindTokenByName(const PRUnichar * tokenName, nsIPK11Token * *_retval NS_OUTPARAM) = 0;
40 :
41 : /* nsIEnumerator listTokens (); */
42 : NS_SCRIPTABLE NS_IMETHOD ListTokens(nsIEnumerator * *_retval NS_OUTPARAM) = 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_SCRIPTABLE NS_IMETHOD GetInternalKeyToken(nsIPK11Token * *_retval NS_OUTPARAM); \
51 : NS_SCRIPTABLE NS_IMETHOD FindTokenByName(const PRUnichar * tokenName, nsIPK11Token * *_retval NS_OUTPARAM); \
52 : NS_SCRIPTABLE NS_IMETHOD ListTokens(nsIEnumerator * *_retval NS_OUTPARAM);
53 :
54 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
55 : #define NS_FORWARD_NSIPK11TOKENDB(_to) \
56 : NS_SCRIPTABLE NS_IMETHOD GetInternalKeyToken(nsIPK11Token * *_retval NS_OUTPARAM) { return _to GetInternalKeyToken(_retval); } \
57 : NS_SCRIPTABLE NS_IMETHOD FindTokenByName(const PRUnichar * tokenName, nsIPK11Token * *_retval NS_OUTPARAM) { return _to FindTokenByName(tokenName, _retval); } \
58 : NS_SCRIPTABLE NS_IMETHOD ListTokens(nsIEnumerator * *_retval NS_OUTPARAM) { return _to ListTokens(_retval); }
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_NSIPK11TOKENDB(_to) \
62 : NS_SCRIPTABLE NS_IMETHOD GetInternalKeyToken(nsIPK11Token * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetInternalKeyToken(_retval); } \
63 : NS_SCRIPTABLE NS_IMETHOD FindTokenByName(const PRUnichar * tokenName, nsIPK11Token * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->FindTokenByName(tokenName, _retval); } \
64 : NS_SCRIPTABLE NS_IMETHOD ListTokens(nsIEnumerator * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->ListTokens(_retval); }
65 :
66 : #if 0
67 : /* Use the code below as a template for the implementation class for this interface. */
68 :
69 : /* Header file */
70 : class nsPK11TokenDB : public nsIPK11TokenDB
71 : {
72 : public:
73 : NS_DECL_ISUPPORTS
74 : NS_DECL_NSIPK11TOKENDB
75 :
76 : nsPK11TokenDB();
77 :
78 : private:
79 : ~nsPK11TokenDB();
80 :
81 : protected:
82 : /* additional members */
83 : };
84 :
85 : /* Implementation file */
86 : NS_IMPL_ISUPPORTS1(nsPK11TokenDB, nsIPK11TokenDB)
87 :
88 : nsPK11TokenDB::nsPK11TokenDB()
89 : {
90 : /* member initializers and constructor code */
91 : }
92 :
93 : nsPK11TokenDB::~nsPK11TokenDB()
94 : {
95 : /* destructor code */
96 : }
97 :
98 : /* nsIPK11Token getInternalKeyToken (); */
99 : NS_IMETHODIMP nsPK11TokenDB::GetInternalKeyToken(nsIPK11Token * *_retval NS_OUTPARAM)
100 : {
101 : return NS_ERROR_NOT_IMPLEMENTED;
102 : }
103 :
104 : /* nsIPK11Token findTokenByName (in wstring tokenName); */
105 : NS_IMETHODIMP nsPK11TokenDB::FindTokenByName(const PRUnichar * tokenName, nsIPK11Token * *_retval NS_OUTPARAM)
106 : {
107 : return NS_ERROR_NOT_IMPLEMENTED;
108 : }
109 :
110 : /* nsIEnumerator listTokens (); */
111 : NS_IMETHODIMP nsPK11TokenDB::ListTokens(nsIEnumerator * *_retval NS_OUTPARAM)
112 : {
113 : return NS_ERROR_NOT_IMPLEMENTED;
114 : }
115 :
116 : /* End of implementation class template. */
117 : #endif
118 :
119 :
120 : #endif /* __gen_nsIPK11TokenDB_h__ */
|