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

#ifndef __gen_nsILDAPMessage_h__
#define __gen_nsILDAPMessage_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 nsILDAPBERValue; /* forward declaration */

class nsILDAPOperation; /* forward declaration */

#define NS_LDAPMESSAGE_CONTRACTID "@mozilla.org/network/ldap-message;1"

/* starting interface:    nsILDAPMessage */
#define NS_ILDAPMESSAGE_IID_STR "973ff50f-2002-4f0c-b57d-2242156139a2"

#define NS_ILDAPMESSAGE_IID \
  {0x973ff50f, 0x2002, 0x4f0c, \
    { 0xb5, 0x7d, 0x22, 0x42, 0x15, 0x61, 0x39, 0xa2 }}

class NS_NO_VTABLE NS_SCRIPTABLE nsILDAPMessage : public nsISupports {
 public: 

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_ILDAPMESSAGE_IID)

  /* readonly attribute AUTF8String dn; */
  NS_SCRIPTABLE NS_IMETHOD GetDn(nsACString & aDn) = 0;

  /* void getAttributes (out unsigned long count, [array, size_is (count), retval] out string aAttributes); */
  NS_SCRIPTABLE NS_IMETHOD GetAttributes(PRUint32 *count NS_OUTPARAM, char * **aAttributes NS_OUTPARAM) = 0;

  /* void getValues (in string attr, out unsigned long count, [array, size_is (count), retval] out wstring values); */
  NS_SCRIPTABLE NS_IMETHOD GetValues(const char * attr, PRUint32 *count NS_OUTPARAM, PRUnichar * **values NS_OUTPARAM) = 0;

  /* readonly attribute nsILDAPOperation operation; */
  NS_SCRIPTABLE NS_IMETHOD GetOperation(nsILDAPOperation * *aOperation) = 0;

  /* readonly attribute long errorCode; */
  NS_SCRIPTABLE NS_IMETHOD GetErrorCode(PRInt32 *aErrorCode) = 0;

  /* readonly attribute long type; */
  NS_SCRIPTABLE NS_IMETHOD GetType(PRInt32 *aType) = 0;

  enum { RES_BIND = 97 };

  enum { RES_SEARCH_ENTRY = 100 };

  enum { RES_SEARCH_REFERENCE = 115 };

  enum { RES_SEARCH_RESULT = 101 };

  enum { RES_MODIFY = 103 };

  enum { RES_ADD = 105 };

  enum { RES_DELETE = 107 };

  enum { RES_MODDN = 109 };

  enum { RES_COMPARE = 111 };

  enum { RES_EXTENDED = 120 };

  /* wstring toUnicode (); */
  NS_SCRIPTABLE NS_IMETHOD ToUnicode(PRUnichar * *_retval NS_OUTPARAM) = 0;

  /* readonly attribute AUTF8String errorMessage; */
  NS_SCRIPTABLE NS_IMETHOD GetErrorMessage(nsACString & aErrorMessage) = 0;

  /* readonly attribute AUTF8String matchedDn; */
  NS_SCRIPTABLE NS_IMETHOD GetMatchedDn(nsACString & aMatchedDn) = 0;

  /* void getBinaryValues (in string attr, out unsigned long count, [array, size_is (count), retval] out nsILDAPBERValue values); */
  NS_SCRIPTABLE NS_IMETHOD GetBinaryValues(const char * attr, PRUint32 *count NS_OUTPARAM, nsILDAPBERValue * **values NS_OUTPARAM) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsILDAPMessage, NS_ILDAPMESSAGE_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSILDAPMESSAGE \
  NS_SCRIPTABLE NS_IMETHOD GetDn(nsACString & aDn); \
  NS_SCRIPTABLE NS_IMETHOD GetAttributes(PRUint32 *count NS_OUTPARAM, char * **aAttributes NS_OUTPARAM); \
  NS_SCRIPTABLE NS_IMETHOD GetValues(const char * attr, PRUint32 *count NS_OUTPARAM, PRUnichar * **values NS_OUTPARAM); \
  NS_SCRIPTABLE NS_IMETHOD GetOperation(nsILDAPOperation * *aOperation); \
  NS_SCRIPTABLE NS_IMETHOD GetErrorCode(PRInt32 *aErrorCode); \
  NS_SCRIPTABLE NS_IMETHOD GetType(PRInt32 *aType); \
  NS_SCRIPTABLE NS_IMETHOD ToUnicode(PRUnichar * *_retval NS_OUTPARAM); \
  NS_SCRIPTABLE NS_IMETHOD GetErrorMessage(nsACString & aErrorMessage); \
  NS_SCRIPTABLE NS_IMETHOD GetMatchedDn(nsACString & aMatchedDn); \
  NS_SCRIPTABLE NS_IMETHOD GetBinaryValues(const char * attr, PRUint32 *count NS_OUTPARAM, nsILDAPBERValue * **values NS_OUTPARAM); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSILDAPMESSAGE(_to) \
  NS_SCRIPTABLE NS_IMETHOD GetDn(nsACString & aDn) { return _to GetDn(aDn); } \
  NS_SCRIPTABLE NS_IMETHOD GetAttributes(PRUint32 *count NS_OUTPARAM, char * **aAttributes NS_OUTPARAM) { return _to GetAttributes(count, aAttributes); } \
  NS_SCRIPTABLE NS_IMETHOD GetValues(const char * attr, PRUint32 *count NS_OUTPARAM, PRUnichar * **values NS_OUTPARAM) { return _to GetValues(attr, count, values); } \
  NS_SCRIPTABLE NS_IMETHOD GetOperation(nsILDAPOperation * *aOperation) { return _to GetOperation(aOperation); } \
  NS_SCRIPTABLE NS_IMETHOD GetErrorCode(PRInt32 *aErrorCode) { return _to GetErrorCode(aErrorCode); } \
  NS_SCRIPTABLE NS_IMETHOD GetType(PRInt32 *aType) { return _to GetType(aType); } \
  NS_SCRIPTABLE NS_IMETHOD ToUnicode(PRUnichar * *_retval NS_OUTPARAM) { return _to ToUnicode(_retval); } \
  NS_SCRIPTABLE NS_IMETHOD GetErrorMessage(nsACString & aErrorMessage) { return _to GetErrorMessage(aErrorMessage); } \
  NS_SCRIPTABLE NS_IMETHOD GetMatchedDn(nsACString & aMatchedDn) { return _to GetMatchedDn(aMatchedDn); } \
  NS_SCRIPTABLE NS_IMETHOD GetBinaryValues(const char * attr, PRUint32 *count NS_OUTPARAM, nsILDAPBERValue * **values NS_OUTPARAM) { return _to GetBinaryValues(attr, count, values); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSILDAPMESSAGE(_to) \
  NS_SCRIPTABLE NS_IMETHOD GetDn(nsACString & aDn) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDn(aDn); } \
  NS_SCRIPTABLE NS_IMETHOD GetAttributes(PRUint32 *count NS_OUTPARAM, char * **aAttributes NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAttributes(count, aAttributes); } \
  NS_SCRIPTABLE NS_IMETHOD GetValues(const char * attr, PRUint32 *count NS_OUTPARAM, PRUnichar * **values NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetValues(attr, count, values); } \
  NS_SCRIPTABLE NS_IMETHOD GetOperation(nsILDAPOperation * *aOperation) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOperation(aOperation); } \
  NS_SCRIPTABLE NS_IMETHOD GetErrorCode(PRInt32 *aErrorCode) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetErrorCode(aErrorCode); } \
  NS_SCRIPTABLE NS_IMETHOD GetType(PRInt32 *aType) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetType(aType); } \
  NS_SCRIPTABLE NS_IMETHOD ToUnicode(PRUnichar * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->ToUnicode(_retval); } \
  NS_SCRIPTABLE NS_IMETHOD GetErrorMessage(nsACString & aErrorMessage) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetErrorMessage(aErrorMessage); } \
  NS_SCRIPTABLE NS_IMETHOD GetMatchedDn(nsACString & aMatchedDn) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMatchedDn(aMatchedDn); } \
  NS_SCRIPTABLE NS_IMETHOD GetBinaryValues(const char * attr, PRUint32 *count NS_OUTPARAM, nsILDAPBERValue * **values NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBinaryValues(attr, count, values); } 

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

