/* * Localwebfaker - Web sites faker for LAN * Copyright (C) 2007-2009 Lucas J. González * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see #include #include #include #include #include #include class Config : public QObject { Q_OBJECT signals: void ipfwDone( QString ) ; void siteDone( QString ) ; void resolvDone( QString ) ; void iptablesDone( QString ) ; void hostDone( QString ) ; void webServDone( QString ) ; void iptables_can_go( QString ) ; public slots: void showWebServStartError(QProcess::ProcessError); void showWebServStopError(QProcess::ProcessError); void w_resolverFile(QString) ; void emit_iptables_can_go() ; public: Config () ; void ipfwConfig () ; void siteConfig ( QString, QString ) ; void hostConfig( QString, QString ) ; void webServStart() ; void webServStop() ; void resolvConfig( QString, QString ) ; void iptablesConfig( QString, QString, QString ) ; void Restaurar() ; private: QFile *ip_forward ; QDir *config ; QByteArray result ; }; #endif