1 /************************************************************************** 2 * Copyright (C) 2005-2020 by Oleksandr Shneyder * 3 * <o.shneyder@phoca-gmbh.de> * 4 * * 5 * This program is free software; you can redistribute it and/or modify * 6 * it under the terms of the GNU General Public License as published by * 7 * the Free Software Foundation; either version 2 of the License, or * 8 * (at your option) any later version. * 9 * This program is distributed in the hope that it will be useful, * 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 12 * GNU General Public License for more details. * 13 * * 14 * You should have received a copy of the GNU General Public License * 15 * along with this program. If not, see <https://www.gnu.org/licenses/>. * 16 ***************************************************************************/ 17 18 #ifndef CUPSPRINTWIDGET_H 19 #define CUPSPRINTWIDGET_H 20 21 #include <QWidget> 22 #include "x2goclientconfig.h" 23 #ifndef Q_OS_WIN 24 #include "cupsprint.h" 25 #include "ui_cupsprintwidget.h" 26 /** 27 @author Oleksandr Shneyder <oleksandr.shneyder@obviously-nice.de> 28 */ 29 30 class CUPSPrintWidget : public QWidget 31 { 32 Q_OBJECT 33 public: 34 CUPSPrintWidget ( QWidget* parent =0 ); 35 ~CUPSPrintWidget(); 36 void savePrinter(); 37 private: 38 CUPSPrint* m_cups; 39 Ui::CUPSPrintWidget ui; 40 41 private slots: 42 void slot_printerSelected ( int index ); 43 void slot_printerSettings(); 44 }; 45 46 #endif 47 #endif 48