qtinternetradio/irdb/src/urlinfowrapper.cpp
changeset 17 38bbf2dcd608
parent 16 5723da102db1
equal deleted inserted replaced
16:5723da102db1 17:38bbf2dcd608
    75     
    75     
    76     return;        
    76     return;        
    77 }
    77 }
    78 
    78 
    79 QList<QVariant*>* urlInfoWrapper::getUrlInfo(const columnMap* const condAND,  
    79 QList<QVariant*>* urlInfoWrapper::getUrlInfo(const columnMap* const condAND,  
    80                                              const columnMap* const condOR)
    80                                              const columnMap* const condOR,
       
    81                                              int aBegin,
       
    82                                              int aEnd)
    81 {
    83 {
    82     QString sltSqlStr = "select channelUrl, channelId, bitRate from urlInfo ";
    84     QString sltSqlStr = "select channelUrl, channelId, bitRate from urlInfo ";
    83     QList<QVariant*>* pDataSet = NULL;
    85     QList<QVariant*>* pDataSet = NULL;
    84     
    86     
    85     if( (NULL != condAND)&&(NULL != condOR) )
    87     if( (NULL != condAND)&&(NULL != condOR) )
   103         }
   105         }
   104     }
   106     }
   105 
   107 
   106     combineGetStr(condAND, condOR, colNameView, sltSqlStr);
   108     combineGetStr(condAND, condOR, colNameView, sltSqlStr);
   107     pDataSet = new QList<QVariant*>(); 
   109     pDataSet = new QList<QVariant*>(); 
   108     if( m_pIRDB->selectRow(this, sltSqlStr, pDataSet) )
   110     if( m_pIRDB->selectRow(this, sltSqlStr, pDataSet, aBegin, aEnd) )
   109     {
   111     {
   110         delete pDataSet;
   112         delete pDataSet;
   111         pDataSet = NULL;
   113         pDataSet = NULL;
   112     }
   114     }
   113     
   115