* 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
+ * along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
#ifndef PULSEVIEW_PV_DATA_SIGNALBASE_HPP
#include <QColor>
#include <QObject>
+#include <QSettings>
#include <QString>
#include <libsigrokcxx/libsigrokcxx.hpp>
*/
QString name() const;
+ /**
+ * Gets the internal name of this signal, i.e. how the device calls it.
+ */
+ QString internal_name() const;
+
/**
* Sets the name of the signal.
*/
decoder_stack);
#endif
+ void save_settings(QSettings &settings) const;
+
+ void restore_settings(QSettings &settings);
+
Q_SIGNALS:
void enabled_changed(const bool &value);
std::shared_ptr<pv::data::DecoderStack> decoder_stack_;
#endif
- QString name_;
+ QString internal_name_, name_;
QColor colour_, bgcolour_;
};