michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #include "nsISupports.idl" michael@0: michael@0: interface nsIInterfaceRequestor; michael@0: michael@0: /** michael@0: * nsICertPickDialogs michael@0: * Provides generic UI for choosing a certificate michael@0: */ michael@0: [scriptable, uuid(51d59b08-1dd2-11b2-ad4a-a51b92f8a184)] michael@0: interface nsICertPickDialogs : nsISupports michael@0: { michael@0: /** michael@0: * PickCertificate michael@0: * General purpose certificate prompter michael@0: */ michael@0: void PickCertificate(in nsIInterfaceRequestor ctx, michael@0: [array, size_is(count)] in wstring certNickList, michael@0: [array, size_is(count)] in wstring certDetailsList, michael@0: in unsigned long count, michael@0: inout long selectedIndex, michael@0: out boolean canceled); michael@0: }; michael@0: michael@0: %{C++ michael@0: #define NS_CERTPICKDIALOGS_CONTRACTID "@mozilla.org/nsCertPickDialogs;1" michael@0: %}