Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIDiskSpaceWatcher.idl
3 : */
4 :
5 : #ifndef __gen_nsIDiskSpaceWatcher_h__
6 : #define __gen_nsIDiskSpaceWatcher_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 : #ifdef XP_WIN
18 : #undef GetFreeSpace
19 : #endif
20 :
21 : /* starting interface: nsIDiskSpaceWatcher */
22 : #define NS_IDISKSPACEWATCHER_IID_STR "3aceba74-2ed5-4e99-8fe4-06e90e2b8ef0"
23 :
24 : #define NS_IDISKSPACEWATCHER_IID \
25 : {0x3aceba74, 0x2ed5, 0x4e99, \
26 : { 0x8f, 0xe4, 0x06, 0xe9, 0x0e, 0x2b, 0x8e, 0xf0 }}
27 :
28 0 : class NS_NO_VTABLE nsIDiskSpaceWatcher : public nsISupports {
29 : public:
30 :
31 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDISKSPACEWATCHER_IID)
32 :
33 : /* readonly attribute bool isDiskFull; */
34 : NS_IMETHOD GetIsDiskFull(bool *aIsDiskFull) = 0;
35 :
36 : /* readonly attribute unsigned long long freeSpace; */
37 : NS_IMETHOD GetFreeSpace(uint64_t *aFreeSpace) = 0;
38 :
39 : };
40 :
41 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIDiskSpaceWatcher, NS_IDISKSPACEWATCHER_IID)
42 :
43 : /* Use this macro when declaring classes that implement this interface. */
44 : #define NS_DECL_NSIDISKSPACEWATCHER \
45 : NS_IMETHOD GetIsDiskFull(bool *aIsDiskFull) override; \
46 : NS_IMETHOD GetFreeSpace(uint64_t *aFreeSpace) override;
47 :
48 : /* Use this macro when declaring the members of this interface when the
49 : class doesn't implement the interface. This is useful for forwarding. */
50 : #define NS_DECL_NON_VIRTUAL_NSIDISKSPACEWATCHER \
51 : nsresult GetIsDiskFull(bool *aIsDiskFull); \
52 : nsresult GetFreeSpace(uint64_t *aFreeSpace);
53 :
54 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
55 : #define NS_FORWARD_NSIDISKSPACEWATCHER(_to) \
56 : NS_IMETHOD GetIsDiskFull(bool *aIsDiskFull) override { return _to GetIsDiskFull(aIsDiskFull); } \
57 : NS_IMETHOD GetFreeSpace(uint64_t *aFreeSpace) override { return _to GetFreeSpace(aFreeSpace); }
58 :
59 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
60 : #define NS_FORWARD_SAFE_NSIDISKSPACEWATCHER(_to) \
61 : NS_IMETHOD GetIsDiskFull(bool *aIsDiskFull) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsDiskFull(aIsDiskFull); } \
62 : NS_IMETHOD GetFreeSpace(uint64_t *aFreeSpace) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFreeSpace(aFreeSpace); }
63 :
64 : #if 0
65 : /* Use the code below as a template for the implementation class for this interface. */
66 :
67 : /* Header file */
68 : class nsDiskSpaceWatcher : public nsIDiskSpaceWatcher
69 : {
70 : public:
71 : NS_DECL_ISUPPORTS
72 : NS_DECL_NSIDISKSPACEWATCHER
73 :
74 : nsDiskSpaceWatcher();
75 :
76 : private:
77 : ~nsDiskSpaceWatcher();
78 :
79 : protected:
80 : /* additional members */
81 : };
82 :
83 : /* Implementation file */
84 : NS_IMPL_ISUPPORTS(nsDiskSpaceWatcher, nsIDiskSpaceWatcher)
85 :
86 : nsDiskSpaceWatcher::nsDiskSpaceWatcher()
87 : {
88 : /* member initializers and constructor code */
89 : }
90 :
91 : nsDiskSpaceWatcher::~nsDiskSpaceWatcher()
92 : {
93 : /* destructor code */
94 : }
95 :
96 : /* readonly attribute bool isDiskFull; */
97 : NS_IMETHODIMP nsDiskSpaceWatcher::GetIsDiskFull(bool *aIsDiskFull)
98 : {
99 : return NS_ERROR_NOT_IMPLEMENTED;
100 : }
101 :
102 : /* readonly attribute unsigned long long freeSpace; */
103 : NS_IMETHODIMP nsDiskSpaceWatcher::GetFreeSpace(uint64_t *aFreeSpace)
104 : {
105 : return NS_ERROR_NOT_IMPLEMENTED;
106 : }
107 :
108 : /* End of implementation class template. */
109 : #endif
110 :
111 : #define DISKSPACEWATCHER_CONTRACTID "@mozilla.org/toolkit/disk-space-watcher;1"
112 : // The data for this notification will be either 'free' or 'full'.
113 : #define DISKSPACEWATCHER_OBSERVER_TOPIC "disk-space-watcher"
114 :
115 : #endif /* __gen_nsIDiskSpaceWatcher_h__ */
|