template <typename... args>
std::shared_ptr<Wt::Dbo::Session> getDboSessionT() {
DbConnector& dbConnector = DbConnector::instance(dbConfig);
sessionT = dbConnector.createSession();
if(sizeof...(args) > 0)
mapClasses<args...>();
return sessionT;
}
template <typename U = Dfs, typename... args>
void mapClasses(){
session->mapClass<U>(U::tableName.c_str());
if(sizeof...(args) > 0)
mapClasses<args...>(session);
}
QSlider* seekSlider = new QSlider(this);
connect(seekSlider, SIGNAL(sliderMoved(int)), this, SLOT(on_sliderMoved(int)));
void ui::on_sliderMoved(int value)
{
emit setSongProgress(value);
}
connect(userInterface, SIGNAL(setSongProgress(int)), this, SLOT(setPosition(int)));