bool parseSuccess = true;
// ../plugins/SERVICE_NAME_adconfigure.xml
- QFile file(CONF_PATH + this->serviceName + CONF_FILE_POSTFIX );
+ QString path("plugins/confs/");
+ path.append(this->serviceName);
+ path.append("_adconfigure.xml");
+ QFile file(path);
parseSuccess = file.exists();
/*if(!file.exists()){
if(parseSuccess){
initialized = true;
}else{
- qDebug() << "Ad service configure failed. " << CONF_PATH + this->serviceName + CONF_FILE_POSTFIX ;
initialized = false;
//TODO: parse failed
}
bool QtmadsService::parseXmlConfFile(QFile &file)
{
- qDebug() << "QtmadsService::parseXmlConfFile()";
+ //qDebug() << "QtmadsService::parseXmlConfFile()";
+ //TODO: apply some sanity to if-hell
bool success = false;
QXmlStreamReader xmlReader(&file);