LCOV - code coverage report
Current view: directory - objdir/dist/include - nsIStreamConverterService.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/netwerk/streamconv/public/nsIStreamConverterService.idl
       3                 :  */
       4                 : 
       5                 : #ifndef __gen_nsIStreamConverterService_h__
       6                 : #define __gen_nsIStreamConverterService_h__
       7                 : 
       8                 : 
       9                 : #ifndef __gen_nsIInputStream_h__
      10                 : #include "nsIInputStream.h"
      11                 : #endif
      12                 : 
      13                 : #ifndef __gen_nsIStreamListener_h__
      14                 : #include "nsIStreamListener.h"
      15                 : #endif
      16                 : 
      17                 : /* For IDL files that don't want to include root IDL files. */
      18                 : #ifndef NS_NO_VTABLE
      19                 : #define NS_NO_VTABLE
      20                 : #endif
      21                 : #define NS_ISTREAMCONVERTER_KEY         "@mozilla.org/streamconv;1"
      22                 : 
      23                 : /* starting interface:    nsIStreamConverterService */
      24                 : #define NS_ISTREAMCONVERTERSERVICE_IID_STR "f2b1ab53-f0bd-4adb-9365-e59b1701a258"
      25                 : 
      26                 : #define NS_ISTREAMCONVERTERSERVICE_IID \
      27                 :   {0xf2b1ab53, 0xf0bd, 0x4adb, \
      28                 :     { 0x93, 0x65, 0xe5, 0x9b, 0x17, 0x01, 0xa2, 0x58 }}
      29                 : 
      30              80 : class NS_NO_VTABLE NS_SCRIPTABLE nsIStreamConverterService : public nsISupports {
      31                 :  public: 
      32                 : 
      33                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISTREAMCONVERTERSERVICE_IID)
      34                 : 
      35                 :   /* boolean canConvert (in string aFromType, in string aToType); */
      36                 :   NS_SCRIPTABLE NS_IMETHOD CanConvert(const char * aFromType, const char * aToType, bool *_retval NS_OUTPARAM) = 0;
      37                 : 
      38                 :   /* nsIInputStream convert (in nsIInputStream aFromStream, in string aFromType, in string aToType, in nsISupports aContext); */
      39                 :   NS_SCRIPTABLE NS_IMETHOD Convert(nsIInputStream *aFromStream, const char * aFromType, const char * aToType, nsISupports *aContext, nsIInputStream * *_retval NS_OUTPARAM) = 0;
      40                 : 
      41                 :   /* nsIStreamListener asyncConvertData (in string aFromType, in string aToType, in nsIStreamListener aListener, in nsISupports aContext); */
      42                 :   NS_SCRIPTABLE NS_IMETHOD AsyncConvertData(const char * aFromType, const char * aToType, nsIStreamListener *aListener, nsISupports *aContext, nsIStreamListener * *_retval NS_OUTPARAM) = 0;
      43                 : 
      44                 : };
      45                 : 
      46                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIStreamConverterService, NS_ISTREAMCONVERTERSERVICE_IID)
      47                 : 
      48                 : /* Use this macro when declaring classes that implement this interface. */
      49                 : #define NS_DECL_NSISTREAMCONVERTERSERVICE \
      50                 :   NS_SCRIPTABLE NS_IMETHOD CanConvert(const char * aFromType, const char * aToType, bool *_retval NS_OUTPARAM); \
      51                 :   NS_SCRIPTABLE NS_IMETHOD Convert(nsIInputStream *aFromStream, const char * aFromType, const char * aToType, nsISupports *aContext, nsIInputStream * *_retval NS_OUTPARAM); \
      52                 :   NS_SCRIPTABLE NS_IMETHOD AsyncConvertData(const char * aFromType, const char * aToType, nsIStreamListener *aListener, nsISupports *aContext, nsIStreamListener * *_retval NS_OUTPARAM); 
      53                 : 
      54                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      55                 : #define NS_FORWARD_NSISTREAMCONVERTERSERVICE(_to) \
      56                 :   NS_SCRIPTABLE NS_IMETHOD CanConvert(const char * aFromType, const char * aToType, bool *_retval NS_OUTPARAM) { return _to CanConvert(aFromType, aToType, _retval); } \
      57                 :   NS_SCRIPTABLE NS_IMETHOD Convert(nsIInputStream *aFromStream, const char * aFromType, const char * aToType, nsISupports *aContext, nsIInputStream * *_retval NS_OUTPARAM) { return _to Convert(aFromStream, aFromType, aToType, aContext, _retval); } \
      58                 :   NS_SCRIPTABLE NS_IMETHOD AsyncConvertData(const char * aFromType, const char * aToType, nsIStreamListener *aListener, nsISupports *aContext, nsIStreamListener * *_retval NS_OUTPARAM) { return _to AsyncConvertData(aFromType, aToType, aListener, aContext, _retval); } 
      59                 : 
      60                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      61                 : #define NS_FORWARD_SAFE_NSISTREAMCONVERTERSERVICE(_to) \
      62                 :   NS_SCRIPTABLE NS_IMETHOD CanConvert(const char * aFromType, const char * aToType, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->CanConvert(aFromType, aToType, _retval); } \
      63                 :   NS_SCRIPTABLE NS_IMETHOD Convert(nsIInputStream *aFromStream, const char * aFromType, const char * aToType, nsISupports *aContext, nsIInputStream * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->Convert(aFromStream, aFromType, aToType, aContext, _retval); } \
      64                 :   NS_SCRIPTABLE NS_IMETHOD AsyncConvertData(const char * aFromType, const char * aToType, nsIStreamListener *aListener, nsISupports *aContext, nsIStreamListener * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->AsyncConvertData(aFromType, aToType, aListener, aContext, _retval); } 
      65                 : 
      66                 : #if 0
      67                 : /* Use the code below as a template for the implementation class for this interface. */
      68                 : 
      69                 : /* Header file */
      70                 : class nsStreamConverterService : public nsIStreamConverterService
      71                 : {
      72                 : public:
      73                 :   NS_DECL_ISUPPORTS
      74                 :   NS_DECL_NSISTREAMCONVERTERSERVICE
      75                 : 
      76                 :   nsStreamConverterService();
      77                 : 
      78                 : private:
      79                 :   ~nsStreamConverterService();
      80                 : 
      81                 : protected:
      82                 :   /* additional members */
      83                 : };
      84                 : 
      85                 : /* Implementation file */
      86                 : NS_IMPL_ISUPPORTS1(nsStreamConverterService, nsIStreamConverterService)
      87                 : 
      88                 : nsStreamConverterService::nsStreamConverterService()
      89                 : {
      90                 :   /* member initializers and constructor code */
      91                 : }
      92                 : 
      93                 : nsStreamConverterService::~nsStreamConverterService()
      94                 : {
      95                 :   /* destructor code */
      96                 : }
      97                 : 
      98                 : /* boolean canConvert (in string aFromType, in string aToType); */
      99                 : NS_IMETHODIMP nsStreamConverterService::CanConvert(const char * aFromType, const char * aToType, bool *_retval NS_OUTPARAM)
     100                 : {
     101                 :     return NS_ERROR_NOT_IMPLEMENTED;
     102                 : }
     103                 : 
     104                 : /* nsIInputStream convert (in nsIInputStream aFromStream, in string aFromType, in string aToType, in nsISupports aContext); */
     105                 : NS_IMETHODIMP nsStreamConverterService::Convert(nsIInputStream *aFromStream, const char * aFromType, const char * aToType, nsISupports *aContext, nsIInputStream * *_retval NS_OUTPARAM)
     106                 : {
     107                 :     return NS_ERROR_NOT_IMPLEMENTED;
     108                 : }
     109                 : 
     110                 : /* nsIStreamListener asyncConvertData (in string aFromType, in string aToType, in nsIStreamListener aListener, in nsISupports aContext); */
     111                 : NS_IMETHODIMP nsStreamConverterService::AsyncConvertData(const char * aFromType, const char * aToType, nsIStreamListener *aListener, nsISupports *aContext, nsIStreamListener * *_retval NS_OUTPARAM)
     112                 : {
     113                 :     return NS_ERROR_NOT_IMPLEMENTED;
     114                 : }
     115                 : 
     116                 : /* End of implementation class template. */
     117                 : #endif
     118                 : 
     119                 : 
     120                 : #endif /* __gen_nsIStreamConverterService_h__ */

Generated by: LCOV version 1.7