DXR is a code search and navigation tool aimed at making sense of large projects. It supports full-text and regex searches as well as structural queries.

Untracked file

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113
/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM /home/jenkins/src/releases/comm-beta/mailnews/intl/nsICharsetConverterManager.idl
 */

#ifndef __gen_nsICharsetConverterManager_h__
#define __gen_nsICharsetConverterManager_h__


#ifndef __gen_nsISupports_h__
#include "nsISupports.h"
#endif

#include "js/GCAnnotations.h"

/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
#include "mozilla/Encoding.h"
// XXX change to NS_CHARSETCONVERTERMANAGER_CID
#define NS_ICHARSETCONVERTERMANAGER_CID \
  {0x3c1c0163, 0x9bd0, 0x11d3, { 0x9d, 0x9, 0x0, 0x50, 0x4, 0x0, 0x7, 0xb2}}
#define NS_CHARSETCONVERTERMANAGER_CONTRACTID "@mozilla.org/charset-converter-manager;1"
class nsIUTF8StringEnumerator; /* forward declaration */


/* starting interface:    nsICharsetConverterManager */
#define NS_ICHARSETCONVERTERMANAGER_IID_STR "a0550d46-8d9c-47dd-acc7-c083620dff12"

#define NS_ICHARSETCONVERTERMANAGER_IID \
  {0xa0550d46, 0x8d9c, 0x47dd, \
    { 0xac, 0xc7, 0xc0, 0x83, 0x62, 0x0d, 0xff, 0x12 }}

class NS_NO_VTABLE nsICharsetConverterManager : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICHARSETCONVERTERMANAGER_IID)

  /* ACString getCharsetAlias (in string aCharset); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetCharsetAlias(const char * aCharset, nsACString& _retval) = 0;

  /* AString getCharsetTitle (in string aCharset); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetCharsetTitle(const char * aCharset, nsAString& _retval) = 0;

  /* AString getCharsetData (in string aCharset, in wstring aProp); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetCharsetData(const char * aCharset, const char16_t * aProp, nsAString& _retval) = 0;

  /* AUTF8String getCharsetLangGroup (in string aCharset); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetCharsetLangGroup(const char * aCharset, nsACString& _retval) = 0;

  /* AUTF8String getCharsetLangGroupRaw (in string aCharset); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetCharsetLangGroupRaw(const char * aCharset, nsACString& _retval) = 0;

  /* AString utf7ToUnicode (in ACString aMutf7); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Utf7ToUnicode(const nsACString& aMutf7, nsAString& _retval) = 0;

  /* AString mutf7ToUnicode (in ACString aMutf7); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Mutf7ToUnicode(const nsACString& aMutf7, nsAString& _retval) = 0;

  /* ACString unicodeToMutf7 (in AString aUnicode); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD UnicodeToMutf7(const nsAString& aUnicode, nsACString& _retval) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsICharsetConverterManager, NS_ICHARSETCONVERTERMANAGER_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSICHARSETCONVERTERMANAGER \
  NS_IMETHOD GetCharsetAlias(const char * aCharset, nsACString& _retval) override; \
  NS_IMETHOD GetCharsetTitle(const char * aCharset, nsAString& _retval) override; \
  NS_IMETHOD GetCharsetData(const char * aCharset, const char16_t * aProp, nsAString& _retval) override; \
  NS_IMETHOD GetCharsetLangGroup(const char * aCharset, nsACString& _retval) override; \
  NS_IMETHOD GetCharsetLangGroupRaw(const char * aCharset, nsACString& _retval) override; \
  NS_IMETHOD Utf7ToUnicode(const nsACString& aMutf7, nsAString& _retval) override; \
  NS_IMETHOD Mutf7ToUnicode(const nsACString& aMutf7, nsAString& _retval) override; \
  NS_IMETHOD UnicodeToMutf7(const nsAString& aUnicode, nsACString& _retval) override; 

/* Use this macro when declaring the members of this interface when the
   class doesn't implement the interface. This is useful for forwarding. */
#define NS_DECL_NON_VIRTUAL_NSICHARSETCONVERTERMANAGER \
  nsresult GetCharsetAlias(const char * aCharset, nsACString& _retval); \
  nsresult GetCharsetTitle(const char * aCharset, nsAString& _retval); \
  nsresult GetCharsetData(const char * aCharset, const char16_t * aProp, nsAString& _retval); \
  nsresult GetCharsetLangGroup(const char * aCharset, nsACString& _retval); \
  nsresult GetCharsetLangGroupRaw(const char * aCharset, nsACString& _retval); \
  nsresult Utf7ToUnicode(const nsACString& aMutf7, nsAString& _retval); \
  nsresult Mutf7ToUnicode(const nsACString& aMutf7, nsAString& _retval); \
  nsresult UnicodeToMutf7(const nsAString& aUnicode, nsACString& _retval); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSICHARSETCONVERTERMANAGER(_to) \
  NS_IMETHOD GetCharsetAlias(const char * aCharset, nsACString& _retval) override { return _to GetCharsetAlias(aCharset, _retval); } \
  NS_IMETHOD GetCharsetTitle(const char * aCharset, nsAString& _retval) override { return _to GetCharsetTitle(aCharset, _retval); } \
  NS_IMETHOD GetCharsetData(const char * aCharset, const char16_t * aProp, nsAString& _retval) override { return _to GetCharsetData(aCharset, aProp, _retval); } \
  NS_IMETHOD GetCharsetLangGroup(const char * aCharset, nsACString& _retval) override { return _to GetCharsetLangGroup(aCharset, _retval); } \
  NS_IMETHOD GetCharsetLangGroupRaw(const char * aCharset, nsACString& _retval) override { return _to GetCharsetLangGroupRaw(aCharset, _retval); } \
  NS_IMETHOD Utf7ToUnicode(const nsACString& aMutf7, nsAString& _retval) override { return _to Utf7ToUnicode(aMutf7, _retval); } \
  NS_IMETHOD Mutf7ToUnicode(const nsACString& aMutf7, nsAString& _retval) override { return _to Mutf7ToUnicode(aMutf7, _retval); } \
  NS_IMETHOD UnicodeToMutf7(const nsAString& aUnicode, nsACString& _retval) override { return _to UnicodeToMutf7(aUnicode, _retval); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSICHARSETCONVERTERMANAGER(_to) \
  NS_IMETHOD GetCharsetAlias(const char * aCharset, nsACString& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCharsetAlias(aCharset, _retval); } \
  NS_IMETHOD GetCharsetTitle(const char * aCharset, nsAString& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCharsetTitle(aCharset, _retval); } \
  NS_IMETHOD GetCharsetData(const char * aCharset, const char16_t * aProp, nsAString& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCharsetData(aCharset, aProp, _retval); } \
  NS_IMETHOD GetCharsetLangGroup(const char * aCharset, nsACString& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCharsetLangGroup(aCharset, _retval); } \
  NS_IMETHOD GetCharsetLangGroupRaw(const char * aCharset, nsACString& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCharsetLangGroupRaw(aCharset, _retval); } \
  NS_IMETHOD Utf7ToUnicode(const nsACString& aMutf7, nsAString& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Utf7ToUnicode(aMutf7, _retval); } \
  NS_IMETHOD Mutf7ToUnicode(const nsACString& aMutf7, nsAString& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Mutf7ToUnicode(aMutf7, _retval); } \
  NS_IMETHOD UnicodeToMutf7(const nsAString& aUnicode, nsACString& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->UnicodeToMutf7(aUnicode, _retval); } 


#endif /* __gen_nsICharsetConverterManager_h__ */