summaryrefslogtreecommitdiffstats
path: root/pokemod/Pokemod.h
diff options
context:
space:
mode:
Diffstat (limited to 'pokemod/Pokemod.h')
-rw-r--r--pokemod/Pokemod.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/pokemod/Pokemod.h b/pokemod/Pokemod.h
index cd366c9b..c2be36a0 100644
--- a/pokemod/Pokemod.h
+++ b/pokemod/Pokemod.h
@@ -23,9 +23,9 @@
#ifndef __POKEMOD_POKEMOD__
#define __POKEMOD_POKEMOD__
-#include <QIODevice>
#include <QList>
#include <QString>
+#include <QStringList>
#include "../general/Exception.h"
#include "../general/FracMatrix.h"
#include "../general/Point.h"
@@ -55,8 +55,10 @@ class Pokemod : public Object
{
V_Msg = 0,
V_Warn = 1,
- V_Error = 2
+ V_Error = 2,
+ V_End = 3
};
+ static const QStringList ValidationStr;
Pokemod(const QString& fpath);
@@ -67,8 +69,9 @@ class Pokemod : public Object
unsigned maxCompatability(const Pokemod& p) const;
- void validationMsg(const QString& msg, Validation val = V_Error) const;
- void setValidationOutput(QIODevice& s);
+ void validationMsg(const QString& msg, Validation val = V_Error) const throw(Exception);
+ void setValOutput(QStringList& s);
+ void unsetValOutput();
void setTitle(const QString& t);
void setVersion(const QString& v);
@@ -278,7 +281,7 @@ class Pokemod : public Object
Type& newType(const Type& t);
void deleteType(const unsigned i) throw(IndexException);
private:
- QIODevice* valstream;
+ QStringList* valOutput;
bool validate() const;
unsigned getNewAbilityId() const;