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

#ifndef __gen_nsIPasswordManager_h__
#define __gen_nsIPasswordManager_h__


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

#ifndef __gen_nsIEnumerator_h__
#include "nsIEnumerator.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:    nsIPasswordManager */
#define NS_IPASSWORDMANAGER_IID_STR "173562f0-2173-11d5-a54c-0010a401eb10"

#define NS_IPASSWORDMANAGER_IID \
  {0x173562f0, 0x2173, 0x11d5, \
    { 0xa5, 0x4c, 0x00, 0x10, 0xa4, 0x01, 0xeb, 0x10 }}

class NS_NO_VTABLE nsIPasswordManager : public nsISupports {
 public: 

  NS_DEFINE_STATIC_IID_ACCESSOR(NS_IPASSWORDMANAGER_IID)

  /* void addUser (in string host, in wstring user, in wstring pwd); */
  NS_IMETHOD AddUser(const char *host, const PRUnichar *user, const PRUnichar *pwd) = 0;

  /* void removeUser (in string host, in wstring user); */
  NS_IMETHOD RemoveUser(const char *host, const PRUnichar *user) = 0;

  /* void removeReject (in string host); */
  NS_IMETHOD RemoveReject(const char *host) = 0;

  /* readonly attribute nsISimpleEnumerator enumerator; */
  NS_IMETHOD GetEnumerator(nsISimpleEnumerator * *aEnumerator) = 0;

  /* readonly attribute nsISimpleEnumerator rejectEnumerator; */
  NS_IMETHOD GetRejectEnumerator(nsISimpleEnumerator * *aRejectEnumerator) = 0;

};

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIPASSWORDMANAGER \
  NS_IMETHOD AddUser(const char *host, const PRUnichar *user, const PRUnichar *pwd); \
  NS_IMETHOD RemoveUser(const char *host, const PRUnichar *user); \
  NS_IMETHOD RemoveReject(const char *host); \
  NS_IMETHOD GetEnumerator(nsISimpleEnumerator * *aEnumerator); \
  NS_IMETHOD GetRejectEnumerator(nsISimpleEnumerator * *aRejectEnumerator); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIPASSWORDMANAGER(_to) \
  NS_IMETHOD AddUser(const char *host, const PRUnichar *user, const PRUnichar *pwd) { return _to ## AddUser(host, user, pwd); } \
  NS_IMETHOD RemoveUser(const char *host, const PRUnichar *user) { return _to ## RemoveUser(host, user); } \
  NS_IMETHOD RemoveReject(const char *host) { return _to ## RemoveReject(host); } \
  NS_IMETHOD GetEnumerator(nsISimpleEnumerator * *aEnumerator) { return _to ## GetEnumerator(aEnumerator); } \
  NS_IMETHOD GetRejectEnumerator(nsISimpleEnumerator * *aRejectEnumerator) { return _to ## GetRejectEnumerator(aRejectEnumerator); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIPASSWORDMANAGER(_to) \
  NS_IMETHOD AddUser(const char *host, const PRUnichar *user, const PRUnichar *pwd) { return !_to ## ? NS_ERROR_NULL_POINTER : _to ##-> AddUser(host, user, pwd); } \
  NS_IMETHOD RemoveUser(const char *host, const PRUnichar *user) { return !_to ## ? NS_ERROR_NULL_POINTER : _to ##-> RemoveUser(host, user); } \
  NS_IMETHOD RemoveReject(const char *host) { return !_to ## ? NS_ERROR_NULL_POINTER : _to ##-> RemoveReject(host); } \
  NS_IMETHOD GetEnumerator(nsISimpleEnumerator * *aEnumerator) { return !_to ## ? NS_ERROR_NULL_POINTER : _to ##->GetEnumerator(aEnumerator); } \
  NS_IMETHOD GetRejectEnumerator(nsISimpleEnumerator * *aRejectEnumerator) { return !_to ## ? NS_ERROR_NULL_POINTER : _to ##->GetRejectEnumerator(aRejectEnumerator); } 

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

/* Header file */
class nsPasswordManager : public nsIPasswordManager
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIPASSWORDMANAGER

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

/* Implementation file */
NS_IMPL_ISUPPORTS1(nsPasswordManager, nsIPasswordManager)

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

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

/* void addUser (in string host, in wstring user, in wstring pwd); */
NS_IMETHODIMP nsPasswordManager::AddUser(const char *host, const PRUnichar *user, const PRUnichar *pwd)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void removeUser (in string host, in wstring user); */
NS_IMETHODIMP nsPasswordManager::RemoveUser(const char *host, const PRUnichar *user)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void removeReject (in string host); */
NS_IMETHODIMP nsPasswordManager::RemoveReject(const char *host)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute nsISimpleEnumerator enumerator; */
NS_IMETHODIMP nsPasswordManager::GetEnumerator(nsISimpleEnumerator * *aEnumerator)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute nsISimpleEnumerator rejectEnumerator; */
NS_IMETHODIMP nsPasswordManager::GetRejectEnumerator(nsISimpleEnumerator * *aRejectEnumerator)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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

// {AAAB6710-0F2C-11d5-A53B-0010A401EB10}
#define NS_PASSWORDMANAGER_CID \
{ 0x173562f0, 0x2173, 0x11d5, { 0xa5, 0x4c, 0x0, 0x10, 0xa4, 0x1, 0xeb, 0x10 } }
#define NS_PASSWORDMANAGER_CONTRACTID "@mozilla.org/passwordmanager;1"
#define NS_PASSWORDMANAGER_CLASSNAME "Password Manager"

#endif /* __gen_nsIPasswordManager_h__ */
