KSaneCore

deviceinformation.cpp
1/*
2 * SPDX-FileCopyrightText: 2022 Alexander Stippich <a.stippich@gmx.net>
3 *
4 * SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
5 */
6
7#include "deviceinformation.h"
8#include "deviceinformation_p.h"
9
10namespace KSaneCore
11{
12
13DeviceInformation::DeviceInformation() : d(std::make_unique<DeviceInformationPrivate>())
14{
15}
16
17DeviceInformation::~DeviceInformation() = default;
18
20{
21 return d->name;
22}
23
25{
26 return d->vendor;
27}
28
30{
31 return d->model;
32}
33
35{
36 return d->type;
37}
38
39} // namespace KSaneCore
QString type() const
This function returns the device type (e.g., "flatbed scanner")
QString name() const
This function returns a unique device name for the scanner device.
QString model() const
This function returns the device vendor string of the scanner device.
QString vendor() const
This function returns the device vendor string of the scanner device.
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Feb 28 2025 12:01:16 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.