rdf/base/public/nsIRDFContentSink.h

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

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 /*
michael@0 7
michael@0 8 An RDF-specific content sink. The content sink is targeted by the
michael@0 9 parser for building the RDF content model.
michael@0 10
michael@0 11 */
michael@0 12
michael@0 13 #ifndef nsIRDFContentSink_h___
michael@0 14 #define nsIRDFContentSink_h___
michael@0 15
michael@0 16 #include "nsIXMLContentSink.h"
michael@0 17 class nsIRDFDataSource;
michael@0 18 class nsIURI;
michael@0 19
michael@0 20 // {3a7459d7-d723-483c-aef0-404fc48e09b8}
michael@0 21 #define NS_IRDFCONTENTSINK_IID \
michael@0 22 { 0x3a7459d7, 0xd723, 0x483c, { 0xae, 0xf0, 0x40, 0x4f, 0xc4, 0x8e, 0x09, 0xb8 } }
michael@0 23
michael@0 24 /**
michael@0 25 * This interface represents a content sink for RDF files.
michael@0 26 */
michael@0 27
michael@0 28 class nsIRDFContentSink : public nsIXMLContentSink {
michael@0 29 public:
michael@0 30 NS_DECLARE_STATIC_IID_ACCESSOR(NS_IRDFCONTENTSINK_IID)
michael@0 31
michael@0 32 /**
michael@0 33 * Initialize the content sink.
michael@0 34 */
michael@0 35 NS_IMETHOD Init(nsIURI* aURL) = 0;
michael@0 36
michael@0 37 /**
michael@0 38 * Set the content sink's RDF Data source
michael@0 39 */
michael@0 40 NS_IMETHOD SetDataSource(nsIRDFDataSource* aDataSource) = 0;
michael@0 41
michael@0 42 /**
michael@0 43 * Retrieve the content sink's RDF data source.
michael@0 44 */
michael@0 45 NS_IMETHOD GetDataSource(nsIRDFDataSource*& rDataSource) = 0;
michael@0 46 };
michael@0 47
michael@0 48 NS_DEFINE_STATIC_IID_ACCESSOR(nsIRDFContentSink, NS_IRDFCONTENTSINK_IID)
michael@0 49
michael@0 50 /**
michael@0 51 * This constructs a content sink that can be used without a
michael@0 52 * document, say, to create a stand-alone in-memory graph.
michael@0 53 */
michael@0 54 nsresult
michael@0 55 NS_NewRDFContentSink(nsIRDFContentSink** aResult);
michael@0 56
michael@0 57 #endif // nsIRDFContentSink_h___

mercurial