michael@0: /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- michael@0: * 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: /** michael@0: * Enumeration of Programming Languages michael@0: */ michael@0: michael@0: [scriptable, uuid(ea604e90-40ba-11d5-90bb-0010a4e73d9a)] michael@0: interface nsIProgrammingLanguage : nsISupports michael@0: { michael@0: /** michael@0: * Identifiers for programming languages. michael@0: */ michael@0: const uint32_t UNKNOWN = 0; michael@0: const uint32_t CPLUSPLUS = 1; michael@0: const uint32_t JAVASCRIPT = 2; michael@0: const uint32_t PYTHON = 3; michael@0: const uint32_t PERL = 4; michael@0: const uint32_t JAVA = 5; michael@0: const uint32_t ZX81_BASIC = 6; // it could happen :) michael@0: const uint32_t JAVASCRIPT2 = 7; michael@0: const uint32_t RUBY = 8; michael@0: const uint32_t PHP = 9; michael@0: const uint32_t TCL = 10; michael@0: // This list can grow indefinitely. Just don't ever change an existing item. michael@0: const uint32_t MAX = 10; // keep this as the largest index. michael@0: michael@0: };