1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/dom/interfaces/base/nsIDOMClientInformation.idl
3 : */
4 :
5 : #ifndef __gen_nsIDOMClientInformation_h__
6 : #define __gen_nsIDOMClientInformation_h__
7 :
8 :
9 : #ifndef __gen_domstubs_h__
10 : #include "domstubs.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 nsIDOMOfflineResourceList; /* forward declaration */
18 :
19 :
20 : /* starting interface: nsIDOMClientInformation */
21 : #define NS_IDOMCLIENTINFORMATION_IID_STR "f8bbf8c3-c47b-465a-a221-22824449f689"
22 :
23 : #define NS_IDOMCLIENTINFORMATION_IID \
24 : {0xf8bbf8c3, 0xc47b, 0x465a, \
25 : { 0xa2, 0x21, 0x22, 0x82, 0x44, 0x49, 0xf6, 0x89 }}
26 :
27 0 : class NS_NO_VTABLE NS_SCRIPTABLE nsIDOMClientInformation : public nsISupports {
28 : public:
29 :
30 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMCLIENTINFORMATION_IID)
31 :
32 : /* void registerContentHandler (in DOMString mimeType, in DOMString uri, in DOMString title); */
33 : NS_SCRIPTABLE NS_IMETHOD RegisterContentHandler(const nsAString & mimeType, const nsAString & uri, const nsAString & title) = 0;
34 :
35 : /* void registerProtocolHandler (in DOMString protocol, in DOMString uri, in DOMString title); */
36 : NS_SCRIPTABLE NS_IMETHOD RegisterProtocolHandler(const nsAString & protocol, const nsAString & uri, const nsAString & title) = 0;
37 :
38 : /* boolean mozIsLocallyAvailable (in DOMString uri, in boolean whenOffline); */
39 : NS_SCRIPTABLE NS_IMETHOD MozIsLocallyAvailable(const nsAString & uri, bool whenOffline, bool *_retval NS_OUTPARAM) = 0;
40 :
41 : };
42 :
43 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMClientInformation, NS_IDOMCLIENTINFORMATION_IID)
44 :
45 : /* Use this macro when declaring classes that implement this interface. */
46 : #define NS_DECL_NSIDOMCLIENTINFORMATION \
47 : NS_SCRIPTABLE NS_IMETHOD RegisterContentHandler(const nsAString & mimeType, const nsAString & uri, const nsAString & title); \
48 : NS_SCRIPTABLE NS_IMETHOD RegisterProtocolHandler(const nsAString & protocol, const nsAString & uri, const nsAString & title); \
49 : NS_SCRIPTABLE NS_IMETHOD MozIsLocallyAvailable(const nsAString & uri, bool whenOffline, bool *_retval NS_OUTPARAM);
50 :
51 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
52 : #define NS_FORWARD_NSIDOMCLIENTINFORMATION(_to) \
53 : NS_SCRIPTABLE NS_IMETHOD RegisterContentHandler(const nsAString & mimeType, const nsAString & uri, const nsAString & title) { return _to RegisterContentHandler(mimeType, uri, title); } \
54 : NS_SCRIPTABLE NS_IMETHOD RegisterProtocolHandler(const nsAString & protocol, const nsAString & uri, const nsAString & title) { return _to RegisterProtocolHandler(protocol, uri, title); } \
55 : NS_SCRIPTABLE NS_IMETHOD MozIsLocallyAvailable(const nsAString & uri, bool whenOffline, bool *_retval NS_OUTPARAM) { return _to MozIsLocallyAvailable(uri, whenOffline, _retval); }
56 :
57 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
58 : #define NS_FORWARD_SAFE_NSIDOMCLIENTINFORMATION(_to) \
59 : NS_SCRIPTABLE NS_IMETHOD RegisterContentHandler(const nsAString & mimeType, const nsAString & uri, const nsAString & title) { return !_to ? NS_ERROR_NULL_POINTER : _to->RegisterContentHandler(mimeType, uri, title); } \
60 : NS_SCRIPTABLE NS_IMETHOD RegisterProtocolHandler(const nsAString & protocol, const nsAString & uri, const nsAString & title) { return !_to ? NS_ERROR_NULL_POINTER : _to->RegisterProtocolHandler(protocol, uri, title); } \
61 : NS_SCRIPTABLE NS_IMETHOD MozIsLocallyAvailable(const nsAString & uri, bool whenOffline, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->MozIsLocallyAvailable(uri, whenOffline, _retval); }
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 nsDOMClientInformation : public nsIDOMClientInformation
68 : {
69 : public:
70 : NS_DECL_ISUPPORTS
71 : NS_DECL_NSIDOMCLIENTINFORMATION
72 :
73 : nsDOMClientInformation();
74 :
75 : private:
76 : ~nsDOMClientInformation();
77 :
78 : protected:
79 : /* additional members */
80 : };
81 :
82 : /* Implementation file */
83 : NS_IMPL_ISUPPORTS1(nsDOMClientInformation, nsIDOMClientInformation)
84 :
85 : nsDOMClientInformation::nsDOMClientInformation()
86 : {
87 : /* member initializers and constructor code */
88 : }
89 :
90 : nsDOMClientInformation::~nsDOMClientInformation()
91 : {
92 : /* destructor code */
93 : }
94 :
95 : /* void registerContentHandler (in DOMString mimeType, in DOMString uri, in DOMString title); */
96 : NS_IMETHODIMP nsDOMClientInformation::RegisterContentHandler(const nsAString & mimeType, const nsAString & uri, const nsAString & title)
97 : {
98 : return NS_ERROR_NOT_IMPLEMENTED;
99 : }
100 :
101 : /* void registerProtocolHandler (in DOMString protocol, in DOMString uri, in DOMString title); */
102 : NS_IMETHODIMP nsDOMClientInformation::RegisterProtocolHandler(const nsAString & protocol, const nsAString & uri, const nsAString & title)
103 : {
104 : return NS_ERROR_NOT_IMPLEMENTED;
105 : }
106 :
107 : /* boolean mozIsLocallyAvailable (in DOMString uri, in boolean whenOffline); */
108 : NS_IMETHODIMP nsDOMClientInformation::MozIsLocallyAvailable(const nsAString & uri, bool whenOffline, bool *_retval NS_OUTPARAM)
109 : {
110 : return NS_ERROR_NOT_IMPLEMENTED;
111 : }
112 :
113 : /* End of implementation class template. */
114 : #endif
115 :
116 :
117 : #endif /* __gen_nsIDOMClientInformation_h__ */
|