ldap/xpcom/public/nsILDAPSyncQuery.idl
author Edmund Wong <ewong@pw-wspx.org>
Thu, 03 Apr 2014 12:18:16 +0800
changeset 15968 9d7718c69e6a5720dc541eb6591f9e7dc687379a
parent 10318 84ac3c71109811da751f0ef2d72108075938f094
child 26136 bbc858a8e20db63d82352a7c52a49e89e720d0a1
permissions -rw-r--r--
Bug 938673 - Add context menu to status bar padlock icon. r=Neil

/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

#include "nsISupports.idl"
interface nsILDAPURL;


[scriptable, uuid (0308fb36-1dd2-11b2-b16f-8510e8c5311a)]
interface nsILDAPSyncQuery : nsISupports {
  
  /**
   * getQueryResults
   *
   * Create a new LDAP connection do a synchronous LDAP search and return 
   * the results.
   * @param aServerURL - LDAP URL with parameters to a LDAP search 
   *                     ("ldap://host/base?attributes?one/sub?filter")
   * @param aProtocolVersion - LDAP protocol version to use for connection
   *                           (nsILDAPConnection.idl has symbolic constants)
   * @return results
   */
   wstring getQueryResults (in nsILDAPURL aServerURL,
                            in unsigned long aProtocolVersion);

};