CANdevStudio
Development tool for CAN bus simulation
Loading...
Searching...
No Matches
checkboxinterface.h
Go to the documentation of this file.
1#ifndef CHECKBOXINTERFACE_H
2#define CHECKBOXINTERFACE_H
3
4#include <functional>
5class QWidget;
6
9 {
10 }
11
12 typedef std::function<void(bool)> toggled_t;
13 virtual void toggledCbk(const toggled_t& cb) = 0;
14 virtual QWidget* mainWidget() = 0;
15 virtual bool getState() = 0;
16 virtual void setState(bool state) = 0;
17 virtual void setDisabled(bool state) = 0;
18};
19#endif // CHECKBOXINTERFACE_H
Definition checkboxinterface.h:7
virtual bool getState()=0
virtual QWidget * mainWidget()=0
virtual void setState(bool state)=0
virtual void toggledCbk(const toggled_t &cb)=0
virtual void setDisabled(bool state)=0
virtual ~CheckBoxInterface()
Definition checkboxinterface.h:8
std::function< void(bool)> toggled_t
Definition checkboxinterface.h:12