Backed out changeset 2450366cf7ca (bug 1891629) for causing win msix mochitest failures
[gecko.git] / widget / nsPrinterListCUPS.h
blob77fff571c610b326eb470d1ccc201a4deeb981a3
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"
12 namespace mozilla {
13 template <typename T>
14 class Maybe;
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;
28 private:
29 ~nsPrinterListCUPS() override = default;
32 #endif