Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIRemoteService.idl
3 : */
4 :
5 : #ifndef __gen_nsIRemoteService_h__
6 : #define __gen_nsIRemoteService_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 mozIDOMWindow; /* forward declaration */
18 :
19 :
20 : /* starting interface: nsIRemoteService */
21 : #define NS_IREMOTESERVICE_IID_STR "bf23f1c3-7012-42dd-b0bb-a84060ccc52e"
22 :
23 : #define NS_IREMOTESERVICE_IID \
24 : {0xbf23f1c3, 0x7012, 0x42dd, \
25 : { 0xb0, 0xbb, 0xa8, 0x40, 0x60, 0xcc, 0xc5, 0x2e }}
26 :
27 0 : class NS_NO_VTABLE nsIRemoteService : public nsISupports {
28 : public:
29 :
30 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IREMOTESERVICE_IID)
31 :
32 : /* void startup (in string appName, in string profileName); */
33 : NS_IMETHOD Startup(const char * appName, const char * profileName) = 0;
34 :
35 : /* void registerWindow (in mozIDOMWindow aWindow); */
36 : NS_IMETHOD RegisterWindow(mozIDOMWindow *aWindow) = 0;
37 :
38 : /* void shutdown (); */
39 : NS_IMETHOD Shutdown(void) = 0;
40 :
41 : };
42 :
43 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIRemoteService, NS_IREMOTESERVICE_IID)
44 :
45 : /* Use this macro when declaring classes that implement this interface. */
46 : #define NS_DECL_NSIREMOTESERVICE \
47 : NS_IMETHOD Startup(const char * appName, const char * profileName) override; \
48 : NS_IMETHOD RegisterWindow(mozIDOMWindow *aWindow) override; \
49 : NS_IMETHOD Shutdown(void) override;
50 :
51 : /* Use this macro when declaring the members of this interface when the
52 : class doesn't implement the interface. This is useful for forwarding. */
53 : #define NS_DECL_NON_VIRTUAL_NSIREMOTESERVICE \
54 : nsresult Startup(const char * appName, const char * profileName); \
55 : nsresult RegisterWindow(mozIDOMWindow *aWindow); \
56 : nsresult Shutdown(void);
57 :
58 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
59 : #define NS_FORWARD_NSIREMOTESERVICE(_to) \
60 : NS_IMETHOD Startup(const char * appName, const char * profileName) override { return _to Startup(appName, profileName); } \
61 : NS_IMETHOD RegisterWindow(mozIDOMWindow *aWindow) override { return _to RegisterWindow(aWindow); } \
62 : NS_IMETHOD Shutdown(void) override { return _to Shutdown(); }
63 :
64 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
65 : #define NS_FORWARD_SAFE_NSIREMOTESERVICE(_to) \
66 : NS_IMETHOD Startup(const char * appName, const char * profileName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Startup(appName, profileName); } \
67 : NS_IMETHOD RegisterWindow(mozIDOMWindow *aWindow) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RegisterWindow(aWindow); } \
68 : NS_IMETHOD Shutdown(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Shutdown(); }
69 :
70 : #if 0
71 : /* Use the code below as a template for the implementation class for this interface. */
72 :
73 : /* Header file */
74 : class nsRemoteService : public nsIRemoteService
75 : {
76 : public:
77 : NS_DECL_ISUPPORTS
78 : NS_DECL_NSIREMOTESERVICE
79 :
80 : nsRemoteService();
81 :
82 : private:
83 : ~nsRemoteService();
84 :
85 : protected:
86 : /* additional members */
87 : };
88 :
89 : /* Implementation file */
90 : NS_IMPL_ISUPPORTS(nsRemoteService, nsIRemoteService)
91 :
92 : nsRemoteService::nsRemoteService()
93 : {
94 : /* member initializers and constructor code */
95 : }
96 :
97 : nsRemoteService::~nsRemoteService()
98 : {
99 : /* destructor code */
100 : }
101 :
102 : /* void startup (in string appName, in string profileName); */
103 : NS_IMETHODIMP nsRemoteService::Startup(const char * appName, const char * profileName)
104 : {
105 : return NS_ERROR_NOT_IMPLEMENTED;
106 : }
107 :
108 : /* void registerWindow (in mozIDOMWindow aWindow); */
109 : NS_IMETHODIMP nsRemoteService::RegisterWindow(mozIDOMWindow *aWindow)
110 : {
111 : return NS_ERROR_NOT_IMPLEMENTED;
112 : }
113 :
114 : /* void shutdown (); */
115 : NS_IMETHODIMP nsRemoteService::Shutdown()
116 : {
117 : return NS_ERROR_NOT_IMPLEMENTED;
118 : }
119 :
120 : /* End of implementation class template. */
121 : #endif
122 :
123 :
124 : #endif /* __gen_nsIRemoteService_h__ */
|