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

          Line data    Source code
       1             : /*
       2             :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl/nsIRelativeFilePref.idl
       3             :  */
       4             : 
       5             : #ifndef __gen_nsIRelativeFilePref_h__
       6             : #define __gen_nsIRelativeFilePref_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:    nsIRelativeFilePref */
      21             : #define NS_IRELATIVEFILEPREF_IID_STR "2f977d4e-5485-11d4-87e2-0010a4e75ef2"
      22             : 
      23             : #define NS_IRELATIVEFILEPREF_IID \
      24             :   {0x2f977d4e, 0x5485, 0x11d4, \
      25             :     { 0x87, 0xe2, 0x00, 0x10, 0xa4, 0xe7, 0x5e, 0xf2 }}
      26             : 
      27           0 : class NS_NO_VTABLE nsIRelativeFilePref : public nsISupports {
      28             :  public:
      29             : 
      30             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IRELATIVEFILEPREF_IID)
      31             : 
      32             :   /* attribute nsIFile file; */
      33             :   NS_IMETHOD GetFile(nsIFile * *aFile) = 0;
      34             :   NS_IMETHOD SetFile(nsIFile *aFile) = 0;
      35             : 
      36             :   /* attribute ACString relativeToKey; */
      37             :   NS_IMETHOD GetRelativeToKey(nsACString & aRelativeToKey) = 0;
      38             :   NS_IMETHOD SetRelativeToKey(const nsACString & aRelativeToKey) = 0;
      39             : 
      40             : };
      41             : 
      42             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIRelativeFilePref, NS_IRELATIVEFILEPREF_IID)
      43             : 
      44             : /* Use this macro when declaring classes that implement this interface. */
      45             : #define NS_DECL_NSIRELATIVEFILEPREF \
      46             :   NS_IMETHOD GetFile(nsIFile * *aFile) override; \
      47             :   NS_IMETHOD SetFile(nsIFile *aFile) override; \
      48             :   NS_IMETHOD GetRelativeToKey(nsACString & aRelativeToKey) override; \
      49             :   NS_IMETHOD SetRelativeToKey(const nsACString & aRelativeToKey) override; 
      50             : 
      51             : /* Use this macro when declaring the members of this interface when the
      52             :    class doesn't implement the interface. This is useful for forwarding. */
      53             : #define NS_DECL_NON_VIRTUAL_NSIRELATIVEFILEPREF \
      54             :   nsresult GetFile(nsIFile * *aFile); \
      55             :   nsresult SetFile(nsIFile *aFile); \
      56             :   nsresult GetRelativeToKey(nsACString & aRelativeToKey); \
      57             :   nsresult SetRelativeToKey(const nsACString & aRelativeToKey); 
      58             : 
      59             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      60             : #define NS_FORWARD_NSIRELATIVEFILEPREF(_to) \
      61             :   NS_IMETHOD GetFile(nsIFile * *aFile) override { return _to GetFile(aFile); } \
      62             :   NS_IMETHOD SetFile(nsIFile *aFile) override { return _to SetFile(aFile); } \
      63             :   NS_IMETHOD GetRelativeToKey(nsACString & aRelativeToKey) override { return _to GetRelativeToKey(aRelativeToKey); } \
      64             :   NS_IMETHOD SetRelativeToKey(const nsACString & aRelativeToKey) override { return _to SetRelativeToKey(aRelativeToKey); } 
      65             : 
      66             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      67             : #define NS_FORWARD_SAFE_NSIRELATIVEFILEPREF(_to) \
      68             :   NS_IMETHOD GetFile(nsIFile * *aFile) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFile(aFile); } \
      69             :   NS_IMETHOD SetFile(nsIFile *aFile) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetFile(aFile); } \
      70             :   NS_IMETHOD GetRelativeToKey(nsACString & aRelativeToKey) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRelativeToKey(aRelativeToKey); } \
      71             :   NS_IMETHOD SetRelativeToKey(const nsACString & aRelativeToKey) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetRelativeToKey(aRelativeToKey); } 
      72             : 
      73             : #if 0
      74             : /* Use the code below as a template for the implementation class for this interface. */
      75             : 
      76             : /* Header file */
      77             : class nsRelativeFilePref : public nsIRelativeFilePref
      78             : {
      79             : public:
      80             :   NS_DECL_ISUPPORTS
      81             :   NS_DECL_NSIRELATIVEFILEPREF
      82             : 
      83             :   nsRelativeFilePref();
      84             : 
      85             : private:
      86             :   ~nsRelativeFilePref();
      87             : 
      88             : protected:
      89             :   /* additional members */
      90             : };
      91             : 
      92             : /* Implementation file */
      93             : NS_IMPL_ISUPPORTS(nsRelativeFilePref, nsIRelativeFilePref)
      94             : 
      95             : nsRelativeFilePref::nsRelativeFilePref()
      96             : {
      97             :   /* member initializers and constructor code */
      98             : }
      99             : 
     100             : nsRelativeFilePref::~nsRelativeFilePref()
     101             : {
     102             :   /* destructor code */
     103             : }
     104             : 
     105             : /* attribute nsIFile file; */
     106             : NS_IMETHODIMP nsRelativeFilePref::GetFile(nsIFile * *aFile)
     107             : {
     108             :     return NS_ERROR_NOT_IMPLEMENTED;
     109             : }
     110             : NS_IMETHODIMP nsRelativeFilePref::SetFile(nsIFile *aFile)
     111             : {
     112             :     return NS_ERROR_NOT_IMPLEMENTED;
     113             : }
     114             : 
     115             : /* attribute ACString relativeToKey; */
     116             : NS_IMETHODIMP nsRelativeFilePref::GetRelativeToKey(nsACString & aRelativeToKey)
     117             : {
     118             :     return NS_ERROR_NOT_IMPLEMENTED;
     119             : }
     120             : NS_IMETHODIMP nsRelativeFilePref::SetRelativeToKey(const nsACString & aRelativeToKey)
     121             : {
     122             :     return NS_ERROR_NOT_IMPLEMENTED;
     123             : }
     124             : 
     125             : /* End of implementation class template. */
     126             : #endif
     127             : 
     128             : 
     129             : #define NS_RELATIVEFILEPREF_CID                        \
     130             :   { /* {2f977d4f-5485-11d4-87e2-0010a4e75ef2} */       \
     131             :     0x2f977d4f,                                        \
     132             :     0x5485,                                            \
     133             :     0x11d4,                                            \
     134             :     { 0x87, 0xe2, 0x00, 0x10, 0xa4, 0xe7, 0x5e, 0xf2 } \
     135             :   }
     136             : #define NS_RELATIVEFILEPREF_CONTRACTID "@mozilla.org/pref-relativefile;1"
     137             : #include "nsComponentManagerUtils.h"
     138             : inline nsresult
     139           0 : NS_NewRelativeFilePref(nsIFile* aFile, const nsACString& relativeToKey, nsIRelativeFilePref** result)
     140             : {
     141             :     nsresult rv;
     142           0 :     nsCOMPtr<nsIRelativeFilePref> local(do_CreateInstance(NS_RELATIVEFILEPREF_CONTRACTID, &rv));
     143           0 :     if (NS_FAILED(rv)) return rv;
     144             :     
     145           0 :     (void)local->SetFile(aFile);
     146           0 :     (void)local->SetRelativeToKey(relativeToKey);
     147           0 :     *result = local;
     148           0 :     NS_ADDREF(*result);
     149           0 :     return NS_OK;
     150             : }
     151             : 
     152             : #endif /* __gen_nsIRelativeFilePref_h__ */

Generated by: LCOV version 1.13