1 #ifndef __MAINWINDOW_H__
2 #define __MAINWINDOW_H__
6 #include "devstate.hpp"
8 class MainWindow : public QPushButton
15 printf ("Clicked, request state\n");
16 DeviceState::instance ()->requestState ();
19 void lockChanged (bool state)
21 printf (state ? "device locked\n" : "device unlocked\n");
28 setText ("Push me to get state");
29 connect (this, SIGNAL (clicked ()), this, SLOT (clicked ()));
30 connect (DeviceState::instance (), SIGNAL (lockChanged (bool)), this, SLOT (lockChanged (bool)));
34 #endif // __MAINWINDOW_H__