PageRenderTime 55ms CodeModel.GetById 22ms RepoModel.GetById 0ms app.codeStats 0ms

/gecko_api/include/nsIASN1Sequence.h

http://firefox-mac-pdf.googlecode.com/
C Header | 183 lines | 92 code | 32 blank | 59 comment | 0 complexity | 2edbb6ecae02d29e7e0be7d140f22fea 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/nsIASN1Sequence.idl
  3. */
  4. #ifndef __gen_nsIASN1Sequence_h__
  5. #define __gen_nsIASN1Sequence_h__
  6. #ifndef __gen_nsISupports_h__
  7. #include "nsISupports.h"
  8. #endif
  9. #ifndef __gen_nsIASN1Object_h__
  10. #include "nsIASN1Object.h"
  11. #endif
  12. /* For IDL files that don't want to include root IDL files. */
  13. #ifndef NS_NO_VTABLE
  14. #define NS_NO_VTABLE
  15. #endif
  16. class nsIMutableArray; /* forward declaration */
  17. /* starting interface: nsIASN1Sequence */
  18. #define NS_IASN1SEQUENCE_IID_STR "b6b957e6-1dd1-11b2-89d7-e30624f50b00"
  19. #define NS_IASN1SEQUENCE_IID \
  20. {0xb6b957e6, 0x1dd1, 0x11b2, \
  21. { 0x89, 0xd7, 0xe3, 0x06, 0x24, 0xf5, 0x0b, 0x00 }}
  22. /**
  23. * This represents a sequence of ASN.1 objects,
  24. * where ASN.1 is "Abstract Syntax Notation number One".
  25. *
  26. * Overview of how this ASN1 interface is intended to
  27. * work.
  28. *
  29. * First off, the nsIASN1Sequence is any type in ASN1
  30. * that consists of sub-elements (ie SEQUENCE, SET)
  31. * nsIASN1Printable Items are all the other types that
  32. * can be viewed by themselves without interpreting further.
  33. * Examples would include INTEGER, UTF-8 STRING, OID.
  34. * These are not intended to directly reflect the numberous
  35. * types that exist in ASN1, but merely an interface to ease
  36. * producing a tree display the ASN1 structure of any DER
  37. * object.
  38. *
  39. * The additional state information carried in this interface
  40. * makes it fit for being used as the data structure
  41. * when working with visual reprenstation of ASN.1 objects
  42. * in a human user interface, like in a tree widget
  43. * where open/close state of nodes must be remembered.
  44. *
  45. * @status FROZEN
  46. */
  47. class NS_NO_VTABLE NS_SCRIPTABLE nsIASN1Sequence : public nsIASN1Object {
  48. public:
  49. NS_DECLARE_STATIC_IID_ACCESSOR(NS_IASN1SEQUENCE_IID)
  50. /**
  51. * The array of objects stored in the sequence.
  52. */
  53. /* attribute nsIMutableArray ASN1Objects; */
  54. NS_SCRIPTABLE NS_IMETHOD GetASN1Objects(nsIMutableArray * *aASN1Objects) = 0;
  55. NS_SCRIPTABLE NS_IMETHOD SetASN1Objects(nsIMutableArray * aASN1Objects) = 0;
  56. /**
  57. * Whether the node at this position in the ASN.1 data structure
  58. * sequence contains sub elements understood by the
  59. * application.
  60. */
  61. /* attribute boolean isValidContainer; */
  62. NS_SCRIPTABLE NS_IMETHOD GetIsValidContainer(PRBool *aIsValidContainer) = 0;
  63. NS_SCRIPTABLE NS_IMETHOD SetIsValidContainer(PRBool aIsValidContainer) = 0;
  64. /**
  65. * Whether the contained objects should be shown or hidden.
  66. * A UI implementation can use this flag to store the current
  67. * expansion state when shown in a tree widget.
  68. */
  69. /* attribute boolean isExpanded; */
  70. NS_SCRIPTABLE NS_IMETHOD GetIsExpanded(PRBool *aIsExpanded) = 0;
  71. NS_SCRIPTABLE NS_IMETHOD SetIsExpanded(PRBool aIsExpanded) = 0;
  72. };
  73. NS_DEFINE_STATIC_IID_ACCESSOR(nsIASN1Sequence, NS_IASN1SEQUENCE_IID)
  74. /* Use this macro when declaring classes that implement this interface. */
  75. #define NS_DECL_NSIASN1SEQUENCE \
  76. NS_SCRIPTABLE NS_IMETHOD GetASN1Objects(nsIMutableArray * *aASN1Objects); \
  77. NS_SCRIPTABLE NS_IMETHOD SetASN1Objects(nsIMutableArray * aASN1Objects); \
  78. NS_SCRIPTABLE NS_IMETHOD GetIsValidContainer(PRBool *aIsValidContainer); \
  79. NS_SCRIPTABLE NS_IMETHOD SetIsValidContainer(PRBool aIsValidContainer); \
  80. NS_SCRIPTABLE NS_IMETHOD GetIsExpanded(PRBool *aIsExpanded); \
  81. NS_SCRIPTABLE NS_IMETHOD SetIsExpanded(PRBool aIsExpanded);
  82. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  83. #define NS_FORWARD_NSIASN1SEQUENCE(_to) \
  84. NS_SCRIPTABLE NS_IMETHOD GetASN1Objects(nsIMutableArray * *aASN1Objects) { return _to GetASN1Objects(aASN1Objects); } \
  85. NS_SCRIPTABLE NS_IMETHOD SetASN1Objects(nsIMutableArray * aASN1Objects) { return _to SetASN1Objects(aASN1Objects); } \
  86. NS_SCRIPTABLE NS_IMETHOD GetIsValidContainer(PRBool *aIsValidContainer) { return _to GetIsValidContainer(aIsValidContainer); } \
  87. NS_SCRIPTABLE NS_IMETHOD SetIsValidContainer(PRBool aIsValidContainer) { return _to SetIsValidContainer(aIsValidContainer); } \
  88. NS_SCRIPTABLE NS_IMETHOD GetIsExpanded(PRBool *aIsExpanded) { return _to GetIsExpanded(aIsExpanded); } \
  89. NS_SCRIPTABLE NS_IMETHOD SetIsExpanded(PRBool aIsExpanded) { return _to SetIsExpanded(aIsExpanded); }
  90. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  91. #define NS_FORWARD_SAFE_NSIASN1SEQUENCE(_to) \
  92. NS_SCRIPTABLE NS_IMETHOD GetASN1Objects(nsIMutableArray * *aASN1Objects) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetASN1Objects(aASN1Objects); } \
  93. NS_SCRIPTABLE NS_IMETHOD SetASN1Objects(nsIMutableArray * aASN1Objects) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetASN1Objects(aASN1Objects); } \
  94. NS_SCRIPTABLE NS_IMETHOD GetIsValidContainer(PRBool *aIsValidContainer) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsValidContainer(aIsValidContainer); } \
  95. NS_SCRIPTABLE NS_IMETHOD SetIsValidContainer(PRBool aIsValidContainer) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetIsValidContainer(aIsValidContainer); } \
  96. NS_SCRIPTABLE NS_IMETHOD GetIsExpanded(PRBool *aIsExpanded) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsExpanded(aIsExpanded); } \
  97. NS_SCRIPTABLE NS_IMETHOD SetIsExpanded(PRBool aIsExpanded) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetIsExpanded(aIsExpanded); }
  98. #if 0
  99. /* Use the code below as a template for the implementation class for this interface. */
  100. /* Header file */
  101. class nsASN1Sequence : public nsIASN1Sequence
  102. {
  103. public:
  104. NS_DECL_ISUPPORTS
  105. NS_DECL_NSIASN1SEQUENCE
  106. nsASN1Sequence();
  107. private:
  108. ~nsASN1Sequence();
  109. protected:
  110. /* additional members */
  111. };
  112. /* Implementation file */
  113. NS_IMPL_ISUPPORTS1(nsASN1Sequence, nsIASN1Sequence)
  114. nsASN1Sequence::nsASN1Sequence()
  115. {
  116. /* member initializers and constructor code */
  117. }
  118. nsASN1Sequence::~nsASN1Sequence()
  119. {
  120. /* destructor code */
  121. }
  122. /* attribute nsIMutableArray ASN1Objects; */
  123. NS_IMETHODIMP nsASN1Sequence::GetASN1Objects(nsIMutableArray * *aASN1Objects)
  124. {
  125. return NS_ERROR_NOT_IMPLEMENTED;
  126. }
  127. NS_IMETHODIMP nsASN1Sequence::SetASN1Objects(nsIMutableArray * aASN1Objects)
  128. {
  129. return NS_ERROR_NOT_IMPLEMENTED;
  130. }
  131. /* attribute boolean isValidContainer; */
  132. NS_IMETHODIMP nsASN1Sequence::GetIsValidContainer(PRBool *aIsValidContainer)
  133. {
  134. return NS_ERROR_NOT_IMPLEMENTED;
  135. }
  136. NS_IMETHODIMP nsASN1Sequence::SetIsValidContainer(PRBool aIsValidContainer)
  137. {
  138. return NS_ERROR_NOT_IMPLEMENTED;
  139. }
  140. /* attribute boolean isExpanded; */
  141. NS_IMETHODIMP nsASN1Sequence::GetIsExpanded(PRBool *aIsExpanded)
  142. {
  143. return NS_ERROR_NOT_IMPLEMENTED;
  144. }
  145. NS_IMETHODIMP nsASN1Sequence::SetIsExpanded(PRBool aIsExpanded)
  146. {
  147. return NS_ERROR_NOT_IMPLEMENTED;
  148. }
  149. /* End of implementation class template. */
  150. #endif
  151. #endif /* __gen_nsIASN1Sequence_h__ */