PageRenderTime 153ms CodeModel.GetById 60ms app.highlight 5ms RepoModel.GetById 86ms app.codeStats 0ms

/gecko_api/include/nsICRLInfo.h

http://firefox-mac-pdf.googlecode.com/
C++ Header | 207 lines | 104 code | 40 blank | 63 comment | 0 complexity | bd35c14a60cc2f3c135dcdd540c9c067 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/nsICRLInfo.idl
  3 */
  4
  5#ifndef __gen_nsICRLInfo_h__
  6#define __gen_nsICRLInfo_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:    nsICRLInfo */
 19#define NS_ICRLINFO_IID_STR "c185d920-4a3e-11d5-ba27-00108303b117"
 20
 21#define NS_ICRLINFO_IID \
 22  {0xc185d920, 0x4a3e, 0x11d5, \
 23    { 0xba, 0x27, 0x00, 0x10, 0x83, 0x03, 0xb1, 0x17 }}
 24
 25/**
 26 * Information on a Certificate Revocation List (CRL)
 27 * issued by a Aertificate Authority (CA).
 28 *
 29 * @status FROZEN
 30 */
 31class NS_NO_VTABLE NS_SCRIPTABLE nsICRLInfo : public nsISupports {
 32 public: 
 33
 34  NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICRLINFO_IID)
 35
 36  /**
 37   *  The issuing CA's organization.
 38   */
 39  /* readonly attribute AString organization; */
 40  NS_SCRIPTABLE NS_IMETHOD GetOrganization(nsAString & aOrganization) = 0;
 41
 42  /**
 43   *  The issuing CA's organizational unit.
 44   */
 45  /* readonly attribute AString organizationalUnit; */
 46  NS_SCRIPTABLE NS_IMETHOD GetOrganizationalUnit(nsAString & aOrganizationalUnit) = 0;
 47
 48  /**
 49   *  The time this CRL was created at.
 50   */
 51  /* readonly attribute PRTime lastUpdate; */
 52  NS_SCRIPTABLE NS_IMETHOD GetLastUpdate(PRTime *aLastUpdate) = 0;
 53
 54  /**
 55   *  The time the suggested next update for this CRL.
 56   */
 57  /* readonly attribute PRTime nextUpdate; */
 58  NS_SCRIPTABLE NS_IMETHOD GetNextUpdate(PRTime *aNextUpdate) = 0;
 59
 60  /**
 61   *  lastUpdate formatted as a human readable string
 62   *  formatted according to the environment locale.
 63   */
 64  /* readonly attribute AString lastUpdateLocale; */
 65  NS_SCRIPTABLE NS_IMETHOD GetLastUpdateLocale(nsAString & aLastUpdateLocale) = 0;
 66
 67  /**
 68   *  nextUpdate formatted as a human readable string
 69   *  formatted according to the environment locale.
 70   */
 71  /* readonly attribute AString nextUpdateLocale; */
 72  NS_SCRIPTABLE NS_IMETHOD GetNextUpdateLocale(nsAString & aNextUpdateLocale) = 0;
 73
 74  /**
 75   *  The key identifying the CRL in the database.
 76   */
 77  /* readonly attribute AString nameInDb; */
 78  NS_SCRIPTABLE NS_IMETHOD GetNameInDb(nsAString & aNameInDb) = 0;
 79
 80  /**
 81   *  The URL this CRL was last fetched from.
 82   */
 83  /* readonly attribute AUTF8String lastFetchURL; */
 84  NS_SCRIPTABLE NS_IMETHOD GetLastFetchURL(nsACString & aLastFetchURL) = 0;
 85
 86};
 87
 88  NS_DEFINE_STATIC_IID_ACCESSOR(nsICRLInfo, NS_ICRLINFO_IID)
 89
 90/* Use this macro when declaring classes that implement this interface. */
 91#define NS_DECL_NSICRLINFO \
 92  NS_SCRIPTABLE NS_IMETHOD GetOrganization(nsAString & aOrganization); \
 93  NS_SCRIPTABLE NS_IMETHOD GetOrganizationalUnit(nsAString & aOrganizationalUnit); \
 94  NS_SCRIPTABLE NS_IMETHOD GetLastUpdate(PRTime *aLastUpdate); \
 95  NS_SCRIPTABLE NS_IMETHOD GetNextUpdate(PRTime *aNextUpdate); \
 96  NS_SCRIPTABLE NS_IMETHOD GetLastUpdateLocale(nsAString & aLastUpdateLocale); \
 97  NS_SCRIPTABLE NS_IMETHOD GetNextUpdateLocale(nsAString & aNextUpdateLocale); \
 98  NS_SCRIPTABLE NS_IMETHOD GetNameInDb(nsAString & aNameInDb); \
 99  NS_SCRIPTABLE NS_IMETHOD GetLastFetchURL(nsACString & aLastFetchURL); 
