Wed, 31 Dec 2014 07:16:47 +0100
Revert simplistic fix pending revisit of Mozilla integration attempt.
michael@0 | 1 | /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- |
michael@0 | 2 | * |
michael@0 | 3 | * This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 4 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 5 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
michael@0 | 6 | |
michael@0 | 7 | #include "nsISupports.idl" |
michael@0 | 8 | |
michael@0 | 9 | interface nsIPK11Token; |
michael@0 | 10 | |
michael@0 | 11 | [scriptable, uuid(c2d4f296-ee60-11d4-998b-00b0d02354a0)] |
michael@0 | 12 | interface nsIPKCS11Slot : nsISupports { |
michael@0 | 13 | |
michael@0 | 14 | readonly attribute wstring name; |
michael@0 | 15 | readonly attribute wstring desc; |
michael@0 | 16 | readonly attribute wstring manID; |
michael@0 | 17 | readonly attribute wstring HWVersion; |
michael@0 | 18 | readonly attribute wstring FWVersion; |
michael@0 | 19 | |
michael@0 | 20 | const unsigned long SLOT_DISABLED = 0; |
michael@0 | 21 | const unsigned long SLOT_NOT_PRESENT = 1; |
michael@0 | 22 | const unsigned long SLOT_UNINITIALIZED = 2; |
michael@0 | 23 | const unsigned long SLOT_NOT_LOGGED_IN = 3; |
michael@0 | 24 | const unsigned long SLOT_LOGGED_IN = 4; |
michael@0 | 25 | const unsigned long SLOT_READY = 5; |
michael@0 | 26 | readonly attribute unsigned long status; |
michael@0 | 27 | |
michael@0 | 28 | /* This is really a workaround for now. All of the "slot" functions |
michael@0 | 29 | * (isTokenPresent(), etc.) are in nsIPK11Token. For now, return the |
michael@0 | 30 | * token and handle those things there. |
michael@0 | 31 | */ |
michael@0 | 32 | nsIPK11Token getToken(); |
michael@0 | 33 | |
michael@0 | 34 | /* more fun with workarounds - we're referring to everything by token name */ |
michael@0 | 35 | readonly attribute wstring tokenName; |
michael@0 | 36 | |
michael@0 | 37 | }; |
michael@0 | 38 |