Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
michael@0 | 1 | /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ |
michael@0 | 2 | /* This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 3 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 4 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
michael@0 | 5 | |
michael@0 | 6 | #include "nsIRDFNode.idl" |
michael@0 | 7 | |
michael@0 | 8 | %{C++ |
michael@0 | 9 | #include "nscore.h" // for char16_t |
michael@0 | 10 | %} |
michael@0 | 11 | |
michael@0 | 12 | [ptr] native const_octet_ptr(const uint8_t); |
michael@0 | 13 | |
michael@0 | 14 | /** |
michael@0 | 15 | * A literal node in the graph, whose value is a string. |
michael@0 | 16 | */ |
michael@0 | 17 | [scriptable, uuid(E0C493D2-9542-11d2-8EB8-00805F29F370)] |
michael@0 | 18 | interface nsIRDFLiteral : nsIRDFNode { |
michael@0 | 19 | /** |
michael@0 | 20 | * The Unicode string value of the literal. |
michael@0 | 21 | */ |
michael@0 | 22 | readonly attribute wstring Value; |
michael@0 | 23 | |
michael@0 | 24 | /** |
michael@0 | 25 | * An unscriptable version used to avoid a string copy. Meant |
michael@0 | 26 | * for use as a performance optimization. |
michael@0 | 27 | */ |
michael@0 | 28 | [noscript] void GetValueConst([shared] out wstring aConstValue); |
michael@0 | 29 | }; |
michael@0 | 30 | |
michael@0 | 31 | /** |
michael@0 | 32 | * A literal node in the graph, whose value is a date |
michael@0 | 33 | */ |
michael@0 | 34 | [scriptable, uuid(E13A24E1-C77A-11d2-80BE-006097B76B8E)] |
michael@0 | 35 | interface nsIRDFDate : nsIRDFNode { |
michael@0 | 36 | /** |
michael@0 | 37 | * The date value of the literal |
michael@0 | 38 | */ |
michael@0 | 39 | readonly attribute PRTime Value; |
michael@0 | 40 | }; |
michael@0 | 41 | |
michael@0 | 42 | /** |
michael@0 | 43 | * A literal node in the graph, whose value is an integer |
michael@0 | 44 | */ |
michael@0 | 45 | [scriptable, uuid(E13A24E3-C77A-11d2-80BE-006097B76B8E)] |
michael@0 | 46 | interface nsIRDFInt : nsIRDFNode { |
michael@0 | 47 | /** |
michael@0 | 48 | * The integer value of the literal |
michael@0 | 49 | */ |
michael@0 | 50 | readonly attribute long Value; |
michael@0 | 51 | }; |
michael@0 | 52 | |
michael@0 | 53 | /** |
michael@0 | 54 | * A literal node in the graph, whose value is arbitrary |
michael@0 | 55 | * binary data. |
michael@0 | 56 | */ |
michael@0 | 57 | [scriptable, uuid(237f85a2-1dd2-11b2-94af-8122582fc45e)] |
michael@0 | 58 | interface nsIRDFBlob : nsIRDFNode { |
michael@0 | 59 | /** |
michael@0 | 60 | * The binary data. |
michael@0 | 61 | */ |
michael@0 | 62 | [noscript] readonly attribute const_octet_ptr value; |
michael@0 | 63 | |
michael@0 | 64 | /** |
michael@0 | 65 | * The data's length. |
michael@0 | 66 | */ |
michael@0 | 67 | readonly attribute long length; |
michael@0 | 68 | }; |