1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/security/manager/ssl/public/nsICMSDecoder.idl
3 : */
4 :
5 : #ifndef __gen_nsICMSDecoder_h__
6 : #define __gen_nsICMSDecoder_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 : typedef void (*NSSCMSContentCallback)(void *arg, const char *buf, unsigned long len);
18 : #define NS_CMSDECODER_CONTRACTID "@mozilla.org/nsCMSDecoder;1"
19 : class nsICMSMessage; /* forward declaration */
20 :
21 :
22 : /* starting interface: nsICMSDecoder */
23 : #define NS_ICMSDECODER_IID_STR "65244a06-a342-11d5-ba47-00108303b117"
24 :
25 : #define NS_ICMSDECODER_IID \
26 : {0x65244a06, 0xa342, 0x11d5, \
27 : { 0xba, 0x47, 0x00, 0x10, 0x83, 0x03, 0xb1, 0x17 }}
28 :
29 0 : class NS_NO_VTABLE nsICMSDecoder : public nsISupports {
30 : public:
31 :
32 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICMSDECODER_IID)
33 :
34 : /* void start (in NSSCMSContentCallback cb, in voidPtr arg); */
35 : NS_IMETHOD Start(NSSCMSContentCallback cb, void *arg) = 0;
36 :
37 : /* void update (in string aBuf, in long aLen); */
38 : NS_IMETHOD Update(const char * aBuf, PRInt32 aLen) = 0;
39 :
40 : /* void finish (out nsICMSMessage msg); */
41 : NS_IMETHOD Finish(nsICMSMessage * *msg NS_OUTPARAM) = 0;
42 :
43 : };
44 :
45 : NS_DEFINE_STATIC_IID_ACCESSOR(nsICMSDecoder, NS_ICMSDECODER_IID)
46 :
47 : /* Use this macro when declaring classes that implement this interface. */
48 : #define NS_DECL_NSICMSDECODER \
49 : NS_IMETHOD Start(NSSCMSContentCallback cb, void *arg); \
50 : NS_IMETHOD Update(const char * aBuf, PRInt32 aLen); \
51 : NS_IMETHOD Finish(nsICMSMessage * *msg NS_OUTPARAM);
52 :
53 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
54 : #define NS_FORWARD_NSICMSDECODER(_to) \
55 : NS_IMETHOD Start(NSSCMSContentCallback cb, void *arg) { return _to Start(cb, arg); } \
56 : NS_IMETHOD Update(const char * aBuf, PRInt32 aLen) { return _to Update(aBuf, aLen); } \
57 : NS_IMETHOD Finish(nsICMSMessage * *msg NS_OUTPARAM) { return _to Finish(msg); }
58 :
59 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
60 : #define NS_FORWARD_SAFE_NSICMSDECODER(_to) \
61 : NS_IMETHOD Start(NSSCMSContentCallback cb, void *arg) { return !_to ? NS_ERROR_NULL_POINTER : _to->Start(cb, arg); } \
62 : NS_IMETHOD Update(const char * aBuf, PRInt32 aLen) { return !_to ? NS_ERROR_NULL_POINTER : _to->Update(aBuf, aLen); } \
63 : NS_IMETHOD Finish(nsICMSMessage * *msg NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->Finish(msg); }
64 :
65 : #if 0
66 : /* Use the code below as a template for the implementation class for this interface. */
67 :
68 : /* Header file */
69 : class nsCMSDecoder : public nsICMSDecoder
70 : {
71 : public:
72 : NS_DECL_ISUPPORTS
73 : NS_DECL_NSICMSDECODER
74 :
75 : nsCMSDecoder();
76 :
77 : private:
78 : ~nsCMSDecoder();
79 :
80 : protected:
81 : /* additional members */
82 : };
83 :
84 : /* Implementation file */
85 : NS_IMPL_ISUPPORTS1(nsCMSDecoder, nsICMSDecoder)
86 :
87 : nsCMSDecoder::nsCMSDecoder()
88 : {
89 : /* member initializers and constructor code */
90 : }
91 :
92 : nsCMSDecoder::~nsCMSDecoder()
93 : {
94 : /* destructor code */
95 : }
96 :
97 : /* void start (in NSSCMSContentCallback cb, in voidPtr arg); */
98 : NS_IMETHODIMP nsCMSDecoder::Start(NSSCMSContentCallback cb, void *arg)
99 : {
100 : return NS_ERROR_NOT_IMPLEMENTED;
101 : }
102 :
103 : /* void update (in string aBuf, in long aLen); */
104 : NS_IMETHODIMP nsCMSDecoder::Update(const char * aBuf, PRInt32 aLen)
105 : {
106 : return NS_ERROR_NOT_IMPLEMENTED;
107 : }
108 :
109 : /* void finish (out nsICMSMessage msg); */
110 : NS_IMETHODIMP nsCMSDecoder::Finish(nsICMSMessage * *msg NS_OUTPARAM)
111 : {
112 : return NS_ERROR_NOT_IMPLEMENTED;
113 : }
114 :
115 : /* End of implementation class template. */
116 : #endif
117 :
118 :
119 : #endif /* __gen_nsICMSDecoder_h__ */
|