From c014db49f5044f15e7ad0236437ac9ae4aa3b23f Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Mon, 4 Aug 2008 17:44:07 +0000 Subject: [FIX] Move no longer uses the overworld flag (will just check to see if the worldScript is empty) [FIX] TeamMember now inherits from Config [FIX] Wrapper now inherit from Config git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@235 6ecfd1a5-f3ed-3746-8530-beee90d26b22 --- pokescripting/Config.h | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'pokescripting/Config.h') diff --git a/pokescripting/Config.h b/pokescripting/Config.h index 21dab83f..338c4bb6 100644 --- a/pokescripting/Config.h +++ b/pokescripting/Config.h @@ -18,6 +18,9 @@ #ifndef __POKESCRIPTING_CONFIG__ #define __POKESCRIPTING_CONFIG__ +// Pokescripting includes +#include "Global.h" + // Qt includes #include #include @@ -32,7 +35,7 @@ class Pokemod; namespace Pokescripting { -class Config : public QObject +class POKESCRIPTING_EXPORT Config : public QObject { Q_OBJECT @@ -41,7 +44,11 @@ class Config : public QObject public slots: void addValue(const QString& name, const QVariant& value); void setValue(const QString& name, const QVariant& value); - QVariant value(const QString& name); + void removeValue(const QString& name); + QVariant value(const QString& name, const bool recursive = true) const; + bool hasValue(const QString& name, const bool recursive = false) const; + + virtual void writeBack(); private: QMap m_values; }; -- cgit