nsITokenDialogs.idl 1.0 KB

12345678910111213141516171819202122232425262728293031
  1. /* This Source Code Form is subject to the terms of the Mozilla Public
  2. * License, v. 2.0. If a copy of the MPL was not distributed with this
  3. * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
  4. #include "nsISupports.idl"
  5. interface nsIInterfaceRequestor;
  6. interface nsIProtectedAuthThread;
  7. [scriptable, uuid(a1cbc159-468c-495d-8068-61dd538cbcca)]
  8. interface nsITokenDialogs : nsISupports
  9. {
  10. void ChooseToken(in nsIInterfaceRequestor ctx,
  11. [array, size_is(count)] in wstring tokenNameList,
  12. in unsigned long count,
  13. out wstring tokenName,
  14. out boolean canceled);
  15. /**
  16. * displayProtectedAuth - displays notification dialog to the user
  17. * that he is expected to authenticate to the token using its
  18. * "protected authentication path" feature
  19. */
  20. void displayProtectedAuth(in nsIInterfaceRequestor ctx,
  21. in nsIProtectedAuthThread runnable);
  22. };
  23. %{C++
  24. #define NS_TOKENDIALOGS_CONTRACTID "@mozilla.org/nsTokenDialogs;1"
  25. %}