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

#ifndef __gen_nsIActivityProxy_h__
#define __gen_nsIActivityProxy_h__


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

#include "js/Value.h"

/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
class nsIDOMWindow; /* forward declaration */


/* starting interface:    nsIActivityProxy */
#define NS_IACTIVITYPROXY_IID_STR "60adef0f-c1a7-4dc5-bc0d-4b879f1e59ca"

#define NS_IACTIVITYPROXY_IID \
  {0x60adef0f, 0xc1a7, 0x4dc5, \
    { 0xbc, 0x0d, 0x4b, 0x87, 0x9f, 0x1e, 0x59, 0xca }}

class NS_NO_VTABLE nsIActivityProxy : public nsISupports {
 public: 

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IACTIVITYPROXY_IID)

  /* void startActivity (in nsISupports activity, in jsval options, in nsIDOMWindow window); */
  NS_IMETHOD StartActivity(nsISupports *activity, JS::HandleValue options, nsIDOMWindow *window) = 0;

  /* void cleanup (); */
  NS_IMETHOD Cleanup(void) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIActivityProxy, NS_IACTIVITYPROXY_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIACTIVITYPROXY \
  NS_IMETHOD StartActivity(nsISupports *activity, JS::HandleValue options, nsIDOMWindow *window) MOZ_OVERRIDE; \
  NS_IMETHOD Cleanup(void) MOZ_OVERRIDE; 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIACTIVITYPROXY(_to) \
  NS_IMETHOD StartActivity(nsISupports *activity, JS::HandleValue options, nsIDOMWindow *window) MOZ_OVERRIDE { return _to StartActivity(activity, options, window); } \
  NS_IMETHOD Cleanup(void) MOZ_OVERRIDE { return _to Cleanup(); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIACTIVITYPROXY(_to) \
  NS_IMETHOD StartActivity(nsISupports *activity, JS::HandleValue options, nsIDOMWindow *window) MOZ_OVERRIDE { return !_to ? NS_ERROR_NULL_POINTER : _to->StartActivity(activity, options, window); } \
  NS_IMETHOD Cleanup(void) MOZ_OVERRIDE { return !_to ? NS_ERROR_NULL_POINTER : _to->Cleanup(); } 

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

/* Header file */
class nsActivityProxy : public nsIActivityProxy
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIACTIVITYPROXY

  nsActivityProxy();

private:
  ~nsActivityProxy();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS(nsActivityProxy, nsIActivityProxy)

nsActivityProxy::nsActivityProxy()
{
  /* member initializers and constructor code */
}

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

/* void startActivity (in nsISupports activity, in jsval options, in nsIDOMWindow window); */
NS_IMETHODIMP nsActivityProxy::StartActivity(nsISupports *activity, JS::HandleValue options, nsIDOMWindow *window)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void cleanup (); */
NS_IMETHODIMP nsActivityProxy::Cleanup()
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


#endif /* __gen_nsIActivityProxy_h__ */
