1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/xpcom/ds/nsISerializable.idl
3 : */
4 :
5 : #ifndef __gen_nsISerializable_h__
6 : #define __gen_nsISerializable_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 nsIObjectInputStream; /* forward declaration */
18 :
19 : class nsIObjectOutputStream; /* forward declaration */
20 :
21 :
22 : /* starting interface: nsISerializable */
23 : #define NS_ISERIALIZABLE_IID_STR "91cca981-c26d-44a8-bebe-d9ed4891503a"
24 :
25 : #define NS_ISERIALIZABLE_IID \
26 : {0x91cca981, 0xc26d, 0x44a8, \
27 : { 0xbe, 0xbe, 0xd9, 0xed, 0x48, 0x91, 0x50, 0x3a }}
28 :
29 301441 : class NS_NO_VTABLE NS_SCRIPTABLE nsISerializable : public nsISupports {
30 : public:
31 :
32 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISERIALIZABLE_IID)
33 :
34 : /* void read (in nsIObjectInputStream aInputStream); */
35 : NS_SCRIPTABLE NS_IMETHOD Read(nsIObjectInputStream *aInputStream) = 0;
36 :
37 : /* void write (in nsIObjectOutputStream aOutputStream); */
38 : NS_SCRIPTABLE NS_IMETHOD Write(nsIObjectOutputStream *aOutputStream) = 0;
39 :
40 : };
41 :
42 : NS_DEFINE_STATIC_IID_ACCESSOR(nsISerializable, NS_ISERIALIZABLE_IID)
43 :
44 : /* Use this macro when declaring classes that implement this interface. */
45 : #define NS_DECL_NSISERIALIZABLE \
46 : NS_SCRIPTABLE NS_IMETHOD Read(nsIObjectInputStream *aInputStream); \
47 : NS_SCRIPTABLE NS_IMETHOD Write(nsIObjectOutputStream *aOutputStream);
48 :
49 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
50 : #define NS_FORWARD_NSISERIALIZABLE(_to) \
51 : NS_SCRIPTABLE NS_IMETHOD Read(nsIObjectInputStream *aInputStream) { return _to Read(aInputStream); } \
52 : NS_SCRIPTABLE NS_IMETHOD Write(nsIObjectOutputStream *aOutputStream) { return _to Write(aOutputStream); }
53 :
54 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
55 : #define NS_FORWARD_SAFE_NSISERIALIZABLE(_to) \
56 : NS_SCRIPTABLE NS_IMETHOD Read(nsIObjectInputStream *aInputStream) { return !_to ? NS_ERROR_NULL_POINTER : _to->Read(aInputStream); } \
57 : NS_SCRIPTABLE NS_IMETHOD Write(nsIObjectOutputStream *aOutputStream) { return !_to ? NS_ERROR_NULL_POINTER : _to->Write(aOutputStream); }
58 :
59 : #if 0
60 : /* Use the code below as a template for the implementation class for this interface. */
61 :
62 : /* Header file */
63 : class nsSerializable : public nsISerializable
64 : {
65 : public:
66 : NS_DECL_ISUPPORTS
67 : NS_DECL_NSISERIALIZABLE
68 :
69 : nsSerializable();
70 :
71 : private:
72 : ~nsSerializable();
73 :
74 : protected:
75 : /* additional members */
76 : };
77 :
78 : /* Implementation file */
79 : NS_IMPL_ISUPPORTS1(nsSerializable, nsISerializable)
80 :
81 : nsSerializable::nsSerializable()
82 : {
83 : /* member initializers and constructor code */
84 : }
85 :
86 : nsSerializable::~nsSerializable()
87 : {
88 : /* destructor code */
89 : }
90 :
91 : /* void read (in nsIObjectInputStream aInputStream); */
92 : NS_IMETHODIMP nsSerializable::Read(nsIObjectInputStream *aInputStream)
93 : {
94 : return NS_ERROR_NOT_IMPLEMENTED;
95 : }
96 :
97 : /* void write (in nsIObjectOutputStream aOutputStream); */
98 : NS_IMETHODIMP nsSerializable::Write(nsIObjectOutputStream *aOutputStream)
99 : {
100 : return NS_ERROR_NOT_IMPLEMENTED;
101 : }
102 :
103 : /* End of implementation class template. */
104 : #endif
105 :
106 :
107 : #endif /* __gen_nsISerializable_h__ */
|