Browse Source

gpio input

old
Robin Thoni 9 years ago
parent
commit
e3fefaae85
2 changed files with 6 additions and 0 deletions
  1. 4
    0
      server/gpiomanager.cpp
  2. 2
    0
      server/gpiomanager.h

+ 4
- 0
server/gpiomanager.cpp View File

5
 {
5
 {
6
 }
6
 }
7
 
7
 
8
+GpioManager::~GpioManager()
9
+{
10
+}
11
+
8
 bool GpioManager::init(const QVariant &pins)
12
 bool GpioManager::init(const QVariant &pins)
9
 {
13
 {
10
     if (!wiringPiSetupPhys())
14
     if (!wiringPiSetupPhys())

+ 2
- 0
server/gpiomanager.h View File

5
 
5
 
6
 class GpioManager : public InputManager
6
 class GpioManager : public InputManager
7
 {
7
 {
8
+    Q_OBJECT
8
 public:
9
 public:
9
     GpioManager(QObject* parent = 0);
10
     GpioManager(QObject* parent = 0);
11
+    virtual ~GpioManager();
10
 
12
 
11
 public slots:
13
 public slots:
12
     bool init(const QVariant &pins) override;
14
     bool init(const QVariant &pins) override;

Loading…
Cancel
Save