From: Joel Holdsworth Date: Fri, 28 Dec 2012 09:52:56 +0000 (+0000) Subject: Added empty HwCap binding X-Git-Tag: pulseview-0.1.0~185 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=cf47ef78b6366286f6f32673ffabe0595591418d;p=pulseview.git Added empty HwCap binding --- diff --git a/CMakeLists.txt b/CMakeLists.txt index e9ae0e76..b1208d64 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -90,6 +90,7 @@ set(pulseview_SOURCES pv/data/signaldata.cpp pv/data/snapshot.cpp pv/dialogs/about.cpp + pv/prop/binding/hwcap.cpp pv/view/analogsignal.cpp pv/view/cursor.cpp pv/view/header.cpp diff --git a/pv/prop/binding/binding.h b/pv/prop/binding/binding.h new file mode 100644 index 00000000..bddca862 --- /dev/null +++ b/pv/prop/binding/binding.h @@ -0,0 +1,36 @@ +/* + * This file is part of the PulseView project. + * + * Copyright (C) 2012 Joel Holdsworth + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ + +#ifndef PULSEVIEW_PV_PROP_BINDING_BINDING_H +#define PULSEVIEW_PV_PROP_BINDING_BINDING_H + +namespace pv { +namespace prop { +namespace binding { + +class Binding +{ +}; + +} // binding +} // prop +} // pv + +#endif // PULSEVIEW_PV_PROP_BINDING_BINDING_H diff --git a/pv/prop/binding/hwcap.cpp b/pv/prop/binding/hwcap.cpp new file mode 100644 index 00000000..c21d4587 --- /dev/null +++ b/pv/prop/binding/hwcap.cpp @@ -0,0 +1,35 @@ +/* + * This file is part of the PulseView project. + * + * Copyright (C) 2012 Joel Holdsworth + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ + +#include "hwcap.h" + +namespace pv { +namespace prop { +namespace binding { + +HwCap::HwCap(struct sr_dev_inst *sdi) : + _sdi(sdi) +{ +} + +} // binding +} // prop +} // pv + diff --git a/pv/prop/binding/hwcap.h b/pv/prop/binding/hwcap.h new file mode 100644 index 00000000..68487201 --- /dev/null +++ b/pv/prop/binding/hwcap.h @@ -0,0 +1,47 @@ +/* + * This file is part of the PulseView project. + * + * Copyright (C) 2012 Joel Holdsworth + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ + +#ifndef PULSEVIEW_PV_PROP_BINDING_HWCAP_H +#define PULSEVIEW_PV_PROP_BINDING_HWCAP_H + +extern "C" { +#include +} + +#include "binding.h" + +namespace pv { +namespace prop { +namespace binding { + +class HwCap : public Binding +{ +public: + HwCap(struct sr_dev_inst *sdi); + +protected: + const struct sr_dev_inst *_sdi; +}; + +} // binding +} // prop +} // pv + +#endif // PULSEVIEW_PV_PROP_BINDING_HWCAP_H