qtinternetradio/ui/inc/irsearchresultdb.h
changeset 17 38bbf2dcd608
parent 11 f683e24efca3
equal deleted inserted replaced
16:5723da102db1 17:38bbf2dcd608
    17 
    17 
    18 #ifndef IRSEARCHRESULTDB_H
    18 #ifndef IRSEARCHRESULTDB_H
    19 #define IRSEARCHRESULTDB_H
    19 #define IRSEARCHRESULTDB_H
    20  
    20  
    21 #include "irqenums.h"
    21 #include "irqenums.h"
    22  
    22 
    23 class QSqlDatabase; 
       
    24 class IRQChannelItem;
    23 class IRQChannelItem;
       
    24 class searchRltWrapper;
    25 
    25 
    26 class IRSearchResultDB 
    26 class IRSearchResultDB 
    27 {	
    27 {	
    28 public:
    28 public:
    29 		
    29 		
    33 	//not take ownership
    33 	//not take ownership
    34 	IRQError cacheChannelList(QList<IRQChannelItem*> *aChannelList);
    34 	IRQError cacheChannelList(QList<IRQChannelItem*> *aChannelList);
    35 	//caller needs to release the memory
    35 	//caller needs to release the memory
    36 	QList<IRQChannelItem*> * getCahcedChannelList();	
    36 	QList<IRQChannelItem*> * getCahcedChannelList();	
    37 	IRQError clearCache();
    37 	IRQError clearCache();
    38     
    38 
    39 private:		
       
    40     void createDBConnection();    
       
    41 		
       
    42 private:
    39 private:
    43 	  QSqlDatabase         *iDB;
    40     searchRltWrapper         *iSearchRltWrapper;
    44 };
    41 };
    45 #endif//IRSEARCHRESULTDB_H
    42 #endif//IRSEARCHRESULTDB_H