|
Pokered Save Editor 2
Pokemon Red & Blue save file editor - Qt 6 C++/QML
|
One fly destination: its name/index and the map it flies to. More...
#include <flydbentry.h>
Public Member Functions | |
| QString | getName () const |
| < Destination name. | |
| int | getInd () const |
| MapDBEntry * | getToMap () const |
| void | qmlProtect (const QQmlEngine *const engine) const |
| Pin to C++ ownership. | |
Protected Member Functions | |
| FlyDBEntry () | |
| Empty entry (built by FlyDB). | |
| FlyDBEntry (QJsonValue &data) | |
| Build from a JSON value. | |
| void | deepLink () |
| Resolve the destination map. | |
| void | qmlRegister () const |
| Register with QML. | |
Protected Attributes | |
| QString | name = "" |
| Backing field (read via getName()). | |
| int | ind = 0 |
| Backing field (read via getInd()). | |
| MapDBEntry * | toMap = nullptr |
| Backing field (read via getToMap()). | |
Friends | |
| class | FlyDB |
| The owning DB constructs/populates these entries. | |
One fly destination: its name/index and the map it flies to.
QObject-getter style DB entry (protected fields + getters). toMap is resolved in deepLink(). See db.md for the entry convention.
Definition at line 37 of file flydbentry.h.
|
protected |
Empty entry (built by FlyDB).
Definition at line 30 of file flydbentry.cpp.
References qmlRegister().
|
protected |
Build from a JSON value.
Definition at line 34 of file flydbentry.cpp.
References ind, name, and qmlRegister().
|
protected |
Resolve the destination map.
Definition at line 43 of file flydbentry.cpp.
References MapsDB::getIndAt(), MapsDB::inst(), name, and toMap.
| int FlyDBEntry::getInd | ( | ) | const |
| QString FlyDBEntry::getName | ( | ) | const |
< Destination name.
Destination index. Resolved destination map.
Definition at line 71 of file flydbentry.cpp.
References name.
| MapDBEntry * FlyDBEntry::getToMap | ( | ) | const |
| void FlyDBEntry::qmlProtect | ( | const QQmlEngine *const | engine | ) | const |
Pin to C++ ownership.
Definition at line 61 of file flydbentry.cpp.
References Utility::qmlProtectUtil().
|
protected |
Register with QML.
Definition at line 76 of file flydbentry.cpp.
Referenced by FlyDBEntry(), and FlyDBEntry().
|
friend |
The owning DB constructs/populates these entries.
Definition at line 61 of file flydbentry.h.
References FlyDB.
Referenced by FlyDB.
|
protected |
Backing field (read via getInd()).
Definition at line 58 of file flydbentry.h.
Referenced by FlyDBEntry(), and getInd().
|
protected |
Backing field (read via getName()).
Definition at line 57 of file flydbentry.h.
Referenced by deepLink(), FlyDBEntry(), and getName().
|
protected |
Backing field (read via getToMap()).
Definition at line 59 of file flydbentry.h.
Referenced by deepLink(), and getToMap().