1 #include "fetch_auxilliary_screens.h"
3 FetchAuxilliaryScreens::FetchAuxilliaryScreens(std::vector<widestring> *screens) : screens(screens) {}
4 void FetchAuxilliaryScreens::operator() (pqxx::transaction<> &t)
6 // make sure we start with an empty list
7 screens->erase(screens->begin(), screens->end());
9 pqxx::result res( t.exec("SELECT * FROM bigscreen.active_screens") );
10 for (pqxx::result::const_iterator i = res.begin(); i != res.end(); ++i) {
11 screens->push_back( i["id"].as(widestring()) );