qtinternetradio/ui/inc/irsearchresultdb.h
changeset 8 3b03c28289e6
child 11 f683e24efca3
equal deleted inserted replaced
5:0930554dc389 8:3b03c28289e6
       
     1 /*
       
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). 
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef IRSEARCHRESULTDB_H
       
    19 #define IRSEARCHRESULTDB_H
       
    20  
       
    21 #include "irqenums.h"
       
    22  
       
    23 class QSqlDatabase; 
       
    24 class IRQChannelItem;
       
    25 
       
    26 class IRSearchResultDB 
       
    27 {	
       
    28 public:
       
    29 		
       
    30     IRSearchResultDB();     
       
    31 	~IRSearchResultDB();
       
    32      
       
    33 	//not take ownership
       
    34 	IRQError cacheChannelList(QList<IRQChannelItem*> *aChannelList);
       
    35 	//caller needs to release the memory
       
    36 	QList<IRQChannelItem*> * getCahcedChannelList();	
       
    37     
       
    38 private:		
       
    39     void createDBConnection();
       
    40     IRQError clearCache();
       
    41 		
       
    42 private:
       
    43 	  QSqlDatabase         *iDB;
       
    44 };
       
    45 #endif//IRSEARCHRESULTDB_H