1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/docshell/base/nsIURIFixup.idl
3 : */
4 :
5 : #ifndef __gen_nsIURIFixup_h__
6 : #define __gen_nsIURIFixup_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 nsIURI; /* forward declaration */
18 :
19 :
20 : /* starting interface: nsIURIFixup */
21 : #define NS_IURIFIXUP_IID_STR "773081ac-9f81-4bdb-9e7a-5e87b4361f09"
22 :
23 : #define NS_IURIFIXUP_IID \
24 : {0x773081ac, 0x9f81, 0x4bdb, \
25 : { 0x9e, 0x7a, 0x5e, 0x87, 0xb4, 0x36, 0x1f, 0x09 }}
26 :
27 1 : class NS_NO_VTABLE NS_SCRIPTABLE nsIURIFixup : public nsISupports {
28 : public:
29 :
30 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IURIFIXUP_IID)
31 :
32 : enum {
33 : FIXUP_FLAG_NONE = 0U,
34 : FIXUP_FLAG_ALLOW_KEYWORD_LOOKUP = 1U,
35 : FIXUP_FLAGS_MAKE_ALTERNATE_URI = 2U,
36 : FIXUP_FLAG_USE_UTF8 = 4U
37 : };
38 :
39 : /* nsIURI createExposableURI (in nsIURI aURI); */
40 : NS_SCRIPTABLE NS_IMETHOD CreateExposableURI(nsIURI *aURI, nsIURI * *_retval NS_OUTPARAM) = 0;
41 :
42 : /* nsIURI createFixupURI (in AUTF8String aURIText, in unsigned long aFixupFlags); */
43 : NS_SCRIPTABLE NS_IMETHOD CreateFixupURI(const nsACString & aURIText, PRUint32 aFixupFlags, nsIURI * *_retval NS_OUTPARAM) = 0;
44 :
45 : /* nsIURI keywordToURI (in AUTF8String aKeyword); */
46 : NS_SCRIPTABLE NS_IMETHOD KeywordToURI(const nsACString & aKeyword, nsIURI * *_retval NS_OUTPARAM) = 0;
47 :
48 : };
49 :
50 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIURIFixup, NS_IURIFIXUP_IID)
51 :
52 : /* Use this macro when declaring classes that implement this interface. */
53 : #define NS_DECL_NSIURIFIXUP \
54 : NS_SCRIPTABLE NS_IMETHOD CreateExposableURI(nsIURI *aURI, nsIURI * *_retval NS_OUTPARAM); \
55 : NS_SCRIPTABLE NS_IMETHOD CreateFixupURI(const nsACString & aURIText, PRUint32 aFixupFlags, nsIURI * *_retval NS_OUTPARAM); \
56 : NS_SCRIPTABLE NS_IMETHOD KeywordToURI(const nsACString & aKeyword, nsIURI * *_retval NS_OUTPARAM);
57 :
58 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
59 : #define NS_FORWARD_NSIURIFIXUP(_to) \
60 : NS_SCRIPTABLE NS_IMETHOD CreateExposableURI(nsIURI *aURI, nsIURI * *_retval NS_OUTPARAM) { return _to CreateExposableURI(aURI, _retval); } \
61 : NS_SCRIPTABLE NS_IMETHOD CreateFixupURI(const nsACString & aURIText, PRUint32 aFixupFlags, nsIURI * *_retval NS_OUTPARAM) { return _to CreateFixupURI(aURIText, aFixupFlags, _retval); } \
62 : NS_SCRIPTABLE NS_IMETHOD KeywordToURI(const nsACString & aKeyword, nsIURI * *_retval NS_OUTPARAM) { return _to KeywordToURI(aKeyword, _retval); }
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_NSIURIFIXUP(_to) \
66 : NS_SCRIPTABLE NS_IMETHOD CreateExposableURI(nsIURI *aURI, nsIURI * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateExposableURI(aURI, _retval); } \
67 : NS_SCRIPTABLE NS_IMETHOD CreateFixupURI(const nsACString & aURIText, PRUint32 aFixupFlags, nsIURI * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateFixupURI(aURIText, aFixupFlags, _retval); } \
68 : NS_SCRIPTABLE NS_IMETHOD KeywordToURI(const nsACString & aKeyword, nsIURI * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->KeywordToURI(aKeyword, _retval); }
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 nsURIFixup : public nsIURIFixup
75 : {
76 : public:
77 : NS_DECL_ISUPPORTS
78 : NS_DECL_NSIURIFIXUP
79 :
80 : nsURIFixup();
81 :
82 : private:
83 : ~nsURIFixup();
84 :
85 : protected:
86 : /* additional members */
87 : };
88 :
89 : /* Implementation file */
90 : NS_IMPL_ISUPPORTS1(nsURIFixup, nsIURIFixup)
91 :
92 : nsURIFixup::nsURIFixup()
93 : {
94 : /* member initializers and constructor code */
95 : }
96 :
97 : nsURIFixup::~nsURIFixup()
98 : {
99 : /* destructor code */
100 : }
101 :
102 : /* nsIURI createExposableURI (in nsIURI aURI); */
103 : NS_IMETHODIMP nsURIFixup::CreateExposableURI(nsIURI *aURI, nsIURI * *_retval NS_OUTPARAM)
104 : {
105 : return NS_ERROR_NOT_IMPLEMENTED;
106 : }
107 :
108 : /* nsIURI createFixupURI (in AUTF8String aURIText, in unsigned long aFixupFlags); */
109 : NS_IMETHODIMP nsURIFixup::CreateFixupURI(const nsACString & aURIText, PRUint32 aFixupFlags, nsIURI * *_retval NS_OUTPARAM)
110 : {
111 : return NS_ERROR_NOT_IMPLEMENTED;
112 : }
113 :
114 : /* nsIURI keywordToURI (in AUTF8String aKeyword); */
115 : NS_IMETHODIMP nsURIFixup::KeywordToURI(const nsACString & aKeyword, nsIURI * *_retval NS_OUTPARAM)
116 : {
117 : return NS_ERROR_NOT_IMPLEMENTED;
118 : }
119 :
120 : /* End of implementation class template. */
121 : #endif
122 :
123 :
124 : #endif /* __gen_nsIURIFixup_h__ */
|