fix(cpn): radio specific name and label validators (#4670)
Only allows valid characters in names, drops invalid characters if present
This commit is contained in:
@@ -18,15 +18,13 @@
|
||||
* GNU General Public License for more details.
|
||||
*/
|
||||
|
||||
#ifndef _WIZARDDATA_H_
|
||||
#define _WIZARDDATA_H_
|
||||
#pragma once
|
||||
|
||||
#include "eeprominterface.h"
|
||||
|
||||
#include <QtCore>
|
||||
|
||||
#define WIZ_MAX_CHANNELS 8
|
||||
// TODO use a constant common to the whole companion
|
||||
// TODO when in the wizard use the getCapacity(...) to know how long the name can be
|
||||
#define WIZ_MODEL_NAME_LENGTH 12
|
||||
|
||||
enum Input {
|
||||
NO_INPUT,
|
||||
@@ -90,11 +88,13 @@ class Channel
|
||||
void clear();
|
||||
};
|
||||
|
||||
class WizMix
|
||||
class WizMix : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
bool complete;
|
||||
char name[WIZ_MODEL_NAME_LENGTH + 1];
|
||||
char name[MODEL_NAME_LEN + 1];
|
||||
unsigned int modelId;
|
||||
const GeneralSettings & settings;
|
||||
const ModelData & originalModelData;
|
||||
@@ -111,5 +111,3 @@ class WizMix
|
||||
void maxMixSwitch(char *name, MixData &mix, int destCh, int sw, int weight);
|
||||
|
||||
};
|
||||
|
||||
#endif // _WIZARDDATA_H_
|
||||
|
||||
Reference in New Issue
Block a user