LCOV - code coverage report
Current view: directory - objdir/dist/include - nsISimpleUnicharStreamFactory.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/xpcom/io/nsISimpleUnicharStreamFactory.idl
       3                 :  */
       4                 : 
       5                 : #ifndef __gen_nsISimpleUnicharStreamFactory_h__
       6                 : #define __gen_nsISimpleUnicharStreamFactory_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 nsIUnicharInputStream; /* forward declaration */
      20                 : 
      21                 : 
      22                 : /* starting interface:    nsISimpleUnicharStreamFactory */
      23                 : #define NS_ISIMPLEUNICHARSTREAMFACTORY_IID_STR "8238cd2e-e8e3-43e8-b556-56e21389c766"
      24                 : 
      25                 : #define NS_ISIMPLEUNICHARSTREAMFACTORY_IID \
      26                 :   {0x8238cd2e, 0xe8e3, 0x43e8, \
      27                 :     { 0xb5, 0x56, 0x56, 0xe2, 0x13, 0x89, 0xc7, 0x66 }}
      28                 : 
      29            1464 : class NS_NO_VTABLE NS_SCRIPTABLE nsISimpleUnicharStreamFactory : public nsISupports {
      30                 :  public: 
      31                 : 
      32                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISIMPLEUNICHARSTREAMFACTORY_IID)
      33                 : 
      34                 :   /* nsIUnicharInputStream createInstanceFromString (in AString aString); */
      35                 :   NS_SCRIPTABLE NS_IMETHOD CreateInstanceFromString(const nsAString & aString, nsIUnicharInputStream * *_retval NS_OUTPARAM) = 0;
      36                 : 
      37                 :   /* nsIUnicharInputStream createInstanceFromUTF8Stream (in nsIInputStream aStream); */
      38                 :   NS_SCRIPTABLE NS_IMETHOD CreateInstanceFromUTF8Stream(nsIInputStream *aStream, nsIUnicharInputStream * *_retval NS_OUTPARAM) = 0;
      39                 : 
      40                 : };
      41                 : 
      42                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsISimpleUnicharStreamFactory, NS_ISIMPLEUNICHARSTREAMFACTORY_IID)
      43                 : 
      44                 : /* Use this macro when declaring classes that implement this interface. */
      45                 : #define NS_DECL_NSISIMPLEUNICHARSTREAMFACTORY \
      46                 :   NS_SCRIPTABLE NS_IMETHOD CreateInstanceFromString(const nsAString & aString, nsIUnicharInputStream * *_retval NS_OUTPARAM); \
      47                 :   NS_SCRIPTABLE NS_IMETHOD CreateInstanceFromUTF8Stream(nsIInputStream *aStream, nsIUnicharInputStream * *_retval NS_OUTPARAM); 
      48                 : 
      49                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      50                 : #define NS_FORWARD_NSISIMPLEUNICHARSTREAMFACTORY(_to) \
      51                 :   NS_SCRIPTABLE NS_IMETHOD CreateInstanceFromString(const nsAString & aString, nsIUnicharInputStream * *_retval NS_OUTPARAM) { return _to CreateInstanceFromString(aString, _retval); } \
      52                 :   NS_SCRIPTABLE NS_IMETHOD CreateInstanceFromUTF8Stream(nsIInputStream *aStream, nsIUnicharInputStream * *_retval NS_OUTPARAM) { return _to CreateInstanceFromUTF8Stream(aStream, _retval); } 
      53                 : 
      54                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      55                 : #define NS_FORWARD_SAFE_NSISIMPLEUNICHARSTREAMFACTORY(_to) \
      56                 :   NS_SCRIPTABLE NS_IMETHOD CreateInstanceFromString(const nsAString & aString, nsIUnicharInputStream * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateInstanceFromString(aString, _retval); } \
      57                 :   NS_SCRIPTABLE NS_IMETHOD CreateInstanceFromUTF8Stream(nsIInputStream *aStream, nsIUnicharInputStream * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateInstanceFromUTF8Stream(aStream, _retval); } 
      58                 : 
      59                 : #if 0
      60                 : /* Use the code below as a template for the implementation class for this interface. */
      61                 : 
      62                 : /* Header file */
      63                 : class nsSimpleUnicharStreamFactory : public nsISimpleUnicharStreamFactory
      64                 : {
      65                 : public:
      66                 :   NS_DECL_ISUPPORTS
      67                 :   NS_DECL_NSISIMPLEUNICHARSTREAMFACTORY
      68                 : 
      69                 :   nsSimpleUnicharStreamFactory();
      70                 : 
      71                 : private:
      72                 :   ~nsSimpleUnicharStreamFactory();
      73                 : 
      74                 : protected:
      75                 :   /* additional members */
      76                 : };
      77                 : 
      78                 : /* Implementation file */
      79                 : NS_IMPL_ISUPPORTS1(nsSimpleUnicharStreamFactory, nsISimpleUnicharStreamFactory)
      80                 : 
      81                 : nsSimpleUnicharStreamFactory::nsSimpleUnicharStreamFactory()
      82                 : {
      83                 :   /* member initializers and constructor code */
      84                 : }
      85                 : 
      86                 : nsSimpleUnicharStreamFactory::~nsSimpleUnicharStreamFactory()
      87                 : {
      88                 :   /* destructor code */
      89                 : }
      90                 : 
      91                 : /* nsIUnicharInputStream createInstanceFromString (in AString aString); */
      92                 : NS_IMETHODIMP nsSimpleUnicharStreamFactory::CreateInstanceFromString(const nsAString & aString, nsIUnicharInputStream * *_retval NS_OUTPARAM)
      93                 : {
      94                 :     return NS_ERROR_NOT_IMPLEMENTED;
      95                 : }
      96                 : 
      97                 : /* nsIUnicharInputStream createInstanceFromUTF8Stream (in nsIInputStream aStream); */
      98                 : NS_IMETHODIMP nsSimpleUnicharStreamFactory::CreateInstanceFromUTF8Stream(nsIInputStream *aStream, nsIUnicharInputStream * *_retval NS_OUTPARAM)
      99                 : {
     100                 :     return NS_ERROR_NOT_IMPLEMENTED;
     101                 : }
     102                 : 
     103                 : /* End of implementation class template. */
     104                 : #endif
     105                 : 
     106                 : 
     107                 : #endif /* __gen_nsISimpleUnicharStreamFactory_h__ */

Generated by: LCOV version 1.7