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

#ifndef __gen_nsIAddrBookSession_h__
#define __gen_nsIAddrBookSession_h__


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

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

#ifndef __gen_nsIAbListener_h__
#include "nsIAbListener.h"
#endif

#ifndef __gen_nsIAbDirectory_h__
#include "nsIAbDirectory.h"
#endif

#ifndef __gen_nsIAbCard_h__
#include "nsIAbCard.h"
#endif

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


/* starting interface:    nsIAddrBookSession */
#define NS_IADDRBOOKSESSION_IID_STR "c5339441-303f-11d3-9e13-00a0c92b5f0d"

#define NS_IADDRBOOKSESSION_IID \
  {0xc5339441, 0x303f, 0x11d3, \
    { 0x9e, 0x13, 0x00, 0xa0, 0xc9, 0x2b, 0x5f, 0x0d }}

class NS_NO_VTABLE nsIAddrBookSession : public nsISupports {
 public: 

  NS_DEFINE_STATIC_IID_ACCESSOR(NS_IADDRBOOKSESSION_IID)

  /* void addAddressBookListener (in nsIAbListener listener); */
  NS_IMETHOD AddAddressBookListener(nsIAbListener *listener) = 0;

  /* void removeAddressBookListener (in nsIAbListener listener); */
  NS_IMETHOD RemoveAddressBookListener(nsIAbListener *listener) = 0;

  /* void notifyItemPropertyChanged (in nsISupports item, in string property, in wstring oldValue, in wstring newValue); */
  NS_IMETHOD NotifyItemPropertyChanged(nsISupports *item, const char *property, const PRUnichar *oldValue, const PRUnichar *newValue) = 0;

  /* void notifyDirectoryItemAdded (in nsIAbDirectory directory, in nsISupports item); */
  NS_IMETHOD NotifyDirectoryItemAdded(nsIAbDirectory *directory, nsISupports *item) = 0;

  /* void notifyDirectoryItemDeleted (in nsIAbDirectory directory, in nsISupports item); */
  NS_IMETHOD NotifyDirectoryItemDeleted(nsIAbDirectory *directory, nsISupports *item) = 0;

  /* [noscript] readonly attribute nsFileSpec userProfileDirectory; */
  NS_IMETHOD GetUserProfileDirectory(nsFileSpec * *aUserProfileDirectory) = 0;

