File indexing completed on 2024-05-12 04:04:15
0001 /* 0002 This file is part of Knights, a chess board for KDE SC 4. 0003 SPDX-FileCopyrightText: 2011 Miha Čančula <miha@noughmad.eu> 0004 0005 SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL 0006 */ 0007 0008 #ifndef KNIGHTS_COMPUTERPROTOCOL_H 0009 #define KNIGHTS_COMPUTERPROTOCOL_H 0010 0011 #include <proto/textprotocol.h> 0012 0013 class KProcess; 0014 0015 namespace Knights { 0016 0017 class ComputerProtocol : public TextProtocol { 0018 public: 0019 explicit ComputerProtocol(QObject* parent = nullptr); 0020 ~ComputerProtocol() override; 0021 0022 virtual void startProgram(); 0023 bool isComputer() override; 0024 QList< ToolWidgetData > toolWidgets() override; 0025 0026 protected: 0027 KProcess* mProcess; 0028 0029 private Q_SLOTS: 0030 void readError(); 0031 }; 0032 0033 } 0034 0035 #endif // KNIGHTS_COMPUTERPROTOCOL_H