DXR is a code search and navigation tool aimed at making sense of large projects. It supports full-text and regex searches as well as structural queries.

Untracked file

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119
/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM /home/jenkins/src/releases/comm-beta/ldap/xpcom/public/nsILDAPService.idl
 */

#ifndef __gen_nsILDAPService_h__
#define __gen_nsILDAPService_h__


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

#include "js/GCAnnotations.h"

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

class nsILDAPConnection; /* forward declaration */

class nsILDAPMessageListener; /* forward declaration */


/* starting interface:    nsILDAPService */
#define NS_ILDAPSERVICE_IID_STR "69de6fbc-2e8c-4482-bf14-358d68b785d1"

#define NS_ILDAPSERVICE_IID \
  {0x69de6fbc, 0x2e8c, 0x4482, \
    { 0xbf, 0x14, 0x35, 0x8d, 0x68, 0xb7, 0x85, 0xd1 }}

class NS_NO_VTABLE nsILDAPService : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_ILDAPSERVICE_IID)

  /* void addServer (in nsILDAPServer aServer); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD AddServer(nsILDAPServer *aServer) = 0;

  /* void deleteServer (in wstring aKey); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD DeleteServer(const char16_t * aKey) = 0;

  /* nsILDAPServer getServer (in wstring aKey); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetServer(const char16_t * aKey, nsILDAPServer **_retval) = 0;

  /* void requestConnection (in wstring aKey, in nsILDAPMessageListener aListener); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD RequestConnection(const char16_t * aKey, nsILDAPMessageListener *aListener) = 0;

  /* nsILDAPConnection getConnection (in wstring aKey); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetConnection(const char16_t * aKey, nsILDAPConnection **_retval) = 0;

  /* void releaseConnection (in wstring aKey); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD ReleaseConnection(const char16_t * aKey) = 0;

  /* void reconnectConnection (in wstring aKey, in nsILDAPMessageListener aListener); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD ReconnectConnection(const char16_t * aKey, nsILDAPMessageListener *aListener) = 0;

  /* AUTF8String createFilter (in unsigned long aMaxSize, in AUTF8String aPattern, in AUTF8String aPrefix, in AUTF8String aSuffix, in AUTF8String aAttr, in AUTF8String aValue); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD CreateFilter(uint32_t aMaxSize, const nsACString& aPattern, const nsACString& aPrefix, const nsACString& aSuffix, const nsACString& aAttr, const nsACString& aValue, nsACString& _retval) = 0;

  /* void parseDn (in string dn, out AUTF8String rdn, out AUTF8String baseDn, out unsigned long rdnCount, [array, size_is (rdnCount), retval] out string rdnAttrs); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD ParseDn(const char * dn, nsACString& rdn, nsACString& baseDn, uint32_t *rdnCount, char * **rdnAttrs) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsILDAPService, NS_ILDAPSERVICE_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSILDAPSERVICE \
  NS_IMETHOD AddServer(nsILDAPServer *aServer) override; \
  NS_IMETHOD DeleteServer(const char16_t * aKey) override; \
  NS_IMETHOD GetServer(const char16_t * aKey, nsILDAPServer **_retval) override; \
  NS_IMETHOD RequestConnection(const char16_t * aKey, nsILDAPMessageListener *aListener) override; \
  NS_IMETHOD GetConnection(const char16_t * aKey, nsILDAPConnection **_retval) override; \
  NS_IMETHOD ReleaseConnection(const char16_t * aKey) override; \
  NS_IMETHOD ReconnectConnection(const char16_t * aKey, nsILDAPMessageListener *aListener) override; \
  NS_IMETHOD CreateFilter(uint32_t aMaxSize, const nsACString& aPattern, const nsACString& aPrefix, const nsACString& aSuffix, const nsACString& aAttr, const nsACString& aValue, nsACString& _retval) override; \
  NS_IMETHOD ParseDn(const char * dn, nsACString& rdn, nsACString& baseDn, uint32_t *rdnCount, char * **rdnAttrs) override; 

/* Use this macro when declaring the members of this interface when the
   class doesn't implement the interface. This is useful for forwarding. */
