2 Copyright (c) 2006-2008 Paolo Capriotti <p.capriotti@gmail.com>
3 (c) 2006-2007 Maurizio Monge <maurizio.monge@kdemail.net>
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version.
11 #include "icsgamedata.h"
17 ICSGameData::ICSGameData()
22 ICSGameData::ICSGameData(int index
, const QString
& type
)
27 void ICSGameData::setType(const QString
& type
) {
28 variant
= Variants::instance().get(GameInfo::variantCode(type
));
30 kError() << "No variant corresponding to " << type
;
32 else if (!(icsapi
= variant
->icsAPI())) {
33 // There's no ICSAPI in this variant.
34 // This means we cannot use it for ICS stuff, so we
35 // fall back to the dummy variant.