LCOV - code coverage report
Current view: directory - objdir/dist/include - imgITools.h (source / functions) Found Hit Coverage
Test: app.info Lines: 1 1 100.0 %
Date: 2012-06-02 Functions: 1 1 100.0 %

       1                 : /*
       2                 :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/image/public/imgITools.idl
       3                 :  */
       4                 : 
       5                 : #ifndef __gen_imgITools_h__
       6                 : #define __gen_imgITools_h__
       7                 : 
       8                 : 
       9                 : #ifndef __gen_nsISupports_h__
      10                 : #include "nsISupports.h"
      11                 : #endif
      12                 : 
      13                 : /* For IDL files that don't want to include root IDL files. */
      14                 : #ifndef NS_NO_VTABLE
      15                 : #define NS_NO_VTABLE
      16                 : #endif
      17                 : class nsIInputStream; /* forward declaration */
      18                 : 
      19                 : class imgIContainer; /* forward declaration */
      20                 : 
      21                 : 
      22                 : /* starting interface:    imgITools */
      23                 : #define IMGITOOLS_IID_STR "1f19a2ce-cf5c-4a6b-8ba7-63785b45053f"
      24                 : 
      25                 : #define IMGITOOLS_IID \
      26                 :   {0x1f19a2ce, 0xcf5c, 0x4a6b, \
      27                 :     { 0x8b, 0xa7, 0x63, 0x78, 0x5b, 0x45, 0x05, 0x3f }}
      28                 : 
      29               8 : class NS_NO_VTABLE NS_SCRIPTABLE imgITools : public nsISupports {
      30                 :  public: 
      31                 : 
      32                 :   NS_DECLARE_STATIC_IID_ACCESSOR(IMGITOOLS_IID)
      33                 : 
      34                 :   /* void decodeImageData (in nsIInputStream aStream, in ACString aMimeType, inout imgIContainer aContainer); */
      35                 :   NS_SCRIPTABLE NS_IMETHOD DecodeImageData(nsIInputStream *aStream, const nsACString & aMimeType, imgIContainer * *aContainer NS_INOUTPARAM) = 0;
      36                 : 
      37                 :   /* nsIInputStream encodeImage (in imgIContainer aContainer, in ACString aMimeType, [optional] in AString outputOptions); */
      38                 :   NS_SCRIPTABLE NS_IMETHOD EncodeImage(imgIContainer *aContainer, const nsACString & aMimeType, const nsAString & outputOptions, nsIInputStream * *_retval NS_OUTPARAM) = 0;
      39                 : 
      40                 :   /* nsIInputStream encodeScaledImage (in imgIContainer aContainer, in ACString aMimeType, in long aWidth, in long aHeight, [optional] in AString outputOptions); */
      41                 :   NS_SCRIPTABLE NS_IMETHOD EncodeScaledImage(imgIContainer *aContainer, const nsACString & aMimeType, PRInt32 aWidth, PRInt32 aHeight, const nsAString & outputOptions, nsIInputStream * *_retval NS_OUTPARAM) = 0;
      42                 : 
      43                 : };
      44                 : 
      45                 :   NS_DEFINE_STATIC_IID_ACCESSOR(imgITools, IMGITOOLS_IID)
      46                 : 
      47                 : /* Use this macro when declaring classes that implement this interface. */
      48                 : #define NS_DECL_IMGITOOLS \
      49                 :   NS_SCRIPTABLE NS_IMETHOD DecodeImageData(nsIInputStream *aStream, const nsACString & aMimeType, imgIContainer * *aContainer NS_INOUTPARAM); \
      50                 :   NS_SCRIPTABLE NS_IMETHOD EncodeImage(imgIContainer *aContainer, const nsACString & aMimeType, const nsAString & outputOptions, nsIInputStream * *_retval NS_OUTPARAM); \
      51                 :   NS_SCRIPTABLE NS_IMETHOD EncodeScaledImage(imgIContainer *aContainer, const nsACString & aMimeType, PRInt32 aWidth, PRInt32 aHeight, const nsAString & outputOptions, nsIInputStream * *_retval NS_OUTPARAM); 
      52                 : 
      53                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      54                 : #define NS_FORWARD_IMGITOOLS(_to) \
      55                 :   NS_SCRIPTABLE NS_IMETHOD DecodeImageData(nsIInputStream *aStream, const nsACString & aMimeType, imgIContainer * *aContainer NS_INOUTPARAM) { return _to DecodeImageData(aStream, aMimeType, aContainer); } \
      56                 :   NS_SCRIPTABLE NS_IMETHOD EncodeImage(imgIContainer *aContainer, const nsACString & aMimeType, const nsAString & outputOptions, nsIInputStream * *_retval NS_OUTPARAM) { return _to EncodeImage(aContainer, aMimeType, outputOptions, _retval); } \
      57                 :   NS_SCRIPTABLE NS_IMETHOD EncodeScaledImage(imgIContainer *aContainer, const nsACString & aMimeType, PRInt32 aWidth, PRInt32 aHeight, const nsAString & outputOptions, nsIInputStream * *_retval NS_OUTPARAM) { return _to EncodeScaledImage(aContainer, aMimeType, aWidth, aHeight, outputOptions, _retval); } 
      58                 : 
      59                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      60                 : #define NS_FORWARD_SAFE_IMGITOOLS(_to) \
      61                 :   NS_SCRIPTABLE NS_IMETHOD DecodeImageData(nsIInputStream *aStream, const nsACString & aMimeType, imgIContainer * *aContainer NS_INOUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->DecodeImageData(aStream, aMimeType, aContainer); } \
      62                 :   NS_SCRIPTABLE NS_IMETHOD EncodeImage(imgIContainer *aContainer, const nsACString & aMimeType, const nsAString & outputOptions, nsIInputStream * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->EncodeImage(aContainer, aMimeType, outputOptions, _retval); } \
      63                 :   NS_SCRIPTABLE NS_IMETHOD EncodeScaledImage(imgIContainer *aContainer, const nsACString & aMimeType, PRInt32 aWidth, PRInt32 aHeight, const nsAString & outputOptions, nsIInputStream * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->EncodeScaledImage(aContainer, aMimeType, aWidth, aHeight, outputOptions, _retval); } 
      64                 : 
      65                 : #if 0
      66                 : /* Use the code below as a template for the implementation class for this interface. */
      67                 : 
      68                 : /* Header file */
      69                 : class _MYCLASS_ : public imgITools
      70                 : {
      71                 : public:
      72                 :   NS_DECL_ISUPPORTS
      73                 :   NS_DECL_IMGITOOLS
      74                 : 
      75                 :   _MYCLASS_();
      76                 : 
      77                 : private:
      78                 :   ~_MYCLASS_();
      79                 : 
      80                 : protected:
      81                 :   /* additional members */
      82                 : };
      83                 : 
      84                 : /* Implementation file */
      85                 : NS_IMPL_ISUPPORTS1(_MYCLASS_, imgITools)
      86                 : 
      87                 : _MYCLASS_::_MYCLASS_()
      88                 : {
      89                 :   /* member initializers and constructor code */
      90                 : }
      91                 : 
      92                 : _MYCLASS_::~_MYCLASS_()
      93                 : {
      94                 :   /* destructor code */
      95                 : }
      96                 : 
      97                 : /* void decodeImageData (in nsIInputStream aStream, in ACString aMimeType, inout imgIContainer aContainer); */
      98                 : NS_IMETHODIMP _MYCLASS_::DecodeImageData(nsIInputStream *aStream, const nsACString & aMimeType, imgIContainer * *aContainer NS_INOUTPARAM)
      99                 : {
     100                 :     return NS_ERROR_NOT_IMPLEMENTED;
     101                 : }
     102                 : 
     103                 : /* nsIInputStream encodeImage (in imgIContainer aContainer, in ACString aMimeType, [optional] in AString outputOptions); */
     104                 : NS_IMETHODIMP _MYCLASS_::EncodeImage(imgIContainer *aContainer, const nsACString & aMimeType, const nsAString & outputOptions, nsIInputStream * *_retval NS_OUTPARAM)
     105                 : {
     106                 :     return NS_ERROR_NOT_IMPLEMENTED;
     107                 : }
     108                 : 
     109                 : /* nsIInputStream encodeScaledImage (in imgIContainer aContainer, in ACString aMimeType, in long aWidth, in long aHeight, [optional] in AString outputOptions); */
     110                 : NS_IMETHODIMP _MYCLASS_::EncodeScaledImage(imgIContainer *aContainer, const nsACString & aMimeType, PRInt32 aWidth, PRInt32 aHeight, const nsAString & outputOptions, nsIInputStream * *_retval NS_OUTPARAM)
     111                 : {
     112                 :     return NS_ERROR_NOT_IMPLEMENTED;
     113                 : }
     114                 : 
     115                 : /* End of implementation class template. */
     116                 : #endif
     117                 : 
     118                 : 
     119                 : #endif /* __gen_imgITools_h__ */

Generated by: LCOV version 1.7