Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIMutable.idl
3 : */
4 :
5 : #ifndef __gen_nsIMutable_h__
6 : #define __gen_nsIMutable_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: nsIMutable */
19 : #define NS_IMUTABLE_IID_STR "321578d0-03c1-4d95-8821-021ac612d18d"
20 :
21 : #define NS_IMUTABLE_IID \
22 : {0x321578d0, 0x03c1, 0x4d95, \
23 : { 0x88, 0x21, 0x02, 0x1a, 0xc6, 0x12, 0xd1, 0x8d }}
24 :
25 10768 : class NS_NO_VTABLE nsIMutable : public nsISupports {
26 : public:
27 :
28 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IMUTABLE_IID)
29 :
30 : /* attribute boolean mutable; */
31 : NS_IMETHOD GetMutable(bool *aMutable) = 0;
32 : NS_IMETHOD SetMutable(bool aMutable) = 0;
33 :
34 : };
35 :
36 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIMutable, NS_IMUTABLE_IID)
37 :
38 : /* Use this macro when declaring classes that implement this interface. */
39 : #define NS_DECL_NSIMUTABLE \
40 : NS_IMETHOD GetMutable(bool *aMutable) override; \
41 : NS_IMETHOD SetMutable(bool aMutable) override;
42 :
43 : /* Use this macro when declaring the members of this interface when the
44 : class doesn't implement the interface. This is useful for forwarding. */
45 : #define NS_DECL_NON_VIRTUAL_NSIMUTABLE \
46 : nsresult GetMutable(bool *aMutable); \
47 : nsresult SetMutable(bool aMutable);
48 :
49 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
50 : #define NS_FORWARD_NSIMUTABLE(_to) \
51 : NS_IMETHOD GetMutable(bool *aMutable) override { return _to GetMutable(aMutable); } \
52 : NS_IMETHOD SetMutable(bool aMutable) override { return _to SetMutable(aMutable); }
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_NSIMUTABLE(_to) \
56 : NS_IMETHOD GetMutable(bool *aMutable) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMutable(aMutable); } \
57 : NS_IMETHOD SetMutable(bool aMutable) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMutable(aMutable); }
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 nsMutable : public nsIMutable
64 : {
65 : public:
66 : NS_DECL_ISUPPORTS
67 : NS_DECL_NSIMUTABLE
68 :
69 : nsMutable();
70 :
71 : private:
72 : ~nsMutable();
73 :
74 : protected:
75 : /* additional members */
76 : };
77 :
78 : /* Implementation file */
79 : NS_IMPL_ISUPPORTS(nsMutable, nsIMutable)
80 :
81 : nsMutable::nsMutable()
82 : {
83 : /* member initializers and constructor code */
84 : }
85 :
86 : nsMutable::~nsMutable()
87 : {
88 : /* destructor code */
89 : }
90 :
91 : /* attribute boolean mutable; */
92 : NS_IMETHODIMP nsMutable::GetMutable(bool *aMutable)
93 : {
94 : return NS_ERROR_NOT_IMPLEMENTED;
95 : }
96 : NS_IMETHODIMP nsMutable::SetMutable(bool aMutable)
97 : {
98 : return NS_ERROR_NOT_IMPLEMENTED;
99 : }
100 :
101 : /* End of implementation class template. */
102 : #endif
103 :
104 :
105 : #endif /* __gen_nsIMutable_h__ */
|