1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/xpcom/threads/nsIThread.idl
3 : */
4 :
5 : #ifndef __gen_nsIThread_h__
6 : #define __gen_nsIThread_h__
7 :
8 :
9 : #ifndef __gen_nsIEventTarget_h__
10 : #include "nsIEventTarget.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: nsIThread */
19 : #define NS_ITHREAD_IID_STR "9c889946-a73a-4af3-ae9a-ea64f7d4e3ca"
20 :
21 : #define NS_ITHREAD_IID \
22 : {0x9c889946, 0xa73a, 0x4af3, \
23 : { 0xae, 0x9a, 0xea, 0x64, 0xf7, 0xd4, 0xe3, 0xca }}
24 :
25 7579 : class NS_NO_VTABLE NS_SCRIPTABLE nsIThread : public nsIEventTarget {
26 : public:
27 :
28 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_ITHREAD_IID)
29 :
30 : /* [noscript] readonly attribute PRThread PRThread; */
31 : NS_IMETHOD GetPRThread(PRThread **aPRThread) = 0;
32 :
33 : /* void shutdown (); */
34 : NS_SCRIPTABLE NS_IMETHOD Shutdown(void) = 0;
35 :
36 : /* boolean hasPendingEvents (); */
37 : NS_SCRIPTABLE NS_IMETHOD HasPendingEvents(bool *_retval NS_OUTPARAM) = 0;
38 :
39 : /* boolean processNextEvent (in boolean mayWait); */
40 : NS_SCRIPTABLE NS_IMETHOD ProcessNextEvent(bool mayWait, bool *_retval NS_OUTPARAM) = 0;
41 :
42 : };
43 :
44 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIThread, NS_ITHREAD_IID)
45 :
46 : /* Use this macro when declaring classes that implement this interface. */
47 : #define NS_DECL_NSITHREAD \
48 : NS_IMETHOD GetPRThread(PRThread **aPRThread); \
49 : NS_SCRIPTABLE NS_IMETHOD Shutdown(void); \
50 : NS_SCRIPTABLE NS_IMETHOD HasPendingEvents(bool *_retval NS_OUTPARAM); \
51 : NS_SCRIPTABLE NS_IMETHOD ProcessNextEvent(bool mayWait, bool *_retval NS_OUTPARAM);
52 :
53 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
54 : #define NS_FORWARD_NSITHREAD(_to) \
55 : NS_IMETHOD GetPRThread(PRThread **aPRThread) { return _to GetPRThread(aPRThread); } \
56 : NS_SCRIPTABLE NS_IMETHOD Shutdown(void) { return _to Shutdown(); } \
57 : NS_SCRIPTABLE NS_IMETHOD HasPendingEvents(bool *_retval NS_OUTPARAM) { return _to HasPendingEvents(_retval); } \
58 : NS_SCRIPTABLE NS_IMETHOD ProcessNextEvent(bool mayWait, bool *_retval NS_OUTPARAM) { return _to ProcessNextEvent(mayWait, _retval); }
59 :
60 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
61 : #define NS_FORWARD_SAFE_NSITHREAD(_to) \
62 : NS_IMETHOD GetPRThread(PRThread **aPRThread) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPRThread(aPRThread); } \
63 : NS_SCRIPTABLE NS_IMETHOD Shutdown(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Shutdown(); } \
64 : NS_SCRIPTABLE NS_IMETHOD HasPendingEvents(bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->HasPendingEvents(_retval); } \
65 : NS_SCRIPTABLE NS_IMETHOD ProcessNextEvent(bool mayWait, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->ProcessNextEvent(mayWait, _retval); }
66 :
67 : #if 0
68 : /* Use the code below as a template for the implementation class for this interface. */
69 :
70 : /* Header file */
71 : class nsThread : public nsIThread
72 : {
73 : public:
74 : NS_DECL_ISUPPORTS
75 : NS_DECL_NSITHREAD
76 :
77 : nsThread();
78 :
79 : private:
80 : ~nsThread();
81 :
82 : protected:
83 : /* additional members */
84 : };
85 :
86 : /* Implementation file */
87 : NS_IMPL_ISUPPORTS1(nsThread, nsIThread)
88 :
89 : nsThread::nsThread()
90 : {
91 : /* member initializers and constructor code */
92 : }
93 :
94 : nsThread::~nsThread()
95 : {
96 : /* destructor code */
97 : }
98 :
99 : /* [noscript] readonly attribute PRThread PRThread; */
100 : NS_IMETHODIMP nsThread::GetPRThread(PRThread **aPRThread)
101 : {
102 : return NS_ERROR_NOT_IMPLEMENTED;
103 : }
104 :
105 : /* void shutdown (); */
106 : NS_IMETHODIMP nsThread::Shutdown()
107 : {
108 : return NS_ERROR_NOT_IMPLEMENTED;
109 : }
110 :
111 : /* boolean hasPendingEvents (); */
112 : NS_IMETHODIMP nsThread::HasPendingEvents(bool *_retval NS_OUTPARAM)
113 : {
114 : return NS_ERROR_NOT_IMPLEMENTED;
115 : }
116 :
117 : /* boolean processNextEvent (in boolean mayWait); */
118 : NS_IMETHODIMP nsThread::ProcessNextEvent(bool mayWait, bool *_retval NS_OUTPARAM)
119 : {
120 : return NS_ERROR_NOT_IMPLEMENTED;
121 : }
122 :
123 : /* End of implementation class template. */
124 : #endif
125 :
126 :
127 : #endif /* __gen_nsIThread_h__ */
|