rdf/base/idl/nsIRDFRemoteDataSource.idl

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/rdf/base/idl/nsIRDFRemoteDataSource.idl	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,44 @@
     1.4 +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
     1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.8 +
     1.9 +#include "nsISupports.idl"
    1.10 +
    1.11 +/**
    1.12 + * A datasource that may load asynchronously
    1.13 + */
    1.14 +[scriptable, uuid(1D297320-27F7-11d3-BE01-000064657374)]
    1.15 +interface nsIRDFRemoteDataSource : nsISupports
    1.16 +{
    1.17 +    /**
    1.18 +     * This value is <code>true</code> when the datasource has
    1.19 +     * fully loaded itself.
    1.20 +     */
    1.21 +    readonly attribute boolean loaded;
    1.22 +
    1.23 +    /**
    1.24 +     * Specify the URI for the data source: this is the prefix
    1.25 +     * that will be used to register the data source in the
    1.26 +     * data source registry.
    1.27 +     * @param aURI the URI to load
    1.28 +     */
    1.29 +    void Init(in string aURI);
    1.30 +
    1.31 +    /**
    1.32 +     * Refresh the remote datasource, re-loading its contents
    1.33 +     * from the URI.
    1.34 +     *
    1.35 +     * @param aBlocking If <code>true</code>, the call will block
    1.36 +     * until the datasource has completely reloaded.
    1.37 +     */
    1.38 +    void Refresh(in boolean aBlocking);
    1.39 +
    1.40 +    /**
    1.41 +     * Request that a data source write its contents out to 
    1.42 +     * permanent storage, if applicable.
    1.43 +     */
    1.44 +    void Flush();
    1.45 +    void FlushTo(in string aURI);
    1.46 +};
    1.47 +

mercurial