Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIPresentationTerminateRequest.idl
3 : */
4 :
5 : #ifndef __gen_nsIPresentationTerminateRequest_h__
6 : #define __gen_nsIPresentationTerminateRequest_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 nsIPresentationDevice; /* forward declaration */
18 :
19 : class nsIPresentationControlChannel; /* forward declaration */
20 :
21 : #define PRESENTATION_TERMINATE_REQUEST_TOPIC "presentation-terminate-request"
22 :
23 : /* starting interface: nsIPresentationTerminateRequest */
24 : #define NS_IPRESENTATIONTERMINATEREQUEST_IID_STR "3ddbf3a4-53ee-4b70-9bbc-58ac90dce6b5"
25 :
26 : #define NS_IPRESENTATIONTERMINATEREQUEST_IID \
27 : {0x3ddbf3a4, 0x53ee, 0x4b70, \
28 : { 0x9b, 0xbc, 0x58, 0xac, 0x90, 0xdc, 0xe6, 0xb5 }}
29 :
30 0 : class NS_NO_VTABLE nsIPresentationTerminateRequest : public nsISupports {
31 : public:
32 :
33 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IPRESENTATIONTERMINATEREQUEST_IID)
34 :
35 : /* readonly attribute nsIPresentationDevice device; */
36 : NS_IMETHOD GetDevice(nsIPresentationDevice * *aDevice) = 0;
37 :
38 : /* readonly attribute DOMString presentationId; */
39 : NS_IMETHOD GetPresentationId(nsAString & aPresentationId) = 0;
40 :
41 : /* readonly attribute nsIPresentationControlChannel controlChannel; */
42 : NS_IMETHOD GetControlChannel(nsIPresentationControlChannel * *aControlChannel) = 0;
43 :
44 : /* readonly attribute boolean isFromReceiver; */
45 : NS_IMETHOD GetIsFromReceiver(bool *aIsFromReceiver) = 0;
46 :
47 : };
48 :
49 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIPresentationTerminateRequest, NS_IPRESENTATIONTERMINATEREQUEST_IID)
50 :
51 : /* Use this macro when declaring classes that implement this interface. */
52 : #define NS_DECL_NSIPRESENTATIONTERMINATEREQUEST \
53 : NS_IMETHOD GetDevice(nsIPresentationDevice * *aDevice) override; \
54 : NS_IMETHOD GetPresentationId(nsAString & aPresentationId) override; \
55 : NS_IMETHOD GetControlChannel(nsIPresentationControlChannel * *aControlChannel) override; \
56 : NS_IMETHOD GetIsFromReceiver(bool *aIsFromReceiver) override;
57 :
58 : /* Use this macro when declaring the members of this interface when the
59 : class doesn't implement the interface. This is useful for forwarding. */
60 : #define NS_DECL_NON_VIRTUAL_NSIPRESENTATIONTERMINATEREQUEST \
61 : nsresult GetDevice(nsIPresentationDevice * *aDevice); \
62 : nsresult GetPresentationId(nsAString & aPresentationId); \
63 : nsresult GetControlChannel(nsIPresentationControlChannel * *aControlChannel); \
64 : nsresult GetIsFromReceiver(bool *aIsFromReceiver);
65 :
66 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
67 : #define NS_FORWARD_NSIPRESENTATIONTERMINATEREQUEST(_to) \
68 : NS_IMETHOD GetDevice(nsIPresentationDevice * *aDevice) override { return _to GetDevice(aDevice); } \
69 : NS_IMETHOD GetPresentationId(nsAString & aPresentationId) override { return _to GetPresentationId(aPresentationId); } \
70 : NS_IMETHOD GetControlChannel(nsIPresentationControlChannel * *aControlChannel) override { return _to GetControlChannel(aControlChannel); } \
71 : NS_IMETHOD GetIsFromReceiver(bool *aIsFromReceiver) override { return _to GetIsFromReceiver(aIsFromReceiver); }
72 :
73 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
74 : #define NS_FORWARD_SAFE_NSIPRESENTATIONTERMINATEREQUEST(_to) \
75 : NS_IMETHOD GetDevice(nsIPresentationDevice * *aDevice) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDevice(aDevice); } \
76 : NS_IMETHOD GetPresentationId(nsAString & aPresentationId) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPresentationId(aPresentationId); } \
77 : NS_IMETHOD GetControlChannel(nsIPresentationControlChannel * *aControlChannel) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetControlChannel(aControlChannel); } \
78 : NS_IMETHOD GetIsFromReceiver(bool *aIsFromReceiver) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsFromReceiver(aIsFromReceiver); }
79 :
80 : #if 0
81 : /* Use the code below as a template for the implementation class for this interface. */
82 :
83 : /* Header file */
84 : class nsPresentationTerminateRequest : public nsIPresentationTerminateRequest
85 : {
86 : public:
87 : NS_DECL_ISUPPORTS
88 : NS_DECL_NSIPRESENTATIONTERMINATEREQUEST
89 :
90 : nsPresentationTerminateRequest();
91 :
92 : private:
93 : ~nsPresentationTerminateRequest();
94 :
95 : protected:
96 : /* additional members */
97 : };
98 :
99 : /* Implementation file */
100 : NS_IMPL_ISUPPORTS(nsPresentationTerminateRequest, nsIPresentationTerminateRequest)
101 :
102 : nsPresentationTerminateRequest::nsPresentationTerminateRequest()
103 : {
104 : /* member initializers and constructor code */
105 : }
106 :
107 : nsPresentationTerminateRequest::~nsPresentationTerminateRequest()
108 : {
109 : /* destructor code */
110 : }
111 :
112 : /* readonly attribute nsIPresentationDevice device; */
113 : NS_IMETHODIMP nsPresentationTerminateRequest::GetDevice(nsIPresentationDevice * *aDevice)
114 : {
115 : return NS_ERROR_NOT_IMPLEMENTED;
116 : }
117 :
118 : /* readonly attribute DOMString presentationId; */
119 : NS_IMETHODIMP nsPresentationTerminateRequest::GetPresentationId(nsAString & aPresentationId)
120 : {
121 : return NS_ERROR_NOT_IMPLEMENTED;
122 : }
123 :
124 : /* readonly attribute nsIPresentationControlChannel controlChannel; */
125 : NS_IMETHODIMP nsPresentationTerminateRequest::GetControlChannel(nsIPresentationControlChannel * *aControlChannel)
126 : {
127 : return NS_ERROR_NOT_IMPLEMENTED;
128 : }
129 :
130 : /* readonly attribute boolean isFromReceiver; */
131 : NS_IMETHODIMP nsPresentationTerminateRequest::GetIsFromReceiver(bool *aIsFromReceiver)
132 : {
133 : return NS_ERROR_NOT_IMPLEMENTED;
134 : }
135 :
136 : /* End of implementation class template. */
137 : #endif
138 :
139 :
140 : #endif /* __gen_nsIPresentationTerminateRequest_h__ */
|