PageRenderTime 26ms CodeModel.GetById 14ms app.highlight 8ms RepoModel.GetById 2ms app.codeStats 0ms

/gecko_api/include/nsIASN1Object.h

http://firefox-mac-pdf.googlecode.com/
C++ Header | 232 lines | 127 code | 55 blank | 50 comment | 0 complexity | 47d0245f28028cf2e2282f729108d090 MD5 | raw file
  1/*
  2 * DO NOT EDIT.  THIS FILE IS GENERATED FROM /builds/tinderbox/XR-Trunk/Darwin_8.8.4_Depend/mozilla/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/**
 26 * This represents an ASN.1 object,
 27 * where ASN.1 is "Abstract Syntax Notation number One".
 28 *
 29 * The additional state information carried in this interface
 30 * makes it fit for being used as the data structure
 31 * when working with visual reprenstation of ASN.1 objects
 32 * in a human user interface, like in a tree widget
 33 * where open/close state of nodes must be remembered.
 34 *
 35 * @status FROZEN
 36 */
 37class NS_NO_VTABLE NS_SCRIPTABLE nsIASN1Object : public nsISupports {
 38 public: 
 39
 40  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IASN1OBJECT_IID)
 41
 42  /**
 43   *  Identifiers for the possible types of object.
 44   */
 45  enum { ASN1_END_CONTENTS = 0U };
 46
 47  enum { ASN1_BOOLEAN = 1U };
 48
 49  enum { ASN1_INTEGER = 2U };
 50
 51  enum { ASN1_BIT_STRING = 3U };
 52
 53  enum { ASN1_OCTET_STRING = 4U };
 54
 55  enum { ASN1_NULL = 5U };
 56
 57  enum { ASN1_OBJECT_ID = 6U };
 58
 59  enum { ASN1_ENUMERATED = 10U };
 60
 61  enum { ASN1_UTF8_STRING = 12U };
 62
 63  enum { ASN1_SEQUENCE = 16U };
 64
 65  enum { ASN1_SET = 17U };
 66
 67  enum { ASN1_PRINTABLE_STRING = 19U };
 68
 69  enum { ASN1_T61_STRING = 20U };
 70
 71  enum { ASN1_IA5_STRING = 22U };
 72
 73  enum { ASN1_UTC_TIME = 23U };
 74
 75  enum { ASN1_GEN_TIME = 24U };
 76
 77  enum { ASN1_VISIBLE_STRING = 26U };
 78
 79  enum { ASN1_UNIVERSAL_STRING = 28U };
 80
 81  enum { ASN1_BMP_STRING = 30U };
 82
 83  enum { ASN1_HIGH_TAG_NUMBER = 31U };
 84
 85  enum { ASN1_CONTEXT_SPECIFIC = 32U };
 86
 87  enum { ASN1_APPLICATION = 33U };
 88
 89  enum { ASN1_PRIVATE = 34U };
 90
 91  /**
 92   *  "type" will be equal to one of the defined object identifiers.
 93   */
 94  /* attribute unsigned long type; */
 95  NS_SCRIPTABLE NS_IMETHOD GetType(PRUint32 *aType) = 0;
 96  NS_SCRIPTABLE NS_IMETHOD SetType(PRUint32 aType) = 0;
 97
 98  /**
 99   *  This contains a tag as explained in ASN.1 standards documents.
100   */
101  /* attribute unsigned long tag; */
102  NS_SCRIPTABLE NS_IMETHOD GetTag(PRUint32 *aTag) = 0;
103  NS_SCRIPTABLE NS_IMETHOD SetTag(PRUint32 aTag) = 0;
104
105  /**
106   *  "displayName" contains a human readable explanatory label.
107   */
108  /* attribute AString displayName; */
109  NS_SCRIPTABLE NS_IMETHOD GetDisplayName(nsAString & aDisplayName) = 0;
110  NS_SCRIPTABLE NS_IMETHOD SetDisplayName(const nsAString & aDisplayName) = 0;
111
112  /**
113   *  "displayValue" contains the human readable value.
114   */
115  /* attribute AString displayValue; */
116  NS_SCRIPTABLE NS_IMETHOD GetDisplayValue(nsAString & aDisplayValue) = 0;
117  NS_SCRIPTABLE NS_IMETHOD SetDisplayValue(const nsAString & aDisplayValue) = 0;
118
119};
120
121  NS_DEFINE_STATIC_IID_ACCESSOR(nsIASN1Object, NS_IASN1OBJECT_IID)
122
123/* Use this macro when declaring classes that implement this interface. */
124#define NS_DECL_NSIASN1OBJECT \
125  NS_SCRIPTABLE NS_IMETHOD GetType(PRUint32 *aType); \
126  NS_SCRIPTABLE NS_IMETHOD SetType(PRUint32 aType); \
127  NS_SCRIPTABLE NS_IMETHOD GetTag(PRUint32 *aTag); \
128  NS_SCRIPTABLE NS_IMETHOD SetTag(PRUint32 aTag); \
129  NS_SCRIPTABLE NS_IMETHOD GetDisplayName(nsAString & aDisplayName); \
130  NS_SCRIPTABLE NS_IMETHOD SetDisplayName(const nsAString & aDisplayName); \
131  NS_SCRIPTABLE NS_IMETHOD GetDisplayValue(nsAString & aDisplayValue); \
132  NS_SCRIPTABLE NS_IMETHOD SetDisplayValue(const nsAString & aDisplayValue); 
133
134/* Use this macro to declare functions that forward the behavior of this interface to another object. */
135#define NS_FORWARD_NSIASN1OBJECT(_to) \
136  NS_SCRIPTABLE NS_IMETHOD GetType(PRUint32 *aType) { return _to GetType(aType); } \
137  NS_SCRIPTABLE NS_IMETHOD SetType(PRUint32 aType) { return _to SetType(aType); } \
138  NS_SCRIPTABLE NS_IMETHOD GetTag(PRUint32 *aTag) { return _to GetTag(aTag); } \
139  NS_SCRIPTABLE NS_IMETHOD SetTag(PRUint32 aTag) { return _to SetTag(aTag); } \
140  NS_SCRIPTABLE NS_IMETHOD GetDisplayName(nsAString & aDisplayName) { return _to GetDisplayName(aDisplayName); } \
141  NS_SCRIPTABLE NS_IMETHOD SetDisplayName(const nsAString & aDisplayName) { return _to SetDisplayName(aDisplayName); } \
142  NS_SCRIPTABLE NS_IMETHOD GetDisplayValue(nsAString & aDisplayValue) { return _to GetDisplayValue(aDisplayValue); } \
143  NS_SCRIPTABLE NS_IMETHOD SetDisplayValue(const nsAString & aDisplayValue) { return _to SetDisplayValue(aDisplayValue); } 
144
145/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
146#define NS_FORWARD_SAFE_NSIASN1OBJECT(_to) \
147  NS_SCRIPTABLE NS_IMETHOD GetType(PRUint32 *aType) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetType(aType); } \
148  NS_SCRIPTABLE NS_IMETHOD SetType(PRUint32 aType) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetType(aType); } \
149  NS_SCRIPTABLE NS_IMETHOD GetTag(PRUint32 *aTag) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTag(aTag); } \
150  NS_SCRIPTABLE NS_IMETHOD SetTag(PRUint32 aTag) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetTag(aTag); } \
151  NS_SCRIPTABLE NS_IMETHOD GetDisplayName(nsAString & aDisplayName) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDisplayName(aDisplayName); } \
152  NS_SCRIPTABLE NS_IMETHOD SetDisplayName(const nsAString & aDisplayName) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDisplayName(aDisplayName); } \
153  NS_SCRIPTABLE NS_IMETHOD GetDisplayValue(nsAString & aDisplayValue) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDisplayValue(aDisplayValue); } \
154  NS_SCRIPTABLE NS_IMETHOD SetDisplayValue(const nsAString & aDisplayValue) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDisplayValue(aDisplayValue); } 
155
156#if 0
157/* Use the code below as a template for the implementation class for this interface. */
158
159/* Header file */
160class nsASN1Object : public nsIASN1Object
161{
162public:
163  NS_DECL_ISUPPORTS
164  NS_DECL_NSIASN1OBJECT
165
166  nsASN1Object();
167
168private:
169  ~nsASN1Object();
170
171protected:
172  /* additional members */
173};
174
175/* Implementation file */
176NS_IMPL_ISUPPORTS1(nsASN1Object, nsIASN1Object)
177
178nsASN1Object::nsASN1Object()
179{
180  /* member initializers and constructor code */
181}
182
183nsASN1Object::~nsASN1Object()
184{
185  /* destructor code */
186}
187
188/* attribute unsigned long type; */
189NS_IMETHODIMP nsASN1Object::GetType(PRUint32 *aType)
190{
191    return NS_ERROR_NOT_IMPLEMENTED;
192}
193NS_IMETHODIMP nsASN1Object::SetType(PRUint32 aType)
194{
195    return NS_ERROR_NOT_IMPLEMENTED;
196}
197
198/* attribute unsigned long tag; */
199NS_IMETHODIMP nsASN1Object::GetTag(PRUint32 *aTag)
200{
201    return NS_ERROR_NOT_IMPLEMENTED;
202}
203NS_IMETHODIMP nsASN1Object::SetTag(PRUint32 aTag)
204{
205    return NS_ERROR_NOT_IMPLEMENTED;
206}
207
208/* attribute AString displayName; */
209NS_IMETHODIMP nsASN1Object::GetDisplayName(nsAString & aDisplayName)
210{
211    return NS_ERROR_NOT_IMPLEMENTED;
212}
213NS_IMETHODIMP nsASN1Object::SetDisplayName(const nsAString & aDisplayName)
214{
215    return NS_ERROR_NOT_IMPLEMENTED;
216}
217
218/* attribute AString displayValue; */
219NS_IMETHODIMP nsASN1Object::GetDisplayValue(nsAString & aDisplayValue)
220{
221    return NS_ERROR_NOT_IMPLEMENTED;
222}
223NS_IMETHODIMP nsASN1Object::SetDisplayValue(const nsAString & aDisplayValue)
224{
225    return NS_ERROR_NOT_IMPLEMENTED;
226}
227
228/* End of implementation class template. */
229#endif
230
231
232#endif /* __gen_nsIASN1Object_h__ */