diff options
| author | Ben Boeckel <MathStuf@gmail.com> | 2008-08-04 17:44:07 +0000 |
|---|---|---|
| committer | Ben Boeckel <MathStuf@gmail.com> | 2008-08-04 17:44:07 +0000 |
| commit | c014db49f5044f15e7ad0236437ac9ae4aa3b23f (patch) | |
| tree | ba9b1fe82b1a43155b99259d324ff444f1cdcf14 /pokescripting/Config.h | |
| parent | 38b4604019a93ecd053939e8e722fd36b8d7236d (diff) | |
| download | sigen-c014db49f5044f15e7ad0236437ac9ae4aa3b23f.tar.gz sigen-c014db49f5044f15e7ad0236437ac9ae4aa3b23f.tar.xz sigen-c014db49f5044f15e7ad0236437ac9ae4aa3b23f.zip | |
[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
Diffstat (limited to 'pokescripting/Config.h')
| -rw-r--r-- | pokescripting/Config.h | 11 |
1 files changed, 9 insertions, 2 deletions
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 <QtCore/QMap> #include <QtCore/QObject> @@ -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<QString, QVariant> m_values; }; |
