1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/intl/uconv/idl/nsIUTF8ConverterService.idl
3 : */
4 :
5 : #ifndef __gen_nsIUTF8ConverterService_h__
6 : #define __gen_nsIUTF8ConverterService_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 :
18 : /* starting interface: nsIUTF8ConverterService */
19 : #define NS_IUTF8CONVERTERSERVICE_IID_STR "249f52a3-2599-4b00-ba40-0481364831a2"
20 :
21 : #define NS_IUTF8CONVERTERSERVICE_IID \
22 : {0x249f52a3, 0x2599, 0x4b00, \
23 : { 0xba, 0x40, 0x04, 0x81, 0x36, 0x48, 0x31, 0xa2 }}
24 :
25 5 : class NS_NO_VTABLE NS_SCRIPTABLE nsIUTF8ConverterService : public nsISupports {
26 : public:
27 :
28 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IUTF8CONVERTERSERVICE_IID)
29 :
30 : /* AUTF8String convertStringToUTF8 (in ACString aString, in string aCharset, in boolean aSkipCheck); */
31 : NS_SCRIPTABLE NS_IMETHOD ConvertStringToUTF8(const nsACString & aString, const char * aCharset, bool aSkipCheck, nsACString & _retval NS_OUTPARAM) = 0;
32 :
33 : /* AUTF8String convertURISpecToUTF8 (in ACString aSpec, in string aCharset); */
34 : NS_SCRIPTABLE NS_IMETHOD ConvertURISpecToUTF8(const nsACString & aSpec, const char * aCharset, nsACString & _retval NS_OUTPARAM) = 0;
35 :
36 : };
37 :
38 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIUTF8ConverterService, NS_IUTF8CONVERTERSERVICE_IID)
39 :
40 : /* Use this macro when declaring classes that implement this interface. */
41 : #define NS_DECL_NSIUTF8CONVERTERSERVICE \
42 : NS_SCRIPTABLE NS_IMETHOD ConvertStringToUTF8(const nsACString & aString, const char * aCharset, bool aSkipCheck, nsACString & _retval NS_OUTPARAM); \
43 : NS_SCRIPTABLE NS_IMETHOD ConvertURISpecToUTF8(const nsACString & aSpec, const char * aCharset, nsACString & _retval NS_OUTPARAM);
44 :
45 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
46 : #define NS_FORWARD_NSIUTF8CONVERTERSERVICE(_to) \
47 : NS_SCRIPTABLE NS_IMETHOD ConvertStringToUTF8(const nsACString & aString, const char * aCharset, bool aSkipCheck, nsACString & _retval NS_OUTPARAM) { return _to ConvertStringToUTF8(aString, aCharset, aSkipCheck, _retval); } \
48 : NS_SCRIPTABLE NS_IMETHOD ConvertURISpecToUTF8(const nsACString & aSpec, const char * aCharset, nsACString & _retval NS_OUTPARAM) { return _to ConvertURISpecToUTF8(aSpec, aCharset, _retval); }
49 :
50 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
51 : #define NS_FORWARD_SAFE_NSIUTF8CONVERTERSERVICE(_to) \
52 : NS_SCRIPTABLE NS_IMETHOD ConvertStringToUTF8(const nsACString & aString, const char * aCharset, bool aSkipCheck, nsACString & _retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->ConvertStringToUTF8(aString, aCharset, aSkipCheck, _retval); } \
53 : NS_SCRIPTABLE NS_IMETHOD ConvertURISpecToUTF8(const nsACString & aSpec, const char * aCharset, nsACString & _retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->ConvertURISpecToUTF8(aSpec, aCharset, _retval); }
54 :
55 : #if 0
56 : /* Use the code below as a template for the implementation class for this interface. */
57 :
58 : /* Header file */
59 : class nsUTF8ConverterService : public nsIUTF8ConverterService
60 : {
61 : public:
62 : NS_DECL_ISUPPORTS
63 : NS_DECL_NSIUTF8CONVERTERSERVICE
64 :
65 : nsUTF8ConverterService();
66 :
67 : private:
68 : ~nsUTF8ConverterService();
69 :
70 : protected:
71 : /* additional members */
72 : };
73 :
74 : /* Implementation file */
75 : NS_IMPL_ISUPPORTS1(nsUTF8ConverterService, nsIUTF8ConverterService)
76 :
77 : nsUTF8ConverterService::nsUTF8ConverterService()
78 : {
79 : /* member initializers and constructor code */
80 : }
81 :
82 : nsUTF8ConverterService::~nsUTF8ConverterService()
83 : {
84 : /* destructor code */
85 : }
86 :
87 : /* AUTF8String convertStringToUTF8 (in ACString aString, in string aCharset, in boolean aSkipCheck); */
88 : NS_IMETHODIMP nsUTF8ConverterService::ConvertStringToUTF8(const nsACString & aString, const char * aCharset, bool aSkipCheck, nsACString & _retval NS_OUTPARAM)
89 : {
90 : return NS_ERROR_NOT_IMPLEMENTED;
91 : }
92 :
93 : /* AUTF8String convertURISpecToUTF8 (in ACString aSpec, in string aCharset); */
94 : NS_IMETHODIMP nsUTF8ConverterService::ConvertURISpecToUTF8(const nsACString & aSpec, const char * aCharset, nsACString & _retval NS_OUTPARAM)
95 : {
96 : return NS_ERROR_NOT_IMPLEMENTED;
97 : }
98 :
99 : /* End of implementation class template. */
100 : #endif
101 :
102 :
103 : #endif /* __gen_nsIUTF8ConverterService_h__ */
|