1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/security/manager/ssl/public/nsIX509CertValidity.idl
3 : */
4 :
5 : #ifndef __gen_nsIX509CertValidity_h__
6 : #define __gen_nsIX509CertValidity_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: nsIX509CertValidity */
19 : #define NS_IX509CERTVALIDITY_IID_STR "e701dfd8-1dd1-11b2-a172-ffa6cc6156ad"
20 :
21 : #define NS_IX509CERTVALIDITY_IID \
22 : {0xe701dfd8, 0x1dd1, 0x11b2, \
23 : { 0xa1, 0x72, 0xff, 0xa6, 0xcc, 0x61, 0x56, 0xad }}
24 :
25 0 : class NS_NO_VTABLE NS_SCRIPTABLE nsIX509CertValidity : public nsISupports {
26 : public:
27 :
28 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IX509CERTVALIDITY_IID)
29 :
30 : /* readonly attribute PRTime notBefore; */
31 : NS_SCRIPTABLE NS_IMETHOD GetNotBefore(PRTime *aNotBefore) = 0;
32 :
33 : /* readonly attribute AString notBeforeLocalTime; */
34 : NS_SCRIPTABLE NS_IMETHOD GetNotBeforeLocalTime(nsAString & aNotBeforeLocalTime) = 0;
35 :
36 : /* readonly attribute AString notBeforeLocalDay; */
37 : NS_SCRIPTABLE NS_IMETHOD GetNotBeforeLocalDay(nsAString & aNotBeforeLocalDay) = 0;
38 :
39 : /* readonly attribute AString notBeforeGMT; */
40 : NS_SCRIPTABLE NS_IMETHOD GetNotBeforeGMT(nsAString & aNotBeforeGMT) = 0;
41 :
42 : /* readonly attribute PRTime notAfter; */
43 : NS_SCRIPTABLE NS_IMETHOD GetNotAfter(PRTime *aNotAfter) = 0;
44 :
45 : /* readonly attribute AString notAfterLocalTime; */
46 : NS_SCRIPTABLE NS_IMETHOD GetNotAfterLocalTime(nsAString & aNotAfterLocalTime) = 0;
47 :
48 : /* readonly attribute AString notAfterLocalDay; */
49 : NS_SCRIPTABLE NS_IMETHOD GetNotAfterLocalDay(nsAString & aNotAfterLocalDay) = 0;
50 :
51 : /* readonly attribute AString notAfterGMT; */
52 : NS_SCRIPTABLE NS_IMETHOD GetNotAfterGMT(nsAString & aNotAfterGMT) = 0;
53 :
54 : };
55 :
56 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIX509CertValidity, NS_IX509CERTVALIDITY_IID)
57 :
58 : /* Use this macro when declaring classes that implement this interface. */
59 : #define NS_DECL_NSIX509CERTVALIDITY \
60 : NS_SCRIPTABLE NS_IMETHOD GetNotBefore(PRTime *aNotBefore); \
61 : NS_SCRIPTABLE NS_IMETHOD GetNotBeforeLocalTime(nsAString & aNotBeforeLocalTime); \
62 : NS_SCRIPTABLE NS_IMETHOD GetNotBeforeLocalDay(nsAString & aNotBeforeLocalDay); \
63 : NS_SCRIPTABLE NS_IMETHOD GetNotBeforeGMT(nsAString & aNotBeforeGMT); \
64 : NS_SCRIPTABLE NS_IMETHOD GetNotAfter(PRTime *aNotAfter); \
65 : NS_SCRIPTABLE NS_IMETHOD GetNotAfterLocalTime(nsAString & aNotAfterLocalTime); \
66 : NS_SCRIPTABLE NS_IMETHOD GetNotAfterLocalDay(nsAString & aNotAfterLocalDay); \
67 : NS_SCRIPTABLE NS_IMETHOD GetNotAfterGMT(nsAString & aNotAfterGMT);
68 :
69 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
70 : #define NS_FORWARD_NSIX509CERTVALIDITY(_to) \
71 : NS_SCRIPTABLE NS_IMETHOD GetNotBefore(PRTime *aNotBefore) { return _to GetNotBefore(aNotBefore); } \
72 : NS_SCRIPTABLE NS_IMETHOD GetNotBeforeLocalTime(nsAString & aNotBeforeLocalTime) { return _to GetNotBeforeLocalTime(aNotBeforeLocalTime); } \
73 : NS_SCRIPTABLE NS_IMETHOD GetNotBeforeLocalDay(nsAString & aNotBeforeLocalDay) { return _to GetNotBeforeLocalDay(aNotBeforeLocalDay); } \
74 : NS_SCRIPTABLE NS_IMETHOD GetNotBeforeGMT(nsAString & aNotBeforeGMT) { return _to GetNotBeforeGMT(aNotBeforeGMT); } \
75 : NS_SCRIPTABLE NS_IMETHOD GetNotAfter(PRTime *aNotAfter) { return _to GetNotAfter(aNotAfter); } \
76 : NS_SCRIPTABLE NS_IMETHOD GetNotAfterLocalTime(nsAString & aNotAfterLocalTime) { return _to GetNotAfterLocalTime(aNotAfterLocalTime); } \
77 : NS_SCRIPTABLE NS_IMETHOD GetNotAfterLocalDay(nsAString & aNotAfterLocalDay) { return _to GetNotAfterLocalDay(aNotAfterLocalDay); } \
78 : NS_SCRIPTABLE NS_IMETHOD GetNotAfterGMT(nsAString & aNotAfterGMT) { return _to GetNotAfterGMT(aNotAfterGMT); }
79 :
80 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
81 : #define NS_FORWARD_SAFE_NSIX509CERTVALIDITY(_to) \
82 : NS_SCRIPTABLE NS_IMETHOD GetNotBefore(PRTime *aNotBefore) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNotBefore(aNotBefore); } \
83 : NS_SCRIPTABLE NS_IMETHOD GetNotBeforeLocalTime(nsAString & aNotBeforeLocalTime) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNotBeforeLocalTime(aNotBeforeLocalTime); } \
84 : NS_SCRIPTABLE NS_IMETHOD GetNotBeforeLocalDay(nsAString & aNotBeforeLocalDay) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNotBeforeLocalDay(aNotBeforeLocalDay); } \
85 : NS_SCRIPTABLE NS_IMETHOD GetNotBeforeGMT(nsAString & aNotBeforeGMT) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNotBeforeGMT(aNotBeforeGMT); } \
86 : NS_SCRIPTABLE NS_IMETHOD GetNotAfter(PRTime *aNotAfter) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNotAfter(aNotAfter); } \
87 : NS_SCRIPTABLE NS_IMETHOD GetNotAfterLocalTime(nsAString & aNotAfterLocalTime) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNotAfterLocalTime(aNotAfterLocalTime); } \
88 : NS_SCRIPTABLE NS_IMETHOD GetNotAfterLocalDay(nsAString & aNotAfterLocalDay) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNotAfterLocalDay(aNotAfterLocalDay); } \
89 : NS_SCRIPTABLE NS_IMETHOD GetNotAfterGMT(nsAString & aNotAfterGMT) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNotAfterGMT(aNotAfterGMT); }
90 :
91 : #if 0
92 : /* Use the code below as a template for the implementation class for this interface. */
93 :
94 : /* Header file */
95 : class nsX509CertValidity : public nsIX509CertValidity
96 : {
97 : public:
98 : NS_DECL_ISUPPORTS
99 : NS_DECL_NSIX509CERTVALIDITY
100 :
101 : nsX509CertValidity();
102 :
103 : private:
104 : ~nsX509CertValidity();
105 :
106 : protected:
107 : /* additional members */
108 : };
109 :
110 : /* Implementation file */
111 : NS_IMPL_ISUPPORTS1(nsX509CertValidity, nsIX509CertValidity)
112 :
113 : nsX509CertValidity::nsX509CertValidity()
114 : {
115 : /* member initializers and constructor code */
116 : }
117 :
118 : nsX509CertValidity::~nsX509CertValidity()
119 : {
120 : /* destructor code */
121 : }
122 :
123 : /* readonly attribute PRTime notBefore; */
124 : NS_IMETHODIMP nsX509CertValidity::GetNotBefore(PRTime *aNotBefore)
125 : {
126 : return NS_ERROR_NOT_IMPLEMENTED;
127 : }
128 :
129 : /* readonly attribute AString notBeforeLocalTime; */
130 : NS_IMETHODIMP nsX509CertValidity::GetNotBeforeLocalTime(nsAString & aNotBeforeLocalTime)
131 : {
132 : return NS_ERROR_NOT_IMPLEMENTED;
133 : }
134 :
135 : /* readonly attribute AString notBeforeLocalDay; */
136 : NS_IMETHODIMP nsX509CertValidity::GetNotBeforeLocalDay(nsAString & aNotBeforeLocalDay)
137 : {
138 : return NS_ERROR_NOT_IMPLEMENTED;
139 : }
140 :
141 : /* readonly attribute AString notBeforeGMT; */
142 : NS_IMETHODIMP nsX509CertValidity::GetNotBeforeGMT(nsAString & aNotBeforeGMT)
143 : {
144 : return NS_ERROR_NOT_IMPLEMENTED;
145 : }
146 :
147 : /* readonly attribute PRTime notAfter; */
148 : NS_IMETHODIMP nsX509CertValidity::GetNotAfter(PRTime *aNotAfter)
149 : {
150 : return NS_ERROR_NOT_IMPLEMENTED;
151 : }
152 :
153 : /* readonly attribute AString notAfterLocalTime; */
154 : NS_IMETHODIMP nsX509CertValidity::GetNotAfterLocalTime(nsAString & aNotAfterLocalTime)
155 : {
156 : return NS_ERROR_NOT_IMPLEMENTED;
157 : }
158 :
159 : /* readonly attribute AString notAfterLocalDay; */
160 : NS_IMETHODIMP nsX509CertValidity::GetNotAfterLocalDay(nsAString & aNotAfterLocalDay)
161 : {
162 : return NS_ERROR_NOT_IMPLEMENTED;
163 : }
164 :
165 : /* readonly attribute AString notAfterGMT; */
166 : NS_IMETHODIMP nsX509CertValidity::GetNotAfterGMT(nsAString & aNotAfterGMT)
167 : {
168 : return NS_ERROR_NOT_IMPLEMENTED;
169 : }
170 :
171 : /* End of implementation class template. */
172 : #endif
173 :
174 :
175 : #endif /* __gen_nsIX509CertValidity_h__ */
|