1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/xpcom/threads/nsISupportsPriority.idl
3 : */
4 :
5 : #ifndef __gen_nsISupportsPriority_h__
6 : #define __gen_nsISupportsPriority_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 :
18 : /* starting interface: nsISupportsPriority */
19 : #define NS_ISUPPORTSPRIORITY_IID_STR "aa578b44-abd5-4c19-8b14-36d4de6fdc36"
20 :
21 : #define NS_ISUPPORTSPRIORITY_IID \
22 : {0xaa578b44, 0xabd5, 0x4c19, \
23 : { 0x8b, 0x14, 0x36, 0xd4, 0xde, 0x6f, 0xdc, 0x36 }}
24 :
25 13882 : class NS_NO_VTABLE NS_SCRIPTABLE nsISupportsPriority : public nsISupports {
26 : public:
27 :
28 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISUPPORTSPRIORITY_IID)
29 :
30 : enum {
31 : PRIORITY_HIGHEST = -20,
32 : PRIORITY_HIGH = -10,
33 : PRIORITY_NORMAL = 0,
34 : PRIORITY_LOW = 10,
35 : PRIORITY_LOWEST = 20
36 : };
37 :
38 : /* attribute long priority; */
39 : NS_SCRIPTABLE NS_IMETHOD GetPriority(PRInt32 *aPriority) = 0;
40 : NS_SCRIPTABLE NS_IMETHOD SetPriority(PRInt32 aPriority) = 0;
41 :
42 : /* void adjustPriority (in long delta); */
43 : NS_SCRIPTABLE NS_IMETHOD AdjustPriority(PRInt32 delta) = 0;
44 :
45 : };
46 :
47 : NS_DEFINE_STATIC_IID_ACCESSOR(nsISupportsPriority, NS_ISUPPORTSPRIORITY_IID)
48 :
49 : /* Use this macro when declaring classes that implement this interface. */
50 : #define NS_DECL_NSISUPPORTSPRIORITY \
51 : NS_SCRIPTABLE NS_IMETHOD GetPriority(PRInt32 *aPriority); \
52 : NS_SCRIPTABLE NS_IMETHOD SetPriority(PRInt32 aPriority); \
53 : NS_SCRIPTABLE NS_IMETHOD AdjustPriority(PRInt32 delta);
54 :
55 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
56 : #define NS_FORWARD_NSISUPPORTSPRIORITY(_to) \
57 : NS_SCRIPTABLE NS_IMETHOD GetPriority(PRInt32 *aPriority) { return _to GetPriority(aPriority); } \
58 : NS_SCRIPTABLE NS_IMETHOD SetPriority(PRInt32 aPriority) { return _to SetPriority(aPriority); } \
59 : NS_SCRIPTABLE NS_IMETHOD AdjustPriority(PRInt32 delta) { return _to AdjustPriority(delta); }
60 :
61 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
62 : #define NS_FORWARD_SAFE_NSISUPPORTSPRIORITY(_to) \
63 : NS_SCRIPTABLE NS_IMETHOD GetPriority(PRInt32 *aPriority) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPriority(aPriority); } \
64 : NS_SCRIPTABLE NS_IMETHOD SetPriority(PRInt32 aPriority) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPriority(aPriority); } \
65 : NS_SCRIPTABLE NS_IMETHOD AdjustPriority(PRInt32 delta) { return !_to ? NS_ERROR_NULL_POINTER : _to->AdjustPriority(delta); }
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 nsSupportsPriority : public nsISupportsPriority
72 : {
73 : public:
74 : NS_DECL_ISUPPORTS
75 : NS_DECL_NSISUPPORTSPRIORITY
76 :
77 : nsSupportsPriority();
78 :
79 : private:
80 : ~nsSupportsPriority();
81 :
82 : protected:
83 : /* additional members */
84 : };
85 :
86 : /* Implementation file */
87 : NS_IMPL_ISUPPORTS1(nsSupportsPriority, nsISupportsPriority)
88 :
89 : nsSupportsPriority::nsSupportsPriority()
90 : {
91 : /* member initializers and constructor code */
92 : }
93 :
94 : nsSupportsPriority::~nsSupportsPriority()
95 : {
96 : /* destructor code */
97 : }
98 :
99 : /* attribute long priority; */
100 : NS_IMETHODIMP nsSupportsPriority::GetPriority(PRInt32 *aPriority)
101 : {
102 : return NS_ERROR_NOT_IMPLEMENTED;
103 : }
104 : NS_IMETHODIMP nsSupportsPriority::SetPriority(PRInt32 aPriority)
105 : {
106 : return NS_ERROR_NOT_IMPLEMENTED;
107 : }
108 :
109 : /* void adjustPriority (in long delta); */
110 : NS_IMETHODIMP nsSupportsPriority::AdjustPriority(PRInt32 delta)
111 : {
112 : return NS_ERROR_NOT_IMPLEMENTED;
113 : }
114 :
115 : /* End of implementation class template. */
116 : #endif
117 :
118 :
119 : #endif /* __gen_nsISupportsPriority_h__ */
|