1
0
mirror of https://github.com/JvanKatwijk/qt-dab.git synced 2025-10-06 08:12:40 +02:00
Files
SDR-DAB_Qt-DAB/includes/support/band-handler.h

44 lines
1.3 KiB
C
Raw Normal View History

#
/*
* Copyright (C) 2013, 2014, 2015, 2016, 2017
* Jan van Katwijk (J.vanKatwijk@gmail.com)
2017-07-17 08:33:17 +02:00
* Lazy Chair Computing
*
* This file is part of the Qt-DAB program
* Qt-DAB 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.
*
* Qt-DAB 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 Qt-DAB; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#ifndef __BANDHANDLER__
#define __BANDHANDLER__
2019-07-08 23:43:00 +02:00
#include <cstdint>
#include <QComboBox>
#include <QString>
//
// a simple convenience class
//
class bandHandler {
public:
2020-02-13 13:53:30 +01:00
bandHandler (const QString &);
~bandHandler ();
void setupChannels (QComboBox *s, uint8_t band);
2019-11-10 15:46:23 +01:00
int32_t Frequency (QString Channel);
private:
2020-02-13 13:53:30 +01:00
void addItem (char *name, int freq);
2019-11-10 15:46:23 +01:00
uint8_t theBand;
};
#endif