QTfrontend/team.cpp
changeset 314 83773ccf4f09
parent 312 c36d0b34ac3d
child 319 7f3bd9e31f18
--- 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)
 {