1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/xpcom/io/nsIScriptableBase64Encoder.idl
3 : */
4 :
5 : #ifndef __gen_nsIScriptableBase64Encoder_h__
6 : #define __gen_nsIScriptableBase64Encoder_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 : class nsIInputStream; /* forward declaration */
18 :
19 :
20 : /* starting interface: nsIScriptableBase64Encoder */
21 : #define NS_ISCRIPTABLEBASE64ENCODER_IID_STR "9479c864-d1f9-45ab-b7b9-28b907bd2ba9"
22 :
23 : #define NS_ISCRIPTABLEBASE64ENCODER_IID \
24 : {0x9479c864, 0xd1f9, 0x45ab, \
25 : { 0xb7, 0xb9, 0x28, 0xb9, 0x07, 0xbd, 0x2b, 0xa9 }}
26 :
27 0 : class NS_NO_VTABLE NS_SCRIPTABLE nsIScriptableBase64Encoder : public nsISupports {
28 : public:
29 :
30 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISCRIPTABLEBASE64ENCODER_IID)
31 :
32 : /* ACString encodeToCString (in nsIInputStream stream, in unsigned long length); */
33 : NS_SCRIPTABLE NS_IMETHOD EncodeToCString(nsIInputStream *stream, PRUint32 length, nsACString & _retval NS_OUTPARAM) = 0;
34 :
35 : /* AString encodeToString (in nsIInputStream stream, in unsigned long length); */
36 : NS_SCRIPTABLE NS_IMETHOD EncodeToString(nsIInputStream *stream, PRUint32 length, nsAString & _retval NS_OUTPARAM) = 0;
37 :
38 : };
39 :
40 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIScriptableBase64Encoder, NS_ISCRIPTABLEBASE64ENCODER_IID)
41 :
42 : /* Use this macro when declaring classes that implement this interface. */
43 : #define NS_DECL_NSISCRIPTABLEBASE64ENCODER \
44 : NS_SCRIPTABLE NS_IMETHOD EncodeToCString(nsIInputStream *stream, PRUint32 length, nsACString & _retval NS_OUTPARAM); \
45 : NS_SCRIPTABLE NS_IMETHOD EncodeToString(nsIInputStream *stream, PRUint32 length, nsAString & _retval NS_OUTPARAM);
46 :
47 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
48 : #define NS_FORWARD_NSISCRIPTABLEBASE64ENCODER(_to) \
49 : NS_SCRIPTABLE NS_IMETHOD EncodeToCString(nsIInputStream *stream, PRUint32 length, nsACString & _retval NS_OUTPARAM) { return _to EncodeToCString(stream, length, _retval); } \
50 : NS_SCRIPTABLE NS_IMETHOD EncodeToString(nsIInputStream *stream, PRUint32 length, nsAString & _retval NS_OUTPARAM) { return _to EncodeToString(stream, length, _retval); }
51 :
52 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
53 : #define NS_FORWARD_SAFE_NSISCRIPTABLEBASE64ENCODER(_to) \
54 : NS_SCRIPTABLE NS_IMETHOD EncodeToCString(nsIInputStream *stream, PRUint32 length, nsACString & _retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->EncodeToCString(stream, length, _retval); } \
55 : NS_SCRIPTABLE NS_IMETHOD EncodeToString(nsIInputStream *stream, PRUint32 length, nsAString & _retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->EncodeToString(stream, length, _retval); }
56 :
57 : #if 0
58 : /* Use the code below as a template for the implementation class for this interface. */
59 :
60 : /* Header file */
61 : class nsScriptableBase64Encoder : public nsIScriptableBase64Encoder
62 : {
63 : public:
64 : NS_DECL_ISUPPORTS
65 : NS_DECL_NSISCRIPTABLEBASE64ENCODER
66 :
67 : nsScriptableBase64Encoder();
68 :
69 : private:
70 : ~nsScriptableBase64Encoder();
71 :
72 : protected:
73 : /* additional members */
74 : };
75 :
76 : /* Implementation file */
77 : NS_IMPL_ISUPPORTS1(nsScriptableBase64Encoder, nsIScriptableBase64Encoder)
78 :
79 : nsScriptableBase64Encoder::nsScriptableBase64Encoder()
80 : {
81 : /* member initializers and constructor code */
82 : }
83 :
84 : nsScriptableBase64Encoder::~nsScriptableBase64Encoder()
85 : {
86 : /* destructor code */
87 : }
88 :
89 : /* ACString encodeToCString (in nsIInputStream stream, in unsigned long length); */
90 : NS_IMETHODIMP nsScriptableBase64Encoder::EncodeToCString(nsIInputStream *stream, PRUint32 length, nsACString & _retval NS_OUTPARAM)
91 : {
92 : return NS_ERROR_NOT_IMPLEMENTED;
93 : }
94 :
95 : /* AString encodeToString (in nsIInputStream stream, in unsigned long length); */
96 : NS_IMETHODIMP nsScriptableBase64Encoder::EncodeToString(nsIInputStream *stream, PRUint32 length, nsAString & _retval NS_OUTPARAM)
97 : {
98 : return NS_ERROR_NOT_IMPLEMENTED;
99 : }
100 :
101 : /* End of implementation class template. */
102 : #endif
103 :
104 :
105 : #endif /* __gen_nsIScriptableBase64Encoder_h__ */
|