diff options
| author | Ben Boeckel <MathStuf@gmail.com> | 2008-08-18 23:40:50 +0000 |
|---|---|---|
| committer | Ben Boeckel <MathStuf@gmail.com> | 2008-08-18 23:40:50 +0000 |
| commit | b99070118a3cedc4fcc7514ba95fce2646d649c4 (patch) | |
| tree | 186d30a5ace8bd07e252c67804622d3d38f96fb4 /pokescripting/Config.h | |
| parent | 91a1658e4f949dc9c06f594956fa2c3d9b73b423 (diff) | |
| download | sigen-b99070118a3cedc4fcc7514ba95fce2646d649c4.tar.gz sigen-b99070118a3cedc4fcc7514ba95fce2646d649c4.tar.xz sigen-b99070118a3cedc4fcc7514ba95fce2646d649c4.zip | |
[FIX] TeamMember now allows shadowing of values
[FIX] TeamMember no longer uses pokemod internally (all is accessed through wrappers)
[FIX] Status now has the script split between Battle and World
[FIX] Script classes now able to be passed via QVariant
git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@241 6ecfd1a5-f3ed-3746-8530-beee90d26b22
Diffstat (limited to 'pokescripting/Config.h')
| -rw-r--r-- | pokescripting/Config.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/pokescripting/Config.h b/pokescripting/Config.h index 7d66807b..16be5ade 100644 --- a/pokescripting/Config.h +++ b/pokescripting/Config.h @@ -22,6 +22,7 @@ #include "Global.h" // Qt includes +#include <QtCore/QList> #include <QtCore/QMap> #include <QtCore/QObject> #include <QtCore/QString> @@ -44,15 +45,23 @@ class POKESCRIPTING_EXPORT Config : public QObject Q_SCRIPTABLE QVariant value(const QString& name, const bool recursive = true) const; Q_SCRIPTABLE bool hasValue(const QString& name, const bool recursive = false) const; + signals: + void valueAdded(const QString& name, const QVariant& value); + void valueChanged(const QString& name, const QVariant& oldValue, const QVariant& newValue); + void valueRemoved(const QString& name); public slots: - void addValue(const QString& name, const QVariant& value); - void setValue(const QString& name, const QVariant& value); + void addValue(const QString& name, const QVariant& value, const bool temporary = false); + void setValue(const QString& name, const QVariant& value, const bool temporary = false); void removeValue(const QString& name); + void clearTemporary(); + virtual void writeBack(); private: QMap<QString, QVariant> m_values; + QList<QString> m_temporaries; }; } +Q_DECLARE_METATYPE(Pokescripting::Config*) #endif |
