--- a/QTfrontend/team.cpp Mon Jan 08 21:44:57 2007 +0000
+++ b/QTfrontend/team.cpp Wed Jan 10 23:21:05 2007 +0000
@@ -26,6 +26,9 @@
#include "pages.h"
#include "hwconsts.h"
+#include <QStringList>
+#include <QDebug>
+
HWTeam::HWTeam(const QString & teamname) :
difficulty(0)
{
@@ -41,6 +44,13 @@
}
}
+HWTeam::HWTeam(const QStringList& strLst)
+{
+ if(strLst.size()<9) throw HWTeamConstructException();
+ TeamName=strLst[0];
+ for(int i = 0; i < 8; i++) HHName[i]=strLst[i+1];
+}
+
HWTeam::HWTeam(quint8 num) :
difficulty(0)
{