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

#ifndef __gen_nsIFolderListener_h__
#define __gen_nsIFolderListener_h__

#include "nsISupports.h"
#include "nsIAtom.h"

class nsIFolder; /* forward declaration */


/* starting interface:    nsIFolderListener */
#define NS_IFOLDERLISTENER_IID_STR "1c5ef9f0-d1c0-11d2-94ca-006097222b83"

#define NS_IFOLDERLISTENER_IID \
  {0x1c5ef9f0, 0xd1c0, 0x11d2, \
    { 0x94, 0xca, 0x00, 0x60, 0x97, 0x22, 0x2b, 0x83 }}

class NS_NO_VTABLE nsIFolderListener : public nsISupports {
 public: 

  NS_DEFINE_STATIC_IID_ACCESSOR(NS_IFOLDERLISTENER_IID)

  /* void OnItemAdded (in nsISupports parentItem, in nsISupports item, in string viewString); */
  NS_IMETHOD OnItemAdded(nsISupports *parentItem, nsISupports *item, const char *viewString) = 0;

  /* void OnItemRemoved (in nsISupports parentItem, in nsISupports item, in string viewString); */
  NS_IMETHOD OnItemRemoved(nsISupports *parentItem, nsISupports *item, const char *viewString) = 0;

  /* void OnItemPropertyChanged (in nsISupports item, in nsIAtom property, in string oldValue, in string newValue); */
  NS_IMETHOD OnItemPropertyChanged(nsISupports *item, nsIAtom *property, const char *oldValue, const char *newValue) = 0;

  /* void OnItemIntPropertyChanged (in nsISupports item, in nsIAtom property, in long oldValue, in long newValue); */
  NS_IMETHOD OnItemIntPropertyChanged(nsISupports *item, nsIAtom *property, PRInt32 oldValue, PRInt32 newValue) = 0;

  /* void OnItemBoolPropertyChanged (in nsISupports item, in nsIAtom property, in boolean oldValue, in boolean newValue); */
  NS_IMETHOD OnItemBoolPropertyChanged(nsISupports *item, nsIAtom *property, PRBool oldValue, PRBool newValue) = 0;

  /* void OnItemUnicharPropertyChanged (in nsISupports item, in nsIAtom property, in wstring oldValue, in wstring newValue); */
  NS_IMETHOD OnItemUnicharPropertyChanged(nsISupports *item, nsIAtom *property, const PRUnichar *oldValue, const PRUnichar *newValue) = 0;

  /* void OnItemPropertyFlagChanged (in nsISupports item, in nsIAtom property, in unsigned long oldFlag, in unsigned long newFlag); */
  NS_IMETHOD OnItemPropertyFlagChanged(nsISupports *item, nsIAtom *property, PRUint32 oldFlag, PRUint32 newFlag) = 0;

