nsIASN1Sequence.h 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  1. /*
  2. * DO NOT EDIT. THIS FILE IS GENERATED FROM c:/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 nsIASN1Sequence : public nsIASN1Object {
  48. public:
  49. NS_DEFINE_STATIC_IID_ACCESSOR(NS_IASN1SEQUENCE_IID)
  50. /**
  51. * The array of objects stored in the sequence.
  52. */
  53. /* attribute nsIMutableArray ASN1Objects; */
  54. NS_IMETHOD GetASN1Objects(nsIMutableArray * *aASN1Objects) = 0;
  55. 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_IMETHOD GetIsValidContainer(PRBool *aIsValidContainer) = 0;
  63. 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_IMETHOD GetIsExpanded(PRBool *aIsExpanded) = 0;
  71. NS_IMETHOD SetIsExpanded(PRBool aIsExpanded) = 0;
  72. };
  73. /* Use this macro when declaring classes that implement this interface. */
  74. #define NS_DECL_NSIASN1SEQUENCE \
  75. NS_IMETHOD GetASN1Objects(nsIMutableArray * *aASN1Objects); \
  76. NS_IMETHOD SetASN1Objects(nsIMutableArray * aASN1Objects); \
  77. NS_IMETHOD GetIsValidContainer(PRBool *aIsValidContainer); \
  78. NS_IMETHOD SetIsValidContainer(PRBool aIsValidContainer); \
  79. NS_IMETHOD GetIsExpanded(PRBool *aIsExpanded); \
  80. NS_IMETHOD SetIsExpanded(PRBool aIsExpanded);
  81. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  82. #define NS_FORWARD_NSIASN1SEQUENCE(_to) \
  83. NS_IMETHOD GetASN1Objects(nsIMutableArray * *aASN1Objects) { return _to GetASN1Objects(aASN1Objects); } \
  84. NS_IMETHOD SetASN1Objects(nsIMutableArray * aASN1Objects) { return _to SetASN1Objects(aASN1Objects); } \
  85. NS_IMETHOD GetIsValidContainer(PRBool *aIsValidContainer) { return _to GetIsValidContainer(aIsValidContainer); } \
  86. NS_IMETHOD SetIsValidContainer(PRBool aIsValidContainer) { return _to SetIsValidContainer(aIsValidContainer); } \
  87. NS_IMETHOD GetIsExpanded(PRBool *aIsExpanded) { return _to GetIsExpanded(aIsExpanded); } \
  88. NS_IMETHOD SetIsExpanded(PRBool aIsExpanded) { return _to SetIsExpanded(aIsExpanded); }
  89. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  90. #define NS_FORWARD_SAFE_NSIASN1SEQUENCE(_to) \
  91. NS_IMETHOD GetASN1Objects(nsIMutableArray * *aASN1Objects) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetASN1Objects(aASN1Objects); } \
  92. NS_IMETHOD SetASN1Objects(nsIMutableArray * aASN1Objects) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetASN1Objects(aASN1Objects); } \
  93. NS_IMETHOD GetIsValidContainer(PRBool *aIsValidContainer) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsValidContainer(aIsValidContainer); } \
  94. NS_IMETHOD SetIsValidContainer(PRBool aIsValidContainer) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetIsValidContainer(aIsValidContainer); } \
  95. NS_IMETHOD GetIsExpanded(PRBool *aIsExpanded) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsExpanded(aIsExpanded); } \
  96. NS_IMETHOD SetIsExpanded(PRBool aIsExpanded) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetIsExpanded(aIsExpanded); }
  97. #if 0
  98. /* Use the code below as a template for the implementation class for this interface. */
  99. /* Header file */
  100. class nsASN1Sequence : public nsIASN1Sequence
  101. {
  102. public:
  103. NS_DECL_ISUPPORTS
  104. NS_DECL_NSIASN1SEQUENCE
  105. nsASN1Sequence();
  106. private:
  107. ~nsASN1Sequence();
  108. protected:
  109. /* additional members */
  110. };
  111. /* Implementation file */
  112. NS_IMPL_ISUPPORTS1(nsASN1Sequence, nsIASN1Sequence)
  113. nsASN1Sequence::nsASN1Sequence()
  114. {
  115. /* member initializers and constructor code */
  116. }
  117. nsASN1Sequence::~nsASN1Sequence()
  118. {
  119. /* destructor code */
  120. }
  121. /* attribute nsIMutableArray ASN1Objects; */
  122. NS_IMETHODIMP nsASN1Sequence::GetASN1Objects(nsIMutableArray * *aASN1Objects)
  123. {
  124. return NS_ERROR_NOT_IMPLEMENTED;
  125. }
  126. NS_IMETHODIMP nsASN1Sequence::SetASN1Objects(nsIMutableArray * aASN1Objects)
  127. {
  128. return NS_ERROR_NOT_IMPLEMENTED;
  129. }
  130. /* attribute boolean isValidContainer; */
  131. NS_IMETHODIMP nsASN1Sequence::GetIsValidContainer(PRBool *aIsValidContainer)
  132. {
  133. return NS_ERROR_NOT_IMPLEMENTED;
  134. }
  135. NS_IMETHODIMP nsASN1Sequence::SetIsValidContainer(PRBool aIsValidContainer)
  136. {
  137. return NS_ERROR_NOT_IMPLEMENTED;
  138. }
  139. /* attribute boolean isExpanded; */
  140. NS_IMETHODIMP nsASN1Sequence::GetIsExpanded(PRBool *aIsExpanded)
  141. {
  142. return NS_ERROR_NOT_IMPLEMENTED;
  143. }
  144. NS_IMETHODIMP nsASN1Sequence::SetIsExpanded(PRBool aIsExpanded)
  145. {
  146. return NS_ERROR_NOT_IMPLEMENTED;
  147. }
  148. /* End of implementation class template. */
  149. #endif
  150. #endif /* __gen_nsIASN1Sequence_h__ */