/* Header file */
class nsLDAPMessage : public nsILDAPMessage
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSILDAPMESSAGE

  nsLDAPMessage();

private:
  ~nsLDAPMessage();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS1(nsLDAPMessage, nsILDAPMessage)

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

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

/* readonly attribute AUTF8String dn; */
NS_IMETHODIMP nsLDAPMessage::GetDn(nsACString & aDn)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void getAttributes (out unsigned long count, [array, size_is (count), retval] out string aAttributes); */
NS_IMETHODIMP nsLDAPMessage::GetAttributes(PRUint32 *count NS_OUTPARAM, char * **aAttributes NS_OUTPARAM)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void getValues (in string attr, out unsigned long count, [array, size_is (count), retval] out wstring values); */
NS_IMETHODIMP nsLDAPMessage::GetValues(const char * attr, PRUint32 *count NS_OUTPARAM, PRUnichar * **values NS_OUTPARAM)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute nsILDAPOperation operation; */
NS_IMETHODIMP nsLDAPMessage::GetOperation(nsILDAPOperation * *aOperation)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute long errorCode; */
NS_IMETHODIMP nsLDAPMessage::GetErrorCode(PRInt32 *aErrorCode)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute long type; */
NS_IMETHODIMP nsLDAPMessage::GetType(PRInt32 *aType)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* wstring toUnicode (); */
NS_IMETHODIMP nsLDAPMessage::ToUnicode(PRUnichar * *_retval NS_OUTPARAM)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute AUTF8String errorMessage; */
NS_IMETHODIMP nsLDAPMessage::GetErrorMessage(nsACString & aErrorMessage)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute AUTF8String matchedDn; */
NS_IMETHODIMP nsLDAPMessage::GetMatchedDn(nsACString & aMatchedDn)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void getBinaryValues (in string attr, out unsigned long count, [array, size_is (count), retval] out nsILDAPBERValue values); */
NS_IMETHODIMP nsLDAPMessage::GetBinaryValues(const char * attr, PRUint32 *count NS_OUTPARAM, nsILDAPBERValue * **values NS_OUTPARAM)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


#endif /* __gen_nsILDAPMessage_h__ */