  /** 
   * this is used to flush the pending notifcations on the document
   * used to be in the msg view navigation service, but that is gone 
   */
  /* void ensureDocumentIsLoaded (in nsIDOMXULDocument xulDocument); */
  NS_IMETHOD EnsureDocumentIsLoaded(nsIDOMXULDocument *xulDocument) = 0;

};

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIADDRBOOKSESSION \
  NS_IMETHOD AddAddressBookListener(nsIAbListener *listener); \
  NS_IMETHOD RemoveAddressBookListener(nsIAbListener *listener); \
  NS_IMETHOD NotifyItemPropertyChanged(nsISupports *item, const char *property, const PRUnichar *oldValue, const PRUnichar *newValue); \
  NS_IMETHOD NotifyDirectoryItemAdded(nsIAbDirectory *directory, nsISupports *item); \
  NS_IMETHOD NotifyDirectoryItemDeleted(nsIAbDirectory *directory, nsISupports *item); \
  NS_IMETHOD GetUserProfileDirectory(nsFileSpec * *aUserProfileDirectory); \
  NS_IMETHOD EnsureDocumentIsLoaded(nsIDOMXULDocument *xulDocument); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIADDRBOOKSESSION(_to) \
  NS_IMETHOD AddAddressBookListener(nsIAbListener *listener) { return _to ## AddAddressBookListener(listener); } \
  NS_IMETHOD RemoveAddressBookListener(nsIAbListener *listener) { return _to ## RemoveAddressBookListener(listener); } \
  NS_IMETHOD NotifyItemPropertyChanged(nsISupports *item, const char *property, const PRUnichar *oldValue, const PRUnichar *newValue) { return _to ## NotifyItemPropertyChanged(item, property, oldValue, newValue); } \
  NS_IMETHOD NotifyDirectoryItemAdded(nsIAbDirectory *directory, nsISupports *item) { return _to ## NotifyDirectoryItemAdded(directory, item); } \
  NS_IMETHOD NotifyDirectoryItemDeleted(nsIAbDirectory *directory, nsISupports *item) { return _to ## NotifyDirectoryItemDeleted(directory, item); } \
  NS_IMETHOD GetUserProfileDirectory(nsFileSpec * *aUserProfileDirectory) { return _to ## GetUserProfileDirectory(aUserProfileDirectory); } \
  NS_IMETHOD EnsureDocumentIsLoaded(nsIDOMXULDocument *xulDocument) { return _to ## EnsureDocumentIsLoaded(xulDocument); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIADDRBOOKSESSION(_to) \
  NS_IMETHOD AddAddressBookListener(nsIAbListener *listener) { return !_to ## ? NS_ERROR_NULL_POINTER : _to ##-> AddAddressBookListener(listener); } \
  NS_IMETHOD RemoveAddressBookListener(nsIAbListener *listener) { return !_to ## ? NS_ERROR_NULL_POINTER : _to ##-> RemoveAddressBookListener(listener); } \
  NS_IMETHOD NotifyItemPropertyChanged(nsISupports *item, const char *property, const PRUnichar *oldValue, const PRUnichar *newValue) { return !_to ## ? NS_ERROR_NULL_POINTER : _to ##-> NotifyItemPropertyChanged(item, property, oldValue, newValue); } \
  NS_IMETHOD NotifyDirectoryItemAdded(nsIAbDirectory *directory, nsISupports *item) { return !_to ## ? NS_ERROR_NULL_POINTER : _to ##-> NotifyDirectoryItemAdded(directory, item); } \
  NS_IMETHOD NotifyDirectoryItemDeleted(nsIAbDirectory *directory, nsISupports *item) { return !_to ## ? NS_ERROR_NULL_POINTER : _to ##-> NotifyDirectoryItemDeleted(directory, item); } \
  NS_IMETHOD GetUserProfileDirectory(nsFileSpec * *aUserProfileDirectory) { return !_to ## ? NS_ERROR_NULL_POINTER : _to ##->GetUserProfileDirectory(aUserProfileDirectory); } \
  NS_IMETHOD EnsureDocumentIsLoaded(nsIDOMXULDocument *xulDocument) { return !_to ## ? NS_ERROR_NULL_POINTER : _to ##-> EnsureDocumentIsLoaded(xulDocument); } 

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

/* Header file */
class nsAddrBookSession : public nsIAddrBookSession
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIADDRBOOKSESSION

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

/* Implementation file */
NS_IMPL_ISUPPORTS1(nsAddrBookSession, nsIAddrBookSession)

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

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

/* void addAddressBookListener (in nsIAbListener listener); */
NS_IMETHODIMP nsAddrBookSession::AddAddressBookListener(nsIAbListener *listener)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void removeAddressBookListener (in nsIAbListener listener); */
NS_IMETHODIMP nsAddrBookSession::RemoveAddressBookListener(nsIAbListener *listener)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void notifyItemPropertyChanged (in nsISupports item, in string property, in wstring oldValue, in wstring newValue); */
NS_IMETHODIMP nsAddrBookSession::NotifyItemPropertyChanged(nsISupports *item, const char *property, const PRUnichar *oldValue, const PRUnichar *newValue)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void notifyDirectoryItemAdded (in nsIAbDirectory directory, in nsISupports item); */
NS_IMETHODIMP nsAddrBookSession::NotifyDirectoryItemAdded(nsIAbDirectory *directory, nsISupports *item)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void notifyDirectoryItemDeleted (in nsIAbDirectory directory, in nsISupports item); */
NS_IMETHODIMP nsAddrBookSession::NotifyDirectoryItemDeleted(nsIAbDirectory *directory, nsISupports *item)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* [noscript] readonly attribute nsFileSpec userProfileDirectory; */
NS_IMETHODIMP nsAddrBookSession::GetUserProfileDirectory(nsFileSpec * *aUserProfileDirectory)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void ensureDocumentIsLoaded (in nsIDOMXULDocument xulDocument); */
NS_IMETHODIMP nsAddrBookSession::EnsureDocumentIsLoaded(nsIDOMXULDocument *xulDocument)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


#endif /* __gen_nsIAddrBookSession_h__ */
