1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/toolkit/xre/nsINativeAppSupport.idl
3 : */
4 :
5 : #ifndef __gen_nsINativeAppSupport_h__
6 : #define __gen_nsINativeAppSupport_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 nsIXULWindow; /* forward declaration */
18 :
19 : class nsICmdLineService; /* forward declaration */
20 :
21 :
22 : /* starting interface: nsINativeAppSupport */
23 : #define NS_INATIVEAPPSUPPORT_IID_STR "5fdf8480-1f98-11d4-8077-00600811a9c3"
24 :
25 : #define NS_INATIVEAPPSUPPORT_IID \
26 : {0x5fdf8480, 0x1f98, 0x11d4, \
27 : { 0x80, 0x77, 0x00, 0x60, 0x08, 0x11, 0xa9, 0xc3 }}
28 :
29 0 : class NS_NO_VTABLE NS_SCRIPTABLE nsINativeAppSupport : public nsISupports {
30 : public:
31 :
32 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_INATIVEAPPSUPPORT_IID)
33 :
34 : /* boolean start (); */
35 : NS_SCRIPTABLE NS_IMETHOD Start(bool *_retval NS_OUTPARAM) = 0;
36 :
37 : /* void enable (); */
38 : NS_SCRIPTABLE NS_IMETHOD Enable(void) = 0;
39 :
40 : /* boolean stop (); */
41 : NS_SCRIPTABLE NS_IMETHOD Stop(bool *_retval NS_OUTPARAM) = 0;
42 :
43 : /* void quit (); */
44 : NS_SCRIPTABLE NS_IMETHOD Quit(void) = 0;
45 :
46 : /* void onLastWindowClosing (); */
47 : NS_SCRIPTABLE NS_IMETHOD OnLastWindowClosing(void) = 0;
48 :
49 : /* void ReOpen (); */
50 : NS_SCRIPTABLE NS_IMETHOD ReOpen(void) = 0;
51 :
52 : };
53 :
54 : NS_DEFINE_STATIC_IID_ACCESSOR(nsINativeAppSupport, NS_INATIVEAPPSUPPORT_IID)
55 :
56 : /* Use this macro when declaring classes that implement this interface. */
57 : #define NS_DECL_NSINATIVEAPPSUPPORT \
58 : NS_SCRIPTABLE NS_IMETHOD Start(bool *_retval NS_OUTPARAM); \
59 : NS_SCRIPTABLE NS_IMETHOD Enable(void); \
60 : NS_SCRIPTABLE NS_IMETHOD Stop(bool *_retval NS_OUTPARAM); \
61 : NS_SCRIPTABLE NS_IMETHOD Quit(void); \
62 : NS_SCRIPTABLE NS_IMETHOD OnLastWindowClosing(void); \
63 : NS_SCRIPTABLE NS_IMETHOD ReOpen(void);
64 :
65 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
66 : #define NS_FORWARD_NSINATIVEAPPSUPPORT(_to) \
67 : NS_SCRIPTABLE NS_IMETHOD Start(bool *_retval NS_OUTPARAM) { return _to Start(_retval); } \
68 : NS_SCRIPTABLE NS_IMETHOD Enable(void) { return _to Enable(); } \
69 : NS_SCRIPTABLE NS_IMETHOD Stop(bool *_retval NS_OUTPARAM) { return _to Stop(_retval); } \
70 : NS_SCRIPTABLE NS_IMETHOD Quit(void) { return _to Quit(); } \
71 : NS_SCRIPTABLE NS_IMETHOD OnLastWindowClosing(void) { return _to OnLastWindowClosing(); } \
72 : NS_SCRIPTABLE NS_IMETHOD ReOpen(void) { return _to ReOpen(); }
73 :
74 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
75 : #define NS_FORWARD_SAFE_NSINATIVEAPPSUPPORT(_to) \
76 : NS_SCRIPTABLE NS_IMETHOD Start(bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->Start(_retval); } \
77 : NS_SCRIPTABLE NS_IMETHOD Enable(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Enable(); } \
78 : NS_SCRIPTABLE NS_IMETHOD Stop(bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->Stop(_retval); } \
79 : NS_SCRIPTABLE NS_IMETHOD Quit(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Quit(); } \
80 : NS_SCRIPTABLE NS_IMETHOD OnLastWindowClosing(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->OnLastWindowClosing(); } \
81 : NS_SCRIPTABLE NS_IMETHOD ReOpen(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->ReOpen(); }
82 :
83 : #if 0
84 : /* Use the code below as a template for the implementation class for this interface. */
85 :
86 : /* Header file */
87 : class nsNativeAppSupport : public nsINativeAppSupport
88 : {
89 : public:
90 : NS_DECL_ISUPPORTS
91 : NS_DECL_NSINATIVEAPPSUPPORT
92 :
93 : nsNativeAppSupport();
94 :
95 : private:
96 : ~nsNativeAppSupport();
97 :
98 : protected:
99 : /* additional members */
100 : };
101 :
102 : /* Implementation file */
103 : NS_IMPL_ISUPPORTS1(nsNativeAppSupport, nsINativeAppSupport)
104 :
105 : nsNativeAppSupport::nsNativeAppSupport()
106 : {
107 : /* member initializers and constructor code */
108 : }
109 :
110 : nsNativeAppSupport::~nsNativeAppSupport()
111 : {
112 : /* destructor code */
113 : }
114 :
115 : /* boolean start (); */
116 : NS_IMETHODIMP nsNativeAppSupport::Start(bool *_retval NS_OUTPARAM)
117 : {
118 : return NS_ERROR_NOT_IMPLEMENTED;
119 : }
120 :
121 : /* void enable (); */
122 : NS_IMETHODIMP nsNativeAppSupport::Enable()
123 : {
124 : return NS_ERROR_NOT_IMPLEMENTED;
125 : }
126 :
127 : /* boolean stop (); */
128 : NS_IMETHODIMP nsNativeAppSupport::Stop(bool *_retval NS_OUTPARAM)
129 : {
130 : return NS_ERROR_NOT_IMPLEMENTED;
131 : }
132 :
133 : /* void quit (); */
134 : NS_IMETHODIMP nsNativeAppSupport::Quit()
135 : {
136 : return NS_ERROR_NOT_IMPLEMENTED;
137 : }
138 :
139 : /* void onLastWindowClosing (); */
140 : NS_IMETHODIMP nsNativeAppSupport::OnLastWindowClosing()
141 : {
142 : return NS_ERROR_NOT_IMPLEMENTED;
143 : }
144 :
145 : /* void ReOpen (); */
146 : NS_IMETHODIMP nsNativeAppSupport::ReOpen()
147 : {
148 : return NS_ERROR_NOT_IMPLEMENTED;
149 : }
150 :
151 : /* End of implementation class template. */
152 : #endif
153 :
154 :
155 : #endif /* __gen_nsINativeAppSupport_h__ */
|