diff --git a/unipi/gpiodescriptor.cpp b/unipi/gpiodescriptor.cpp deleted file mode 100644 index 3743f4c..0000000 --- a/unipi/gpiodescriptor.cpp +++ /dev/null @@ -1,45 +0,0 @@ -/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * - * * - * Copyright (C) 2016 Simon Stürz * - * * - * This file is part of nymea. * - * * - * This library is free software; you can redistribute it and/or * - * modify it under the terms of the GNU Lesser General Public * - * License as published by the Free Software Foundation; either * - * version 2.1 of the License, or (at your option) any later version. * - * * - * This library is distributed in the hope that it will be useful, * - * but WITHOUT ANY WARRANTY; without even the implied warranty of * - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * - * Lesser General Public License for more details. * - * * - * You should have received a copy of the GNU Lesser General Public * - * License along with this library; If not, see * - * . * - * * - * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ - -#include "gpiodescriptor.h" - -GpioDescriptor::GpioDescriptor(const int &gpio, const int &pin, const QString &description): - m_gpio(gpio), - m_pin(pin), - m_description(description) -{ -} - -int GpioDescriptor::gpio() const -{ - return m_gpio; -} - -int GpioDescriptor::pin() const -{ - return m_pin; -} - -QString GpioDescriptor::description() const -{ - return m_description; -} diff --git a/unipi/gpiodescriptor.h b/unipi/gpiodescriptor.h deleted file mode 100644 index 6fbb993..0000000 --- a/unipi/gpiodescriptor.h +++ /dev/null @@ -1,43 +0,0 @@ -/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * - * * - * Copyright (C) 2016 Simon Stürz * - * * - * This file is part of nymea. * - * * - * This library is free software; you can redistribute it and/or * - * modify it under the terms of the GNU Lesser General Public * - * License as published by the Free Software Foundation; either * - * version 2.1 of the License, or (at your option) any later version. * - * * - * This library is distributed in the hope that it will be useful, * - * but WITHOUT ANY WARRANTY; without even the implied warranty of * - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * - * Lesser General Public License for more details. * - * * - * You should have received a copy of the GNU Lesser General Public * - * License along with this library; If not, see * - * . * - * * - * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ - -#ifndef GPIODESCRIPTOR_H -#define GPIODESCRIPTOR_H - -#include - -class GpioDescriptor -{ -public: - GpioDescriptor(const int &gpio, const int &pin, const QString &description = QString()); - - int gpio() const; - int pin() const; - QString description() const; - -private: - int m_gpio; - int m_pin; - QString m_description; -}; - -#endif // GPIODESCRIPTOR_H diff --git a/unipi/unipi.h b/unipi/unipi.h index ae0cd35..7dc74f9 100644 --- a/unipi/unipi.h +++ b/unipi/unipi.h @@ -32,7 +32,6 @@ #define UNIPI_H #include -#include "gpiodescriptor.h" #include "mcp23008.h" #include "mcp342xchannel.h" #include "unipipwm.h"