/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsISOAPEncoder.idl
 */

#ifndef __gen_nsISOAPEncoder_h__
#define __gen_nsISOAPEncoder_h__

#include "nsISupports.h"

class nsIDOMElement; /* forward declaration */

class nsIDOMDocument; /* forward declaration */

class nsISOAPParameter; /* forward declaration */


/* starting interface:    nsISOAPEncoder */
#define NS_ISOAPENCODER_IID_STR "99ec6693-535f-11d4-9a58-000064657374"

#define NS_ISOAPENCODER_IID \
  {0x99ec6693, 0x535f, 0x11d4, \
    { 0x9a, 0x58, 0x00, 0x00, 0x64, 0x65, 0x73, 0x74 }}

class NS_NO_VTABLE nsISOAPEncoder : public nsISupports {
 public: 

  NS_DEFINE_STATIC_IID_ACCESSOR(NS_ISOAPENCODER_IID)

  /**
   *
   */
  /* nsIDOMElement parameterToElement (in nsISOAPParameter parameter, in string encodingStyle, in nsIDOMDocument document); */
  NS_IMETHOD ParameterToElement(nsISOAPParameter *parameter, const char *encodingStyle, nsIDOMDocument *document, nsIDOMElement **_retval) = 0;

  /**
   *
   */
  /* nsISOAPParameter elementToParameter (in nsIDOMElement element, in string encodingStyle, in long hintType); */
  NS_IMETHOD ElementToParameter(nsIDOMElement *element, const char *encodingStyle, PRInt32 hintType, nsISOAPParameter **_retval) = 0;

};

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSISOAPENCODER \
  NS_IMETHOD ParameterToElement(nsISOAPParameter *parameter, const char *encodingStyle, nsIDOMDocument *document, nsIDOMElement **_retval); \
  NS_IMETHOD ElementToParameter(nsIDOMElement *element, const char *encodingStyle, PRInt32 hintType, nsISOAPParameter **_retval); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSISOAPENCODER(_to) \
  NS_IMETHOD ParameterToElement(nsISOAPParameter *parameter, const char *encodingStyle, nsIDOMDocument *document, nsIDOMElement **_retval) { return _to ## ParameterToElement(parameter, encodingStyle, document, _retval); } \
  NS_IMETHOD ElementToParameter(nsIDOMElement *element, const char *encodingStyle, PRInt32 hintType, nsISOAPParameter **_retval) { return _to ## ElementToParameter(element, encodingStyle, hintType, _retval); } 

#if 0
/* Use the code below as a template for the implementation class for this interface. */

/* Header file */
class nsSOAPEncoder : public nsISOAPEncoder
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSISOAPENCODER

  nsSOAPEncoder();
  virtual ~nsSOAPEncoder();
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS1(nsSOAPEncoder, nsISOAPEncoder)

nsSOAPEncoder::nsSOAPEncoder()
{
  NS_INIT_ISUPPORTS();
  /* member initializers and constructor code */
}

nsSOAPEncoder::~nsSOAPEncoder()
{
  /* destructor code */
}

/* nsIDOMElement parameterToElement (in nsISOAPParameter parameter, in string encodingStyle, in nsIDOMDocument document); */
NS_IMETHODIMP nsSOAPEncoder::ParameterToElement(nsISOAPParameter *parameter, const char *encodingStyle, nsIDOMDocument *document, nsIDOMElement **_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* nsISOAPParameter elementToParameter (in nsIDOMElement element, in string encodingStyle, in long hintType); */
NS_IMETHODIMP nsSOAPEncoder::ElementToParameter(nsIDOMElement *element, const char *encodingStyle, PRInt32 hintType, nsISOAPParameter **_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* End of implementation class template. */
#endif

#define NS_SOAPENCODER_CONTRACTID  \
"@mozilla.org/xmlextras/soap/encoder;1"
#define NS_SOAPENCODER_CONTRACTID_PREFIX   NS_SOAPENCODER_CONTRACTID "?encodingStyle="

#endif /* __gen_nsISOAPEncoder_h__ */
