1 /* sane - Scanner Access Now Easy. 2 3 Copyright (C) 2019 Povilas Kanapickas <povilas@radix.lt> 4 5 This file is part of the SANE package. 6 7 This program is free software; you can redistribute it and/or 8 modify it under the terms of the GNU General Public License as 9 published by the Free Software Foundation; either version 2 of the 10 License, or (at your option) any later version. 11 12 This program is distributed in the hope that it will be useful, but 13 WITHOUT ANY WARRANTY; without even the implied warranty of 14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 General Public License for more details. 16 17 You should have received a copy of the GNU General Public License 18 along with this program. If not, see <https://www.gnu.org/licenses/>. 19 */ 20 21 #ifndef BACKEND_GENESYS_STATUS_H 22 #define BACKEND_GENESYS_STATUS_H 23 24 #include <iosfwd> 25 26 namespace genesys { 27 28 /// Represents the scanner status register 29 struct Status 30 { 31 bool is_replugged = false; 32 bool is_buffer_empty = false; 33 bool is_feeding_finished = false; 34 bool is_scanning_finished = false; 35 bool is_at_home = false; 36 bool is_lamp_on = false; 37 bool is_front_end_busy = false; 38 bool is_motor_enabled = false; 39 }; 40 41 std::ostream& operator<<(std::ostream& out, Status status); 42 43 } // namespace genesys 44 45 #endif // BACKEND_GENESYS_STATUS_H 46