File indexing completed on 2024-05-19 04:01:09
0001 /* 0002 SPDX-FileCopyrightText: 2016 Volker Krause <vkrause@kde.org> 0003 0004 SPDX-License-Identifier: MIT 0005 */ 0006 0007 #ifndef SERVERCONTROLLER_H 0008 #define SERVERCONTROLLER_H 0009 0010 #include <QProcess> 0011 0012 /** Controls a local PHP test server for automatic tests. */ 0013 class ServerController 0014 { 0015 public: 0016 ServerController(); 0017 ~ServerController(); 0018 0019 bool start(); 0020 void stop(); 0021 0022 QUrl url() const; 0023 0024 private: 0025 QProcess m_process; 0026 }; 0027 0028 #endif // SERVERCONTROLLER_H