1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/toolkit/components/remote/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 nsIDOMWindow; /* forward declaration */
18 :
19 :
20 : /* starting interface: nsIRemoteService */
21 : #define NS_IREMOTESERVICE_IID_STR "a2240f6a-f1e4-4548-9e1a-6f3bc9b2426c"
22 :
23 : #define NS_IREMOTESERVICE_IID \
24 : {0xa2240f6a, 0xf1e4, 0x4548, \
25 : { 0x9e, 0x1a, 0x6f, 0x3b, 0xc9, 0xb2, 0x42, 0x6c }}
26 :
27 0 : class NS_NO_VTABLE NS_SCRIPTABLE 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_SCRIPTABLE NS_IMETHOD Startup(const char * appName, const char * profileName) = 0;
34 :
35 : /* void registerWindow (in nsIDOMWindow aWindow); */
36 : NS_SCRIPTABLE NS_IMETHOD RegisterWindow(nsIDOMWindow *aWindow) = 0;
37 :
38 : /* void shutdown (); */
39 : NS_SCRIPTABLE 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_SCRIPTABLE NS_IMETHOD Startup(const char * appName, const char * profileName); \
48 : NS_SCRIPTABLE NS_IMETHOD RegisterWindow(nsIDOMWindow *aWindow); \
49 : NS_SCRIPTABLE NS_IMETHOD Shutdown(void);
50 :
51 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
52 : #define NS_FORWARD_NSIREMOTESERVICE(_to) \
53 : NS_SCRIPTABLE NS_IMETHOD Startup(const char * appName, const char * profileName) { return _to Startup(appName, profileName); } \
54 : NS_SCRIPTABLE NS_IMETHOD RegisterWindow(nsIDOMWindow *aWindow) { return _to RegisterWindow(aWindow); } \
55 : NS_SCRIPTABLE NS_IMETHOD Shutdown(void) { return _to Shutdown(); }
56 :
57 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
58 : #define NS_FORWARD_SAFE_NSIREMOTESERVICE(_to) \
59 : NS_SCRIPTABLE NS_IMETHOD Startup(const char * appName, const char * profileName) { return !_to ? NS_ERROR_NULL_POINTER : _to->Startup(appName, profileName); } \
60 : NS_SCRIPTABLE NS_IMETHOD RegisterWindow(nsIDOMWindow *aWindow) { return !_to ? NS_ERROR_NULL_POINTER : _to->RegisterWindow(aWindow); } \
61 : NS_SCRIPTABLE NS_IMETHOD Shutdown(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Shutdown(); }
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 nsRemoteService : public nsIRemoteService
68 : {
69 : public:
70 : NS_DECL_ISUPPORTS
71 : NS_DECL_NSIREMOTESERVICE
72 :
73 : nsRemoteService();
74 :
75 : private:
76 : ~nsRemoteService();
77 :
78 : protected:
79 : /* additional members */
80 : };
81 :
82 : /* Implementation file */
83 : NS_IMPL_ISUPPORTS1(nsRemoteService, nsIRemoteService)
84 :
85 : nsRemoteService::nsRemoteService()
86 : {
87 : /* member initializers and constructor code */
88 : }
89 :
90 : nsRemoteService::~nsRemoteService()
91 : {
92 : /* destructor code */
93 : }
94 :
95 : /* void startup (in string appName, in string profileName); */
96 : NS_IMETHODIMP nsRemoteService::Startup(const char * appName, const char * profileName)
97 : {
98 : return NS_ERROR_NOT_IMPLEMENTED;
99 : }
100 :
101 : /* void registerWindow (in nsIDOMWindow aWindow); */
102 : NS_IMETHODIMP nsRemoteService::RegisterWindow(nsIDOMWindow *aWindow)
103 : {
104 : return NS_ERROR_NOT_IMPLEMENTED;
105 : }
106 :
107 : /* void shutdown (); */
108 : NS_IMETHODIMP nsRemoteService::Shutdown()
109 : {
110 : return NS_ERROR_NOT_IMPLEMENTED;
111 : }
112 :
113 : /* End of implementation class template. */
114 : #endif
115 :
116 :
117 : #endif /* __gen_nsIRemoteService_h__ */
|