michael@0: /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 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: [scriptable, uuid(0e56f04d-cda4-4a55-ab83-e5e29ddd370e)] michael@0: interface nsIPluginTag : nsISupports michael@0: { michael@0: // enabledState is stored as one of the following as an integer in prefs, michael@0: // so if new states are added, they must not renumber the existing states. michael@0: const unsigned long STATE_DISABLED = 0; michael@0: const unsigned long STATE_CLICKTOPLAY = 1; michael@0: const unsigned long STATE_ENABLED = 2; michael@0: michael@0: readonly attribute AUTF8String description; michael@0: readonly attribute AUTF8String filename; michael@0: readonly attribute AUTF8String fullpath; michael@0: readonly attribute AUTF8String version; michael@0: readonly attribute AUTF8String name; michael@0: michael@0: /** michael@0: * true only if this plugin is "hardblocked" and cannot be enabled. michael@0: */ michael@0: readonly attribute boolean blocklisted; michael@0: michael@0: readonly attribute boolean disabled; michael@0: readonly attribute boolean clicktoplay; michael@0: attribute unsigned long enabledState; michael@0: michael@0: readonly attribute PRTime lastModifiedTime; michael@0: michael@0: void getMimeTypes([optional] out unsigned long aCount, michael@0: [retval, array, size_is(aCount)] out wstring aResults); michael@0: void getMimeDescriptions([optional] out unsigned long aCount, michael@0: [retval, array, size_is(aCount)] michael@0: out wstring aResults); michael@0: void getExtensions([optional] out unsigned long aCount, michael@0: [retval, array, size_is(aCount)] michael@0: out wstring aResults); michael@0: };