src/app/dvb/streamer/stationdelcmd.cpp
const StringList
StationDelCommand::getAssignedChannels()
{
    StringList list;
    db::DB db(getFactory());
    db.connect();
    db::Parameters dbparams;
    db::ResultVector rv = db.callSelect(
        "klk_app_dvb_station_list",
        dbparams, NULL);

    // determine max sizes
    for (db::ResultVector::iterator item = rv.begin();
         item != rv.end(); item++)
    {
        //klk_dvb_channels.name . '/' . klk_dvb_channels.provider AS
        //   station_name,
        // ...
        list.push_back((*item)["station_name"].toString());
    }
    return list;
}
// Retrives possible channel names (not assigned channels)
Retrives possible channel names (not assigned channels)
Retrives possible channel names ( not assigned channels )
const StringList
StationDelCommand::getAssignedChannels()
{
    StringList list;
    db::DB db(getFactory());
    db.connect();
    db::Parameters dbparams;
    db::ResultVector rv = db.callSelect(
        "klk_app_dvb_station_list",
        dbparams, NULL);
    for (db::ResultVector::iterator item = rv.begin();
         item != rv.end(); item++)
    {
        list.push_back((*item)["station_name"].toString());
    }
    return list;
}
const StringList StationDelCommand :: getAssignedChannels ( ) { StringList list ; db :: DB db ( getFactory ( ) ) ; db . connect ( ) ; db :: Parameters dbparams ; db :: ResultVector rv = db . callSelect ( " " , dbparams , NULL ) ; for ( db :: ResultVector :: iterator item = rv . begin ( ) ; item != rv . end ( ) ; item ++ ) { list . push_back ( ( * item ) [ " " ] . toString ( ) ) ; } return list ; }
Retrives possible channel names (not assigned channels)
Retrives possible channel names ( not assigned channels )
// determine max sizes //klk_dvb_channels.name . '/' . klk_dvb_channels.provider AS //   station_name, // ...