Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIResumableChannel.idl
3 : */
4 :
5 : #ifndef __gen_nsIResumableChannel_h__
6 : #define __gen_nsIResumableChannel_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 nsIStreamListener; /* forward declaration */
18 :
19 :
20 : /* starting interface: nsIResumableChannel */
21 : #define NS_IRESUMABLECHANNEL_IID_STR "4ad136fa-83af-4a22-a76e-503642c0f4a8"
22 :
23 : #define NS_IRESUMABLECHANNEL_IID \
24 : {0x4ad136fa, 0x83af, 0x4a22, \
25 : { 0xa7, 0x6e, 0x50, 0x36, 0x42, 0xc0, 0xf4, 0xa8 }}
26 :
27 10 : class NS_NO_VTABLE nsIResumableChannel : public nsISupports {
28 : public:
29 :
30 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IRESUMABLECHANNEL_IID)
31 :
32 : /* void resumeAt (in unsigned long long startPos, in ACString entityID); */
33 : NS_IMETHOD ResumeAt(uint64_t startPos, const nsACString & entityID) = 0;
34 :
35 : /* readonly attribute ACString entityID; */
36 : NS_IMETHOD GetEntityID(nsACString & aEntityID) = 0;
37 :
38 : };
39 :
40 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIResumableChannel, NS_IRESUMABLECHANNEL_IID)
41 :
42 : /* Use this macro when declaring classes that implement this interface. */
43 : #define NS_DECL_NSIRESUMABLECHANNEL \
44 : NS_IMETHOD ResumeAt(uint64_t startPos, const nsACString & entityID) override; \
45 : NS_IMETHOD GetEntityID(nsACString & aEntityID) override;
46 :
47 : /* Use this macro when declaring the members of this interface when the
48 : class doesn't implement the interface. This is useful for forwarding. */
49 : #define NS_DECL_NON_VIRTUAL_NSIRESUMABLECHANNEL \
50 : nsresult ResumeAt(uint64_t startPos, const nsACString & entityID); \
51 : nsresult GetEntityID(nsACString & aEntityID);
52 :
53 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
54 : #define NS_FORWARD_NSIRESUMABLECHANNEL(_to) \
55 : NS_IMETHOD ResumeAt(uint64_t startPos, const nsACString & entityID) override { return _to ResumeAt(startPos, entityID); } \
56 : NS_IMETHOD GetEntityID(nsACString & aEntityID) override { return _to GetEntityID(aEntityID); }
57 :
58 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
59 : #define NS_FORWARD_SAFE_NSIRESUMABLECHANNEL(_to) \
60 : NS_IMETHOD ResumeAt(uint64_t startPos, const nsACString & entityID) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ResumeAt(startPos, entityID); } \
61 : NS_IMETHOD GetEntityID(nsACString & aEntityID) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetEntityID(aEntityID); }
62 :
63 : #if 0
64 : /* Use the code below as a template for the implementation class for this interface. */
65 :
66 : /* Header file */
67 : class nsResumableChannel : public nsIResumableChannel
68 : {
69 : public:
70 : NS_DECL_ISUPPORTS
71 : NS_DECL_NSIRESUMABLECHANNEL
72 :
73 : nsResumableChannel();
74 :
75 : private:
76 : ~nsResumableChannel();
77 :
78 : protected:
79 : /* additional members */
80 : };
81 :
82 : /* Implementation file */
83 : NS_IMPL_ISUPPORTS(nsResumableChannel, nsIResumableChannel)
84 :
85 : nsResumableChannel::nsResumableChannel()
86 : {
87 : /* member initializers and constructor code */
88 : }
89 :
90 : nsResumableChannel::~nsResumableChannel()
91 : {
92 : /* destructor code */
93 : }
94 :
95 : /* void resumeAt (in unsigned long long startPos, in ACString entityID); */
96 : NS_IMETHODIMP nsResumableChannel::ResumeAt(uint64_t startPos, const nsACString & entityID)
97 : {
98 : return NS_ERROR_NOT_IMPLEMENTED;
99 : }
100 :
101 : /* readonly attribute ACString entityID; */
102 : NS_IMETHODIMP nsResumableChannel::GetEntityID(nsACString & aEntityID)
103 : {
104 : return NS_ERROR_NOT_IMPLEMENTED;
105 : }
106 :
107 : /* End of implementation class template. */
108 : #endif
109 :
110 :
111 : #endif /* __gen_nsIResumableChannel_h__ */
|