LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/dist/include - nsIFileURL.h (source / functions) Hit Total Coverage
Test: output.info Lines: 1 1 100.0 %
Date: 2017-07-14 16:53:18 Functions: 1 1 100.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /*
       2             :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl/nsIFileURL.idl
       3             :  */
       4             : 
       5             : #ifndef __gen_nsIFileURL_h__
       6             : #define __gen_nsIFileURL_h__
       7             : 
       8             : 
       9             : #ifndef __gen_nsIURL_h__
      10             : #include "nsIURL.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:    nsIFileURL */
      21             : #define NS_IFILEURL_IID_STR "e91ac988-27c2-448b-b1a1-3822e1ef1987"
      22             : 
      23             : #define NS_IFILEURL_IID \
      24             :   {0xe91ac988, 0x27c2, 0x448b, \
      25             :     { 0xb1, 0xa1, 0x38, 0x22, 0xe1, 0xef, 0x19, 0x87 }}
      26             : 
      27       10661 : class NS_NO_VTABLE nsIFileURL : public nsIURL {
      28             :  public:
      29             : 
      30             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IFILEURL_IID)
      31             : 
      32             :   /* attribute nsIFile file; */
      33             :   NS_IMETHOD GetFile(nsIFile * *aFile) = 0;
      34             :   NS_IMETHOD SetFile(nsIFile *aFile) = 0;
      35             : 
      36             : };
      37             : 
      38             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIFileURL, NS_IFILEURL_IID)
      39             : 
      40             : /* Use this macro when declaring classes that implement this interface. */
      41             : #define NS_DECL_NSIFILEURL \
      42             :   NS_IMETHOD GetFile(nsIFile * *aFile) override; \
      43             :   NS_IMETHOD SetFile(nsIFile *aFile) override; 
      44             : 
      45             : /* Use this macro when declaring the members of this interface when the
      46             :    class doesn't implement the interface. This is useful for forwarding. */
      47             : #define NS_DECL_NON_VIRTUAL_NSIFILEURL \
      48             :   nsresult GetFile(nsIFile * *aFile); \
      49             :   nsresult SetFile(nsIFile *aFile); 
      50             : 
      51             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      52             : #define NS_FORWARD_NSIFILEURL(_to) \
      53             :   NS_IMETHOD GetFile(nsIFile * *aFile) override { return _to GetFile(aFile); } \
      54             :   NS_IMETHOD SetFile(nsIFile *aFile) override { return _to SetFile(aFile); } 
      55             : 
      56             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      57             : #define NS_FORWARD_SAFE_NSIFILEURL(_to) \
      58             :   NS_IMETHOD GetFile(nsIFile * *aFile) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFile(aFile); } \
      59             :   NS_IMETHOD SetFile(nsIFile *aFile) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetFile(aFile); } 
      60             : 
      61             : #if 0
      62             : /* Use the code below as a template for the implementation class for this interface. */
      63             : 
      64             : /* Header file */
      65             : class nsFileURL : public nsIFileURL
      66             : {
      67             : public:
      68             :   NS_DECL_ISUPPORTS
      69             :   NS_DECL_NSIFILEURL
      70             : 
      71             :   nsFileURL();
      72             : 
      73             : private:
      74             :   ~nsFileURL();
      75             : 
      76             : protected:
      77             :   /* additional members */
      78             : };
      79             : 
      80             : /* Implementation file */
      81             : NS_IMPL_ISUPPORTS(nsFileURL, nsIFileURL)
      82             : 
      83             : nsFileURL::nsFileURL()
      84             : {
      85             :   /* member initializers and constructor code */
      86             : }
      87             : 
      88             : nsFileURL::~nsFileURL()
      89             : {
      90             :   /* destructor code */
      91             : }
      92             : 
      93             : /* attribute nsIFile file; */
      94             : NS_IMETHODIMP nsFileURL::GetFile(nsIFile * *aFile)
      95             : {
      96             :     return NS_ERROR_NOT_IMPLEMENTED;
      97             : }
      98             : NS_IMETHODIMP nsFileURL::SetFile(nsIFile *aFile)
      99             : {
     100             :     return NS_ERROR_NOT_IMPLEMENTED;
     101             : }
     102             : 
     103             : /* End of implementation class template. */
     104             : #endif
     105             : 
     106             : 
     107             : #endif /* __gen_nsIFileURL_h__ */

Generated by: LCOV version 1.13