1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/security/manager/ssl/public/nsIASN1Object.idl
3 : */
4 :
5 : #ifndef __gen_nsIASN1Object_h__
6 : #define __gen_nsIASN1Object_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 :
18 : /* starting interface: nsIASN1Object */
19 : #define NS_IASN1OBJECT_IID_STR "ba8bf582-1dd1-11b2-898c-f40246bc9a63"
20 :
21 : #define NS_IASN1OBJECT_IID \
22 : {0xba8bf582, 0x1dd1, 0x11b2, \
23 : { 0x89, 0x8c, 0xf4, 0x02, 0x46, 0xbc, 0x9a, 0x63 }}
24 :
25 0 : class NS_NO_VTABLE NS_SCRIPTABLE nsIASN1Object : public nsISupports {
26 : public:
27 :
28 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IASN1OBJECT_IID)
29 :
30 : enum {
31 : ASN1_END_CONTENTS = 0U,
32 : ASN1_BOOLEAN = 1U,
33 : ASN1_INTEGER = 2U,
34 : ASN1_BIT_STRING = 3U,
35 : ASN1_OCTET_STRING = 4U,
36 : ASN1_NULL = 5U,
37 : ASN1_OBJECT_ID = 6U,
38 : ASN1_ENUMERATED = 10U,
39 : ASN1_UTF8_STRING = 12U,
40 : ASN1_SEQUENCE = 16U,
41 : ASN1_SET = 17U,
42 : ASN1_PRINTABLE_STRING = 19U,
43 : ASN1_T61_STRING = 20U,
44 : ASN1_IA5_STRING = 22U,
45 : ASN1_UTC_TIME = 23U,
46 : ASN1_GEN_TIME = 24U,
47 : ASN1_VISIBLE_STRING = 26U,
48 : ASN1_UNIVERSAL_STRING = 28U,
49 : ASN1_BMP_STRING = 30U,
50 : ASN1_HIGH_TAG_NUMBER = 31U,
51 : ASN1_CONTEXT_SPECIFIC = 32U,
52 : ASN1_APPLICATION = 33U,
53 : ASN1_PRIVATE = 34U
54 : };
55 :
56 : /* attribute unsigned long type; */
57 : NS_SCRIPTABLE NS_IMETHOD GetType(PRUint32 *aType) = 0;
58 : NS_SCRIPTABLE NS_IMETHOD SetType(PRUint32 aType) = 0;
59 :
60 : /* attribute unsigned long tag; */
61 : NS_SCRIPTABLE NS_IMETHOD GetTag(PRUint32 *aTag) = 0;
62 : NS_SCRIPTABLE NS_IMETHOD SetTag(PRUint32 aTag) = 0;
63 :
64 : /* attribute AString displayName; */
65 : NS_SCRIPTABLE NS_IMETHOD GetDisplayName(nsAString & aDisplayName) = 0;
66 : NS_SCRIPTABLE NS_IMETHOD SetDisplayName(const nsAString & aDisplayName) = 0;
67 :
68 : /* attribute AString displayValue; */
69 : NS_SCRIPTABLE NS_IMETHOD GetDisplayValue(nsAString & aDisplayValue) = 0;
70 : NS_SCRIPTABLE NS_IMETHOD SetDisplayValue(const nsAString & aDisplayValue) = 0;
71 :
72 : };
73 :
74 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIASN1Object, NS_IASN1OBJECT_IID)
75 :
76 : /* Use this macro when declaring classes that implement this interface. */
77 : #define NS_DECL_NSIASN1OBJECT \
78 : NS_SCRIPTABLE NS_IMETHOD GetType(PRUint32 *aType); \
79 : NS_SCRIPTABLE NS_IMETHOD SetType(PRUint32 aType); \
80 : NS_SCRIPTABLE NS_IMETHOD GetTag(PRUint32 *aTag); \
81 : NS_SCRIPTABLE NS_IMETHOD SetTag(PRUint32 aTag); \
82 : NS_SCRIPTABLE NS_IMETHOD GetDisplayName(nsAString & aDisplayName); \
83 : NS_SCRIPTABLE NS_IMETHOD SetDisplayName(const nsAString & aDisplayName); \
84 : NS_SCRIPTABLE NS_IMETHOD GetDisplayValue(nsAString & aDisplayValue); \
85 : NS_SCRIPTABLE NS_IMETHOD SetDisplayValue(const nsAString & aDisplayValue);
86 :
87 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
88 : #define NS_FORWARD_NSIASN1OBJECT(_to) \
89 : NS_SCRIPTABLE NS_IMETHOD GetType(PRUint32 *aType) { return _to GetType(aType); } \
90 : NS_SCRIPTABLE NS_IMETHOD SetType(PRUint32 aType) { return _to SetType(aType); } \
91 : NS_SCRIPTABLE NS_IMETHOD GetTag(PRUint32 *aTag) { return _to GetTag(aTag); } \
92 : NS_SCRIPTABLE NS_IMETHOD SetTag(PRUint32 aTag) { return _to SetTag(aTag); } \
93 : NS_SCRIPTABLE NS_IMETHOD GetDisplayName(nsAString & aDisplayName) { return _to GetDisplayName(aDisplayName); } \
94 : NS_SCRIPTABLE NS_IMETHOD SetDisplayName(const nsAString & aDisplayName) { return _to SetDisplayName(aDisplayName); } \
95 : NS_SCRIPTABLE NS_IMETHOD GetDisplayValue(nsAString & aDisplayValue) { return _to GetDisplayValue(aDisplayValue); } \
96 : NS_SCRIPTABLE NS_IMETHOD SetDisplayValue(const nsAString & aDisplayValue) { return _to SetDisplayValue(aDisplayValue); }
97 :
98 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
99 : #define NS_FORWARD_SAFE_NSIASN1OBJECT(_to) \
100 : NS_SCRIPTABLE NS_IMETHOD GetType(PRUint32 *aType) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetType(aType); } \
101 : NS_SCRIPTABLE NS_IMETHOD SetType(PRUint32 aType) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetType(aType); } \
102 : NS_SCRIPTABLE NS_IMETHOD GetTag(PRUint32 *aTag) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTag(aTag); } \
103 : NS_SCRIPTABLE NS_IMETHOD SetTag(PRUint32 aTag) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetTag(aTag); } \
104 : NS_SCRIPTABLE NS_IMETHOD GetDisplayName(nsAString & aDisplayName) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDisplayName(aDisplayName); } \
105 : NS_SCRIPTABLE NS_IMETHOD SetDisplayName(const nsAString & aDisplayName) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDisplayName(aDisplayName); } \
106 : NS_SCRIPTABLE NS_IMETHOD GetDisplayValue(nsAString & aDisplayValue) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDisplayValue(aDisplayValue); } \
107 : NS_SCRIPTABLE NS_IMETHOD SetDisplayValue(const nsAString & aDisplayValue) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDisplayValue(aDisplayValue); }
108 :
109 : #if 0
110 : /* Use the code below as a template for the implementation class for this interface. */
111 :
112 : /* Header file */
113 : class nsASN1Object : public nsIASN1Object
114 : {
115 : public:
116 : NS_DECL_ISUPPORTS
117 : NS_DECL_NSIASN1OBJECT
118 :
119 : nsASN1Object();
120 :
121 : private:
122 : ~nsASN1Object();
123 :
124 : protected:
125 : /* additional members */
126 : };
127 :
128 : /* Implementation file */
129 : NS_IMPL_ISUPPORTS1(nsASN1Object, nsIASN1Object)
130 :
131 : nsASN1Object::nsASN1Object()
132 : {
133 : /* member initializers and constructor code */
134 : }
135 :
136 : nsASN1Object::~nsASN1Object()
137 : {
138 : /* destructor code */
139 : }
140 :
141 : /* attribute unsigned long type; */
142 : NS_IMETHODIMP nsASN1Object::GetType(PRUint32 *aType)
143 : {
144 : return NS_ERROR_NOT_IMPLEMENTED;
145 : }
146 : NS_IMETHODIMP nsASN1Object::SetType(PRUint32 aType)
147 : {
148 : return NS_ERROR_NOT_IMPLEMENTED;
149 : }
150 :
151 : /* attribute unsigned long tag; */
152 : NS_IMETHODIMP nsASN1Object::GetTag(PRUint32 *aTag)
153 : {
154 : return NS_ERROR_NOT_IMPLEMENTED;
155 : }
156 : NS_IMETHODIMP nsASN1Object::SetTag(PRUint32 aTag)
157 : {
158 : return NS_ERROR_NOT_IMPLEMENTED;
159 : }
160 :
161 : /* attribute AString displayName; */
162 : NS_IMETHODIMP nsASN1Object::GetDisplayName(nsAString & aDisplayName)
163 : {
164 : return NS_ERROR_NOT_IMPLEMENTED;
165 : }
166 : NS_IMETHODIMP nsASN1Object::SetDisplayName(const nsAString & aDisplayName)
167 : {
168 : return NS_ERROR_NOT_IMPLEMENTED;
169 : }
170 :
171 : /* attribute AString displayValue; */
172 : NS_IMETHODIMP nsASN1Object::GetDisplayValue(nsAString & aDisplayValue)
173 : {
174 : return NS_ERROR_NOT_IMPLEMENTED;
175 : }
176 : NS_IMETHODIMP nsASN1Object::SetDisplayValue(const nsAString & aDisplayValue)
177 : {
178 : return NS_ERROR_NOT_IMPLEMENTED;
179 : }
180 :
181 : /* End of implementation class template. */
182 : #endif
183 :
184 :
185 : #endif /* __gen_nsIASN1Object_h__ */
|