From b99070118a3cedc4fcc7514ba95fce2646d649c4 Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Mon, 18 Aug 2008 23:40:50 +0000 Subject: [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 --- pokescripting/Config.h | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'pokescripting/Config.h') 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 #include #include #include @@ -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 m_values; + QList m_temporaries; }; } +Q_DECLARE_METATYPE(Pokescripting::Config*) #endif -- cgit