6 #ifndef CONTROLBUTTON_H
7 #define CONTROLBUTTON_H
10 #include <QPushButton>
14 #include <control_widget/service.h>
16 namespace control_widget
19 class ControlButton :
public QObject
23 ControlButton(QPushButton *button_, service::Service *service_);
24 ControlButton(QPushButton *button_, std::string iconName, service::Service *service_);
27 void setStatus(
bool success);
30 void feedback(QStringList&);
37 void init(QPushButton *button_, service::Service *service_);
41 service::Service *service;
43 QTimer *mainLoopTimer;
44 ros::Time activatedTime;
47 static const int highlightDuration = 5;