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: * This defines the interface for a test object. michael@0: * michael@0: */ michael@0: michael@0: [scriptable, uuid(42fbd9f6-b12d-47ef-b7a1-02d73c11fe53)] michael@0: interface nsIXPCTestObjectReadOnly : nsISupports { michael@0: readonly attribute string strReadOnly; michael@0: readonly attribute boolean boolReadOnly; michael@0: readonly attribute short shortReadOnly; michael@0: readonly attribute long longReadOnly; michael@0: readonly attribute float floatReadOnly; michael@0: readonly attribute char charReadOnly; michael@0: readonly attribute PRTime timeReadOnly; michael@0: }; michael@0: michael@0: [scriptable, uuid(f07529b0-a479-4954-aba5-ab3142c6b1cb)] michael@0: interface nsIXPCTestObjectReadWrite : nsISupports { michael@0: attribute string stringProperty; michael@0: attribute boolean booleanProperty; michael@0: attribute short shortProperty; michael@0: attribute long longProperty; michael@0: attribute float floatProperty; michael@0: attribute char charProperty; michael@0: attribute PRTime timeProperty; michael@0: };