1141cc406Sopenharmony_ci/* sane - Scanner Access Now Easy. 2141cc406Sopenharmony_ci 3141cc406Sopenharmony_ci Copyright (C) 2019 Povilas Kanapickas <povilas@radix.lt> 4141cc406Sopenharmony_ci 5141cc406Sopenharmony_ci This file is part of the SANE package. 6141cc406Sopenharmony_ci 7141cc406Sopenharmony_ci This program is free software; you can redistribute it and/or 8141cc406Sopenharmony_ci modify it under the terms of the GNU General Public License as 9141cc406Sopenharmony_ci published by the Free Software Foundation; either version 2 of the 10141cc406Sopenharmony_ci License, or (at your option) any later version. 11141cc406Sopenharmony_ci 12141cc406Sopenharmony_ci This program is distributed in the hope that it will be useful, but 13141cc406Sopenharmony_ci WITHOUT ANY WARRANTY; without even the implied warranty of 14141cc406Sopenharmony_ci MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15141cc406Sopenharmony_ci General Public License for more details. 16141cc406Sopenharmony_ci 17141cc406Sopenharmony_ci You should have received a copy of the GNU General Public License 18141cc406Sopenharmony_ci along with this program. If not, see <https://www.gnu.org/licenses/>. 19141cc406Sopenharmony_ci*/ 20141cc406Sopenharmony_ci 21141cc406Sopenharmony_ci#ifndef BACKEND_GENESYS_STATUS_H 22141cc406Sopenharmony_ci#define BACKEND_GENESYS_STATUS_H 23141cc406Sopenharmony_ci 24141cc406Sopenharmony_ci#include <iosfwd> 25141cc406Sopenharmony_ci 26141cc406Sopenharmony_cinamespace genesys { 27141cc406Sopenharmony_ci 28141cc406Sopenharmony_ci/// Represents the scanner status register 29141cc406Sopenharmony_cistruct Status 30141cc406Sopenharmony_ci{ 31141cc406Sopenharmony_ci bool is_replugged = false; 32141cc406Sopenharmony_ci bool is_buffer_empty = false; 33141cc406Sopenharmony_ci bool is_feeding_finished = false; 34141cc406Sopenharmony_ci bool is_scanning_finished = false; 35141cc406Sopenharmony_ci bool is_at_home = false; 36141cc406Sopenharmony_ci bool is_lamp_on = false; 37141cc406Sopenharmony_ci bool is_front_end_busy = false; 38141cc406Sopenharmony_ci bool is_motor_enabled = false; 39141cc406Sopenharmony_ci}; 40141cc406Sopenharmony_ci 41141cc406Sopenharmony_cistd::ostream& operator<<(std::ostream& out, Status status); 42141cc406Sopenharmony_ci 43141cc406Sopenharmony_ci} // namespace genesys 44141cc406Sopenharmony_ci 45141cc406Sopenharmony_ci#endif // BACKEND_GENESYS_STATUS_H 46