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

#ifndef __gen_nsISOAPTransport_h__
#define __gen_nsISOAPTransport_h__

#include "nsISupports.h"

class nsIDOMDocument; /* forward declaration */

class nsISOAPTransportListener; /* forward declaration */


/* starting interface:    nsISOAPTransport */
#define NS_ISOAPTRANSPORT_IID_STR "99ec6695-535f-11d4-9a58-000064657374"

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

class NS_NO_VTABLE nsISOAPTransport : public nsISupports {
 public: 

  NS_DEFINE_STATIC_IID_ACCESSOR(NS_ISOAPTRANSPORT_IID)

  /* boolean canDoSync (); */
  NS_IMETHOD CanDoSync(PRBool *_retval) = 0;

  /* nsIDOMDocument syncCall (in string url, in string action, in nsIDOMDocument messageDocument); */
  NS_IMETHOD SyncCall(const char *url, const char *action, nsIDOMDocument *messageDocument, nsIDOMDocument **_retval) = 0;

  /* void asyncCall (in string url, in string action, in nsIDOMDocument messageDocument, in nsISOAPTransportListener listener); */
  NS_IMETHOD AsyncCall(const char *url, const char *action, nsIDOMDocument *messageDocument, nsISOAPTransportListener *listener) = 0;

  /* readonly attribute unsigned long status; */
  NS_IMETHOD GetStatus(PRUint32 *aStatus) = 0;

};

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSISOAPTRANSPORT \
  NS_IMETHOD CanDoSync(PRBool *_retval); \
  NS_IMETHOD SyncCall(const char *url, const char *action, nsIDOMDocument *messageDocument, nsIDOMDocument **_retval); \
  NS_IMETHOD AsyncCall(const char *url, const char *action, nsIDOMDocument *messageDocument, nsISOAPTransportListener *listener); \
  NS_IMETHOD GetStatus(PRUint32 *aStatus); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSISOAPTRANSPORT(_to) \
  NS_IMETHOD CanDoSync(PRBool *_retval) { return _to ## CanDoSync(_retval); } \
  NS_IMETHOD SyncCall(const char *url, const char *action, nsIDOMDocument *messageDocument, nsIDOMDocument **_retval) { return _to ## SyncCall(url, action, messageDocument, _retval); } \
  NS_IMETHOD AsyncCall(const char *url, const char *action, nsIDOMDocument *messageDocument, nsISOAPTransportListener *listener) { return _to ## AsyncCall(url, action, messageDocument, listener); } \
  NS_IMETHOD GetStatus(PRUint32 *aStatus) { return _to ## GetStatus(aStatus); } 

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

/* Header file */
class nsSOAPTransport : public nsISOAPTransport
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSISOAPTRANSPORT

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

/* Implementation file */
NS_IMPL_ISUPPORTS1(nsSOAPTransport, nsISOAPTransport)

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

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

/* boolean canDoSync (); */
NS_IMETHODIMP nsSOAPTransport::CanDoSync(PRBool *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* nsIDOMDocument syncCall (in string url, in string action, in nsIDOMDocument messageDocument); */
NS_IMETHODIMP nsSOAPTransport::SyncCall(const char *url, const char *action, nsIDOMDocument *messageDocument, nsIDOMDocument **_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void asyncCall (in string url, in string action, in nsIDOMDocument messageDocument, in nsISOAPTransportListener listener); */
NS_IMETHODIMP nsSOAPTransport::AsyncCall(const char *url, const char *action, nsIDOMDocument *messageDocument, nsISOAPTransportListener *listener)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute unsigned long status; */
NS_IMETHODIMP nsSOAPTransport::GetStatus(PRUint32 *aStatus)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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

#define NS_SOAPTRANSPORT_CONTRACTID  \
"@mozilla.org/xmlextras/soap/transport;1"
#define NS_SOAPTRANSPORT_CONTRACTID_PREFIX   NS_SOAPTRANSPORT_CONTRACTID "?protocol="

#endif /* __gen_nsISOAPTransport_h__ */
