-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfreqmemory.h
36 lines (31 loc) · 885 Bytes
/
freqmemory.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#ifndef FREQMEMORY_H
#define FREQMEMORY_H
#include <QString>
#include <QDebug>
#include "wfviewtypes.h"
struct preset_kind {
// QString name;
// QString comment;
// unsigned int index; // channel number
double frequency;
mode_kind mode;
bool isSet;
};
class freqMemory
{
public:
freqMemory();
void setPreset(unsigned int index, double frequency, mode_kind mode);
void setPreset(unsigned int index, double frequency, mode_kind mode, QString name);
void setPreset(unsigned int index, double frequency, mode_kind mode, QString name, QString comment);
void dumpMemory();
unsigned int getNumPresets();
preset_kind getPreset(unsigned int index);
private:
void initializePresets();
unsigned int numPresets;
unsigned int maxIndex;
//QVector <preset_kind> presets;
preset_kind presets[100];
};
#endif // FREQMEMORY_H