123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205 |
- /*
- * DO NOT EDIT. THIS FILE IS GENERATED FROM c:/mozilla/security/manager/ssl/public/nsICRLInfo.idl
- */
- #ifndef __gen_nsICRLInfo_h__
- #define __gen_nsICRLInfo_h__
- #ifndef __gen_nsISupports_h__
- #include "nsISupports.h"
- #endif
- /* For IDL files that don't want to include root IDL files. */
- #ifndef NS_NO_VTABLE
- #define NS_NO_VTABLE
- #endif
- /* starting interface: nsICRLInfo */
- #define NS_ICRLINFO_IID_STR "c185d920-4a3e-11d5-ba27-00108303b117"
- #define NS_ICRLINFO_IID \
- {0xc185d920, 0x4a3e, 0x11d5, \
- { 0xba, 0x27, 0x00, 0x10, 0x83, 0x03, 0xb1, 0x17 }}
- /**
- * Information on a Certificate Revocation List (CRL)
- * issued by a Aertificate Authority (CA).
- *
- * @status FROZEN
- */
- class NS_NO_VTABLE nsICRLInfo : public nsISupports {
- public:
- NS_DEFINE_STATIC_IID_ACCESSOR(NS_ICRLINFO_IID)
- /**
- * The issuing CA's organization.
- */
- /* readonly attribute AString organization; */
- NS_IMETHOD GetOrganization(nsAString & aOrganization) = 0;
- /**
- * The issuing CA's organizational unit.
- */
- /* readonly attribute AString organizationalUnit; */
- NS_IMETHOD GetOrganizationalUnit(nsAString & aOrganizationalUnit) = 0;
- /**
- * The time this CRL was created at.
- */
- /* readonly attribute PRTime lastUpdate; */
- NS_IMETHOD GetLastUpdate(PRTime *aLastUpdate) = 0;
- /**
- * The time the suggested next update for this CRL.
- */
- /* readonly attribute PRTime nextUpdate; */
- NS_IMETHOD GetNextUpdate(PRTime *aNextUpdate) = 0;
- /**
- * lastUpdate formatted as a human readable string
- * formatted according to the environment locale.
- */
- /* readonly attribute AString lastUpdateLocale; */
- NS_IMETHOD GetLastUpdateLocale(nsAString & aLastUpdateLocale) = 0;
- /**
- * nextUpdate formatted as a human readable string
- * formatted according to the environment locale.
- */
- /* readonly attribute AString nextUpdateLocale; */
- NS_IMETHOD GetNextUpdateLocale(nsAString & aNextUpdateLocale) = 0;
- /**
- * The key identifying the CRL in the database.
- */
- /* readonly attribute AString nameInDb; */
- NS_IMETHOD GetNameInDb(nsAString & aNameInDb) = 0;
- /**
- * The URL this CRL was last fetched from.
- */
- /* readonly attribute AUTF8String lastFetchURL; */
- NS_IMETHOD GetLastFetchURL(nsACString & aLastFetchURL) = 0;
- };
- /* Use this macro when declaring classes that implement this interface. */
- #define NS_DECL_NSICRLINFO \
- NS_IMETHOD GetOrganization(nsAString & aOrganization); \
- NS_IMETHOD GetOrganizationalUnit(nsAString & aOrganizationalUnit); \
- NS_IMETHOD GetLastUpdate(PRTime *aLastUpdate); \
- NS_IMETHOD GetNextUpdate(PRTime *aNextUpdate); \
- NS_IMETHOD GetLastUpdateLocale(nsAString & aLastUpdateLocale); \
- NS_IMETHOD GetNextUpdateLocale(nsAString & aNextUpdateLocale); \
- NS_IMETHOD GetNameInDb(nsAString & aNameInDb); \
- NS_IMETHOD GetLastFetchURL(nsACString & aLastFetchURL);
- /* Use this macro to declare functions that forward the behavior of this interface to another object. */
- #define NS_FORWARD_NSICRLINFO(_to) \
- NS_IMETHOD GetOrganization(nsAString & aOrganization) { return _to GetOrganization(aOrganization); } \
- NS_IMETHOD GetOrganizationalUnit(nsAString & aOrganizationalUnit) { return _to GetOrganizationalUnit(aOrganizationalUnit); } \
- NS_IMETHOD GetLastUpdate(PRTime *aLastUpdate) { return _to GetLastUpdate(aLastUpdate); } \
- NS_IMETHOD GetNextUpdate(PRTime *aNextUpdate) { return _to GetNextUpdate(aNextUpdate); } \
- NS_IMETHOD GetLastUpdateLocale(nsAString & aLastUpdateLocale) { return _to GetLastUpdateLocale(aLastUpdateLocale); } \
- NS_IMETHOD GetNextUpdateLocale(nsAString & aNextUpdateLocale) { return _to GetNextUpdateLocale(aNextUpdateLocale); } \
- NS_IMETHOD GetNameInDb(nsAString & aNameInDb) { return _to GetNameInDb(aNameInDb); } \
- NS_IMETHOD GetLastFetchURL(nsACString & aLastFetchURL) { return _to GetLastFetchURL(aLastFetchURL); }
- /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
- #define NS_FORWARD_SAFE_NSICRLINFO(_to) \
- NS_IMETHOD GetOrganization(nsAString & aOrganization) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOrganization(aOrganization); } \
- NS_IMETHOD GetOrganizationalUnit(nsAString & aOrganizationalUnit) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOrganizationalUnit(aOrganizationalUnit); } \
- NS_IMETHOD GetLastUpdate(PRTime *aLastUpdate) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLastUpdate(aLastUpdate); } \
- NS_IMETHOD GetNextUpdate(PRTime *aNextUpdate) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNextUpdate(aNextUpdate); } \
- NS_IMETHOD GetLastUpdateLocale(nsAString & aLastUpdateLocale) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLastUpdateLocale(aLastUpdateLocale); } \
- NS_IMETHOD GetNextUpdateLocale(nsAString & aNextUpdateLocale) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNextUpdateLocale(aNextUpdateLocale); } \
- NS_IMETHOD GetNameInDb(nsAString & aNameInDb) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNameInDb(aNameInDb); } \
- NS_IMETHOD GetLastFetchURL(nsACString & aLastFetchURL) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLastFetchURL(aLastFetchURL); }
- #if 0
- /* Use the code below as a template for the implementation class for this interface. */
- /* Header file */
- class nsCRLInfo : public nsICRLInfo
- {
- public:
- NS_DECL_ISUPPORTS
- NS_DECL_NSICRLINFO
- nsCRLInfo();
- private:
- ~nsCRLInfo();
- protected:
- /* additional members */
- };
- /* Implementation file */
- NS_IMPL_ISUPPORTS1(nsCRLInfo, nsICRLInfo)
- nsCRLInfo::nsCRLInfo()
- {
- /* member initializers and constructor code */
- }
- nsCRLInfo::~nsCRLInfo()
- {
- /* destructor code */
- }
- /* readonly attribute AString organization; */
- NS_IMETHODIMP nsCRLInfo::GetOrganization(nsAString & aOrganization)
- {
- return NS_ERROR_NOT_IMPLEMENTED;
- }
- /* readonly attribute AString organizationalUnit; */
- NS_IMETHODIMP nsCRLInfo::GetOrganizationalUnit(nsAString & aOrganizationalUnit)
- {
- return NS_ERROR_NOT_IMPLEMENTED;
- }
- /* readonly attribute PRTime lastUpdate; */
- NS_IMETHODIMP nsCRLInfo::GetLastUpdate(PRTime *aLastUpdate)
- {
- return NS_ERROR_NOT_IMPLEMENTED;
- }
- /* readonly attribute PRTime nextUpdate; */
- NS_IMETHODIMP nsCRLInfo::GetNextUpdate(PRTime *aNextUpdate)
- {
- return NS_ERROR_NOT_IMPLEMENTED;
- }
- /* readonly attribute AString lastUpdateLocale; */
- NS_IMETHODIMP nsCRLInfo::GetLastUpdateLocale(nsAString & aLastUpdateLocale)
- {
- return NS_ERROR_NOT_IMPLEMENTED;
- }
- /* readonly attribute AString nextUpdateLocale; */
- NS_IMETHODIMP nsCRLInfo::GetNextUpdateLocale(nsAString & aNextUpdateLocale)
- {
- return NS_ERROR_NOT_IMPLEMENTED;
- }
- /* readonly attribute AString nameInDb; */
- NS_IMETHODIMP nsCRLInfo::GetNameInDb(nsAString & aNameInDb)
- {
- return NS_ERROR_NOT_IMPLEMENTED;
- }
- /* readonly attribute AUTF8String lastFetchURL; */
- NS_IMETHODIMP nsCRLInfo::GetLastFetchURL(nsACString & aLastFetchURL)
- {
- return NS_ERROR_NOT_IMPLEMENTED;
- }
- /* End of implementation class template. */
- #endif
- #endif /* __gen_nsICRLInfo_h__ */
|