Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsICacheTesting.idl
3 : */
4 :
5 : #ifndef __gen_nsICacheTesting_h__
6 : #define __gen_nsICacheTesting_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 nsIObserver; /* forward declaration */
18 :
19 :
20 : /* starting interface: nsICacheTesting */
21 : #define NS_ICACHETESTING_IID_STR "4e8ba935-92e1-4a74-944b-b1a2f02a7480"
22 :
23 : #define NS_ICACHETESTING_IID \
24 : {0x4e8ba935, 0x92e1, 0x4a74, \
25 : { 0x94, 0x4b, 0xb1, 0xa2, 0xf0, 0x2a, 0x74, 0x80 }}
26 :
27 1 : class NS_NO_VTABLE nsICacheTesting : public nsISupports {
28 : public:
29 :
30 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICACHETESTING_IID)
31 :
32 : /* void suspendCacheIOThread (in uint32_t aLevel); */
33 : NS_IMETHOD SuspendCacheIOThread(uint32_t aLevel) = 0;
34 :
35 : /* void resumeCacheIOThread (); */
36 : NS_IMETHOD ResumeCacheIOThread(void) = 0;
37 :
38 : /* void flush (in nsIObserver aObserver); */
39 : NS_IMETHOD Flush(nsIObserver *aObserver) = 0;
40 :
41 : };
42 :
43 : NS_DEFINE_STATIC_IID_ACCESSOR(nsICacheTesting, NS_ICACHETESTING_IID)
44 :
45 : /* Use this macro when declaring classes that implement this interface. */
46 : #define NS_DECL_NSICACHETESTING \
47 : NS_IMETHOD SuspendCacheIOThread(uint32_t aLevel) override; \
48 : NS_IMETHOD ResumeCacheIOThread(void) override; \
49 : NS_IMETHOD Flush(nsIObserver *aObserver) 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_NSICACHETESTING \
54 : nsresult SuspendCacheIOThread(uint32_t aLevel); \
55 : nsresult ResumeCacheIOThread(void); \
56 : nsresult Flush(nsIObserver *aObserver);
57 :
58 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
59 : #define NS_FORWARD_NSICACHETESTING(_to) \
60 : NS_IMETHOD SuspendCacheIOThread(uint32_t aLevel) override { return _to SuspendCacheIOThread(aLevel); } \
61 : NS_IMETHOD ResumeCacheIOThread(void) override { return _to ResumeCacheIOThread(); } \
62 : NS_IMETHOD Flush(nsIObserver *aObserver) override { return _to Flush(aObserver); }
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_NSICACHETESTING(_to) \
66 : NS_IMETHOD SuspendCacheIOThread(uint32_t aLevel) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SuspendCacheIOThread(aLevel); } \
67 : NS_IMETHOD ResumeCacheIOThread(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ResumeCacheIOThread(); } \
68 : NS_IMETHOD Flush(nsIObserver *aObserver) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Flush(aObserver); }
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 nsCacheTesting : public nsICacheTesting
75 : {
76 : public:
77 : NS_DECL_ISUPPORTS
78 : NS_DECL_NSICACHETESTING
79 :
80 : nsCacheTesting();
81 :
82 : private:
83 : ~nsCacheTesting();
84 :
85 : protected:
86 : /* additional members */
87 : };
88 :
89 : /* Implementation file */
90 : NS_IMPL_ISUPPORTS(nsCacheTesting, nsICacheTesting)
91 :
92 : nsCacheTesting::nsCacheTesting()
93 : {
94 : /* member initializers and constructor code */
95 : }
96 :
97 : nsCacheTesting::~nsCacheTesting()
98 : {
99 : /* destructor code */
100 : }
101 :
102 : /* void suspendCacheIOThread (in uint32_t aLevel); */
103 : NS_IMETHODIMP nsCacheTesting::SuspendCacheIOThread(uint32_t aLevel)
104 : {
105 : return NS_ERROR_NOT_IMPLEMENTED;
106 : }
107 :
108 : /* void resumeCacheIOThread (); */
109 : NS_IMETHODIMP nsCacheTesting::ResumeCacheIOThread()
110 : {
111 : return NS_ERROR_NOT_IMPLEMENTED;
112 : }
113 :
114 : /* void flush (in nsIObserver aObserver); */
115 : NS_IMETHODIMP nsCacheTesting::Flush(nsIObserver *aObserver)
116 : {
117 : return NS_ERROR_NOT_IMPLEMENTED;
118 : }
119 :
120 : /* End of implementation class template. */
121 : #endif
122 :
123 :
124 : #endif /* __gen_nsICacheTesting_h__ */
|