  /* void OnItemEvent (in nsIFolder item, in nsIAtom event); */
  NS_IMETHOD OnItemEvent(nsIFolder *item, nsIAtom *event) = 0;

};

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIFOLDERLISTENER \
  NS_IMETHOD OnItemAdded(nsISupports *parentItem, nsISupports *item, const char *viewString); \
  NS_IMETHOD OnItemRemoved(nsISupports *parentItem, nsISupports *item, const char *viewString); \
  NS_IMETHOD OnItemPropertyChanged(nsISupports *item, nsIAtom *property, const char *oldValue, const char *newValue); \
  NS_IMETHOD OnItemIntPropertyChanged(nsISupports *item, nsIAtom *property, PRInt32 oldValue, PRInt32 newValue); \
  NS_IMETHOD OnItemBoolPropertyChanged(nsISupports *item, nsIAtom *property, PRBool oldValue, PRBool newValue); \
  NS_IMETHOD OnItemUnicharPropertyChanged(nsISupports *item, nsIAtom *property, const PRUnichar *oldValue, const PRUnichar *newValue); \
  NS_IMETHOD OnItemPropertyFlagChanged(nsISupports *item, nsIAtom *property, PRUint32 oldFlag, PRUint32 newFlag); \
  NS_IMETHOD OnItemEvent(nsIFolder *item, nsIAtom *event); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIFOLDERLISTENER(_to) \
  NS_IMETHOD OnItemAdded(nsISupports *parentItem, nsISupports *item, const char *viewString) { return _to ## OnItemAdded(parentItem, item, viewString); } \
  NS_IMETHOD OnItemRemoved(nsISupports *parentItem, nsISupports *item, const char *viewString) { return _to ## OnItemRemoved(parentItem, item, viewString); } \
  NS_IMETHOD OnItemPropertyChanged(nsISupports *item, nsIAtom *property, const char *oldValue, const char *newValue) { return _to ## OnItemPropertyChanged(item, property, oldValue, newValue); } \
  NS_IMETHOD OnItemIntPropertyChanged(nsISupports *item, nsIAtom *property, PRInt32 oldValue, PRInt32 newValue) { return _to ## OnItemIntPropertyChanged(item, property, oldValue, newValue); } \
  NS_IMETHOD OnItemBoolPropertyChanged(nsISupports *item, nsIAtom *property, PRBool oldValue, PRBool newValue) { return _to ## OnItemBoolPropertyChanged(item, property, oldValue, newValue); } \
  NS_IMETHOD OnItemUnicharPropertyChanged(nsISupports *item, nsIAtom *property, const PRUnichar *oldValue, const PRUnichar *newValue) { return _to ## OnItemUnicharPropertyChanged(item, property, oldValue, newValue); } \
  NS_IMETHOD OnItemPropertyFlagChanged(nsISupports *item, nsIAtom *property, PRUint32 oldFlag, PRUint32 newFlag) { return _to ## OnItemPropertyFlagChanged(item, property, oldFlag, newFlag); } \
  NS_IMETHOD OnItemEvent(nsIFolder *item, nsIAtom *event) { return _to ## OnItemEvent(item, event); } 

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

/* Header file */
class nsFolderListener : public nsIFolderListener
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIFOLDERLISTENER

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

/* Implementation file */
NS_IMPL_ISUPPORTS1(nsFolderListener, nsIFolderListener)

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

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

/* void OnItemAdded (in nsISupports parentItem, in nsISupports item, in string viewString); */
NS_IMETHODIMP nsFolderListener::OnItemAdded(nsISupports *parentItem, nsISupports *item, const char *viewString)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void OnItemRemoved (in nsISupports parentItem, in nsISupports item, in string viewString); */
NS_IMETHODIMP nsFolderListener::OnItemRemoved(nsISupports *parentItem, nsISupports *item, const char *viewString)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void OnItemPropertyChanged (in nsISupports item, in nsIAtom property, in string oldValue, in string newValue); */
NS_IMETHODIMP nsFolderListener::OnItemPropertyChanged(nsISupports *item, nsIAtom *property, const char *oldValue, const char *newValue)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void OnItemIntPropertyChanged (in nsISupports item, in nsIAtom property, in long oldValue, in long newValue); */
NS_IMETHODIMP nsFolderListener::OnItemIntPropertyChanged(nsISupports *item, nsIAtom *property, PRInt32 oldValue, PRInt32 newValue)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void OnItemBoolPropertyChanged (in nsISupports item, in nsIAtom property, in boolean oldValue, in boolean newValue); */
NS_IMETHODIMP nsFolderListener::OnItemBoolPropertyChanged(nsISupports *item, nsIAtom *property, PRBool oldValue, PRBool newValue)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void OnItemUnicharPropertyChanged (in nsISupports item, in nsIAtom property, in wstring oldValue, in wstring newValue); */
NS_IMETHODIMP nsFolderListener::OnItemUnicharPropertyChanged(nsISupports *item, nsIAtom *property, const PRUnichar *oldValue, const PRUnichar *newValue)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void OnItemPropertyFlagChanged (in nsISupports item, in nsIAtom property, in unsigned long oldFlag, in unsigned long newFlag); */
NS_IMETHODIMP nsFolderListener::OnItemPropertyFlagChanged(nsISupports *item, nsIAtom *property, PRUint32 oldFlag, PRUint32 newFlag)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void OnItemEvent (in nsIFolder item, in nsIAtom event); */
NS_IMETHODIMP nsFolderListener::OnItemEvent(nsIFolder *item, nsIAtom *event)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


#endif /* __gen_nsIFolderListener_h__ */
