MCPcopy Create free account
hub / github.com/BatchDrake/SigDigger / AppConfig

Class AppConfig

include/AppConfig.h:44–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42
43namespace SigDigger {
44 class AppConfig : public Suscan::Serializable {
45 public:
46 Suscan::Source::Config profile;
47 Suscan::AnalyzerParams analyzerParams;
48 ColorConfig colors;
49 GuiConfig guiConfig;
50 TLESourceConfig tleSourceConfig;
51 Suscan::Serializable *panSpectrumConfig = nullptr;
52
53 // We cannot keep a pointer to the deserialized object. This is because
54 // these objects may be created and destroyed during the application
55 // lifecycle.
56 Suscan::Object cachedComponentConfig;
57
58 int version = SIGDIGGER_UICONFIG_VERSION;
59 int width = 1280;
60 int height = 1024;
61 bool fullScreen = false;
62 int x = -1;
63 int y = -1;
64 qreal sidePanelRatio = .16;
65 bool disableHighRateWarning = false;
66
67 int loFreq = 0;
68 unsigned int bandwidth = 0;
69
70 std::vector<std::string> enabledBandPlans;
71
72 // Methods
73 AppConfig(AppUI *ui = nullptr);
74 [[ noreturn ]] AppConfig(Suscan::Object const &conf);
75
76 void loadDefaults(void);
77
78 // Overriden methods
79 Suscan::Object getComponentConfig(const char *);
80 void setComponentConfig(const char *, Suscan::Object const &);
81
82 void deserialize(Suscan::Object const &conf) override;
83 Suscan::Object &&serialize(void) override;
84 };
85}
86
87#endif // APPCONFIG_H

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected