LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/dist/include - nsIProfileMigrator.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/nsIProfileMigrator.idl
       3             :  */
       4             : 
       5             : #ifndef __gen_nsIProfileMigrator_h__
       6             : #define __gen_nsIProfileMigrator_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:    nsIProfileStartup */
      21             : #define NS_IPROFILESTARTUP_IID_STR "048e5ca1-0eb7-4bb1-a9a2-a36f7d4e0e3c"
      22             : 
      23             : #define NS_IPROFILESTARTUP_IID \
      24             :   {0x048e5ca1, 0x0eb7, 0x4bb1, \
      25             :     { 0xa9, 0xa2, 0xa3, 0x6f, 0x7d, 0x4e, 0x0e, 0x3c }}
      26             : 
      27           3 : class NS_NO_VTABLE nsIProfileStartup : public nsISupports {
      28             :  public:
      29             : 
      30             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IPROFILESTARTUP_IID)
      31             : 
      32             :   /* readonly attribute nsIFile directory; */
      33             :   NS_IMETHOD GetDirectory(nsIFile * *aDirectory) = 0;
      34             : 
      35             :   /* void doStartup (); */
      36             :   NS_IMETHOD DoStartup(void) = 0;
      37             : 
      38             : };
      39             : 
      40             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIProfileStartup, NS_IPROFILESTARTUP_IID)
      41             : 
      42             : /* Use this macro when declaring classes that implement this interface. */
      43             : #define NS_DECL_NSIPROFILESTARTUP \
      44             :   NS_IMETHOD GetDirectory(nsIFile * *aDirectory) override; \
      45             :   NS_IMETHOD DoStartup(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_NSIPROFILESTARTUP \
      50             :   nsresult GetDirectory(nsIFile * *aDirectory); \
      51             :   nsresult DoStartup(void); 
      52             : 
      53             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      54             : #define NS_FORWARD_NSIPROFILESTARTUP(_to) \
      55             :   NS_IMETHOD GetDirectory(nsIFile * *aDirectory) override { return _to GetDirectory(aDirectory); } \
      56             :   NS_IMETHOD DoStartup(void) override { return _to DoStartup(); } 
      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_NSIPROFILESTARTUP(_to) \
      60             :   NS_IMETHOD GetDirectory(nsIFile * *aDirectory) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDirectory(aDirectory); } \
      61             :   NS_IMETHOD DoStartup(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DoStartup(); } 
      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 nsProfileStartup : public nsIProfileStartup
      68             : {
      69             : public:
      70             :   NS_DECL_ISUPPORTS
      71             :   NS_DECL_NSIPROFILESTARTUP
      72             : 
      73             :   nsProfileStartup();
      74             : 
      75             : private:
      76             :   ~nsProfileStartup();
      77             : 
      78             : protected:
      79             :   /* additional members */
      80             : };
      81             : 
      82             : /* Implementation file */
      83             : NS_IMPL_ISUPPORTS(nsProfileStartup, nsIProfileStartup)
      84             : 
      85             : nsProfileStartup::nsProfileStartup()
      86             : {
      87             :   /* member initializers and constructor code */
      88             : }
      89             : 
      90             : nsProfileStartup::~nsProfileStartup()
      91             : {
      92             :   /* destructor code */
      93             : }
      94             : 
      95             : /* readonly attribute nsIFile directory; */
      96             : NS_IMETHODIMP nsProfileStartup::GetDirectory(nsIFile * *aDirectory)
      97             : {
      98             :     return NS_ERROR_NOT_IMPLEMENTED;
      99             : }
     100             : 
     101             : /* void doStartup (); */
     102             : NS_IMETHODIMP nsProfileStartup::DoStartup()
     103             : {
     104             :     return NS_ERROR_NOT_IMPLEMENTED;
     105             : }
     106             : 
     107             : /* End of implementation class template. */
     108             : #endif
     109             : 
     110             : 
     111             : /* starting interface:    nsIProfileMigrator */
     112             : #define NS_IPROFILEMIGRATOR_IID_STR "3df284a5-2258-4d46-a664-761ecdc04c22"
     113             : 
     114             : #define NS_IPROFILEMIGRATOR_IID \
     115             :   {0x3df284a5, 0x2258, 0x4d46, \
     116             :     { 0xa6, 0x64, 0x76, 0x1e, 0xcd, 0xc0, 0x4c, 0x22 }}
     117             : 
     118             : class NS_NO_VTABLE nsIProfileMigrator : public nsISupports {
     119             :  public:
     120             : 
     121             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IPROFILEMIGRATOR_IID)
     122             : 
     123             :   /* void migrate (in nsIProfileStartup aStartup, in ACString aKey, [optional] in ACString aProfileName); */
     124             :   NS_IMETHOD Migrate(nsIProfileStartup *aStartup, const nsACString & aKey, const nsACString & aProfileName) = 0;
     125             : 
     126             : };
     127             : 
     128             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIProfileMigrator, NS_IPROFILEMIGRATOR_IID)
     129             : 
     130             : /* Use this macro when declaring classes that implement this interface. */
     131             : #define NS_DECL_NSIPROFILEMIGRATOR \
     132             :   NS_IMETHOD Migrate(nsIProfileStartup *aStartup, const nsACString & aKey, const nsACString & aProfileName) override; 
     133             : 
     134             : /* Use this macro when declaring the members of this interface when the
     135             :    class doesn't implement the interface. This is useful for forwarding. */
     136             : #define NS_DECL_NON_VIRTUAL_NSIPROFILEMIGRATOR \
     137             :   nsresult Migrate(nsIProfileStartup *aStartup, const nsACString & aKey, const nsACString & aProfileName); 
     138             : 
     139             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     140             : #define NS_FORWARD_NSIPROFILEMIGRATOR(_to) \
     141             :   NS_IMETHOD Migrate(nsIProfileStartup *aStartup, const nsACString & aKey, const nsACString & aProfileName) override { return _to Migrate(aStartup, aKey, aProfileName); } 
     142             : 
     143             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     144             : #define NS_FORWARD_SAFE_NSIPROFILEMIGRATOR(_to) \
     145             :   NS_IMETHOD Migrate(nsIProfileStartup *aStartup, const nsACString & aKey, const nsACString & aProfileName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Migrate(aStartup, aKey, aProfileName); } 
     146             : 
     147             : #if 0
     148             : /* Use the code below as a template for the implementation class for this interface. */
     149             : 
     150             : /* Header file */
     151             : class nsProfileMigrator : public nsIProfileMigrator
     152             : {
     153             : public:
     154             :   NS_DECL_ISUPPORTS
     155             :   NS_DECL_NSIPROFILEMIGRATOR
     156             : 
     157             :   nsProfileMigrator();
     158             : 
     159             : private:
     160             :   ~nsProfileMigrator();
     161             : 
     162             : protected:
     163             :   /* additional members */
     164             : };
     165             : 
     166             : /* Implementation file */
     167             : NS_IMPL_ISUPPORTS(nsProfileMigrator, nsIProfileMigrator)
     168             : 
     169             : nsProfileMigrator::nsProfileMigrator()
     170             : {
     171             :   /* member initializers and constructor code */
     172             : }
     173             : 
     174             : nsProfileMigrator::~nsProfileMigrator()
     175             : {
     176             :   /* destructor code */
     177             : }
     178             : 
     179             : /* void migrate (in nsIProfileStartup aStartup, in ACString aKey, [optional] in ACString aProfileName); */
     180             : NS_IMETHODIMP nsProfileMigrator::Migrate(nsIProfileStartup *aStartup, const nsACString & aKey, const nsACString & aProfileName)
     181             : {
     182             :     return NS_ERROR_NOT_IMPLEMENTED;
     183             : }
     184             : 
     185             : /* End of implementation class template. */
     186             : #endif
     187             : 
     188             : #define NS_PROFILEMIGRATOR_CONTRACTID "@mozilla.org/toolkit/profile-migrator;1"
     189             : 
     190             : #endif /* __gen_nsIProfileMigrator_h__ */

Generated by: LCOV version 1.13