gecko-dev/widget/nsIFormatConverter.idl

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

51 строка
1.7 KiB
Plaintext
Исходник Обычный вид История

/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2012-05-21 15:12:37 +04:00
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
1999-08-25 12:34:46 +04:00
#include "nsISupports.idl"
[scriptable, uuid(948A0023-E3A7-11d2-96CF-0060B0FB9956)]
interface nsIFormatConverter : nsISupports
{
/**
* Get the list of the "input" data flavors (mime types as nsISupportsCString),
1999-08-25 12:34:46 +04:00
* in otherwords, the flavors that this converter can convert "from" (the
* incoming data to the converter).
*/
Array<ACString> getInputDataFlavors ( ) ;
1999-08-25 12:34:46 +04:00
/**
* Get the list of the "output" data flavors (mime types as nsISupportsCString),
1999-08-25 12:34:46 +04:00
* in otherwords, the flavors that this converter can convert "to" (the
* outgoing data to the converter).
*
* @param aDataFlavorList fills list with supported flavors
*/
Array<ACString> getOutputDataFlavors ( ) ;
1999-08-25 12:34:46 +04:00
/**
* Determines whether a conversion from one flavor to another is supported
1999-08-25 12:34:46 +04:00
*
* @param aFromFormatConverter flavor to convert from
* @param aFromFormatConverter flavor to convert to
*/
boolean canConvert ( in string aFromDataFlavor, in string aToDataFlavor ) ;
1999-08-25 12:34:46 +04:00
/**
* Converts from one flavor to another.
*
* @param aFromFormatConverter flavor to convert from
* @param aFromFormatConverter flavor to convert to (destination own the memory)
* @returns returns NS_OK if it was converted
*/
void convert ( in string aFromDataFlavor, in nsISupports aFromData,
in string aToDataFlavor, out nsISupports aToData ) ;
1999-08-25 12:34:46 +04:00
};
%{ C++
%}