src/app/transcode/sourcecmd.cpp
// Retrives a list with possible source types names
Retrives a list with possible source types names
Retrives a list with possible source types names
const StringList
SourceAddCommand::getSourceTypeNameList()
{
    StringList list;
    db::DB db(getFactory());
    db.connect();
    db::Parameters params;
    db::ResultVector rv = db.callSelect("klk_app_transcode_source_type_get_cli",
                                        params, NULL);
    for (db::ResultVector::iterator item = rv.begin();
         item != rv.end(); item++)
    {
        list.push_back((*item)["name"].toString());
    }
    return list;
}
const StringList SourceAddCommand :: getSourceTypeNameList ( ) { StringList list ; db :: DB db ( getFactory ( ) ) ; db . connect ( ) ; db :: Parameters params ; db :: ResultVector rv = db . callSelect ( " " , params , NULL ) ; for ( db :: ResultVector :: iterator item = rv . begin ( ) ; item != rv . end ( ) ; item ++ ) { list . push_back ( ( * item ) [ " " ] . toString ( ) ) ; } return list ; }
Retrives a list with possible source types names
Retrives a list with possible source types names
// `klk_app_transcode_source_type_get_cli` ( // SELECT klk_app_transcode_source_type.type_name AS name FROM // klk_app_transcode_source_type;