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: interface nsIProtectedAuthThread; michael@0: michael@0: [scriptable, uuid(a1cbc159-468c-495d-8068-61dd538cbcca)] michael@0: interface nsITokenDialogs : nsISupports michael@0: { michael@0: void ChooseToken(in nsIInterfaceRequestor ctx, michael@0: [array, size_is(count)] in wstring tokenNameList, michael@0: in unsigned long count, michael@0: out wstring tokenName, michael@0: out boolean canceled); michael@0: michael@0: /** michael@0: * displayProtectedAuth - displays notification dialog to the user michael@0: * that he is expected to authenticate to the token using its michael@0: * "protected authentication path" feature michael@0: */ michael@0: void displayProtectedAuth(in nsIInterfaceRequestor ctx, michael@0: in nsIProtectedAuthThread runnable); michael@0: }; michael@0: michael@0: %{C++ michael@0: #define NS_TOKENDIALOGS_CONTRACTID "@mozilla.org/nsTokenDialogs;1" michael@0: %}