# HG changeset patch # User benoitrigolleau # Date 1182440275 0 # Node ID 82c960dc79f776d7ba0bf5826a8976a6dfebcf65 # Parent e760dd1ca601d82863ce09ac2f5433bf96786419 query only with author and title is ok diff -r e760dd1ca601 -r 82c960dc79f7 sv/main/EasaierSessionManager.cpp --- a/sv/main/EasaierSessionManager.cpp Thu Jun 21 12:38:27 2007 +0000 +++ b/sv/main/EasaierSessionManager.cpp Thu Jun 21 15:37:55 2007 +0000 @@ -18,6 +18,7 @@ #include #include #include +#include #include "layer/Layer.h" @@ -29,6 +30,7 @@ #include "data/model/WaveFileModel.h" #include "main/MainWindow.h" #include "widgets/QueryResultsWidget.h" +#include "base/PropertyContainer.h" EasaierSessionManager::EasaierSessionManager(HttpClient* httpClient) : QObject(), m_fileName(""), @@ -135,8 +137,7 @@ LoadedFile* newFile = new LoadedFile(localPath); newFile->setFileType(type); newFile->setUri(uri); - - int index = m_httpClient->get(path, newFile); + int index = m_httpClient->get(uri, newFile); std::cerr << "Ask for file : GET " << path.toStdString() << " - index : " << index << std::endl; @@ -362,7 +363,16 @@ QString text = tr("Sorry query database information on the %1 theme is not yet available. All results are returned").arg(themeName); QMessageBox::information( MainWindow::instance(), tr("Query database information"), text); - QString filename = "http://easaier.silogic.fr/data/query/results.xml"; + QueryThemeModel *themeModel = (m_queryModel->getThemes()).find(themeName)->second; + QString params = ""; + if(themeModel!=0){ + PropertyContainer::PropertyList propertyList = themeModel->getProperties(); + for(int i=0; i