1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 #ifndef nsPrinterListCUPS_h__
7 #define nsPrinterListCUPS_h__
9 #include "nsPrinterListBase.h"
10 #include "nsStringFwd.h"
15 } // namespace mozilla
17 class nsPrinterListCUPS final
: public nsPrinterListBase
{
18 NS_IMETHOD
InitPrintSettingsFromPrinter(const nsAString
&,
19 nsIPrintSettings
*) final
;
21 nsTArray
<PrinterInfo
> Printers() const final
;
22 RefPtr
<nsIPrinter
> CreatePrinter(PrinterInfo
) const final
;
23 mozilla::Maybe
<PrinterInfo
> PrinterByName(nsString aPrinterName
) const final
;
24 mozilla::Maybe
<PrinterInfo
> PrinterBySystemName(
25 nsString aPrinterName
) const final
;
26 nsresult
SystemDefaultPrinterName(nsAString
&) const final
;
29 ~nsPrinterListCUPS() override
= default;