20 #include "kmdbentry.h"
21 #include "kmfactory.h"
22 #include "kmmanager.h"
24 KMDBEntry::KMDBEntry() : recommended(false)
28 bool KMDBEntry::validate(
bool checkIt)
36 if (modelname.isEmpty())
44 if (manufacturer.isEmpty())
46 int p = model.find(
' ',0);
47 if (p != -1) manufacturer = model.left(p);
48 if (manufacturer.isEmpty())
return false;
52 if (model.find(manufacturer,0,
false) == 0)
54 model = model.right(model.length()-manufacturer.length()-1).stripWhiteSpace();
55 if (model.isEmpty())
return false;
59 return KMFactory::self()->manager()->validateDbDriver(
this);