nsICRLInfo.h 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205
  1. /*
  2. * DO NOT EDIT. THIS FILE IS GENERATED FROM c:/mozilla/security/manager/ssl/public/nsICRLInfo.idl
  3. */
  4. #ifndef __gen_nsICRLInfo_h__
  5. #define __gen_nsICRLInfo_h__
  6. #ifndef __gen_nsISupports_h__
  7. #include "nsISupports.h"
  8. #endif
  9. /* For IDL files that don't want to include root IDL files. */
  10. #ifndef NS_NO_VTABLE
  11. #define NS_NO_VTABLE
  12. #endif
  13. /* starting interface: nsICRLInfo */
  14. #define NS_ICRLINFO_IID_STR "c185d920-4a3e-11d5-ba27-00108303b117"
  15. #define NS_ICRLINFO_IID \
  16. {0xc185d920, 0x4a3e, 0x11d5, \
  17. { 0xba, 0x27, 0x00, 0x10, 0x83, 0x03, 0xb1, 0x17 }}
  18. /**
  19. * Information on a Certificate Revocation List (CRL)
  20. * issued by a Aertificate Authority (CA).
  21. *
  22. * @status FROZEN
  23. */
  24. class NS_NO_VTABLE nsICRLInfo : public nsISupports {
  25. public:
  26. NS_DEFINE_STATIC_IID_ACCESSOR(NS_ICRLINFO_IID)
  27. /**
  28. * The issuing CA's organization.
  29. */
  30. /* readonly attribute AString organization; */
  31. NS_IMETHOD GetOrganization(nsAString & aOrganization) = 0;
  32. /**
  33. * The issuing CA's organizational unit.
  34. */
  35. /* readonly attribute AString organizationalUnit; */
  36. NS_IMETHOD GetOrganizationalUnit(nsAString & aOrganizationalUnit) = 0;
  37. /**
  38. * The time this CRL was created at.
  39. */
  40. /* readonly attribute PRTime lastUpdate; */
  41. NS_IMETHOD GetLastUpdate(PRTime *aLastUpdate) = 0;
  42. /**
  43. * The time the suggested next update for this CRL.
  44. */
  45. /* readonly attribute PRTime nextUpdate; */
  46. NS_IMETHOD GetNextUpdate(PRTime *aNextUpdate) = 0;
  47. /**
  48. * lastUpdate formatted as a human readable string
  49. * formatted according to the environment locale.
  50. */
  51. /* readonly attribute AString lastUpdateLocale; */
  52. NS_IMETHOD GetLastUpdateLocale(nsAString & aLastUpdateLocale) = 0;
  53. /**
  54. * nextUpdate formatted as a human readable string
  55. * formatted according to the environment locale.
  56. */
  57. /* readonly attribute AString nextUpdateLocale; */
  58. NS_IMETHOD GetNextUpdateLocale(nsAString & aNextUpdateLocale) = 0;
  59. /**
  60. * The key identifying the CRL in the database.
  61. */
  62. /* readonly attribute AString nameInDb; */
  63. NS_IMETHOD GetNameInDb(nsAString & aNameInDb) = 0;
  64. /**
  65. * The URL this CRL was last fetched from.
  66. */
  67. /* readonly attribute AUTF8String lastFetchURL; */
  68. NS_IMETHOD GetLastFetchURL(nsACString & aLastFetchURL) = 0;
  69. };
  70. /* Use this macro when declaring classes that implement this interface. */
  71. #define NS_DECL_NSICRLINFO \
  72. NS_IMETHOD GetOrganization(nsAString & aOrganization); \
  73. NS_IMETHOD GetOrganizationalUnit(nsAString & aOrganizationalUnit); \
  74. NS_IMETHOD GetLastUpdate(PRTime *aLastUpdate); \
  75. NS_IMETHOD GetNextUpdate(PRTime *aNextUpdate); \
  76. NS_IMETHOD GetLastUpdateLocale(nsAString & aLastUpdateLocale); \
  77. NS_IMETHOD GetNextUpdateLocale(nsAString & aNextUpdateLocale); \
  78. NS_IMETHOD GetNameInDb(nsAString & aNameInDb); \
  79. NS_IMETHOD GetLastFetchURL(nsACString & aLastFetchURL);
  80. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  81. #define NS_FORWARD_NSICRLINFO(_to) \
  82. NS_IMETHOD GetOrganization(nsAString & aOrganization) { return _to GetOrganization(aOrganization); } \
  83. NS_IMETHOD GetOrganizationalUnit(nsAString & aOrganizationalUnit) { return _to GetOrganizationalUnit(aOrganizationalUnit); } \
  84. NS_IMETHOD GetLastUpdate(PRTime *aLastUpdate) { return _to GetLastUpdate(aLastUpdate); } \
  85. NS_IMETHOD GetNextUpdate(PRTime *aNextUpdate) { return _to GetNextUpdate(aNextUpdate); } \
  86. NS_IMETHOD GetLastUpdateLocale(nsAString & aLastUpdateLocale) { return _to GetLastUpdateLocale(aLastUpdateLocale); } \
  87. NS_IMETHOD GetNextUpdateLocale(nsAString & aNextUpdateLocale) { return _to GetNextUpdateLocale(aNextUpdateLocale); } \
  88. NS_IMETHOD GetNameInDb(nsAString & aNameInDb) { return _to GetNameInDb(aNameInDb); } \
  89. NS_IMETHOD GetLastFetchURL(nsACString & aLastFetchURL) { return _to GetLastFetchURL(aLastFetchURL); }
  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_NSICRLINFO(_to) \
  92. NS_IMETHOD GetOrganization(nsAString & aOrganization) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOrganization(aOrganization); } \
  93. NS_IMETHOD GetOrganizationalUnit(nsAString & aOrganizationalUnit) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOrganizationalUnit(aOrganizationalUnit); } \
  94. NS_IMETHOD GetLastUpdate(PRTime *aLastUpdate) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLastUpdate(aLastUpdate); } \
  95. NS_IMETHOD GetNextUpdate(PRTime *aNextUpdate) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNextUpdate(aNextUpdate); } \
  96. NS_IMETHOD GetLastUpdateLocale(nsAString & aLastUpdateLocale) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLastUpdateLocale(aLastUpdateLocale); } \
  97. NS_IMETHOD GetNextUpdateLocale(nsAString & aNextUpdateLocale) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNextUpdateLocale(aNextUpdateLocale); } \
  98. NS_IMETHOD GetNameInDb(nsAString & aNameInDb) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNameInDb(aNameInDb); } \
  99. NS_IMETHOD GetLastFetchURL(nsACString & aLastFetchURL) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLastFetchURL(aLastFetchURL); }
  100. #if 0
  101. /* Use the code below as a template for the implementation class for this interface. */
  102. /* Header file */
  103. class nsCRLInfo : public nsICRLInfo
  104. {
  105. public:
  106. NS_DECL_ISUPPORTS
  107. NS_DECL_NSICRLINFO
  108. nsCRLInfo();
  109. private:
  110. ~nsCRLInfo();
  111. protected:
  112. /* additional members */
  113. };
  114. /* Implementation file */
  115. NS_IMPL_ISUPPORTS1(nsCRLInfo, nsICRLInfo)
  116. nsCRLInfo::nsCRLInfo()
  117. {
  118. /* member initializers and constructor code */
  119. }
  120. nsCRLInfo::~nsCRLInfo()
  121. {
  122. /* destructor code */
  123. }
  124. /* readonly attribute AString organization; */
  125. NS_IMETHODIMP nsCRLInfo::GetOrganization(nsAString & aOrganization)
  126. {
  127. return NS_ERROR_NOT_IMPLEMENTED;
  128. }
  129. /* readonly attribute AString organizationalUnit; */
  130. NS_IMETHODIMP nsCRLInfo::GetOrganizationalUnit(nsAString & aOrganizationalUnit)
  131. {
  132. return NS_ERROR_NOT_IMPLEMENTED;
  133. }
  134. /* readonly attribute PRTime lastUpdate; */
  135. NS_IMETHODIMP nsCRLInfo::GetLastUpdate(PRTime *aLastUpdate)
  136. {
  137. return NS_ERROR_NOT_IMPLEMENTED;
  138. }
  139. /* readonly attribute PRTime nextUpdate; */
  140. NS_IMETHODIMP nsCRLInfo::GetNextUpdate(PRTime *aNextUpdate)
  141. {
  142. return NS_ERROR_NOT_IMPLEMENTED;
  143. }
  144. /* readonly attribute AString lastUpdateLocale; */
  145. NS_IMETHODIMP nsCRLInfo::GetLastUpdateLocale(nsAString & aLastUpdateLocale)
  146. {
  147. return NS_ERROR_NOT_IMPLEMENTED;
  148. }
  149. /* readonly attribute AString nextUpdateLocale; */
  150. NS_IMETHODIMP nsCRLInfo::GetNextUpdateLocale(nsAString & aNextUpdateLocale)
  151. {
  152. return NS_ERROR_NOT_IMPLEMENTED;
  153. }
  154. /* readonly attribute AString nameInDb; */
  155. NS_IMETHODIMP nsCRLInfo::GetNameInDb(nsAString & aNameInDb)
  156. {
  157. return NS_ERROR_NOT_IMPLEMENTED;
  158. }
  159. /* readonly attribute AUTF8String lastFetchURL; */
  160. NS_IMETHODIMP nsCRLInfo::GetLastFetchURL(nsACString & aLastFetchURL)
  161. {
  162. return NS_ERROR_NOT_IMPLEMENTED;
  163. }
  164. /* End of implementation class template. */
  165. #endif
  166. #endif /* __gen_nsICRLInfo_h__ */