100
101/* Use this macro to declare functions that forward the behavior of this interface to another object. */
102#define NS_FORWARD_NSICRLINFO(_to) \
103  NS_SCRIPTABLE NS_IMETHOD GetOrganization(nsAString & aOrganization) { return _to GetOrganization(aOrganization); } \
104  NS_SCRIPTABLE NS_IMETHOD GetOrganizationalUnit(nsAString & aOrganizationalUnit) { return _to GetOrganizationalUnit(aOrganizationalUnit); } \
105  NS_SCRIPTABLE NS_IMETHOD GetLastUpdate(PRTime *aLastUpdate) { return _to GetLastUpdate(aLastUpdate); } \
106  NS_SCRIPTABLE NS_IMETHOD GetNextUpdate(PRTime *aNextUpdate) { return _to GetNextUpdate(aNextUpdate); } \
107  NS_SCRIPTABLE NS_IMETHOD GetLastUpdateLocale(nsAString & aLastUpdateLocale) { return _to GetLastUpdateLocale(aLastUpdateLocale); } \
108  NS_SCRIPTABLE NS_IMETHOD GetNextUpdateLocale(nsAString & aNextUpdateLocale) { return _to GetNextUpdateLocale(aNextUpdateLocale); } \
109  NS_SCRIPTABLE NS_IMETHOD GetNameInDb(nsAString & aNameInDb) { return _to GetNameInDb(aNameInDb); } \
110  NS_SCRIPTABLE NS_IMETHOD GetLastFetchURL(nsACString & aLastFetchURL) { return _to GetLastFetchURL(aLastFetchURL); } 
111
112/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
113#define NS_FORWARD_SAFE_NSICRLINFO(_to) \
114  NS_SCRIPTABLE NS_IMETHOD GetOrganization(nsAString & aOrganization) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOrganization(aOrganization); } \
115  NS_SCRIPTABLE NS_IMETHOD GetOrganizationalUnit(nsAString & aOrganizationalUnit) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOrganizationalUnit(aOrganizationalUnit); } \
116  NS_SCRIPTABLE NS_IMETHOD GetLastUpdate(PRTime *aLastUpdate) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLastUpdate(aLastUpdate); } \
117  NS_SCRIPTABLE NS_IMETHOD GetNextUpdate(PRTime *aNextUpdate) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNextUpdate(aNextUpdate); } \
118  NS_SCRIPTABLE NS_IMETHOD GetLastUpdateLocale(nsAString & aLastUpdateLocale) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLastUpdateLocale(aLastUpdateLocale); } \
119  NS_SCRIPTABLE NS_IMETHOD GetNextUpdateLocale(nsAString & aNextUpdateLocale) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNextUpdateLocale(aNextUpdateLocale); } \
120  NS_SCRIPTABLE NS_IMETHOD GetNameInDb(nsAString & aNameInDb) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNameInDb(aNameInDb); } \
121  NS_SCRIPTABLE NS_IMETHOD GetLastFetchURL(nsACString & aLastFetchURL) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLastFetchURL(aLastFetchURL); } 
122
123#if 0
124/* Use the code below as a template for the implementation class for this interface. */
125
126/* Header file */
127class nsCRLInfo : public nsICRLInfo
128{
129public:
130  NS_DECL_ISUPPORTS
131  NS_DECL_NSICRLINFO
132
133  nsCRLInfo();
134
135private:
136  ~nsCRLInfo();
137
138protected:
139  /* additional members */
140};
141
142/* Implementation file */
143NS_IMPL_ISUPPORTS1(nsCRLInfo, nsICRLInfo)
144
145nsCRLInfo::nsCRLInfo()
146{
147  /* member initializers and constructor code */
148}
149
150nsCRLInfo::~nsCRLInfo()
151{
152  /* destructor code */
153}
154
155/* readonly attribute AString organization; */
156NS_IMETHODIMP nsCRLInfo::GetOrganization(nsAString & aOrganization)
157{
158    return NS_ERROR_NOT_IMPLEMENTED;
159}
160
161/* readonly attribute AString organizationalUnit; */
162NS_IMETHODIMP nsCRLInfo::GetOrganizationalUnit(nsAString & aOrganizationalUnit)
163{
164    return NS_ERROR_NOT_IMPLEMENTED;
165}
166
167/* readonly attribute PRTime lastUpdate; */
168NS_IMETHODIMP nsCRLInfo::GetLastUpdate(PRTime *aLastUpdate)
169{
170    return NS_ERROR_NOT_IMPLEMENTED;
171}
172
173/* readonly attribute PRTime nextUpdate; */
174NS_IMETHODIMP nsCRLInfo::GetNextUpdate(PRTime *aNextUpdate)
175{
176    return NS_ERROR_NOT_IMPLEMENTED;
177}
178
179/* readonly attribute AString lastUpdateLocale; */
180NS_IMETHODIMP nsCRLInfo::GetLastUpdateLocale(nsAString & aLastUpdateLocale)
181{
182    return NS_ERROR_NOT_IMPLEMENTED;
183}
184
185/* readonly attribute AString nextUpdateLocale; */
186NS_IMETHODIMP nsCRLInfo::GetNextUpdateLocale(nsAString & aNextUpdateLocale)
187{
188    return NS_ERROR_NOT_IMPLEMENTED;
189}
190
191/* readonly attribute AString nameInDb; */
192NS_IMETHODIMP nsCRLInfo::GetNameInDb(nsAString & aNameInDb)
193{
194    return NS_ERROR_NOT_IMPLEMENTED;
195}
196
197/* readonly attribute AUTF8String lastFetchURL; */
198NS_IMETHODIMP nsCRLInfo::GetLastFetchURL(nsACString & aLastFetchURL)
199{
200    return NS_ERROR_NOT_IMPLEMENTED;
201}
202
203/* End of implementation class template. */
204#endif
205
206
207#endif /* __gen_nsICRLInfo_h__ */