/* KScreen System Copyright (C) 2019 Raul Rodrigo Segura 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 . */ #ifndef GENERALPAGE_H #define GENERALPAGE_H #include #include "ui_kscreensystem.h" #include "ValidationForm.h" #include using namespace std; using namespace edupals; class ErrorOverlay; class GeneralPage : public KCModule, private Ui_kscreensystem { Q_OBJECT public: GeneralPage(QWidget *parent, const QVariantList &args); virtual ~GeneralPage(); void fillUi(); void load() Q_DECL_OVERRIDE; void save() Q_DECL_OVERRIDE; void defaults() Q_DECL_OVERRIDE; private: string user; string password; n4d::Client *client; string getMode(); string address; bool process_dir( string path, variant::Variant &result, n4d::Client *client, string filetype ); private slots: void toggleOptions(); }; #endif /* GENERALPAGE_H */