qtinternetradio/irdb/src/songhistorywrapper.cpp
changeset 17 38bbf2dcd608
parent 16 5723da102db1
equal deleted inserted replaced
16:5723da102db1 17:38bbf2dcd608
   161 
   161 
   162 
   162 
   163 QList<QVariant*>* songHistoryWrapper::getSongHistory(const columnMap* const condAND,  
   163 QList<QVariant*>* songHistoryWrapper::getSongHistory(const columnMap* const condAND,  
   164                                                      const columnMap* const condOR)
   164                                                      const columnMap* const condOR)
   165 {
   165 {
   166     QString sltSqlStr = "select * from songHistory ";
   166     QString sltSqlStr = "select * from IRVIEW_SONGHISTORY ";
   167     QList<QVariant*>* pDataSet = NULL;
   167     QList<QVariant*>* pDataSet = NULL;
   168     
   168     
   169     if( (NULL != condAND)&&(NULL != condOR) )
   169     if( (NULL != condAND)&&(NULL != condOR) )
   170     {
   170     {
   171         return NULL;
   171         return NULL;
   186             return false;
   186             return false;
   187         }
   187         }
   188     }
   188     }
   189 
   189 
   190     combineGetStr(condAND, condOR, colNameView, sltSqlStr);
   190     combineGetStr(condAND, condOR, colNameView, sltSqlStr);
   191     sltSqlStr = sltSqlStr + " order by songPlaySeq desc ";
   191     
   192     pDataSet = new QList<QVariant*>();
   192     pDataSet = new QList<QVariant*>();
   193     if( m_pIRDB->selectRow(this, sltSqlStr, pDataSet) )
   193     if( m_pIRDB->selectRow(this, sltSqlStr, pDataSet) )
   194     {
   194     {
   195         delete pDataSet;
   195         delete pDataSet;
   196         pDataSet = NULL;
   196         pDataSet = NULL;