Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIAtomService.idl
3 : */
4 :
5 : #ifndef __gen_nsIAtomService_h__
6 : #define __gen_nsIAtomService_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 nsIAtom; /* forward declaration */
18 :
19 : #define NS_ATOMSERVICE_CID \
20 : { /* ed3db3fc-0168-4cab-8818-98f5475a490c */ \
21 : 0xed3db3fc, \
22 : 0x0168, \
23 : 0x4cab, \
24 : {0x88, 0x18, 0x98, 0xf5, 0x47, 0x5a, 0x49, 0x0c} }
25 : #define NS_ATOMSERVICE_CONTRACTID "@mozilla.org/atom-service;1"
26 :
27 : /* starting interface: nsIAtomService */
28 : #define NS_IATOMSERVICE_IID_STR "9c1f50b9-f9eb-42d4-a8cb-2c7600aeb241"
29 :
30 : #define NS_IATOMSERVICE_IID \
31 : {0x9c1f50b9, 0xf9eb, 0x42d4, \
32 : { 0xa8, 0xcb, 0x2c, 0x76, 0x00, 0xae, 0xb2, 0x41 }}
33 :
34 0 : class NS_NO_VTABLE nsIAtomService : public nsISupports {
35 : public:
36 :
37 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IATOMSERVICE_IID)
38 :
39 : /* nsIAtom getAtom (in AString value); */
40 : NS_IMETHOD GetAtom(const nsAString & value, nsIAtom * *_retval) = 0;
41 :
42 : };
43 :
44 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIAtomService, NS_IATOMSERVICE_IID)
45 :
46 : /* Use this macro when declaring classes that implement this interface. */
47 : #define NS_DECL_NSIATOMSERVICE \
48 : NS_IMETHOD GetAtom(const nsAString & value, nsIAtom * *_retval) override;
49 :
50 : /* Use this macro when declaring the members of this interface when the
51 : class doesn't implement the interface. This is useful for forwarding. */
52 : #define NS_DECL_NON_VIRTUAL_NSIATOMSERVICE \
53 : nsresult GetAtom(const nsAString & value, nsIAtom * *_retval);
54 :
55 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
56 : #define NS_FORWARD_NSIATOMSERVICE(_to) \
57 : NS_IMETHOD GetAtom(const nsAString & value, nsIAtom * *_retval) override { return _to GetAtom(value, _retval); }
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_NSIATOMSERVICE(_to) \
61 : NS_IMETHOD GetAtom(const nsAString & value, nsIAtom * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAtom(value, _retval); }
62 :
63 : #if 0
64 : /* Use the code below as a template for the implementation class for this interface. */
65 :
66 : /* Header file */
67 : class nsAtomService : public nsIAtomService
68 : {
69 : public:
70 : NS_DECL_ISUPPORTS
71 : NS_DECL_NSIATOMSERVICE
72 :
73 : nsAtomService();
74 :
75 : private:
76 : ~nsAtomService();
77 :
78 : protected:
79 : /* additional members */
80 : };
81 :
82 : /* Implementation file */
83 : NS_IMPL_ISUPPORTS(nsAtomService, nsIAtomService)
84 :
85 : nsAtomService::nsAtomService()
86 : {
87 : /* member initializers and constructor code */
88 : }
89 :
90 : nsAtomService::~nsAtomService()
91 : {
92 : /* destructor code */
93 : }
94 :
95 : /* nsIAtom getAtom (in AString value); */
96 : NS_IMETHODIMP nsAtomService::GetAtom(const nsAString & value, nsIAtom * *_retval)
97 : {
98 : return NS_ERROR_NOT_IMPLEMENTED;
99 : }
100 :
101 : /* End of implementation class template. */
102 : #endif
103 :
104 :
105 : #endif /* __gen_nsIAtomService_h__ */
|