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

#ifndef __gen_nsIPrefBranchInternal_h__
#define __gen_nsIPrefBranchInternal_h__


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

#ifndef __gen_nsIObserver_h__
#include "nsIObserver.h"
#endif

/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif

/* starting interface:    nsIPrefBranchInternal */
#define NS_IPREFBRANCHINTERNAL_IID_STR "24ef9578-1dd2-11b2-b439-fcc3d2b4fa20"

#define NS_IPREFBRANCHINTERNAL_IID \
  {0x24ef9578, 0x1dd2, 0x11b2, \
    { 0xb4, 0x39, 0xfc, 0xc3, 0xd2, 0xb4, 0xfa, 0x20 }}

class NS_NO_VTABLE nsIPrefBranchInternal : public nsISupports {
 public: 

  NS_DEFINE_STATIC_IID_ACCESSOR(NS_IPREFBRANCHINTERNAL_IID)

  /* void addObserver (in string aDomain, in nsIObserver aObserver); */
  NS_IMETHOD AddObserver(const char *aDomain, nsIObserver *aObserver) = 0;

  /* void removeObserver (in string aDomain, in nsIObserver aObserver); */
  NS_IMETHOD RemoveObserver(const char *aDomain, nsIObserver *aObserver) = 0;

};

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIPREFBRANCHINTERNAL \
  NS_IMETHOD AddObserver(const char *aDomain, nsIObserver *aObserver); \
  NS_IMETHOD RemoveObserver(const char *aDomain, nsIObserver *aObserver); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIPREFBRANCHINTERNAL(_to) \
  NS_IMETHOD AddObserver(const char *aDomain, nsIObserver *aObserver) { return _to ## AddObserver(aDomain, aObserver); } \
  NS_IMETHOD RemoveObserver(const char *aDomain, nsIObserver *aObserver) { return _to ## RemoveObserver(aDomain, aObserver); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIPREFBRANCHINTERNAL(_to) \
  NS_IMETHOD AddObserver(const char *aDomain, nsIObserver *aObserver) { return !_to ## ? NS_ERROR_NULL_POINTER : _to ##-> AddObserver(aDomain, aObserver); } \
  NS_IMETHOD RemoveObserver(const char *aDomain, nsIObserver *aObserver) { return !_to ## ? NS_ERROR_NULL_POINTER : _to ##-> RemoveObserver(aDomain, aObserver); } 

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

/* Header file */
class nsPrefBranchInternal : public nsIPrefBranchInternal
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIPREFBRANCHINTERNAL

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

/* Implementation file */
NS_IMPL_ISUPPORTS1(nsPrefBranchInternal, nsIPrefBranchInternal)

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

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

/* void addObserver (in string aDomain, in nsIObserver aObserver); */
NS_IMETHODIMP nsPrefBranchInternal::AddObserver(const char *aDomain, nsIObserver *aObserver)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void removeObserver (in string aDomain, in nsIObserver aObserver); */
NS_IMETHODIMP nsPrefBranchInternal::RemoveObserver(const char *aDomain, nsIObserver *aObserver)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


#endif /* __gen_nsIPrefBranchInternal_h__ */
