Wireshark 4.7.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
lua_debugger_settings.h
Go to the documentation of this file.
1/* lua_debugger_settings.h
2 *
3 * Wireshark - Network traffic analyzer
4 * By Gerald Combs <gerald@wireshark.org>
5 * Copyright 1998 Gerald Combs
6 *
7 * SPDX-License-Identifier: GPL-2.0-or-later
8 */
9
15#ifndef LUA_DEBUGGER_SETTINGS_H
16#define LUA_DEBUGGER_SETTINGS_H
17
18#include <QJsonArray>
19#include <QVariantMap>
20
26{
27 public:
31 void loadFromFile();
32
36 void saveToFile() const;
37
42 QVariantMap &map() { return map_; }
43
48 const QVariantMap &map() const { return map_; }
49
59 static QJsonArray jsonArrayAt(const QVariantMap &map, const char *key);
60
61 private:
62 QVariantMap map_;
63};
64
65#endif
In-memory Lua debugger UI settings backed by lua_debugger.json (global personal config,...
Definition lua_debugger_settings.h:26
void saveToFile() const
Persists the current settings map to lua_debugger.json.
Definition lua_debugger_settings.cpp:67
static QJsonArray jsonArrayAt(const QVariantMap &map, const char *key)
Extracts a JSON array from a QVariantMap by key.
Definition lua_debugger_settings.cpp:86
const QVariantMap & map() const
Returns a read-only reference to the underlying settings map.
Definition lua_debugger_settings.h:48
void loadFromFile()
Loads settings from lua_debugger.json into the internal map.
Definition lua_debugger_settings.cpp:36
QVariantMap & map()
Returns a mutable reference to the underlying settings map.
Definition lua_debugger_settings.h:42