LCOV - app.info - objdir/dist/include/nsIFileProtocolHandler.h

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

           1                 : /*
           2                 :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM /builds/slave/m-rel-lnx-codecoverage/build/netwerk/protocol/file/nsIFileProtocolHandler.idl
           3                 :  */
           4                 :
           5                 : #ifndef __gen_nsIFileProtocolHandler_h__
           6                 : #define __gen_nsIFileProtocolHandler_h__
           7                 :
           8                 :
           9                 : #ifndef __gen_nsIProtocolHandler_h__
          10                 : #include "nsIProtocolHandler.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 nsIFile; /* forward declaration */
          18                 :
          19                 :
          20                 : /* starting interface:    nsIFileProtocolHandler */
          21                 : #define NS_IFILEPROTOCOLHANDLER_IID_STR "1fb25bd5-4354-4dcd-8d97-621b7b3ed2e4"
          22                 :
          23                 : #define NS_IFILEPROTOCOLHANDLER_IID \
          24                 :   {0x1fb25bd5, 0x4354, 0x4dcd, \
          25                 :     { 0x8d, 0x97, 0x62, 0x1b, 0x7b, 0x3e, 0xd2, 0xe4 }}
          26                 :
          27            1419 : class NS_NO_VTABLE NS_SCRIPTABLE nsIFileProtocolHandler : public nsIProtocolHandler {
          28                 :  public:
          29                 :
          30                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IFILEPROTOCOLHANDLER_IID)
          31                 :
          32                 :   /* nsIURI newFileURI (in nsIFile aFile); */
          33                 :   NS_SCRIPTABLE NS_IMETHOD NewFileURI(nsIFile *aFile, nsIURI * *_retval NS_OUTPARAM) = 0;
          34                 :
          35                 :   /* AUTF8String getURLSpecFromFile (in nsIFile file); */
          36                 :   NS_SCRIPTABLE NS_IMETHOD GetURLSpecFromFile(nsIFile *file, nsACString & _retval NS_OUTPARAM) = 0;
          37                 :
          38                 :   /* AUTF8String getURLSpecFromActualFile (in nsIFile file); */
          39                 :   NS_SCRIPTABLE NS_IMETHOD GetURLSpecFromActualFile(nsIFile *file, nsACString & _retval NS_OUTPARAM) = 0;
          40                 :
          41                 :   /* AUTF8String getURLSpecFromDir (in nsIFile file); */
          42                 :   NS_SCRIPTABLE NS_IMETHOD GetURLSpecFromDir(nsIFile *file, nsACString & _retval NS_OUTPARAM) = 0;
          43                 :
          44                 :   /* nsIFile getFileFromURLSpec (in AUTF8String url); */
          45                 :   NS_SCRIPTABLE NS_IMETHOD GetFileFromURLSpec(const nsACString & url, nsIFile * *_retval NS_OUTPARAM) = 0;
          46                 :
          47                 :   /* nsIURI readURLFile (in nsIFile file); */
          48                 :   NS_SCRIPTABLE NS_IMETHOD ReadURLFile(nsIFile *file, nsIURI * *_retval NS_OUTPARAM) = 0;
          49                 :
          50                 : };
          51                 :
          52                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIFileProtocolHandler, NS_IFILEPROTOCOLHANDLER_IID)
          53                 :
          54                 : /* Use this macro when declaring classes that implement this interface. */
          55                 : #define NS_DECL_NSIFILEPROTOCOLHANDLER \
          56                 :   NS_SCRIPTABLE NS_IMETHOD NewFileURI(nsIFile *aFile, nsIURI * *_retval NS_OUTPARAM); \
          57                 :   NS_SCRIPTABLE NS_IMETHOD GetURLSpecFromFile(nsIFile *file, nsACString & _retval NS_OUTPARAM); \
          58                 :   NS_SCRIPTABLE NS_IMETHOD GetURLSpecFromActualFile(nsIFile *file, nsACString & _retval NS_OUTPARAM); \
          59                 :   NS_SCRIPTABLE NS_IMETHOD GetURLSpecFromDir(nsIFile *file, nsACString & _retval NS_OUTPARAM); \
          60                 :   NS_SCRIPTABLE NS_IMETHOD GetFileFromURLSpec(const nsACString & url, nsIFile * *_retval NS_OUTPARAM); \
          61                 :   NS_SCRIPTABLE NS_IMETHOD ReadURLFile(nsIFile *file, nsIURI * *_retval NS_OUTPARAM);
          62                 :
          63                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
          64                 : #define NS_FORWARD_NSIFILEPROTOCOLHANDLER(_to) \
          65                 :   NS_SCRIPTABLE NS_IMETHOD NewFileURI(nsIFile *aFile, nsIURI * *_retval NS_OUTPARAM) { return _to NewFileURI(aFile, _retval); } \
          66                 :   NS_SCRIPTABLE NS_IMETHOD GetURLSpecFromFile(nsIFile *file, nsACString & _retval NS_OUTPARAM) { return _to GetURLSpecFromFile(file, _retval); } \
          67                 :   NS_SCRIPTABLE NS_IMETHOD GetURLSpecFromActualFile(nsIFile *file, nsACString & _retval NS_OUTPARAM) { return _to GetURLSpecFromActualFile(file, _retval); } \
          68                 :   NS_SCRIPTABLE NS_IMETHOD GetURLSpecFromDir(nsIFile *file, nsACString & _retval NS_OUTPARAM) { return _to GetURLSpecFromDir(file, _retval); } \
          69                 :   NS_SCRIPTABLE NS_IMETHOD GetFileFromURLSpec(const nsACString & url, nsIFile * *_retval NS_OUTPARAM) { return _to GetFileFromURLSpec(url, _retval); } \
          70                 :   NS_SCRIPTABLE NS_IMETHOD ReadURLFile(nsIFile *file, nsIURI * *_retval NS_OUTPARAM) { return _to ReadURLFile(file, _retval); }
          71                 :
          72                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
          73                 : #define NS_FORWARD_SAFE_NSIFILEPROTOCOLHANDLER(_to) \
          74                 :   NS_SCRIPTABLE NS_IMETHOD NewFileURI(nsIFile *aFile, nsIURI * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->NewFileURI(aFile, _retval); } \
          75                 :   NS_SCRIPTABLE NS_IMETHOD GetURLSpecFromFile(nsIFile *file, nsACString & _retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetURLSpecFromFile(file, _retval); } \
          76                 :   NS_SCRIPTABLE NS_IMETHOD GetURLSpecFromActualFile(nsIFile *file, nsACString & _retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetURLSpecFromActualFile(file, _retval); } \
          77                 :   NS_SCRIPTABLE NS_IMETHOD GetURLSpecFromDir(nsIFile *file, nsACString & _retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetURLSpecFromDir(file, _retval); } \
          78                 :   NS_SCRIPTABLE NS_IMETHOD GetFileFromURLSpec(const nsACString & url, nsIFile * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFileFromURLSpec(url, _retval); } \
          79                 :   NS_SCRIPTABLE NS_IMETHOD ReadURLFile(nsIFile *file, nsIURI * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->ReadURLFile(file, _retval); }
          80                 :
          81                 : #if 0
          82                 : /* Use the code below as a template for the implementation class for this interface. */
          83                 :
          84                 : /* Header file */
          85                 : class nsFileProtocolHandler : public nsIFileProtocolHandler
          86                 : {
          87                 : public:
          88                 :   NS_DECL_ISUPPORTS
          89                 :   NS_DECL_NSIFILEPROTOCOLHANDLER
          90                 :
          91                 :   nsFileProtocolHandler();
          92                 :
          93                 : private:
          94                 :   ~nsFileProtocolHandler();
          95                 :
          96                 : protected:
          97                 :   /* additional members */
          98                 : };
          99                 :
         100                 : /* Implementation file */
         101                 : NS_IMPL_ISUPPORTS1(nsFileProtocolHandler, nsIFileProtocolHandler)
         102                 :
         103                 : nsFileProtocolHandler::nsFileProtocolHandler()
         104                 : {
         105                 :   /* member initializers and constructor code */
         106                 : }
         107                 :
         108                 : nsFileProtocolHandler::~nsFileProtocolHandler()
         109                 : {
         110                 :   /* destructor code */
         111                 : }
         112                 :
         113                 : /* nsIURI newFileURI (in nsIFile aFile); */
         114                 : NS_IMETHODIMP nsFileProtocolHandler::NewFileURI(nsIFile *aFile, nsIURI * *_retval NS_OUTPARAM)
         115                 : {
         116                 :     return NS_ERROR_NOT_IMPLEMENTED;
         117                 : }
         118                 :
         119                 : /* AUTF8String getURLSpecFromFile (in nsIFile file); */
         120                 : NS_IMETHODIMP nsFileProtocolHandler::GetURLSpecFromFile(nsIFile *file, nsACString & _retval NS_OUTPARAM)
         121                 : {
         122                 :     return NS_ERROR_NOT_IMPLEMENTED;
         123                 : }
         124                 :
         125                 : /* AUTF8String getURLSpecFromActualFile (in nsIFile file); */
         126                 : NS_IMETHODIMP nsFileProtocolHandler::GetURLSpecFromActualFile(nsIFile *file, nsACString & _retval NS_OUTPARAM)
         127                 : {
         128                 :     return NS_ERROR_NOT_IMPLEMENTED;
         129                 : }
         130                 :
         131                 : /* AUTF8String getURLSpecFromDir (in nsIFile file); */
         132                 : NS_IMETHODIMP nsFileProtocolHandler::GetURLSpecFromDir(nsIFile *file, nsACString & _retval NS_OUTPARAM)
         133                 : {
         134                 :     return NS_ERROR_NOT_IMPLEMENTED;
         135                 : }
         136                 :
         137                 : /* nsIFile getFileFromURLSpec (in AUTF8String url); */
         138                 : NS_IMETHODIMP nsFileProtocolHandler::GetFileFromURLSpec(const nsACString & url, nsIFile * *_retval NS_OUTPARAM)
         139                 : {
         140                 :     return NS_ERROR_NOT_IMPLEMENTED;
         141                 : }
         142                 :
         143                 : /* nsIURI readURLFile (in nsIFile file); */
         144                 : NS_IMETHODIMP nsFileProtocolHandler::ReadURLFile(nsIFile *file, nsIURI * *_retval NS_OUTPARAM)
         145                 : {
         146                 :     return NS_ERROR_NOT_IMPLEMENTED;
         147                 : }
         148                 :
         149                 : /* End of implementation class template. */
         150                 : #endif
         151                 :
         152                 :
         153                 : #endif /* __gen_nsIFileProtocolHandler_h__ */

Generated by: LCOV version 1.7