KSaneCore

deviceinformation.h
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#ifndef KSANE_DEVICEINFORMATION_H
8#define KSANE_DEVICEINFORMATION_H
9
10#include <memory>
11
12// Qt includes
13#include <QString>
14
15#include "ksanecore_export.h"
16
17namespace KSaneCore
18{
19
20class DeviceInformationPrivate;
21
22/**
23 * A wrapper class providing access to the internal information
24 * of the scanner device provided by SANE
25 */
26class KSANECORE_EXPORT DeviceInformation
27{
28
29public:
30 explicit DeviceInformation();
32
33 /** This function returns a unique device name for the scanner device
34 * @return the unique device name name */
35 QString name() const;
36
37 /** This function returns the device vendor string of the scanner device
38 * @return the device vendor string */
39 QString vendor() const;
40
41 /** This function returns the device vendor string of the scanner device
42 * @return the device model name */
43 QString model() const;
44
45 /** This function returns the device type (e.g., "flatbed scanner")
46 * @return the device type */
47 QString type() const;
48
49protected:
50 std::unique_ptr<KSaneCore::DeviceInformationPrivate> d;
51};
52
53} // namespace KSaneCore
54
55#endif // KSANE_DEVICEINFORMATION_H
56
A wrapper class providing access to the internal information of the scanner device provided by SANE.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 20 2024 11:57:02 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.