/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM e:/builds/moz2_slave/mozilla-central-win32-xulrunner/build/js/jetpack/nsIJetpack.idl
 */

#ifndef __gen_nsIJetpack_h__
#define __gen_nsIJetpack_h__


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

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


/* starting interface:    nsIJetpack */
#define NS_IJETPACK_IID_STR "563afdf8-5d2f-4bb2-9ac0-fb82461d2922"

#define NS_IJETPACK_IID \
  {0x563afdf8, 0x5d2f, 0x4bb2, \
    { 0x9a, 0xc0, 0xfb, 0x82, 0x46, 0x1d, 0x29, 0x22 }}

class NS_NO_VTABLE NS_SCRIPTABLE nsIJetpack : public nsISupports {
 public: 

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IJETPACK_IID)

  /* void sendMessage (in AString aMessageName); */
  NS_SCRIPTABLE NS_IMETHOD SendMessage(const nsAString & aMessageName) = 0;

  /* void registerReceiver (in AString aMessageName, in jsval aReceiver); */
  NS_SCRIPTABLE NS_IMETHOD RegisterReceiver(const nsAString & aMessageName, jsval aReceiver) = 0;

  /* void unregisterReceiver (in AString aMessageName, in jsval aReceiver); */
  NS_SCRIPTABLE NS_IMETHOD UnregisterReceiver(const nsAString & aMessageName, jsval aReceiver) = 0;

  /* void unregisterReceivers (in AString aMessageName); */
  NS_SCRIPTABLE NS_IMETHOD UnregisterReceivers(const nsAString & aMessageName) = 0;

  /* void loadImplementation (in AString aURI); */
  NS_SCRIPTABLE NS_IMETHOD LoadImplementation(const nsAString & aURI) = 0;

  /* void loadUserScript (in AString aURI); */
  NS_SCRIPTABLE NS_IMETHOD LoadUserScript(const nsAString & aURI) = 0;

  /* nsIVariant createHandle (); */
  NS_SCRIPTABLE NS_IMETHOD CreateHandle(nsIVariant **_retval NS_OUTPARAM) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIJetpack, NS_IJETPACK_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIJETPACK \
  NS_SCRIPTABLE NS_IMETHOD SendMessage(const nsAString & aMessageName); \
  NS_SCRIPTABLE NS_IMETHOD RegisterReceiver(const nsAString & aMessageName, jsval aReceiver); \
  NS_SCRIPTABLE NS_IMETHOD UnregisterReceiver(const nsAString & aMessageName, jsval aReceiver); \
  NS_SCRIPTABLE NS_IMETHOD UnregisterReceivers(const nsAString & aMessageName); \
  NS_SCRIPTABLE NS_IMETHOD LoadImplementation(const nsAString & aURI); \
  NS_SCRIPTABLE NS_IMETHOD LoadUserScript(const nsAString & aURI); \
  NS_SCRIPTABLE NS_IMETHOD CreateHandle(nsIVariant **_retval NS_OUTPARAM); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIJETPACK(_to) \
  NS_SCRIPTABLE NS_IMETHOD SendMessage(const nsAString & aMessageName) { return _to SendMessage(aMessageName); } \
  NS_SCRIPTABLE NS_IMETHOD RegisterReceiver(const nsAString & aMessageName, jsval aReceiver) { return _to RegisterReceiver(aMessageName, aReceiver); } \
  NS_SCRIPTABLE NS_IMETHOD UnregisterReceiver(const nsAString & aMessageName, jsval aReceiver) { return _to UnregisterReceiver(aMessageName, aReceiver); } \
  NS_SCRIPTABLE NS_IMETHOD UnregisterReceivers(const nsAString & aMessageName) { return _to UnregisterReceivers(aMessageName); } \
  NS_SCRIPTABLE NS_IMETHOD LoadImplementation(const nsAString & aURI) { return _to LoadImplementation(aURI); } \
  NS_SCRIPTABLE NS_IMETHOD LoadUserScript(const nsAString & aURI) { return _to LoadUserScript(aURI); } \
  NS_SCRIPTABLE NS_IMETHOD CreateHandle(nsIVariant **_retval NS_OUTPARAM) { return _to CreateHandle(_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_NSIJETPACK(_to) \
  NS_SCRIPTABLE NS_IMETHOD SendMessage(const nsAString & aMessageName) { return !_to ? NS_ERROR_NULL_POINTER : _to->SendMessage(aMessageName); } \
  NS_SCRIPTABLE NS_IMETHOD RegisterReceiver(const nsAString & aMessageName, jsval aReceiver) { return !_to ? NS_ERROR_NULL_POINTER : _to->RegisterReceiver(aMessageName, aReceiver); } \
  NS_SCRIPTABLE NS_IMETHOD UnregisterReceiver(const nsAString & aMessageName, jsval aReceiver) { return !_to ? NS_ERROR_NULL_POINTER : _to->UnregisterReceiver(aMessageName, aReceiver); } \
  NS_SCRIPTABLE NS_IMETHOD UnregisterReceivers(const nsAString & aMessageName) { return !_to ? NS_ERROR_NULL_POINTER : _to->UnregisterReceivers(aMessageName); } \
  NS_SCRIPTABLE NS_IMETHOD LoadImplementation(const nsAString & aURI) { return !_to ? NS_ERROR_NULL_POINTER : _to->LoadImplementation(aURI); } \
  NS_SCRIPTABLE NS_IMETHOD LoadUserScript(const nsAString & aURI) { return !_to ? NS_ERROR_NULL_POINTER : _to->LoadUserScript(aURI); } \
  NS_SCRIPTABLE NS_IMETHOD CreateHandle(nsIVariant **_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateHandle(_retval); } 

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

/* Header file */
class nsJetpack : public nsIJetpack
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIJETPACK

  nsJetpack();

private:
  ~nsJetpack();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS1(nsJetpack, nsIJetpack)

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

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

/* void sendMessage (in AString aMessageName); */
NS_IMETHODIMP nsJetpack::SendMessage(const nsAString & aMessageName)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void registerReceiver (in AString aMessageName, in jsval aReceiver); */
NS_IMETHODIMP nsJetpack::RegisterReceiver(const nsAString & aMessageName, jsval aReceiver)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void unregisterReceiver (in AString aMessageName, in jsval aReceiver); */
NS_IMETHODIMP nsJetpack::UnregisterReceiver(const nsAString & aMessageName, jsval aReceiver)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void unregisterReceivers (in AString aMessageName); */
NS_IMETHODIMP nsJetpack::UnregisterReceivers(const nsAString & aMessageName)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void loadImplementation (in AString aURI); */
NS_IMETHODIMP nsJetpack::LoadImplementation(const nsAString & aURI)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void loadUserScript (in AString aURI); */
NS_IMETHODIMP nsJetpack::LoadUserScript(const nsAString & aURI)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* nsIVariant createHandle (); */
NS_IMETHODIMP nsJetpack::CreateHandle(nsIVariant **_retval NS_OUTPARAM)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


#endif /* __gen_nsIJetpack_h__ */
