lcd4linux: add slots for more user involvement

Keeps gui stuff away from parts of /src/driver and
callbacks with messages should inform the user about possible
operations during activation or deactivation of service.
Reason: long breaks are mediating
freeze or unknown status that leave the user in the dark.


Origin commit data
------------------
Commit: 826d56a575
Author: Thilo Graf <dbt@novatux.de>
Date: 2021-06-30 (Wed, 30 Jun 2021)
This commit is contained in:
2021-06-30 20:35:27 +02:00
committed by vanhofen
parent 76221b72dd
commit d04cf5bba9
4 changed files with 83 additions and 13 deletions

View File

@@ -4,10 +4,11 @@
Copyright (C) 2012 'defans'
Homepage: http://www.bluepeercrew.us/
Copyright (C) 2012-2018 'vanhofen'
Copyright (C) 2012-2021 'vanhofen'
Homepage: http://www.neutrino-images.de/
Copyright (C) 2016-2018 'TangoCash'
(C) 2021, Thilo Graf 'dbt'
License: GPL
@@ -22,16 +23,16 @@
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, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __lcd4l_setup__
#define __lcd4l_setup__
#include <gui/widget/menue.h>
#include "gui/widget/menue.h"
#include "gui/widget/hintbox.h"
#include <sigc++/signal.h>
class CLCD4lSetup : public CMenuTarget, CChangeObserver
{
@@ -45,12 +46,20 @@ class CLCD4lSetup : public CMenuTarget, CChangeObserver
int show();
int showTypeSetup();
//messages
CHint *hint;
void removeHint();
void showHint(const std::string &text);
//slots
sigc::slot<void> sl_start, sl_stop, sl_restart, sl_remove;
public:
static CLCD4lSetup* getInstance();
CLCD4lSetup();
~CLCD4lSetup();
int exec(CMenuTarget *parent, const std::string &actionkey);
virtual bool changeNotify(const neutrino_locale_t OptionName, void * /*data*/);
void connectSlots();
};
#endif