#define NS_DECL_NON_VIRTUAL_NSILDAPSERVICE \
  nsresult AddServer(nsILDAPServer *aServer); \
  nsresult DeleteServer(const char16_t * aKey); \
  nsresult GetServer(const char16_t * aKey, nsILDAPServer **_retval); \
  nsresult RequestConnection(const char16_t * aKey, nsILDAPMessageListener *aListener); \
  nsresult GetConnection(const char16_t * aKey, nsILDAPConnection **_retval); \
  nsresult ReleaseConnection(const char16_t * aKey); \
  nsresult ReconnectConnection(const char16_t * aKey, nsILDAPMessageListener *aListener); \
  nsresult CreateFilter(uint32_t aMaxSize, const nsACString& aPattern, const nsACString& aPrefix, const nsACString& aSuffix, const nsACString& aAttr, const nsACString& aValue, nsACString& _retval); \
  nsresult ParseDn(const char * dn, nsACString& rdn, nsACString& baseDn, uint32_t *rdnCount, char * **rdnAttrs); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSILDAPSERVICE(_to) \
  NS_IMETHOD AddServer(nsILDAPServer *aServer) override { return _to AddServer(aServer); } \
  NS_IMETHOD DeleteServer(const char16_t * aKey) override { return _to DeleteServer(aKey); } \
  NS_IMETHOD GetServer(const char16_t * aKey, nsILDAPServer **_retval) override { return _to GetServer(aKey, _retval); } \
  NS_IMETHOD RequestConnection(const char16_t * aKey, nsILDAPMessageListener *aListener) override { return _to RequestConnection(aKey, aListener); } \
  NS_IMETHOD GetConnection(const char16_t * aKey, nsILDAPConnection **_retval) override { return _to GetConnection(aKey, _retval); } \
  NS_IMETHOD ReleaseConnection(const char16_t * aKey) override { return _to ReleaseConnection(aKey); } \
  NS_IMETHOD ReconnectConnection(const char16_t * aKey, nsILDAPMessageListener *aListener) override { return _to ReconnectConnection(aKey, aListener); } \
  NS_IMETHOD CreateFilter(uint32_t aMaxSize, const nsACString& aPattern, const nsACString& aPrefix, const nsACString& aSuffix, const nsACString& aAttr, const nsACString& aValue, nsACString& _retval) override { return _to CreateFilter(aMaxSize, aPattern, aPrefix, aSuffix, aAttr, aValue, _retval); } \
  NS_IMETHOD ParseDn(const char * dn, nsACString& rdn, nsACString& baseDn, uint32_t *rdnCount, char * **rdnAttrs) override { return _to ParseDn(dn, rdn, baseDn, rdnCount, rdnAttrs); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSILDAPSERVICE(_to) \
  NS_IMETHOD AddServer(nsILDAPServer *aServer) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddServer(aServer); } \
  NS_IMETHOD DeleteServer(const char16_t * aKey) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DeleteServer(aKey); } \
  NS_IMETHOD GetServer(const char16_t * aKey, nsILDAPServer **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetServer(aKey, _retval); } \
  NS_IMETHOD RequestConnection(const char16_t * aKey, nsILDAPMessageListener *aListener) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RequestConnection(aKey, aListener); } \
  NS_IMETHOD GetConnection(const char16_t * aKey, nsILDAPConnection **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetConnection(aKey, _retval); } \
  NS_IMETHOD ReleaseConnection(const char16_t * aKey) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ReleaseConnection(aKey); } \
  NS_IMETHOD ReconnectConnection(const char16_t * aKey, nsILDAPMessageListener *aListener) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ReconnectConnection(aKey, aListener); } \
  NS_IMETHOD CreateFilter(uint32_t aMaxSize, const nsACString& aPattern, const nsACString& aPrefix, const nsACString& aSuffix, const nsACString& aAttr, const nsACString& aValue, nsACString& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateFilter(aMaxSize, aPattern, aPrefix, aSuffix, aAttr, aValue, _retval); } \
  NS_IMETHOD ParseDn(const char * dn, nsACString& rdn, nsACString& baseDn, uint32_t *rdnCount, char * **rdnAttrs) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ParseDn(dn, rdn, baseDn, rdnCount, rdnAttrs); } 


#endif /* __gen_nsILDAPService_h__ */