LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/dist/include - nsIDirectoryEnumerator.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/nsIDirectoryEnumerator.idl
       3             :  */
       4             : 
       5             : #ifndef __gen_nsIDirectoryEnumerator_h__
       6             : #define __gen_nsIDirectoryEnumerator_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 nsIFile; /* forward declaration */
      18             : 
      19             : 
      20             : /* starting interface:    nsIDirectoryEnumerator */
      21             : #define NS_IDIRECTORYENUMERATOR_IID_STR "31f7f4ae-6916-4f2d-a81e-926a4e3022ee"
      22             : 
      23             : #define NS_IDIRECTORYENUMERATOR_IID \
      24             :   {0x31f7f4ae, 0x6916, 0x4f2d, \
      25             :     { 0xa8, 0x1e, 0x92, 0x6a, 0x4e, 0x30, 0x22, 0xee }}
      26             : 
      27          17 : class NS_NO_VTABLE nsIDirectoryEnumerator : public nsISupports {
      28             :  public:
      29             : 
      30             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDIRECTORYENUMERATOR_IID)
      31             : 
      32             :   /* readonly attribute nsIFile nextFile; */
      33             :   NS_IMETHOD GetNextFile(nsIFile * *aNextFile) = 0;
      34             : 
      35             :   /* void close (); */
      36             :   NS_IMETHOD Close(void) = 0;
      37             : 
      38             : };
      39             : 
      40             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIDirectoryEnumerator, NS_IDIRECTORYENUMERATOR_IID)
      41             : 
      42             : /* Use this macro when declaring classes that implement this interface. */
      43             : #define NS_DECL_NSIDIRECTORYENUMERATOR \
      44             :   NS_IMETHOD GetNextFile(nsIFile * *aNextFile) override; \
      45             :   NS_IMETHOD Close(void) override; 
      46             : 
      47             : /* Use this macro when declaring the members of this interface when the
      48             :    class doesn't implement the interface. This is useful for forwarding. */
      49             : #define NS_DECL_NON_VIRTUAL_NSIDIRECTORYENUMERATOR \
      50             :   nsresult GetNextFile(nsIFile * *aNextFile); \
      51             :   nsresult Close(void); 
      52             : 
      53             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      54             : #define NS_FORWARD_NSIDIRECTORYENUMERATOR(_to) \
      55             :   NS_IMETHOD GetNextFile(nsIFile * *aNextFile) override { return _to GetNextFile(aNextFile); } \
      56             :   NS_IMETHOD Close(void) override { return _to Close(); } 
      57             : 
      58             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      59             : #define NS_FORWARD_SAFE_NSIDIRECTORYENUMERATOR(_to) \
      60             :   NS_IMETHOD GetNextFile(nsIFile * *aNextFile) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNextFile(aNextFile); } \
      61             :   NS_IMETHOD Close(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Close(); } 
      62             : 
      63             : #if 0
      64             : /* Use the code below as a template for the implementation class for this interface. */
      65             : 
      66             : /* Header file */
      67             : class nsDirectoryEnumerator : public nsIDirectoryEnumerator
      68             : {
      69             : public:
      70             :   NS_DECL_ISUPPORTS
      71             :   NS_DECL_NSIDIRECTORYENUMERATOR
      72             : 
      73             :   nsDirectoryEnumerator();
      74             : 
      75             : private:
      76             :   ~nsDirectoryEnumerator();
      77             : 
      78             : protected:
      79             :   /* additional members */
      80             : };
      81             : 
      82             : /* Implementation file */
      83             : NS_IMPL_ISUPPORTS(nsDirectoryEnumerator, nsIDirectoryEnumerator)
      84             : 
      85             : nsDirectoryEnumerator::nsDirectoryEnumerator()
      86             : {
      87             :   /* member initializers and constructor code */
      88             : }
      89             : 
      90             : nsDirectoryEnumerator::~nsDirectoryEnumerator()
      91             : {
      92             :   /* destructor code */
      93             : }
      94             : 
      95             : /* readonly attribute nsIFile nextFile; */
      96             : NS_IMETHODIMP nsDirectoryEnumerator::GetNextFile(nsIFile * *aNextFile)
      97             : {
      98             :     return NS_ERROR_NOT_IMPLEMENTED;
      99             : }
     100             : 
     101             : /* void close (); */
     102             : NS_IMETHODIMP nsDirectoryEnumerator::Close()
     103             : {
     104             :     return NS_ERROR_NOT_IMPLEMENTED;
     105             : }
     106             : 
     107             : /* End of implementation class template. */
     108             : #endif
     109             : 
     110             : 
     111             : #endif /* __gen_nsIDirectoryEnumerator_h__ */

Generated by: LCOV version 1.13