1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/security/manager/ssl/public/nsIASN1PrintableItem.idl
3 : */
4 :
5 : #ifndef __gen_nsIASN1PrintableItem_h__
6 : #define __gen_nsIASN1PrintableItem_h__
7 :
8 :
9 : #ifndef __gen_nsISupports_h__
10 : #include "nsISupports.h"
11 : #endif
12 :
13 : #ifndef __gen_nsIASN1Object_h__
14 : #include "nsIASN1Object.h"
15 : #endif
16 :
17 : /* For IDL files that don't want to include root IDL files. */
18 : #ifndef NS_NO_VTABLE
19 : #define NS_NO_VTABLE
20 : #endif
21 :
22 : /* starting interface: nsIASN1PrintableItem */
23 : #define NS_IASN1PRINTABLEITEM_IID_STR "114e1142-1dd2-11b2-ac26-b6db19d9184a"
24 :
25 : #define NS_IASN1PRINTABLEITEM_IID \
26 : {0x114e1142, 0x1dd2, 0x11b2, \
27 : { 0xac, 0x26, 0xb6, 0xdb, 0x19, 0xd9, 0x18, 0x4a }}
28 :
29 0 : class NS_NO_VTABLE NS_SCRIPTABLE nsIASN1PrintableItem : public nsIASN1Object {
30 : public:
31 :
32 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IASN1PRINTABLEITEM_IID)
33 :
34 : /* [noscript] void setData (in charPtr data, in unsigned long len); */
35 : NS_IMETHOD SetData(char *data, PRUint32 len) = 0;
36 :
37 : /* [noscript] void getData (out charPtr data, out unsigned long len); */
38 : NS_IMETHOD GetData(char **data NS_OUTPARAM, PRUint32 *len NS_OUTPARAM) = 0;
39 :
40 : };
41 :
42 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIASN1PrintableItem, NS_IASN1PRINTABLEITEM_IID)
43 :
44 : /* Use this macro when declaring classes that implement this interface. */
45 : #define NS_DECL_NSIASN1PRINTABLEITEM \
46 : NS_IMETHOD SetData(char *data, PRUint32 len); \
47 : NS_IMETHOD GetData(char **data NS_OUTPARAM, PRUint32 *len NS_OUTPARAM);
48 :
49 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
50 : #define NS_FORWARD_NSIASN1PRINTABLEITEM(_to) \
51 : NS_IMETHOD SetData(char *data, PRUint32 len) { return _to SetData(data, len); } \
52 : NS_IMETHOD GetData(char **data NS_OUTPARAM, PRUint32 *len NS_OUTPARAM) { return _to GetData(data, len); }
53 :
54 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
55 : #define NS_FORWARD_SAFE_NSIASN1PRINTABLEITEM(_to) \
56 : NS_IMETHOD SetData(char *data, PRUint32 len) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetData(data, len); } \
57 : NS_IMETHOD GetData(char **data NS_OUTPARAM, PRUint32 *len NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetData(data, len); }
58 :
59 : #if 0
60 : /* Use the code below as a template for the implementation class for this interface. */
61 :
62 : /* Header file */
63 : class nsASN1PrintableItem : public nsIASN1PrintableItem
64 : {
65 : public:
66 : NS_DECL_ISUPPORTS
67 : NS_DECL_NSIASN1PRINTABLEITEM
68 :
69 : nsASN1PrintableItem();
70 :
71 : private:
72 : ~nsASN1PrintableItem();
73 :
74 : protected:
75 : /* additional members */
76 : };
77 :
78 : /* Implementation file */
79 : NS_IMPL_ISUPPORTS1(nsASN1PrintableItem, nsIASN1PrintableItem)
80 :
81 : nsASN1PrintableItem::nsASN1PrintableItem()
82 : {
83 : /* member initializers and constructor code */
84 : }
85 :
86 : nsASN1PrintableItem::~nsASN1PrintableItem()
87 : {
88 : /* destructor code */
89 : }
90 :
91 : /* [noscript] void setData (in charPtr data, in unsigned long len); */
92 : NS_IMETHODIMP nsASN1PrintableItem::SetData(char *data, PRUint32 len)
93 : {
94 : return NS_ERROR_NOT_IMPLEMENTED;
95 : }
96 :
97 : /* [noscript] void getData (out charPtr data, out unsigned long len); */
98 : NS_IMETHODIMP nsASN1PrintableItem::GetData(char **data NS_OUTPARAM, PRUint32 *len NS_OUTPARAM)
99 : {
100 : return NS_ERROR_NOT_IMPLEMENTED;
101 : }
102 :
103 : /* End of implementation class template. */
104 : #endif
105 :
106 :
107 : #endif /* __gen_nsIASN1PrintableItem_h__ */
|