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

          Line data    Source code
       1             : /*
       2             :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl/nsIPrinterEnumerator.idl
       3             :  */
       4             : 
       5             : #ifndef __gen_nsIPrinterEnumerator_h__
       6             : #define __gen_nsIPrinterEnumerator_h__
       7             : 
       8             : 
       9             : #ifndef __gen_nsISupports_h__
      10             : #include "nsISupports.h"
      11             : #endif
      12             : 
      13             : #ifndef __gen_nsIPrintSettings_h__
      14             : #include "nsIPrintSettings.h"
      15             : #endif
      16             : 
      17             : /* For IDL files that don't want to include root IDL files. */
      18             : #ifndef NS_NO_VTABLE
      19             : #define NS_NO_VTABLE
      20             : #endif
      21             : class nsIStringEnumerator; /* forward declaration */
      22             : 
      23             : 
      24             : /* starting interface:    nsIPrinterEnumerator */
      25             : #define NS_IPRINTERENUMERATOR_IID_STR "5e738fff-404c-4c94-9189-e8f2cce93e94"
      26             : 
      27             : #define NS_IPRINTERENUMERATOR_IID \
      28             :   {0x5e738fff, 0x404c, 0x4c94, \
      29             :     { 0x91, 0x89, 0xe8, 0xf2, 0xcc, 0xe9, 0x3e, 0x94 }}
      30             : 
      31           0 : class NS_NO_VTABLE nsIPrinterEnumerator : public nsISupports {
      32             :  public:
      33             : 
      34             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IPRINTERENUMERATOR_IID)
      35             : 
      36             :   /* readonly attribute wstring defaultPrinterName; */
      37             :   NS_IMETHOD GetDefaultPrinterName(char16_t * *aDefaultPrinterName) = 0;
      38             : 
      39             :   /* void initPrintSettingsFromPrinter (in wstring aPrinterName, in nsIPrintSettings aPrintSettings); */
      40             :   NS_IMETHOD InitPrintSettingsFromPrinter(const char16_t * aPrinterName, nsIPrintSettings *aPrintSettings) = 0;
      41             : 
      42             :   /* readonly attribute nsIStringEnumerator printerNameList; */
      43             :   NS_IMETHOD GetPrinterNameList(nsIStringEnumerator * *aPrinterNameList) = 0;
      44             : 
      45             : };
      46             : 
      47             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIPrinterEnumerator, NS_IPRINTERENUMERATOR_IID)
      48             : 
      49             : /* Use this macro when declaring classes that implement this interface. */
      50             : #define NS_DECL_NSIPRINTERENUMERATOR \
      51             :   NS_IMETHOD GetDefaultPrinterName(char16_t * *aDefaultPrinterName) override; \
      52             :   NS_IMETHOD InitPrintSettingsFromPrinter(const char16_t * aPrinterName, nsIPrintSettings *aPrintSettings) override; \
      53             :   NS_IMETHOD GetPrinterNameList(nsIStringEnumerator * *aPrinterNameList) override; 
      54             : 
      55             : /* Use this macro when declaring the members of this interface when the
      56             :    class doesn't implement the interface. This is useful for forwarding. */
      57             : #define NS_DECL_NON_VIRTUAL_NSIPRINTERENUMERATOR \
      58             :   nsresult GetDefaultPrinterName(char16_t * *aDefaultPrinterName); \
      59             :   nsresult InitPrintSettingsFromPrinter(const char16_t * aPrinterName, nsIPrintSettings *aPrintSettings); \
      60             :   nsresult GetPrinterNameList(nsIStringEnumerator * *aPrinterNameList); 
      61             : 
      62             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      63             : #define NS_FORWARD_NSIPRINTERENUMERATOR(_to) \
      64             :   NS_IMETHOD GetDefaultPrinterName(char16_t * *aDefaultPrinterName) override { return _to GetDefaultPrinterName(aDefaultPrinterName); } \
      65             :   NS_IMETHOD InitPrintSettingsFromPrinter(const char16_t * aPrinterName, nsIPrintSettings *aPrintSettings) override { return _to InitPrintSettingsFromPrinter(aPrinterName, aPrintSettings); } \
      66             :   NS_IMETHOD GetPrinterNameList(nsIStringEnumerator * *aPrinterNameList) override { return _to GetPrinterNameList(aPrinterNameList); } 
      67             : 
      68             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      69             : #define NS_FORWARD_SAFE_NSIPRINTERENUMERATOR(_to) \
      70             :   NS_IMETHOD GetDefaultPrinterName(char16_t * *aDefaultPrinterName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDefaultPrinterName(aDefaultPrinterName); } \
      71             :   NS_IMETHOD InitPrintSettingsFromPrinter(const char16_t * aPrinterName, nsIPrintSettings *aPrintSettings) override { return !_to ? NS_ERROR_NULL_POINTER : _to->InitPrintSettingsFromPrinter(aPrinterName, aPrintSettings); } \
      72             :   NS_IMETHOD GetPrinterNameList(nsIStringEnumerator * *aPrinterNameList) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPrinterNameList(aPrinterNameList); } 
      73             : 
      74             : #if 0
      75             : /* Use the code below as a template for the implementation class for this interface. */
      76             : 
      77             : /* Header file */
      78             : class nsPrinterEnumerator : public nsIPrinterEnumerator
      79             : {
      80             : public:
      81             :   NS_DECL_ISUPPORTS
      82             :   NS_DECL_NSIPRINTERENUMERATOR
      83             : 
      84             :   nsPrinterEnumerator();
      85             : 
      86             : private:
      87             :   ~nsPrinterEnumerator();
      88             : 
      89             : protected:
      90             :   /* additional members */
      91             : };
      92             : 
      93             : /* Implementation file */
      94             : NS_IMPL_ISUPPORTS(nsPrinterEnumerator, nsIPrinterEnumerator)
      95             : 
      96             : nsPrinterEnumerator::nsPrinterEnumerator()
      97             : {
      98             :   /* member initializers and constructor code */
      99             : }
     100             : 
     101             : nsPrinterEnumerator::~nsPrinterEnumerator()
     102             : {
     103             :   /* destructor code */
     104             : }
     105             : 
     106             : /* readonly attribute wstring defaultPrinterName; */
     107             : NS_IMETHODIMP nsPrinterEnumerator::GetDefaultPrinterName(char16_t * *aDefaultPrinterName)
     108             : {
     109             :     return NS_ERROR_NOT_IMPLEMENTED;
     110             : }
     111             : 
     112             : /* void initPrintSettingsFromPrinter (in wstring aPrinterName, in nsIPrintSettings aPrintSettings); */
     113             : NS_IMETHODIMP nsPrinterEnumerator::InitPrintSettingsFromPrinter(const char16_t * aPrinterName, nsIPrintSettings *aPrintSettings)
     114             : {
     115             :     return NS_ERROR_NOT_IMPLEMENTED;
     116             : }
     117             : 
     118             : /* readonly attribute nsIStringEnumerator printerNameList; */
     119             : NS_IMETHODIMP nsPrinterEnumerator::GetPrinterNameList(nsIStringEnumerator * *aPrinterNameList)
     120             : {
     121             :     return NS_ERROR_NOT_IMPLEMENTED;
     122             : }
     123             : 
     124             : /* End of implementation class template. */
     125             : #endif
     126             : 
     127             : 
     128             : #endif /* __gen_nsIPrinterEnumerator_h__ */

Generated by: LCOV version 1.13